added app header for printing

This commit is contained in:
Ralf Becker 2010-06-30 12:53:26 +00:00
parent 0ae5a3f749
commit cf29d2f4f7
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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}