mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +01:00
modify and bug fix idsociety navbar files
This commit is contained in:
parent
40dd0d8563
commit
e12e0864ad
@ -22,7 +22,8 @@
|
||||
)
|
||||
);
|
||||
|
||||
$tpl->set_block('navbar','B_powered_top','V_powered_top');
|
||||
//$tpl->set_block('navbar','B_powered_top','V_powered_top');
|
||||
//$tpl->set_block('navbar','B_num_users','V_num_users');
|
||||
|
||||
$var['img_root'] = PHPGW_IMAGES_DIR;
|
||||
$var['img_root_roll'] = PHPGW_IMAGES_DIR . '/rollover';
|
||||
@ -55,7 +56,7 @@
|
||||
{
|
||||
$applications .= ' onMouseOut="' . $app[0] . '.src=\'' . $img_src_out . '\'"';
|
||||
}
|
||||
$applications .= '>'.$title.'</a></td></tr>'."\n";
|
||||
$applications .= '>'.$title.'</a></td></tr>'."\r\n";
|
||||
}
|
||||
$img_src_over = $GLOBALS['phpgw']->common->image($app[0],'navbar-over.gif');
|
||||
if($img_src_over)
|
||||
@ -92,16 +93,18 @@
|
||||
}
|
||||
$var['logout_img'] = PHPGW_IMAGES_DIR . '/logout-grey.gif';
|
||||
|
||||
// "powered_by_color" and "_size" are is also used by number of current users thing
|
||||
$var['powered_by_size'] = '2';
|
||||
$var['powered_by_color'] = '#ffffff';
|
||||
if ($GLOBALS['phpgw_info']['server']['showpoweredbyon'] == 'top')
|
||||
{
|
||||
$var['powered_by'] = lang('Powered by phpGroupWare version x',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
|
||||
$var['power_size'] = '2';
|
||||
$tpl->set_var($var);
|
||||
$tpl->parse('V_powered_top','B_powered_top');
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['V_powered_top'] = '';
|
||||
$var['powered_by'] = '';
|
||||
$tpl->set_var($var);
|
||||
}
|
||||
|
||||
if (isset($GLOBALS['phpgw_info']['navbar']['admin']) && isset($GLOBALS['phpgw_info']['user']['preferences']['common']['show_currentusers']))
|
||||
@ -111,11 +114,22 @@
|
||||
$db->next_record();
|
||||
$var['current_users'] = '<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicurrentsessions.list_sessions')
|
||||
. '"> ' . lang('Current users') . ': ' . $db->f(0) . '</a>';
|
||||
$tpl->set_var($var);
|
||||
}
|
||||
$var['user_info'] = $GLOBALS['phpgw']->common->display_fullname() . ' - '
|
||||
. lang($GLOBALS['phpgw']->common->show_date(time(),'l')) . ' '
|
||||
. lang($GLOBALS['phpgw']->common->show_date(time(),'F')) . ' '
|
||||
. $GLOBALS['phpgw']->common->show_date(time(),'d, Y');
|
||||
else
|
||||
{
|
||||
$var['current_users'] = '';
|
||||
$tpl->set_var($var);
|
||||
}
|
||||
|
||||
$var['user_info_name'] = $GLOBALS['phpgw']->common->display_fullname();
|
||||
$var['user_info_date'] =
|
||||
lang($GLOBALS['phpgw']->common->show_date(time(),'l')) . ' '
|
||||
. lang($GLOBALS['phpgw']->common->show_date(time(),'F')) . ' '
|
||||
. $GLOBALS['phpgw']->common->show_date(time(),'d, Y');
|
||||
$var['user_info'] = $var['user_info_name'] .' - ' .$var['user_info_date'];
|
||||
$var['user_info_size'] = '2';
|
||||
$var['user_info_color'] = '#000000';
|
||||
|
||||
// Maybe we should create a common function in the phpgw_accounts_shared.inc.php file
|
||||
// to get rid of duplicate code.
|
||||
|
@ -11,13 +11,18 @@
|
||||
|
||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td width="154" valign="top" background="{img_root}/nav_bar_left_spacer.gif"><!-- left nav table -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="154" height="">
|
||||
<td width="154" valign="top" background="{img_root}/nav_bar_left_spacer.gif">
|
||||
<!-- left nav table -->
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="154">
|
||||
<tr>
|
||||
<td valign="top" width="154" height="58" background="{img_root}/em.gif"><img src="{img_root}/logo.gif"></td>
|
||||
<td valign="top" width="154" background="{img_root}/em.gif">
|
||||
<img src="{img_root}/logo.gif">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="{img_root}/right_nav_bar.gif" border="0" name="one"></td>
|
||||
<td>
|
||||
<img src="{img_root}/right_nav_bar.gif" border="0" name="one">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- applications supplies their own tr's and td's -->
|
||||
{applications}
|
||||
@ -26,14 +31,22 @@
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="100%" valign="top"> <!-- top right table -->
|
||||
<!-- this TD background image moved to body element -->
|
||||
<table border="0" width="100%" height="" cellpadding="0" cellspacing="0">
|
||||
<td width="100%" valign="top">
|
||||
<!-- top right table -->
|
||||
<!-- this TD background image moved to body element -->
|
||||
<table border="0" width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td valign="top" width="12" height="58" background="{img_root}/nav_top_spacer.gif"><img src="{img_root}/em.gif"></td>
|
||||
<td background="{img_root}/nav_top_spacer.gif" align="left" height="30">
|
||||
<font size="{user_info_size}" color="{user_info_color}">
|
||||
<strong>{user_info_name}<br>{user_info_date}</strong></font>
|
||||
</td>
|
||||
<td background="{img_root}/nav_top_spacer.gif" align="right">
|
||||
<font size="{powered_by_size}" color="{powered_by_color}">{powered_by} <br>{current_users} </font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td background="{img_root}/top_spacer_middle.gif" align="right" width="100%"><!-- right top nav table -->
|
||||
<td colspan="2" background="{img_root}/top_spacer_middle.gif" align="right" width="100%">
|
||||
<!-- right top nav table -->
|
||||
<table cellpadding="0" cellspacing="0" border="0" height="15">
|
||||
<tr>
|
||||
<td><a href="{home_link}" onMouseOver="nine.src='{img_root}/rollover/welcome_over.gif'" onMouseOut="nine.src='{img_root}/welcome.gif'"><img src="{img_root}/welcome.gif" border="0" name="nine"></a></td>
|
||||
@ -44,28 +57,7 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- BEGIN B_powered_top -->
|
||||
<tr>
|
||||
<td align="left">
|
||||
<font size="{power_size}"> {powered_by}</font>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END B_powered_top -->
|
||||
<tr>
|
||||
<td align="left">
|
||||
<table border="0" width="100%" height="" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">
|
||||
{user_info}
|
||||
</td>
|
||||
<td align="right">
|
||||
{current_users}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<td colspan="2">
|
||||
<br>
|
||||
<!-- END navbar -->
|
||||
|
Loading…
Reference in New Issue
Block a user