mirror of
https://github.com/Mibew/tray.git
synced 2025-01-23 02:20:35 +03:00
fix date_diff, profile
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@467 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
ac78587e0b
commit
147beb3ed2
BIN
src/messenger/webim/images/dash/profile.gif
Normal file
BIN
src/messenger/webim/images/dash/profile.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -436,7 +436,7 @@ function div($a,$b) {
|
|||||||
return ($a-($a % $b)) / $b;
|
return ($a-($a % $b)) / $b;
|
||||||
}
|
}
|
||||||
|
|
||||||
function date_diff($seconds) {
|
function date_diff_to_text($seconds) {
|
||||||
$minutes = div($seconds,60);
|
$minutes = div($seconds,60);
|
||||||
$seconds = $seconds % 60;
|
$seconds = $seconds % 60;
|
||||||
if( $minutes < 60 ) {
|
if( $minutes < 60 ) {
|
||||||
|
@ -271,6 +271,7 @@ function prepare_menu($operator,$hasright=true) {
|
|||||||
$page['showgroups'] = $settings['enablegroups'] == "1";
|
$page['showgroups'] = $settings['enablegroups'] == "1";
|
||||||
$page['showstat'] = $settings['enablestatistics'] == "1";
|
$page['showstat'] = $settings['enablestatistics'] == "1";
|
||||||
$page['showadmin'] = is_capable($can_administrate, $operator);
|
$page['showadmin'] = is_capable($can_administrate, $operator);
|
||||||
|
$page['currentopid'] = $operator['operatorid'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ clients.title=List of awaiting visitors
|
|||||||
common.asterisk_explanation=<b><span style='font-size:8.0pt;color:red'>*</span></b> - mandatory fields
|
common.asterisk_explanation=<b><span style='font-size:8.0pt;color:red'>*</span></b> - mandatory fields
|
||||||
company.title=Web Messenger Community
|
company.title=Web Messenger Community
|
||||||
confirm.take.head=Change operator
|
confirm.take.head=Change operator
|
||||||
confirm.take.message=Visitor <span style="color:blue;">{0}</span> already assisted by <span style="color:green;">{1}</span>.<br/> Are your really sure you want to start chatting the visitor?
|
confirm.take.message=Visitor <span style="color:blue;">{0}</span> already assisted by <span style="color:green;">{1}</span>.<br/> Are you really sure you want to start chatting the visitor?
|
||||||
confirm.take.no=No, close the window
|
confirm.take.no=No, close the window
|
||||||
confirm.take.yes=Yes, I'm sure
|
confirm.take.yes=Yes, I'm sure
|
||||||
content.blocked=Here you can defend from malicious visitors.
|
content.blocked=Here you can defend from malicious visitors.
|
||||||
@ -205,6 +205,8 @@ menu.locale.content=Change locale.
|
|||||||
menu.locale=Language
|
menu.locale=Language
|
||||||
menu.main=Main
|
menu.main=Main
|
||||||
menu.operator=You are {0}
|
menu.operator=You are {0}
|
||||||
|
menu.profile.content=You can change your personal information on this page.
|
||||||
|
menu.profile=Profile
|
||||||
menu.translate=Localize
|
menu.translate=Localize
|
||||||
menu.updates.content=Check for news and updates.
|
menu.updates.content=Check for news and updates.
|
||||||
menu.updates=Updates
|
menu.updates=Updates
|
||||||
@ -271,6 +273,7 @@ page.translate.descr=If you don't like the translation, please send us an update
|
|||||||
page.translate.done=Your translation is saved.
|
page.translate.done=Your translation is saved.
|
||||||
page.translate.one=Enter you translation.
|
page.translate.one=Enter you translation.
|
||||||
page.translate.title=Localization wizard
|
page.translate.title=Localization wizard
|
||||||
|
page_agent.cannot_modify=You are not allowed to change this person's profile.
|
||||||
page_agent.clear_avatar=Remove avatar
|
page_agent.clear_avatar=Remove avatar
|
||||||
page_agent.create_new=Here you can create new operator
|
page_agent.create_new=Here you can create new operator
|
||||||
page_agent.error.duplicate_login=Please choose another login, because operator with entered login is already registered in the system.
|
page_agent.error.duplicate_login=Please choose another login, because operator with entered login is already registered in the system.
|
||||||
|
@ -205,6 +205,8 @@ menu.locale.content=
|
|||||||
menu.locale=ßçûê
|
menu.locale=ßçûê
|
||||||
menu.main=Ãëàâíàÿ
|
menu.main=Ãëàâíàÿ
|
||||||
menu.operator=Âû {0}
|
menu.operator=Âû {0}
|
||||||
|
menu.profile.content=На этой странице вы можете отредактировать свою персональную информацию.
|
||||||
|
menu.profile=Профиль
|
||||||
menu.translate=Ëîêàëèçàöèÿ
|
menu.translate=Ëîêàëèçàöèÿ
|
||||||
menu.updates.content=Ïðîâåðèòü íàëè÷èå îáíîâëåíèé ìåññåíäæåðà.
|
menu.updates.content=Ïðîâåðèòü íàëè÷èå îáíîâëåíèé ìåññåíäæåðà.
|
||||||
menu.updates=Îáíîâëåíèÿ
|
menu.updates=Îáíîâëåíèÿ
|
||||||
@ -271,6 +273,7 @@ page.translate.descr=
|
|||||||
page.translate.done=Âàø ïåðåâîä ñîõðàíåí.
|
page.translate.done=Âàø ïåðåâîä ñîõðàíåí.
|
||||||
page.translate.one=Ââåäèòå âàø âàðèàíò ïåðåâîäà.
|
page.translate.one=Ââåäèòå âàø âàðèàíò ïåðåâîäà.
|
||||||
page.translate.title=Ëîêàëèçàöèÿ
|
page.translate.title=Ëîêàëèçàöèÿ
|
||||||
|
page_agent.cannot_modify=Вы не можете изменять профиль этого оператора.
|
||||||
page_agent.clear_avatar=Óäàëèòü àâàòàðêó
|
page_agent.clear_avatar=Óäàëèòü àâàòàðêó
|
||||||
page_agent.create_new=Ñîçäàíèå íîâîãî îïåðàòîðà.
|
page_agent.create_new=Ñîçäàíèå íîâîãî îïåðàòîðà.
|
||||||
page_agent.error.duplicate_login=Âûáåðèòå äðóãîé ëîãèí, ò.ê. îïåðàòîð ñ ââåäåííûì ëîãèíîì óæå çàðåãèñòðèðîâàí â ñèñòåìå.
|
page_agent.error.duplicate_login=Âûáåðèòå äðóãîé ëîãèí, ò.ê. îïåðàòîð ñ ââåäåííûì ëîãèíîì óæå çàðåãèñòðèðîâàí â ñèñòåìå.
|
||||||
|
@ -19,7 +19,7 @@ require_once('../libs/operator_settings.php');
|
|||||||
$operator = check_login();
|
$operator = check_login();
|
||||||
|
|
||||||
$opId = verifyparam( "op","/^\d{1,9}$/");
|
$opId = verifyparam( "op","/^\d{1,9}$/");
|
||||||
$page = array('op' => $opId, 'avatar' => '');
|
$page = array('opid' => $opId, 'avatar' => '');
|
||||||
$errors = array();
|
$errors = array();
|
||||||
|
|
||||||
$op = operator_by_id($opId);
|
$op = operator_by_id($opId);
|
||||||
@ -30,7 +30,10 @@ if( !$op ) {
|
|||||||
} else if( isset($_POST['op']) ) {
|
} else if( isset($_POST['op']) ) {
|
||||||
$avatar = $op['vcavatar'];
|
$avatar = $op['vcavatar'];
|
||||||
|
|
||||||
if( isset($_FILES['avatarFile']) && $_FILES['avatarFile']['name']) {
|
if($opId != $operator['operatorid'] && !is_capable($can_administrate, $operator)) {
|
||||||
|
$errors[] = getlocal('page_agent.cannot_modify');
|
||||||
|
|
||||||
|
} else if( isset($_FILES['avatarFile']) && $_FILES['avatarFile']['name']) {
|
||||||
$valid_types = array("gif","jpg", "png", "tif");
|
$valid_types = array("gif","jpg", "png", "tif");
|
||||||
|
|
||||||
$orig_filename = $_FILES['avatarFile']['name'];
|
$orig_filename = $_FILES['avatarFile']['name'];
|
||||||
@ -82,7 +85,7 @@ if( !$op ) {
|
|||||||
$page['avatar'] = topage($op['vcavatar']);
|
$page['avatar'] = topage($op['vcavatar']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$page['currentop'] = topage(get_operator_name($op))." (".$op['vclogin'].")";
|
$page['currentop'] = $op ? topage(get_operator_name($op))." (".$op['vclogin'].")" : "-not found-";
|
||||||
|
|
||||||
prepare_menu($operator);
|
prepare_menu($operator);
|
||||||
setup_operator_settings_tabs($opId,1);
|
setup_operator_settings_tabs($opId,1);
|
||||||
|
@ -53,6 +53,11 @@ if( isset($_POST['login']) && isset($_POST['password']) ) {
|
|||||||
( $opId && $existing_operator && $opId != $existing_operator['operatorid']) )
|
( $opId && $existing_operator && $opId != $existing_operator['operatorid']) )
|
||||||
$errors[] = getlocal("page_agent.error.duplicate_login");
|
$errors[] = getlocal("page_agent.error.duplicate_login");
|
||||||
|
|
||||||
|
|
||||||
|
if($opId != $operator['operatorid'] && !is_capable($can_administrate, $operator)) {
|
||||||
|
$errors[] = getlocal('page_agent.cannot_modify');
|
||||||
|
}
|
||||||
|
|
||||||
if( count($errors) == 0 ) {
|
if( count($errors) == 0 ) {
|
||||||
if (!$opId) {
|
if (!$opId) {
|
||||||
$newop = create_operator($login,$password,$localname,$commonname,"");
|
$newop = create_operator($login,$password,$localname,$commonname,"");
|
||||||
|
@ -28,7 +28,7 @@ function update_operator_groups($operatorid,$newvalue) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$opId = verifyparam( "op","/^\d{1,9}$/");
|
$opId = verifyparam( "op","/^\d{1,9}$/");
|
||||||
$page = array('op' => $opId);
|
$page = array('opid' => $opId);
|
||||||
$page['groups'] = get_groups(false);
|
$page['groups'] = get_groups(false);
|
||||||
$errors = array();
|
$errors = array();
|
||||||
|
|
||||||
@ -39,6 +39,11 @@ if( !$op ) {
|
|||||||
|
|
||||||
} else if( isset($_POST['op']) ) {
|
} else if( isset($_POST['op']) ) {
|
||||||
|
|
||||||
|
if($opId != $operator['operatorid'] && !is_capable($can_administrate, $operator)) {
|
||||||
|
$errors[] = getlocal('page_agent.cannot_modify');
|
||||||
|
}
|
||||||
|
|
||||||
|
if(count($errors) == 0) {
|
||||||
$new_groups = array();
|
$new_groups = array();
|
||||||
foreach($page['groups'] as $group) {
|
foreach($page['groups'] as $group) {
|
||||||
if( verifyparam("group".$group['groupid'],"/^on$/", "") == "on") {
|
if( verifyparam("group".$group['groupid'],"/^on$/", "") == "on") {
|
||||||
@ -50,11 +55,12 @@ if( !$op ) {
|
|||||||
header("Location: $webimroot/operator/opgroups.php?op=$opId&stored");
|
header("Location: $webimroot/operator/opgroups.php?op=$opId&stored");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$page['formgroup'] = array();
|
$page['formgroup'] = array();
|
||||||
$page['currentop'] = $opId ? topage(get_operator_name($op))." (".$op['vclogin'].")" : "";
|
$page['currentop'] = $op ? topage(get_operator_name($op))." (".$op['vclogin'].")" : "-not found-";
|
||||||
|
|
||||||
if($opId) {
|
if($op) {
|
||||||
foreach(get_operator_groupids($opId) as $rel) {
|
foreach(get_operator_groupids($opId) as $rel) {
|
||||||
$page['formgroup'][] = $rel['groupid'];
|
$page['formgroup'][] = $rel['groupid'];
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ function update_operator_permissions($operatorid,$newvalue) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$opId = verifyparam( "op","/^\d{1,9}$/");
|
$opId = verifyparam( "op","/^\d{1,9}$/");
|
||||||
$page = array('op' => $opId);
|
$page = array('opid' => $opId, 'canmodify' => is_capable($can_administrate, $operator) ? "1" : "");
|
||||||
$errors = array();
|
$errors = array();
|
||||||
|
|
||||||
$op = operator_by_id($opId);
|
$op = operator_by_id($opId);
|
||||||
@ -37,6 +37,10 @@ if( !$op ) {
|
|||||||
|
|
||||||
} else if( isset($_POST['op']) ) {
|
} else if( isset($_POST['op']) ) {
|
||||||
|
|
||||||
|
if(!is_capable($can_administrate, $operator)) {
|
||||||
|
$errors[] = getlocal('page_agent.cannot_modify');
|
||||||
|
}
|
||||||
|
|
||||||
$new_permissions = isset($op['iperm']) ? $op['iperm'] : 0;
|
$new_permissions = isset($op['iperm']) ? $op['iperm'] : 0;
|
||||||
|
|
||||||
foreach($permission_ids as $perm => $id) {
|
foreach($permission_ids as $perm => $id) {
|
||||||
@ -61,13 +65,15 @@ if( !$op ) {
|
|||||||
|
|
||||||
$page['permissionsList'] = get_permission_list();
|
$page['permissionsList'] = get_permission_list();
|
||||||
$page['formpermissions'] = array("");
|
$page['formpermissions'] = array("");
|
||||||
$page['currentop'] = topage(get_operator_name($op))." (".$op['vclogin'].")";
|
$page['currentop'] = $op ? topage(get_operator_name($op))." (".$op['vclogin'].")" : "-not found-";
|
||||||
|
|
||||||
|
if($op) {
|
||||||
foreach($permission_ids as $perm => $id) {
|
foreach($permission_ids as $perm => $id) {
|
||||||
if(is_capable($perm,$op)) {
|
if(is_capable($perm,$op)) {
|
||||||
$page['formpermissions'][] = $id;
|
$page['formpermissions'][] = $id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$page['stored'] = isset($_GET['stored']);
|
$page['stored'] = isset($_GET['stored']);
|
||||||
prepare_menu($operator);
|
prepare_menu($operator);
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
require_once("inc_menu.php");
|
require_once("inc_menu.php");
|
||||||
$page['title'] = getlocal("page_agent.title");
|
$page['title'] = getlocal("page_agent.title");
|
||||||
$page['menuid'] = "operators";
|
$page['menuid'] = $page['opid'] == $page['currentopid'] ? "profile" : "operators";
|
||||||
|
|
||||||
function tpl_content() { global $page, $webimroot, $errors;
|
function tpl_content() { global $page, $webimroot, $errors;
|
||||||
?>
|
?>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
require_once("inc_menu.php");
|
require_once("inc_menu.php");
|
||||||
$page['title'] = getlocal("page_avatar.title");
|
$page['title'] = getlocal("page_avatar.title");
|
||||||
$page['menuid'] = "operators";
|
$page['menuid'] = $page['opid'] == $page['currentopid'] ? "profile" : "operators";
|
||||||
|
|
||||||
function tpl_content() { global $page, $webimroot, $errors;
|
function tpl_content() { global $page, $webimroot, $errors;
|
||||||
?>
|
?>
|
||||||
@ -27,7 +27,7 @@ require_once('inc_errors.php');
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="avatarForm" method="post" action="<?php echo $webimroot ?>/operator/avatar.php" enctype="multipart/form-data">
|
<form name="avatarForm" method="post" action="<?php echo $webimroot ?>/operator/avatar.php" enctype="multipart/form-data">
|
||||||
<input type="hidden" name="op" value="<?php echo $page['op'] ?>"/>
|
<input type="hidden" name="op" value="<?php echo $page['opid'] ?>"/>
|
||||||
<div>
|
<div>
|
||||||
<?php if($page['tabs']) { ?>
|
<?php if($page['tabs']) { ?>
|
||||||
<ul class="tabs">
|
<ul class="tabs">
|
||||||
@ -51,7 +51,7 @@ require_once('inc_errors.php');
|
|||||||
<div class="flabel"><?php echo getlocal('form.field.avatar.current') ?></div>
|
<div class="flabel"><?php echo getlocal('form.field.avatar.current') ?></div>
|
||||||
<div class="fvalue">
|
<div class="fvalue">
|
||||||
<img src="<?php echo $page['avatar'] ?>" alt="cannot load avatar"/><br/>
|
<img src="<?php echo $page['avatar'] ?>" alt="cannot load avatar"/><br/>
|
||||||
<a class="formauth" href='<?php echo $webimroot ?>/operator/avatar.php?op=<?php echo $page['op'] ?>&delete=true'>
|
<a class="formauth" href='<?php echo $webimroot ?>/operator/avatar.php?op=<?php echo $page['opid'] ?>&delete=true'>
|
||||||
<?php echo getlocal("page_agent.clear_avatar") ?>
|
<?php echo getlocal("page_agent.clear_avatar") ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -23,22 +23,25 @@ function tpl_menu() { global $page, $webimroot, $errors;
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php if(isset($page['showadmin']) && $page['showadmin']) { ?>
|
|
||||||
<li>
|
<li>
|
||||||
<h2><?php echo getlocal('right.administration') ?></h2>
|
<h2><?php echo getlocal('right.administration') ?></h2>
|
||||||
<ul class="submenu">
|
<ul class="submenu">
|
||||||
|
<li<?php menuli("canned")?>><a href='<?php echo $webimroot ?>/operator/canned.php'><?php echo getlocal('menu.canned') ?></a></li>
|
||||||
|
<?php if(isset($page['showadmin']) && $page['showadmin']) { ?>
|
||||||
|
<li<?php menuli("getcode")?>><a href='<?php echo $webimroot ?>/operator/getcode.php'><?php echo getlocal('leftMenu.client_gen_button') ?></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("operators")?>><a href='<?php echo $webimroot ?>/operator/operators.php'><?php echo getlocal('leftMenu.client_agents') ?></a></li>
|
||||||
<?php if(isset($page['showgroups']) && $page['showgroups']) { ?>
|
<?php if(isset($page['showgroups']) && $page['showgroups']) { ?>
|
||||||
<li<?php menuli("groups")?>><a href='<?php echo $webimroot ?>/operator/groups.php'><?php echo getlocal('menu.groups') ?></a></li>
|
<li<?php menuli("groups")?>><a href='<?php echo $webimroot ?>/operator/groups.php'><?php echo getlocal('menu.groups') ?></a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li<?php menuli("canned")?>><a href='<?php echo $webimroot ?>/operator/canned.php'><?php echo getlocal('menu.canned') ?></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("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>
|
<li<?php menuli("translate")?>><a href='<?php echo $webimroot ?>/operator/translate.php'><?php echo getlocal('menu.translate') ?></a></li>
|
||||||
<li<?php menuli("updates")?>><a href='<?php echo $webimroot ?>/operator/updates.php'><?php echo getlocal('menu.updates') ?></a></li>
|
<li<?php menuli("updates")?>><a href='<?php echo $webimroot ?>/operator/updates.php'><?php echo getlocal('menu.updates') ?></a></li>
|
||||||
|
<?php } ?>
|
||||||
|
<?php if(isset($page['currentopid']) && $page['currentopid']) {?>
|
||||||
|
<li<?php menuli("profile")?>><a href='<?php echo $webimroot ?>/operator/operator.php?op=<?php echo $page['currentopid'] ?>'><?php echo getlocal('menu.profile') ?></a></li>
|
||||||
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
|
||||||
<li>
|
<li>
|
||||||
<h2><?php echo getlocal('right.other') ?></h2>
|
<h2><?php echo getlocal('right.other') ?></h2>
|
||||||
<ul class="submenu">
|
<ul class="submenu">
|
||||||
|
@ -57,7 +57,6 @@ function tpl_content() { global $page, $webimroot, $current_locale, $menuItemsCo
|
|||||||
</td>
|
</td>
|
||||||
<?php
|
<?php
|
||||||
$menuItemsCount = 2;
|
$menuItemsCount = 2;
|
||||||
if( $page['showban'] ) {
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if($page['showstat']) { ?>
|
<?php if($page['showstat']) { ?>
|
||||||
@ -70,6 +69,7 @@ if( $page['showban'] ) {
|
|||||||
<?php menuseparator(); ?>
|
<?php menuseparator(); ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if( $page['showban'] ) { ?>
|
||||||
<td class="dashitem">
|
<td class="dashitem">
|
||||||
<img src="/webim/images/dash/blocked.gif" alt=""/>
|
<img src="/webim/images/dash/blocked.gif" alt=""/>
|
||||||
<a href='<?php echo $webimroot ?>/operator/blocked.php'>
|
<a href='<?php echo $webimroot ?>/operator/blocked.php'>
|
||||||
@ -77,9 +77,24 @@ if( $page['showban'] ) {
|
|||||||
<?php echo getlocal('content.blocked') ?>
|
<?php echo getlocal('content.blocked') ?>
|
||||||
</td>
|
</td>
|
||||||
<?php menuseparator(); ?>
|
<?php menuseparator(); ?>
|
||||||
<?php
|
<?php } ?>
|
||||||
}
|
|
||||||
if( $page['showadmin'] ) { ?>
|
<td class="dashitem">
|
||||||
|
<img src="/webim/images/dash/canned.gif" alt=""/>
|
||||||
|
<a href='<?php echo $webimroot ?>/operator/canned.php'>
|
||||||
|
<?php echo getlocal('menu.canned') ?></a>
|
||||||
|
<?php echo getlocal('canned.descr') ?>
|
||||||
|
</td>
|
||||||
|
<?php menuseparator(); ?>
|
||||||
|
|
||||||
|
<?php if( $page['showadmin'] ) { ?>
|
||||||
|
<td class="dashitem">
|
||||||
|
<img src="/webim/images/dash/getcode.gif" alt=""/>
|
||||||
|
<a href='<?php echo $webimroot ?>/operator/getcode.php'>
|
||||||
|
<?php echo getlocal('leftMenu.client_gen_button') ?></a>
|
||||||
|
<?php echo getlocal('admin.content.client_gen_button') ?>
|
||||||
|
</td>
|
||||||
|
<?php menuseparator(); ?>
|
||||||
|
|
||||||
<td class="dashitem">
|
<td class="dashitem">
|
||||||
<img src="/webim/images/dash/operators.gif" alt=""/>
|
<img src="/webim/images/dash/operators.gif" alt=""/>
|
||||||
@ -98,21 +113,6 @@ if( $page['showadmin'] ) { ?>
|
|||||||
</td>
|
</td>
|
||||||
<?php menuseparator(); ?>
|
<?php menuseparator(); ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<td class="dashitem">
|
|
||||||
<img src="/webim/images/dash/canned.gif" alt=""/>
|
|
||||||
<a href='<?php echo $webimroot ?>/operator/canned.php'>
|
|
||||||
<?php echo getlocal('menu.canned') ?></a>
|
|
||||||
<?php echo getlocal('canned.descr') ?>
|
|
||||||
</td>
|
|
||||||
<?php menuseparator(); ?>
|
|
||||||
|
|
||||||
<td class="dashitem">
|
|
||||||
<img src="/webim/images/dash/getcode.gif" alt=""/>
|
|
||||||
<a href='<?php echo $webimroot ?>/operator/getcode.php'>
|
|
||||||
<?php echo getlocal('leftMenu.client_gen_button') ?></a>
|
|
||||||
<?php echo getlocal('admin.content.client_gen_button') ?>
|
|
||||||
</td>
|
|
||||||
<?php menuseparator(); ?>
|
|
||||||
|
|
||||||
<td class="dashitem">
|
<td class="dashitem">
|
||||||
<img src="/webim/images/dash/settings.gif" alt=""/>
|
<img src="/webim/images/dash/settings.gif" alt=""/>
|
||||||
@ -123,6 +123,16 @@ if( $page['showadmin'] ) { ?>
|
|||||||
<?php menuseparator(); ?>
|
<?php menuseparator(); ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if(isset($page['currentopid']) && $page['currentopid']) {?>
|
||||||
|
<td class="dashitem">
|
||||||
|
<img src="/webim/images/dash/profile.gif" alt=""/>
|
||||||
|
<a href='<?php echo $webimroot ?>/operator/operator.php?op=<?php echo $page['currentopid'] ?>'>
|
||||||
|
<?php echo getlocal('menu.profile') ?></a>
|
||||||
|
<?php echo getlocal('menu.profile.content') ?>
|
||||||
|
</td>
|
||||||
|
<?php menuseparator(); ?>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php if(isset($page) && isset($page['localeLinks'])) { ?>
|
<?php if(isset($page) && isset($page['localeLinks'])) { ?>
|
||||||
<td class="dashitem">
|
<td class="dashitem">
|
||||||
<img src="/webim/images/dash/locale.gif" alt=""/>
|
<img src="/webim/images/dash/locale.gif" alt=""/>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
require_once("inc_menu.php");
|
require_once("inc_menu.php");
|
||||||
$page['title'] = getlocal("operator.groups.title");
|
$page['title'] = getlocal("operator.groups.title");
|
||||||
$page['menuid'] = "operators";
|
$page['menuid'] = $page['opid'] == $page['currentopid'] ? "profile" : "operators";
|
||||||
|
|
||||||
function tpl_content() { global $page, $webimroot, $errors;
|
function tpl_content() { global $page, $webimroot, $errors;
|
||||||
?>
|
?>
|
||||||
@ -30,7 +30,7 @@ require_once('inc_errors.php');
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<form name="opgroupsForm" method="post" action="<?php echo $webimroot ?>/operator/opgroups.php">
|
<form name="opgroupsForm" method="post" action="<?php echo $webimroot ?>/operator/opgroups.php">
|
||||||
<input type="hidden" name="op" value="<?php echo $page['op'] ?>"/>
|
<input type="hidden" name="op" value="<?php echo $page['opid'] ?>"/>
|
||||||
<div>
|
<div>
|
||||||
<?php if($page['tabs']) { ?>
|
<?php if($page['tabs']) { ?>
|
||||||
<ul class="tabs">
|
<ul class="tabs">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
require_once("inc_menu.php");
|
require_once("inc_menu.php");
|
||||||
$page['title'] = getlocal("permissions.title");
|
$page['title'] = getlocal("permissions.title");
|
||||||
$page['menuid'] = "operators";
|
$page['menuid'] = $page['opid'] == $page['currentopid'] ? "profile" : "operators";
|
||||||
|
|
||||||
function tpl_content() { global $page, $webimroot, $errors;
|
function tpl_content() { global $page, $webimroot, $errors;
|
||||||
?>
|
?>
|
||||||
@ -30,7 +30,7 @@ require_once('inc_errors.php');
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<form name="permissionsForm" method="post" action="<?php echo $webimroot ?>/operator/permissions.php">
|
<form name="permissionsForm" method="post" action="<?php echo $webimroot ?>/operator/permissions.php">
|
||||||
<input type="hidden" name="op" value="<?php echo $page['op'] ?>"/>
|
<input type="hidden" name="op" value="<?php echo $page['opid'] ?>"/>
|
||||||
<div>
|
<div>
|
||||||
<?php if($page['tabs']) { ?>
|
<?php if($page['tabs']) { ?>
|
||||||
<ul class="tabs">
|
<ul class="tabs">
|
||||||
@ -48,15 +48,16 @@ require_once('inc_errors.php');
|
|||||||
</p>
|
</p>
|
||||||
<?php foreach( $page['permissionsList'] as $pm ) { ?>
|
<?php foreach( $page['permissionsList'] as $pm ) { ?>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" name="permissions<?php echo $pm['id'] ?>" value="on"<?php echo form_value_mb('permissions',$pm['id']) ? " checked=\"checked\"" : "" ?>/> <?php echo $pm['descr'] ?>
|
<input type="checkbox" name="permissions<?php echo $pm['id'] ?>" value="on"<?php echo form_value_mb('permissions',$pm['id']) ? " checked=\"checked\"" : "" ?><?php echo $page['canmodify'] ? "" : " disabled=\"disabled\"" ?>/> <?php echo $pm['descr'] ?>
|
||||||
</label>
|
</label>
|
||||||
<br/>
|
<br/>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if($page['canmodify']) { ?>
|
||||||
<div class="fbutton">
|
<div class="fbutton">
|
||||||
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
|
<input type="image" name="save" value="" src='<?php echo $webimroot.getlocal("image.button.save") ?>' alt='<?php echo getlocal("button.save") ?>'/>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
|
</div><div class="formbottom"><div class="formbottomi"></div></div></div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -73,7 +73,7 @@ $chatthread = $page['thread'];
|
|||||||
<?php echo getlocal("page.analysis.search.head_time") ?>:
|
<?php echo getlocal("page.analysis.search.head_time") ?>:
|
||||||
</div>
|
</div>
|
||||||
<div class="wvalue">
|
<div class="wvalue">
|
||||||
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>
|
<?php echo date_diff_to_text($chatthread['modified']-$chatthread['created']) ?>
|
||||||
(<?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>)
|
(<?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>)
|
||||||
</div>
|
</div>
|
||||||
<br clear="all"/>
|
<br clear="all"/>
|
||||||
|
@ -86,7 +86,7 @@ if( $page['pagination.items'] ) {
|
|||||||
<?php echo topage(htmlspecialchars($chatthread['size'])) ?>
|
<?php echo topage(htmlspecialchars($chatthread['size'])) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
|
<?php echo date_diff_to_text($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
@ -52,7 +52,7 @@ if( $page['pagination.items'] ) {
|
|||||||
<?php if( $chatthread['agentName'] ) { ?><?php echo topage(htmlspecialchars($chatthread['agentName'])) ?><?php } ?>
|
<?php if( $chatthread['agentName'] ) { ?><?php echo topage(htmlspecialchars($chatthread['agentName'])) ?><?php } ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
|
<?php echo date_diff_to_text($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
Reference in New Issue
Block a user