mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01:00
added app header for printing
This commit is contained in:
parent
0ae5a3f749
commit
cf29d2f4f7
@ -222,7 +222,18 @@ class jdots_framework extends egw_framework
|
||||
window.location.search += window.location.search ? "&cd=yes" : "?cd=yes";
|
||||
}
|
||||
</script>';
|
||||
// app header for print (different from website_title, which also contains app header)
|
||||
if ($GLOBALS['egw_info']['flags']['app_header'])
|
||||
{
|
||||
$app_header = $GLOBALS['egw_info']['flags']['app_header'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$app = $GLOBALS['egw_info']['flags']['currentapp'];
|
||||
$app_header = isset($GLOBALS['egw_info']['apps'][$app]) ? $GLOBALS['egw_info']['apps'][$app]['title'] : lang($app);
|
||||
}
|
||||
}
|
||||
$this->tpl->set_var('app_header',(string)$app_header);
|
||||
$this->tpl->set_var($vars = $this->_get_header());
|
||||
$content .= $this->tpl->fp('out','head').$content;
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
</head>
|
||||
<body {body_tags}>
|
||||
{include_wz_tooltip}
|
||||
<div id="divAppboxHeader" class="onlyPrint">{app_header}</div>
|
||||
<!-- END head -->
|
||||
<!-- BEGIN framework -->
|
||||
{hook_after_navbar}
|
||||
|
Loading…
Reference in New Issue
Block a user