added powered by logo. Logo on top may be cluttering

This commit is contained in:
angles 2001-05-15 17:00:21 +00:00
parent 8847295ff6
commit 0760bf5cb9
4 changed files with 104 additions and 73 deletions

View File

@ -1,10 +1,23 @@
<!-- BEGIN footer --> <!-- BEGIN footer -->
</td> </td>
</TR> </tr>
</TABLE> </table>
<br>
</td> <!-- BEGIN B_powered_bottom -->
</tr> <table border="0" cellspacing="0" cellpadding="0" width="100%">
</TABLE> <tr>
<td align="center" bgcolor="{power_backcolor}">
<font color="{power_textcolor}">{powered}</font>
</td>
</tr>
</table>
<!-- END B_powered_bottom -->
<p>&nbsp;</p>
</td>
</tr>
</table>
<!-- END footer --> <!-- END footer -->

View File

@ -9,7 +9,7 @@
* option) any later version. * * option) any later version. *
\**************************************************************************/ \**************************************************************************/
/* $Id$ */ /* $Id$ */
function parse_navbar($force = False) function parse_navbar($force = False)
{ {
@ -18,14 +18,17 @@
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove'); $tpl->set_unknowns('remove');
$templates = Array('navbar' => 'navbar.tpl'); $tpl->set_file(array(
$tpl->set_file($templates); 'navbar' => 'navbar.tpl'
));
$tpl->set_block('navbar','B_powered_top','V_powered_top');
$tpl->set_var('img_root',PHPGW_IMAGES_DIR); $tpl->set_var('img_root',PHPGW_IMAGES_DIR);
$tpl->set_var('img_root_roll',PHPGW_IMAGES_DIR . '/rollover'); $tpl->set_var('img_root_roll',PHPGW_IMAGES_DIR . '/rollover');
$tpl->set_var('table_bg_color',$phpgw_info['theme']['navbar_bg']); $tpl->set_var('table_bg_color',$phpgw_info['theme']['navbar_bg']);
# echo '<pre>'; print_r($phpgw_info['navbar']); echo '</pre>'; # echo '<pre>'; print_r($phpgw_info['navbar']); echo '</pre>';
$applications = ''; $applications = '';
while ($app = each($phpgw_info['navbar'])) while ($app = each($phpgw_info['navbar']))
{ {
@ -37,7 +40,7 @@
$img_src_over = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar-over.gif'; $img_src_over = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar-over.gif';
$img_src_out = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar.gif'; $img_src_out = $phpgw_info['server']['webserver_url'] . '/' . $app[0] . '/templates/idsociety/images/navbar.gif';
// onMouseOver="two.src='rollover/admin_over.gif'" onMouseOut="two.src='images/admin.gif'"><img src="images/admin.gif" border="0" name="two" // onMouseOver="two.src='rollover/admin_over.gif'" onMouseOut="two.src='images/admin.gif'"><img src="images/admin.gif" border="0" name="two"
$applications .= '<tr><td><a href="' . $app[1]['url'] . '"'; $applications .= '<tr><td><a href="' . $app[1]['url'] . '"';
if (isset($phpgw_info['flags']['navbar_target'])) if (isset($phpgw_info['flags']['navbar_target']))
{ {
@ -79,11 +82,17 @@
} }
$tpl->set_var('logout_img',PHPGW_IMAGES_DIR . '/logout-grey.gif'); $tpl->set_var('logout_img',PHPGW_IMAGES_DIR . '/logout-grey.gif');
/* if ($phpgw_info['server']['showpoweredbyon'] == 'top') if ($phpgw_info['server']['showpoweredbyon'] == 'top')
{ {
$tpl->set_var('powered_by',lang('Powered by phpGroupWare version x',$phpgw_info['server']['versions']['phpgwapi'])); $tpl->set_var("powered_by",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["versions"]["phpgwapi"]));
$tpl->set_var('power_size','2');
$tpl->parse('V_powered_top','B_powered_top');
} }
*/ else
{
$tpl->set_var('V_powered_top','');
}
if (isset($phpgw_info['navbar']['admin']) && isset($phpgw_info['user']['preferences']['common']['show_currentusers'])) if (isset($phpgw_info['navbar']['admin']) && isset($phpgw_info['user']['preferences']['common']['show_currentusers']))
{ {
$db = $phpgw->db; $db = $phpgw->db;
@ -118,12 +127,9 @@
*/ */
// If the application has a header include, we now include it // If the application has a header include, we now include it
if ((isset($phpgw_info['flags']['noheader']) && if ($phpgw_info["flags"]["noheader"] && ! $phpgw_info["flags"]["noappheader"])
$phpgw_info['flags']['noheader']) &&
(!isset($phpgw_info['flags']['noappheader']) ||
!$phpgw_info['flags']['noappheader']))
{ {
} }
return $tpl->fp('out','navbar'); return $tpl->fp('out','navbar');
} }
@ -134,10 +140,23 @@
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove'); $tpl->set_unknowns('remove');
$templates = array('footer' => 'footer.tpl'); $tpl->set_file(array('footer' => 'footer.tpl'));
$tpl->set_file($templates); $tpl->set_block('footer','B_powered_bottom','V_powered_bottom');
$tpl->set_var('img_root',PHPGW_IMAGES_DIR);
$tpl->set_var('table_bg_color',$phpgw_info['theme']['navbar_bg']); if ($phpgw_info["server"]["showpoweredbyon"] == "bottom")
$tpl->set_var('version',$phpgw_info['server']['versions']['phpgwapi']); {
$powered = lang("Powered by phpGroupWare version x", $phpgw_info["server"]["versions"]["phpgwapi"]);
$tpl->set_var('powered',$powered);
$tpl->set_var('img_root',PHPGW_IMAGES_DIR);
$tpl->set_var('power_backcolor',$phpgw_info['theme']['navbar_bg']);
$tpl->set_var('power_textcolor',$phpgw_info['theme']['navbar_text']);
//$tpl->set_var('version',$phpgw_info['server']['versions']['phpgwapi']);
$tpl->parse('V_powered_bottom','B_powered_bottom');
}
else
{
$tpl->set_var('V_powered_bottom','');
}
$tpl->pfp('out','footer'); $tpl->pfp('out','footer');
} }

View File

@ -11,52 +11,51 @@
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"> <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
<tr> <tr>
<td width="154" valign="top" background="{img_root}/nav_bar_left_spacer.gif"><!-- left nav table --> <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="">
<TABLE BORDER="0" cellpadding="0" cellspacing="0" width="154" height=""> <tr>
<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" height="58" background="{img_root}/em.gif"><img src="{img_root}/logo.gif"></TD> </tr>
</TR> <tr>
<td><img src="{img_root}/right_nav_bar.gif" border="0" name="one"></td>
<TR> </tr>
<TD><img src="{img_root}/right_nav_bar.gif" border="0" name="one"></TD> <!-- applications supplies their own tr's and td's -->
</tr> {applications}
<tr>
{applications} <td><img src="{img_root}/nav_bar_left_top_bg.gif"></td>
</tr>
<TR> </table>
<TD><img src="{img_root}/nav_bar_left_top_bg.gif"></TD> </td>
</TR> <td width="100%" valign="top"> <!-- top right table -->
</TABLE> <!-- this TD background image moved to body element -->
<table border="0" width="100%" height="" cellpadding="0" cellspacing="0">
</td> <tr>
<td width="100%" valign="top"> <!-- top right table --> <td valign="top" width="12" height="58" background="{img_root}/nav_top_spacer.gif"><img src="{img_root}/em.gif"></td>
<!-- this TD background image moved to body element --> </tr>
<TABLE BORDER="0" WIDTH="100%" HEIGHT="" CELLPADDING="0" CELLSPACING="0"> <tr>
<TR> <td background="{img_root}/top_spacer_middle.gif" align="right" width="100%"><!-- right top nav table -->
<TD valign="top" width="12" height="58" background="{img_root}/nav_top_spacer.gif"><img src="{img_root}/em.gif"></TD> <table cellpadding="0" cellspacing="0" border="0" height="15">
</TR> <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"></td>
<TR> <td><a href="{preferences_link}" onMouseOver="ten.src='{img_root}/rollover/preferences_over.gif'" onMouseOut="ten.src='{img_root}/preferences.gif'"><img src="{img_root}/preferences.gif" border="0" name="ten"></td>
<TD background="{img_root}/top_spacer_middle.gif" align="right" width="100%"><!-- right top nav table --> <td><a href="{logout_link}" onMouseOver="eleven.src='{img_root}/rollover/log_out_over.gif'" onMouseOut="eleven.src='{img_root}/log_out.gif'"><img src="{img_root}/log_out.gif" border="0" name="eleven"></td>
<td><a href="{help_link}" onMouseOver="help.src='{img_root}/rollover/help-over.gif'" onMouseOut="help.src='{img_root}/question_mark.gif'"><img src="{img_root}/question_mark.gif" border="0" name="help"></td>
<TABLE cellpadding="0" cellspacing="0" border="0" height="15"> </tr>
<TR> </table>
<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"></TD> </td>
<TD><a href="{preferences_link}" onMouseOver="ten.src='{img_root}/rollover/preferences_over.gif'" onMouseOut="ten.src='{img_root}/preferences.gif'"><img src="{img_root}/preferences.gif" border="0" name="ten"></TD> </tr>
<TD><a href="{logout_link}" onMouseOver="eleven.src='{img_root}/rollover/log_out_over.gif'" onMouseOut="eleven.src='{img_root}/log_out.gif'"><img src="{img_root}/log_out.gif" border="0" name="eleven"></TD> <!-- BEGIN B_powered_top -->
<TD><a href="{help_link}" onMouseOver="help.src='{img_root}/rollover/help-over.gif'" onMouseOut="help.src='{img_root}/question_mark.gif'"><img src="{img_root}/question_mark.gif" border="0" name="help"></TD> <tr>
</TR> <td align="left">
</TABLE> <font size="{power_size}">&nbsp;{powered_by}</font>
</td>
</TD> </tr>
</TR> <!-- END B_powered_top -->
<TR> <tr>
<TD ALIGN="left" width="100%"> <td align="left">
{user_info}&nbsp;&nbsp;{current_users} {user_info}&nbsp;&nbsp;&nbsp;&nbsp;{current_users}
</TD> </td>
</TR> </tr>
<TR> <tr>
<TD> <td>
<!-- END navbar --> <!-- END navbar -->

View File

@ -24,7 +24,7 @@
$phpgw_info['theme']['th_bg']= '#d3dce3'; $phpgw_info['theme']['th_bg']= '#d3dce3';
$phpgw_info['theme']['th_text']= '#000000'; $phpgw_info['theme']['th_text']= '#000000';
$phpgw_info['theme']['navbar_bg']= '#adadad'; $phpgw_info['theme']['navbar_bg']= '#adadad';
$phpgw_info['theme']['navbar_text']= '#000000'; $phpgw_info['theme']['navbar_text']= '#ffffff';
$phpgw_info['theme']['table_bg']= '#9999ff'; $phpgw_info['theme']['table_bg']= '#9999ff';
$phpgw_info['theme']['table_text']= '#000000'; $phpgw_info['theme']['table_text']= '#000000';
$phpgw_info['theme']['font']= 'Arial, Helvetica, san-serif'; $phpgw_info['theme']['font']= 'Arial, Helvetica, san-serif';