hiding items in main menu, proper title for login

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@410 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-03-16 00:43:24 +00:00
parent 882a3b1338
commit eb058409e8
6 changed files with 28 additions and 12 deletions

View File

@ -168,6 +168,7 @@ mailthread.perform=Send
mailthread.title=Send chat history<br>by mail
menu.agents=Agents list
menu.blocked=Blocked visitors
menu.departments=Departments
menu.locale=Language
menu.locale.content=Change locale.
menu.main=Main

View File

@ -167,6 +167,7 @@ mailthread.perform=
mailthread.title=Отправить историю разговора<br>на почтовый ящик
menu.agents=Список агентов
menu.blocked=Нежелательные посетители
menu.departments=Îòäåëû
menu.locale=Язык
menu.locale.content=Сменить язык.
menu.main=Главная
@ -215,7 +216,7 @@ page.preview.userchat=Chat window (user-mode)
page.translate.descr=Если вам не нравится перевод, пришлите нам ваш вариант.
page.translate.done=Ваш перевод сохранен.
page.translate.one=Введите ваш вариант перевода.
page.translate.title=Ìàñòåð ëîêàëèçàöèè
page.translate.title=Ëîêàëèçàöèÿ
page_agent.clear_avatar=Удалить аватарку
page_agent.create_new=Создание нового оператора
page_agent.error.duplicate_login=Выберите другой логин, т.к. агент с введенным логином уже зарегистрирован в системе.
@ -314,6 +315,7 @@ thread.chat_log=
thread.intro=На данной странице Вы можете просмотреть диалог.
topMenu.admin=Операторское меню
topMenu.logoff=Выход
topMenu.main=Ãëàâíàÿ
topMenu.users=Посетители
translate.direction=Направление перевода:
translate.show.all=Все строки

View File

@ -18,7 +18,7 @@
<div id="header">
<div id="title">
<h1><img src="<?php echo $webimroot ?>/images/logo.gif" alt="" width="32" height="32" class="left" />
<a href="#"><?php echo $page['title'] ?></a></h1>
<a href="#"><?php echo isset($page['headertitle']) ? $page['headertitle'] : $page['title'] ?></a></h1>
</div>
<?php if(isset($page) && isset($page['operator'])) { ?>
<div id="path"><p><?php echo getlocal2("menu.operator",array($page['operator'])) ?></p></div>

View File

@ -22,7 +22,7 @@ function tpl_menu() { global $page, $webimroot, $errors;
<h2><?php echo getlocal('right.administration') ?></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("departments")?>><a href="#"><?php echo getlocal('menu.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>
<li<?php menuli("translate")?>><a href='<?php echo $webimroot ?>/operator/translate.php'><?php echo getlocal('menu.translate') ?></a></li>

View File

@ -13,7 +13,8 @@
*/
require_once('inc_locales.php');
$page['title'] = getlocal("app.title");
$page['title'] = getlocal("page_login.title");
$page['headertitle'] = getlocal("app.title");
$page['show_small_login'] = true;
$page['fixedwrap'] = true;

View File

@ -23,7 +23,13 @@ function tpl_header() { global $page, $webimroot;
<?php
}
function tpl_content() { global $page, $webimroot, $current_locale;
function menuseparator() {
global $menuItemsCount;
$menuItemsCount++;
if(($menuItemsCount%3) == 0) { echo "</tr><tr>"; }
}
function tpl_content() { global $page, $webimroot, $current_locale, $menuItemsCount;
?>
<br/>
@ -47,7 +53,10 @@ function tpl_content() { global $page, $webimroot, $current_locale;
<?php echo getlocal('page_analysis.search.title') ?></a>
<?php echo getlocal('content.history') ?>
</td>
<?php if( $page['showban'] ) { ?>
<?php
$menuItemsCount = 2;
if( $page['showban'] ) {
?>
<td class="dashitem">
<img src="/webim/images/dash/blocked.gif" alt=""/>
@ -55,16 +64,18 @@ function tpl_content() { global $page, $webimroot, $current_locale;
<?php echo getlocal('menu.blocked') ?></a>
<?php echo getlocal('content.blocked') ?>
</td>
<?php } ?>
</tr>
<?php if( $page['showadmin'] ) { ?>
<tr>
<?php menuseparator(); ?>
<?php
}
if( $page['showadmin'] ) { ?>
<td class="dashitem">
<img src="/webim/images/dash/operators.gif" alt=""/>
<a href='<?php echo $webimroot ?>/operator/operators.php'>
<?php echo getlocal('leftMenu.client_agents') ?></a>
<?php echo getlocal('admin.content.client_agents') ?>
</td>
<?php menuseparator(); ?>
<td class="dashitem">
<img src="/webim/images/dash/getcode.gif" alt=""/>
@ -72,6 +83,7 @@ function tpl_content() { global $page, $webimroot, $current_locale;
<?php echo getlocal('leftMenu.client_gen_button') ?></a>
<?php echo getlocal('admin.content.client_gen_button') ?>
</td>
<?php menuseparator(); ?>
<td class="dashitem">
<img src="/webim/images/dash/settings.gif" alt=""/>
@ -79,16 +91,16 @@ function tpl_content() { global $page, $webimroot, $current_locale;
<?php echo getlocal('leftMenu.client_settings') ?></a>
<?php echo getlocal('admin.content.client_settings') ?>
</td>
</tr>
<?php menuseparator(); ?>
<?php } ?>
<tr>
<td class="dashitem">
<img src="/webim/images/dash/locale.gif" alt=""/>
<a href='#' id="changelang">
<?php echo getlocal('menu.locale') ?></a>
<?php echo getlocal('menu.locale.content') ?>
</td>
<?php menuseparator(); ?>
<td class="dashitem">
<img src="/webim/images/dash/exit.gif" alt=""/>