corrected new navbar_end function

This commit is contained in:
seek3r 2001-01-06 09:20:33 +00:00
parent aba48c518a
commit 82c5aac5de
4 changed files with 34 additions and 29 deletions

View File

@ -28,15 +28,7 @@
include($phpgw_info["server"]["app_inc"]."/footer.inc.php");
}
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("footer" => "footer.tpl"));
$tpl->set_var("img_root",$phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/verdilak/images");
$tpl->set_var("table_bg_color",$phpgw_info["theme"]["navbar_bg"]);
$tpl->set_var("showpoweredbyon",$phpgw_info["server"]["showpoweredbyon"]);
$tpl->set_var("version",$phpgw_info["server"]["versions"]["phpgwapi"]);
echo $tpl->finish($tpl->parse("out","footer"));
parse_navbar_end();
$phpgw->db->disconnect();
?>

View File

@ -2,28 +2,9 @@
<P>
<table border="0" cellspacing="0" cellpading="0" width="100%" bgcolor="{table_bg_color}">
<TR>
<TD>
<P><P>Powered by <a href=http://www.phpgroupware.org>phpGroupWare</a> version {version}<br>
</TD>
<TD align="center">{msg}<br></TD>
</TR>
</Table>
<!---
// If we can figure out how to do this, then we will use it. until then I am leaving it here, out of the way.
/*
if ($phpgw_info["server"]["showpoweredbyon"] == "bottom" && $phpgw_info["server"]["showpoweredbyon"] != "top") {
echo "<P>\n";
echo "<Table Width=100% Border=0 CellPadding=0 CellSpacing=0 BGColor=".$phpgw_info["theme"]["navbar_bg"].">\n";
echo " <TR><TD>";
echo "<P><P>\n" . lang("Powered by phpGroupWare version x",
$phpgw_info["server"]["versions"]["phpgwapi"]) . "<br>\n";
echo "</TD>";
if ($phpgw_info["flags"]["parent_page"])
echo "<td align=\"right\"><a href=\"".$phpgw->link($phpgw_info["flags"]["parent_page"])."\">".lang("up")."</a></td>";
echo "</TR>\n</Table>\n";
}
*/
--->
<!-- END footer -->

View File

@ -79,3 +79,22 @@
}
return $tpl->finish($tpl->parse("out","navbar"));
}
function parse_navbar_end()
{
global $phpgw_info, $phpgw;
if ($phpgw_info["server"]["showpoweredbyon"] == "bottom") {
$msg = "<P><P>\n" . lang("Powered by phpGroupWare version x", $phpgw_info["server"]["versions"]["phpgwapi"]);
}
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("footer" => "footer.tpl"));
$tpl->set_var("img_root",$phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/verdilak/images");
$tpl->set_var("table_bg_color",$phpgw_info["theme"]["navbar_bg"]);
$tpl->set_var("msg",$msg);
$tpl->set_var("version",$phpgw_info["server"]["versions"]["phpgwapi"]);
echo $tpl->finish($tpl->parse("out","footer"));
}

View File

@ -81,3 +81,16 @@
}
return $tpl->finish($tpl->parse("out","navbar"));
}
function parse_navbar_end()
{
global $phpgw_info, $phpgw;
$tpl = new Template($phpgw_info["server"]["template_dir"]);
$tpl->set_unknowns("remove");
$tpl->set_file(array("footer" => "footer.tpl"));
$tpl->set_var("img_root",$phpgw_info["server"]["webserver_url"] . "/phpgwapi/templates/verdilak/images");
$tpl->set_var("table_bg_color",$phpgw_info["theme"]["navbar_bg"]);
$tpl->set_var("version",$phpgw_info["server"]["versions"]["phpgwapi"]);
echo $tpl->finish($tpl->parse("out","footer"));
}