new print.css file, which disables navbar &

sidebox on printing under idots
This commit is contained in:
Ralf Becker 2006-01-06 04:53:44 +00:00
parent d0b013767b
commit f1d7915da6
3 changed files with 19 additions and 0 deletions

View File

@ -30,6 +30,7 @@
$theme_css = '/phpgwapi/templates/idots/css/idots.css';
}
$theme_css = $GLOBALS['egw_info']['server']['webserver_url'] . $theme_css;
$print_css = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/print.css';
//pngfix defaults to yes
if(!$GLOBALS['egw_info']['user']['preferences']['common']['disable_pngfix'])
@ -85,6 +86,7 @@
'website_title' => strip_tags($GLOBALS['egw_info']['server']['site_title']. ($app ? " [$app]" : '')),
'body_tags' => $bodyheader .' '. $GLOBALS['egw']->common->get_body_attribs(),
'theme_css' => $theme_css,
'print_css' => $print_css,
'css' => $GLOBALS['egw']->common->get_css(),
'java_script' => $GLOBALS['egw']->common->get_java_script(),
'meta_robots' => $robots,

View File

@ -14,6 +14,7 @@
<link rel="icon" href="{img_icon}" type="image/x-ico" />
<link rel="shortcut icon" href="{img_shortcut}" />
<link href="{theme_css}" type="text/css" rel="StyleSheet" />
<link href="{print_css}" type="text/css" media="print" rel="StyleSheet" />
{slider_effects}
{simple_show_hide}
{pngfix}

View File

@ -0,0 +1,16 @@
/*
The styles in this file are used for printing only!
Additional UI Elements can be disabled for printing by adding their Id here or adding the noPrint class to them.
*/
/* $Id$ */
#divLogo,#divAppIconBar,#tdSidebox,#divStatusBar,.noPrint {
display:none;
}
#divMain {
border:none;
margin:0px;
padding:0px;
}