diff --git a/phpgwapi/templates/idots/css/idots.css b/phpgwapi/templates/idots/css/idots.css index 05ad85baef..77af16aaf9 100755 --- a/phpgwapi/templates/idots/css/idots.css +++ b/phpgwapi/templates/idots/css/idots.css @@ -24,6 +24,12 @@ body padding:14px; } +img +{ + border-width:0px; + border-style:none; +} + a:link { color: #006699; @@ -147,6 +153,13 @@ a.textSidebox height:1px; } +.prefSection +{ + font-weight:bold; + font-size:16px; + line-height:40px; +} + #extraIcons { position:absolute; @@ -283,6 +296,15 @@ a.textSidebox text-align:right; } +#divGenTime +{ + bottom:14px; + font-size: 9px; + color: #ff0000; + text-align:center; + width:99%; +} + #divPoweredBy { bottom:14px; diff --git a/phpgwapi/templates/idots/footer.tpl b/phpgwapi/templates/idots/footer.tpl index 5c35e3d060..0d524b80a4 100755 --- a/phpgwapi/templates/idots/footer.tpl +++ b/phpgwapi/templates/idots/footer.tpl @@ -5,7 +5,7 @@ - +{page_generation_time}

{powered_by}
diff --git a/phpgwapi/templates/idots/head.inc.php b/phpgwapi/templates/idots/head.inc.php index 44ec2e65ba..c28e8863a4 100644 --- a/phpgwapi/templates/idots/head.inc.php +++ b/phpgwapi/templates/idots/head.inc.php @@ -11,6 +11,16 @@ /* $Id$ */ + + if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time']) + { + $mtime = microtime(); + $mtime = explode(" ",$mtime); + $mtime = $mtime[1] + $mtime[0]; + $GLOBALS['page_start_time'] = $mtime; + } + + $bodyheader = ' bgcolor="' . $GLOBALS['phpgw_info']['theme']['bg_color'] . '" alink="' . $GLOBALS['phpgw_info']['theme']['alink'] . '" link="' . $GLOBALS['phpgw_info']['theme']['link'] . '" vlink="' . $GLOBALS['phpgw_info']['theme']['vlink'] . '"'; diff --git a/phpgwapi/templates/idots/head.tpl b/phpgwapi/templates/idots/head.tpl index e306d0a61e..3c5549f944 100644 --- a/phpgwapi/templates/idots/head.tpl +++ b/phpgwapi/templates/idots/head.tpl @@ -7,7 +7,7 @@ 1. use lowercase is possible, because of xhtml validation 2. make your template validate either html 4.01 or xhtml 1 3. make your application validat both if possible - 4. always use "" when possible (please help me I don't know the English word) + 4. always use quotionmarks when possible e.g. this is an image :) 5. use png-graphics if possible, but keep in ming IE has a transparency bug when it renders png's --> diff --git a/phpgwapi/templates/idots/hook_settings.inc.php b/phpgwapi/templates/idots/hook_settings.inc.php index 5f051c24ec..722d087d9d 100644 --- a/phpgwapi/templates/idots/hook_settings.inc.php +++ b/phpgwapi/templates/idots/hook_settings.inc.php @@ -10,6 +10,10 @@ \**************************************************************************/ /* $Id$ */ - + create_section('Preferences for the idots template set'); + create_input_box('Max number of icons in navbar','max_icons', - 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.','',3); +'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.','10',3); + + create_check_box('Show page generation time','show_generation_time', + 'Show page generation time on the bottom of the page?'); diff --git a/phpgwapi/templates/idots/navbar.inc.php b/phpgwapi/templates/idots/navbar.inc.php index 1f36424500..6b23f6eb35 100644 --- a/phpgwapi/templates/idots/navbar.inc.php +++ b/phpgwapi/templates/idots/navbar.inc.php @@ -221,7 +221,7 @@ if(isset($item_link['icon'])) { $app = isset($item_link['app']) ? $item_link['app'] : $GLOBALS['phpgw_info']['flags']['currentapp']; - $var['icon_or_star'] = ''; + $var['icon_or_star'] = ''; } $var['lang_item'] = isset($item_link['no_lang']) && $item_link['no_lang'] ? $item_link['text'] : lang($item_link['text']); $var['item_link'] = $item_link['link']; @@ -252,6 +252,18 @@ ); $GLOBALS['phpgw']->hooks->process('navbar_end'); + + if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time']) + { + $mtime = microtime(); + $mtime = explode(" ",$mtime); + $mtime = $mtime[1] + $mtime[0]; + $tend = $mtime; + $totaltime = ($tend - $GLOBALS['page_start_time']); + + $var['page_generation_time'] = '

'.lang('Page was generated in %1 seconds',$totaltime).'
'; + } + $var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']); $GLOBALS['idots_tpl']->set_var($var); $GLOBALS['idots_tpl']->pfp('out','footer');