mirror of
https://github.com/Mibew/design.git
synced 2024-11-16 01:44:11 +03:00
link to visitors with or without menu
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@430 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
bf7d51201e
commit
9d2f6ec2f5
@ -213,11 +213,18 @@ img.left {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.submenu a.inner { padding-left: 0px; }
|
||||
.submenu span.small { font-size: 80%; padding-left: 5px; }
|
||||
|
||||
.submenu .active a {
|
||||
background: url(images/li.gif) no-repeat left 1px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.submenu .active a.inner {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.submenu a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
//- onComplete, obj, params, $apply$
|
||||
//- threadParams, servl, frequency, user, threadid, token
|
||||
//- updaterOptions, url, company, agentservl, noclients, wroot
|
||||
//- updaterOptions, url, company, agentservl, noclients, wroot, havemenu
|
||||
|
||||
|
||||
var Class = {
|
||||
|
@ -332,5 +332,7 @@ var webimRoot = "";
|
||||
EventHelper.register(window, 'onload', function(){
|
||||
webimRoot = updaterOptions.wroot;
|
||||
new Ajax.ThreadListUpdater(({table:$("threadlist"),status:$("connstatus")}).extend(updaterOptions || {}));
|
||||
togglemenu();
|
||||
if(!updaterOptions.havemenu) {
|
||||
togglemenu();
|
||||
}
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
@ -362,6 +362,7 @@ topMenu.admin=Home
|
||||
topMenu.logoff=Exit
|
||||
topMenu.main=Home
|
||||
topMenu.users=Visitors
|
||||
topMenu.users.nomenu=without menu
|
||||
translate.direction=Direction:
|
||||
translate.show.all=All strings
|
||||
translate.show.foradmin=Strings for administrator
|
||||
|
@ -20,6 +20,7 @@ $operator = check_login();
|
||||
notify_operator_alive($operator['operatorid']);
|
||||
|
||||
$page = array();
|
||||
$page['havemenu'] = isset($_GET['nomenu']) ? "0" : "1";
|
||||
|
||||
prepare_menu($operator);
|
||||
start_html_output();
|
||||
|
@ -13,7 +13,7 @@ function tpl_menu() { global $page, $webimroot, $errors;
|
||||
<h2><?php echo getlocal('right.main') ?></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("users")?>><a href='<?php echo $webimroot ?>/operator/users.php'><?php echo getlocal('topMenu.users') ?></a> <span class="small">(<a class="inner" href='<?php echo $webimroot ?>/operator/users.php?nomenu'><?php echo getlocal('topMenu.users.nomenu') ?></a>)</span></li>
|
||||
<li<?php menuli("history")?>><a href='<?php echo $webimroot ?>/operator/history.php'><?php echo getlocal('page_analysis.search.title') ?></a></li>
|
||||
<?php if(isset($page['showstat']) && $page['showstat']) { ?>
|
||||
<li<?php menuli("statistics")?>><a href='<?php echo $webimroot ?>/operator/statistics.php'><?php echo getlocal('statistics.title') ?></a></li>
|
||||
|
@ -31,7 +31,7 @@ var localized = new Array(
|
||||
var updaterOptions = {
|
||||
url:"<?php echo $webimroot ?>/operator/update.php",wroot:"<?php echo $webimroot ?>",
|
||||
agentservl:"<?php echo $webimroot ?>/operator/agent.php",
|
||||
noclients:"<?php echo getlocal("clients.no_clients") ?>" };
|
||||
noclients:"<?php echo getlocal("clients.no_clients") ?>", havemenu: <?php echo $page['havemenu'] ?>, };
|
||||
//--></script>
|
||||
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/users.js?v=160a1"></script>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user