display current users in topmenu when topmenu is enabled

This commit is contained in:
Pim Snel 2007-01-09 23:15:00 +00:00
parent 48c4bfdc9b
commit 65e30cac8e
2 changed files with 3 additions and 4 deletions

View File

@ -460,6 +460,7 @@
if($GLOBALS['egw_info']['user']['preferences']['common']['show_general_menu'] != 'sidebox')
{
$var['current_users'] = '';
$var['quick_add'] = '';
$var['user_info']='';
}
@ -627,6 +628,7 @@
$this->tplsav2->assign('info_icons',$this->topmenu_icon_arr);
$this->_add_topmenu_info_item($this->_user_time_info());
$this->_add_topmenu_info_item($this->_current_users());
$this->_add_topmenu_info_item($this->_get_quick_add());
$this->tplsav2->display('topmenu.tpl.php');

View File

@ -41,7 +41,7 @@
<div id="topmenu">
<div id="topmenu_items">
<?php foreach($this->menuitems as $mitems):?>
<div style="padding:0px 10px 0px 10px;position:relative;float:left;"><img src="<?=$this->icon_or_star?>" />&nbsp;<a href="<?=$mitems['url']?>"><?=$mitems['label']?></a></div>
<div style="padding:0px 0px 0px 10px;position:relative;float:left;"><img src="<?=$this->icon_or_star?>" />&nbsp;<a href="<?=$mitems['url']?>"><?=$mitems['label']?></a></div>
<?php endforeach?>
</div>
@ -63,7 +63,4 @@
setInterval("shiftOpacity('<?=$iicon['id']?>', 500)",1500);
<?php endif?>
<?php endforeach?>
//shiftOpacity('blinkimg', 500);
</script>