2009-03-12 04:07:35 +03:00
|
|
|
<?php
|
|
|
|
function menuli($name) {
|
|
|
|
global $page;
|
|
|
|
if(isset($page) && isset($page['menuid']) && $name == $page['menuid']) {
|
|
|
|
echo " class=\"active\"";
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
function tpl_menu() { global $page, $webimroot, $errors;
|
2009-03-12 04:07:35 +03:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|