Add userinfo and current users to navbar

This commit is contained in:
Miles Lott 2001-04-02 20:47:22 +00:00
parent 72fc7843e8
commit 41ce4a71aa
2 changed files with 8 additions and 2 deletions

View File

@ -73,13 +73,14 @@
/* if ($phpgw_info["server"]["showpoweredbyon"] == "top") {
$tpl->set_var("powered_by",lang("Powered by phpGroupWare version x",$phpgw_info["server"]["versions"]["phpgwapi"]));
}
*/
if (isset($phpgw_info["navbar"]["admin"]) && isset($phpgw_info["user"]["preferences"]["common"]["show_currentusers"])) {
$db = $phpgw->db;
$db->query("select count(*) from phpgw_sessions");
$db->next_record();
$tpl->set_var("current_users",'<a href="' . $phpgw->link("/admin/currentusers.php") . '">&nbsp;'
. lang("Current users") . ': ' . $db->f(0) . '</a>');
} */
}
$tpl->set_var("user_info",$phpgw->common->display_fullname() . " - "
. lang($phpgw->common->show_date(time(),"l")) . " "
. lang($phpgw->common->show_date(time(),"F")) . " "

View File

@ -41,7 +41,12 @@
</TD>
</TR>
<TR>
<TD ALIGN="left" COLSPAN="2">
{user_info}&nbsp;&nbsp;{current_users}
</TD>
</TR>
<TR>
<TD>
<!-- END navbar -->
<!-- END navbar -->