tray/src/messenger/webim/view/inc_menu.php

40 lines
1.7 KiB
PHP
Raw Normal View History

<?php
function menuli($name) {
global $page;
if(isset($page) && isset($page['menuid']) && $name == $page['menuid']) {
echo " class=\"active\"";
}
return "";
}
function rightmenu_content() { global $page, $webimroot, $errors;
if(isset($page) && isset($page['operator'])) { ?>
<li>
<h2><b>main</b></h2>
<ul class="submenu">
<li<?php menuli("main")?>><a href='<?php echo $webimroot ?>/operator/index.php'><?php echo getlocal('topMenu.main') ?></a></li>
<li<?php menuli("users")?>><a href='<?php echo $webimroot ?>/operator/users.php'><?php echo getlocal('topMenu.users') ?></a></li>
<li<?php menuli("history")?>><a href='<?php echo $webimroot ?>/operator/history.php'><?php echo getlocal('page_analysis.search.title') ?></a></li>
<li<?php menuli("blocked")?>><a href='<?php echo $webimroot ?>/operator/blocked.php'><?php echo getlocal('menu.blocked') ?></a></li>
</ul>
</li>
<li>
<h2><b>administration</b></h2>
<ul class="submenu">
<li<?php menuli("operators")?>><a href='<?php echo $webimroot ?>/operator/operators.php'><?php echo getlocal('leftMenu.client_agents') ?></a></li>
<li<?php menuli("departments")?>><a href="#">Departments</a></li>
<li<?php menuli("getcode")?>><a href='<?php echo $webimroot ?>/operator/getcode.php'><?php echo getlocal('leftMenu.client_gen_button') ?></a></li>
<li<?php menuli("settings")?>><a href='<?php echo $webimroot ?>/operator/settings.php'><?php echo getlocal('leftMenu.client_settings') ?></a></li>
</ul>
</li>
<li>
<h2><b>other</b></h2>
<ul class="submenu">
<li><a href='<?php echo $webimroot ?>/operator/logout.php'><?php echo getlocal('topMenu.logoff') ?></a></li>
</ul>
</li>
<?php
}
}
?>