mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
new idots preference to show execturion time on bottom of page and sokme extra styles, general borderless img style
This commit is contained in:
parent
3f4e2d8918
commit
6232988b65
@ -24,6 +24,12 @@ body
|
|||||||
padding:14px;
|
padding:14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img
|
||||||
|
{
|
||||||
|
border-width:0px;
|
||||||
|
border-style:none;
|
||||||
|
}
|
||||||
|
|
||||||
a:link
|
a:link
|
||||||
{
|
{
|
||||||
color: #006699;
|
color: #006699;
|
||||||
@ -147,6 +153,13 @@ a.textSidebox
|
|||||||
height:1px;
|
height:1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.prefSection
|
||||||
|
{
|
||||||
|
font-weight:bold;
|
||||||
|
font-size:16px;
|
||||||
|
line-height:40px;
|
||||||
|
}
|
||||||
|
|
||||||
#extraIcons
|
#extraIcons
|
||||||
{
|
{
|
||||||
position:absolute;
|
position:absolute;
|
||||||
@ -283,6 +296,15 @@ a.textSidebox
|
|||||||
text-align:right;
|
text-align:right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#divGenTime
|
||||||
|
{
|
||||||
|
bottom:14px;
|
||||||
|
font-size: 9px;
|
||||||
|
color: #ff0000;
|
||||||
|
text-align:center;
|
||||||
|
width:99%;
|
||||||
|
}
|
||||||
|
|
||||||
#divPoweredBy
|
#divPoweredBy
|
||||||
{
|
{
|
||||||
bottom:14px;
|
bottom:14px;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{page_generation_time}
|
||||||
<div id="divPoweredBy"><br/><span>{powered_by}</span></div>
|
<div id="divPoweredBy"><br/><span>{powered_by}</span></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -11,6 +11,16 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $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="'
|
$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']['alink'] . '" link="' . $GLOBALS['phpgw_info']['theme']['link'] . '" vlink="'
|
||||||
. $GLOBALS['phpgw_info']['theme']['vlink'] . '"';
|
. $GLOBALS['phpgw_info']['theme']['vlink'] . '"';
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
1. use lowercase is possible, because of xhtml validation
|
1. use lowercase is possible, because of xhtml validation
|
||||||
2. make your template validate either html 4.01 or xhtml 1
|
2. make your template validate either html 4.01 or xhtml 1
|
||||||
3. make your application validat both if possible
|
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
|
5. use png-graphics if possible, but keep in ming IE has a transparency bug when it renders png's
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
create_section('Preferences for the idots template set');
|
||||||
|
|
||||||
create_input_box('Max number of icons in navbar','max_icons',
|
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?');
|
||||||
|
@ -221,7 +221,7 @@
|
|||||||
if(isset($item_link['icon']))
|
if(isset($item_link['icon']))
|
||||||
{
|
{
|
||||||
$app = isset($item_link['app']) ? $item_link['app'] : $GLOBALS['phpgw_info']['flags']['currentapp'];
|
$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['lang_item'] = isset($item_link['no_lang']) && $item_link['no_lang'] ? $item_link['text'] : lang($item_link['text']);
|
||||||
$var['item_link'] = $item_link['link'];
|
$var['item_link'] = $item_link['link'];
|
||||||
@ -252,6 +252,18 @@
|
|||||||
);
|
);
|
||||||
$GLOBALS['phpgw']->hooks->process('navbar_end');
|
$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']);
|
$var['powered_by'] = lang('Powered by phpGroupWare version %1',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
|
||||||
$GLOBALS['idots_tpl']->set_var($var);
|
$GLOBALS['idots_tpl']->set_var($var);
|
||||||
$GLOBALS['idots_tpl']->pfp('out','footer');
|
$GLOBALS['idots_tpl']->pfp('out','footer');
|
||||||
|
Loading…
Reference in New Issue
Block a user