userhistory, localize right menu titles

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@407 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2009-03-14 23:28:35 +00:00
parent 30be4b3949
commit 89af5b8ef3
8 changed files with 77 additions and 76 deletions

View File

@ -189,6 +189,7 @@ img.left {
margin-bottom: 10px; margin-bottom: 10px;
background: url(images/graydot.gif) repeat-x left bottom; background: url(images/graydot.gif) repeat-x left bottom;
font-size: 1.3em; font-size: 1.3em;
font-weight: bold;
} }
.locales a { .locales a {

View File

@ -274,6 +274,9 @@ permission.takeover=Take over chat thread
permission.viewthreads=View another operator's chat thread permission.viewthreads=View another operator's chat thread
permissions.intro=Here you can control operator's permissions permissions.intro=Here you can control operator's permissions
permissions.title=Permissions permissions.title=Permissions
right.administration=Administration
right.main=Main
right.other=Other
settings.chat.title.description=Department of your company for example. settings.chat.title.description=Department of your company for example.
settings.chat.title=Title in the chat window settings.chat.title=Title in the chat window
settings.chatstyle.description=Preview for all pages of each style is available <a href="preview.php">here</a> settings.chatstyle.description=Preview for all pages of each style is available <a href="preview.php">here</a>

View File

@ -272,6 +272,9 @@ permission.takeover=
permission.viewthreads=Просматривать диалоги других операторов в режиме реального времени permission.viewthreads=Просматривать диалоги других операторов в режиме реального времени
permissions.intro=Здесь вы можете ограничить возможности оператора permissions.intro=Здесь вы можете ограничить возможности оператора
permissions.title=Возможности оператора permissions.title=Возможности оператора
right.administration=Управление
right.main=Посетители
right.other=Остальное
settings.chat.title.description=Например, название отдела вашей компании settings.chat.title.description=Например, название отдела вашей компании
settings.chat.title=Заголовок в чат окне settings.chat.title=Заголовок в чат окне
settings.chatstyle.description=Предпросмотр всех страниц каждого стиля доступен <a href="preview.php">здесь</a> settings.chatstyle.description=Предпросмотр всех страниц каждого стиля доступен <a href="preview.php">здесь</a>

View File

@ -175,7 +175,7 @@ ${if:canpost}
<img class="tplimage isend" src="${webimroot}/images/free.gif" border="0" alt="Redirect&nbsp;" /></a></td> <img class="tplimage isend" src="${webimroot}/images/free.gif" border="0" alt="Redirect&nbsp;" /></a></td>
${endif:canpost} ${endif:canpost}
${if:historyParams} ${if:historyParams}
<td><a href="${page:historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${page:historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=703,height=380,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img class="tplimage ihistory" src="${webimroot}/images/free.gif" border="0" alt="History&nbsp;"/></a></td> <td><a href="${page:historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${page:historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=720,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img class="tplimage ihistory" src="${webimroot}/images/free.gif" border="0" alt="History&nbsp;"/></a></td>
${endif:historyParams} ${endif:historyParams}
${endif:agent} ${endif:agent}
<td><a id="togglesound" href="javascript:void(0)" onclick="return false;" title="Turn off sound"> <td><a id="togglesound" href="javascript:void(0)" onclick="return false;" title="Turn off sound">

View File

@ -170,7 +170,7 @@ ${if:canpost}
<img class="tplimage isend" src="${webimroot}/images/free.gif" border="0" alt="Redirect&nbsp;" /></a></td> <img class="tplimage isend" src="${webimroot}/images/free.gif" border="0" alt="Redirect&nbsp;" /></a></td>
${endif:canpost} ${endif:canpost}
${if:historyParams} ${if:historyParams}
<td><a href="${page:historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${page:historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=703,height=380,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img class="tplimage ihistory" src="${webimroot}/images/free.gif" border="0" alt="History&nbsp;"/></a></td> <td><a href="${page:historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${page:historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=720,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img class="tplimage ihistory" src="${webimroot}/images/free.gif" border="0" alt="History&nbsp;"/></a></td>
${endif:historyParams} ${endif:historyParams}
${endif:agent} ${endif:agent}
<td><a id="togglesound" href="javascript:void(0)" onclick="return false;" title="Turn off sound"> <td><a id="togglesound" href="javascript:void(0)" onclick="return false;" title="Turn off sound">

View File

@ -10,7 +10,7 @@ function menuli($name) {
function tpl_menu() { global $page, $webimroot, $errors; function tpl_menu() { global $page, $webimroot, $errors;
if(isset($page) && isset($page['operator'])) { ?> if(isset($page) && isset($page['operator'])) { ?>
<li> <li>
<h2><b>main</b></h2> <h2><?php echo getlocal('right.main') ?></h2>
<ul class="submenu"> <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("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></li>
@ -19,7 +19,7 @@ function tpl_menu() { global $page, $webimroot, $errors;
</ul> </ul>
</li> </li>
<li> <li>
<h2><b>administration</b></h2> <h2><?php echo getlocal('right.administration') ?></h2>
<ul class="submenu"> <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("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="#">Departments</a></li>
@ -28,7 +28,7 @@ function tpl_menu() { global $page, $webimroot, $errors;
</ul> </ul>
</li> </li>
<li> <li>
<h2><b>other</b></h2> <h2><?php echo getlocal('right.other') ?></h2>
<ul class="submenu"> <ul class="submenu">
<li><a href='<?php echo $webimroot ?>/operator/logout.php'><?php echo getlocal('topMenu.logoff') ?></a></li> <li><a href='<?php echo $webimroot ?>/operator/logout.php'><?php echo getlocal('topMenu.logoff') ?></a></li>
</ul> </ul>

View File

@ -14,6 +14,8 @@
require_once("inc_menu.php"); require_once("inc_menu.php");
$page['title'] = getlocal("clients.title"); $page['title'] = getlocal("clients.title");
$page['menuid'] = "users";
function tpl_header() { global $page, $webimroot; function tpl_header() { global $page, $webimroot;
?> ?>

View File

@ -11,82 +11,74 @@
* Contributors: * Contributors:
* Evgeny Gryaznov - initial API and implementation * Evgeny Gryaznov - initial API and implementation
*/ */
$page['title'] = getlocal("page.analysis.userhistory.title");
$page['menuid'] = "history";
function tpl_content() { global $page, $webimroot;
?> ?>
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
<title>
<?php echo getlocal("page.analysis.userhistory.title") ?> - <?php echo getlocal("app.title") ?>
</title>
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td valign="top" class="text">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
<h1><?php echo getlocal("page.analysis.userhistory.title") ?></h1>
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td></tr></table></td></tr></table>
<?php echo getlocal("page.analysis.userhistory.intro") ?> <?php echo getlocal("page.analysis.userhistory.intro") ?>
<br />
<br />
<br/><br/> <?php if( $page['pagination'] ) { ?>
<?php if( $page['pagination'] && $page['pagination.items'] ) { ?> <table class="list">
<table cellpadding="0" cellspacing="0" border="0" width="100%"> <thead>
<tr> <tr class="header">
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_name") ?></span></td><td width='3'></td> <th>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_host") ?></span></td><td width='3'></td> <?php echo getlocal("page.analysis.search.head_name") ?>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_operator") ?></span></td><td width='3'></td> </th><th>
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_time") ?></span></td> <?php echo getlocal("page.analysis.search.head_host") ?>
</tr> </th><th>
<?php foreach( $page['pagination.items'] as $chatthread ) { ?> <?php echo getlocal("page.analysis.search.head_operator") ?>
<tr> </th><th>
<td height='30' class='table'> <?php echo getlocal("page.analysis.search.head_time") ?>
<a href="<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo htmlspecialchars(topage($chatthread['userName'])) ?></a> </th></tr>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td> </thead>
<td height='30' class='table'> <tbody>
<?php echo get_user_addr(topage($chatthread['remote'])) ?> <?php
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td> if( $page['pagination.items'] ) {
<td height='30' class='table'> foreach( $page['pagination.items'] as $chatthread ) { ?>
<?php if( $chatthread['agentName'] ) { ?><?php echo htmlspecialchars(topage($chatthread['agentName'])) ?><?php } ?> <tr>
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td> <td>
<td height='30' class='table'> <a href="<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=720,height=520,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage(htmlspecialchars($chatthread['userName'])) ?></a>
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?> </td>
</td> <td>
</tr> <?php echo get_user_addr(topage($chatthread['remote'])) ?>
<tr><td height='2' colspan='7'></td></tr><tr><td bgcolor='#e1e1e1' colspan='7'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='7'></td></tr> </td>
<?php } ?> <td>
</table> <?php if( $chatthread['agentName'] ) { ?><?php echo topage(htmlspecialchars($chatthread['agentName'])) ?><?php } ?>
<br /> </td>
<?php echo generate_pagination($page['pagination']) ?> <td>
<?php } ?> <?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
<?php if( $page['pagination'] && !$page['pagination.items'] ) { ?> </td>
<br/><br/> </tr>
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'> <?php
<span class="table"> }
<?php echo getlocal("tag.pagination.no_items") ?> } else {
</span> ?>
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table> <tr>
<?php } ?> <td colspan="5">
<?php echo getlocal("tag.pagination.no_items.elements") ?>
</td> </td>
</tr> </tr>
<?php
}
?>
</tbody>
</table> </table>
<?php
if( $page['pagination.items'] ) {
echo "<br/>";
echo generate_pagination($page['pagination']);
}
}
?>
</body> <?php
</html> } /* content */
require_once('inc_main.php');
?>