new idots preference to show execturion time on bottom of page and sokme extra styles, general borderless img style

This commit is contained in:
Pim Snel 2003-11-19 20:44:54 +00:00
parent 3f4e2d8918
commit 6232988b65
6 changed files with 53 additions and 5 deletions

View File

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

View File

@ -5,7 +5,7 @@
</table>
</div>
</div>
{page_generation_time}
<div id="divPoweredBy"><br/><span>{powered_by}</span></div>
</body>
</html>

View File

@ -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'] . '"';

View File

@ -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. <img src="/path/to/image" class="class" alt="this is an image :)" />
5. use png-graphics if possible, but keep in ming IE has a transparency bug when it renders png's
-->

View File

@ -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?');

View File

@ -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'] = '<img src="'.$GLOBALS['phpgw']->common->image($app,$item_link['icon']).'">';
$var['icon_or_star'] = '<img src="'.$GLOBALS['phpgw']->common->image($app,$item_link['icon']).'"/>';
}
$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'] = '<div id="divGenTime"><br/><span>'.lang('Page was generated in %1 seconds',$totaltime).'</span></div>';
}
$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');