2007-10-10 19:15:47 +04:00
|
|
|
<?php
|
|
|
|
/*
|
2009-06-04 02:44:32 +04:00
|
|
|
* This file is part of Mibew Messenger project.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-06-04 02:44:32 +04:00
|
|
|
* Copyright (c) 2005-2009 Mibew Messenger Community
|
2009-08-04 19:03:27 +04:00
|
|
|
* All rights reserved. The contents of this file are subject to the terms of
|
|
|
|
* the Eclipse Public License v1.0 which accompanies this distribution, and
|
|
|
|
* is available at http://www.eclipse.org/legal/epl-v10.html
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2009-08-04 17:38:37 +04:00
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* the GNU General Public License Version 2 or later (the "GPL"), in which case
|
|
|
|
* the provisions of the GPL are applicable instead of those above. If you wish
|
|
|
|
* to allow use of your version of this file only under the terms of the GPL, and
|
|
|
|
* not to allow others to use your version of this file under the terms of the
|
|
|
|
* EPL, indicate your decision by deleting the provisions above and replace them
|
|
|
|
* with the notice and other provisions required by the GPL.
|
2009-08-04 20:30:39 +04:00
|
|
|
*
|
2007-10-10 19:15:47 +04:00
|
|
|
* Contributors:
|
|
|
|
* Evgeny Gryaznov - initial API and implementation
|
|
|
|
*/
|
|
|
|
|
2009-03-14 02:46:25 +03:00
|
|
|
require_once("inc_menu.php");
|
2009-03-13 03:52:37 +03:00
|
|
|
$page['title'] = getlocal("clients.title");
|
2009-03-15 02:28:35 +03:00
|
|
|
$page['menuid'] = "users";
|
|
|
|
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-08-11 13:41:13 +04:00
|
|
|
function tpl_header() { global $page, $webimroot, $jsver;
|
2009-03-13 03:52:37 +03:00
|
|
|
?>
|
2009-08-11 13:41:13 +04:00
|
|
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/<?php echo $jsver ?>/common.js"></script>
|
2009-03-13 03:52:37 +03:00
|
|
|
<script type="text/javascript" language="javascript"><!--
|
2007-10-10 19:15:47 +04:00
|
|
|
var localized = new Array(
|
2008-05-06 15:08:21 +04:00
|
|
|
"<?php echo getlocal("pending.table.speak") ?>",
|
|
|
|
"<?php echo getlocal("pending.table.view") ?>",
|
2009-03-14 02:46:25 +03:00
|
|
|
"<?php echo getlocal("pending.table.ban") ?>",
|
|
|
|
"<?php echo htmlspecialchars(getlocal("pending.menu.show")) ?>",
|
2009-04-10 19:41:05 +04:00
|
|
|
"<?php echo htmlspecialchars(getlocal("pending.menu.hide")) ?>",
|
|
|
|
"<?php echo htmlspecialchars(getlocal("pending.popup_notification")) ?>"
|
2007-10-10 19:15:47 +04:00
|
|
|
);
|
|
|
|
var updaterOptions = {
|
2008-09-30 03:18:04 +04:00
|
|
|
url:"<?php echo $webimroot ?>/operator/update.php",wroot:"<?php echo $webimroot ?>",
|
2009-07-24 11:37:58 +04:00
|
|
|
agentservl:"<?php echo $webimroot ?>/operator/agent.php", frequency:<?php echo $page['frequency'] ?>, istatus:<?php echo $page['istatus'] ?>,
|
2009-04-10 19:41:05 +04:00
|
|
|
noclients:"<?php echo getlocal("clients.no_clients") ?>", havemenu: <?php echo $page['havemenu'] ?>, showpopup: <?php echo $page['showpopup'] ?> };
|
2007-10-10 19:15:47 +04:00
|
|
|
//--></script>
|
2009-08-11 13:41:13 +04:00
|
|
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/<?php echo $jsver ?>/users.js"></script>
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php
|
|
|
|
}
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
function tpl_content() { global $page, $webimroot;
|
|
|
|
?>
|
2008-09-30 03:18:04 +04:00
|
|
|
|
2009-03-14 02:46:25 +03:00
|
|
|
<div>
|
2009-04-24 18:19:11 +04:00
|
|
|
<div id="togglediv">
|
2009-03-14 02:46:25 +03:00
|
|
|
<a href="#" id="togglemenu"></a>
|
|
|
|
</div>
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php echo getlocal("clients.intro") ?>
|
|
|
|
<br/>
|
|
|
|
<?php echo getlocal("clients.how_to") ?>
|
2009-03-14 02:46:25 +03:00
|
|
|
</div>
|
2009-03-13 03:52:37 +03:00
|
|
|
<br/>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<table id="threadlist" class="awaiting" border="0">
|
|
|
|
<thead>
|
2007-10-10 19:15:47 +04:00
|
|
|
<tr>
|
2009-03-14 02:46:25 +03:00
|
|
|
<th class="first"><?php echo getlocal("pending.table.head.name") ?></th>
|
2009-03-13 03:52:37 +03:00
|
|
|
<th><?php echo getlocal("pending.table.head.contactid") ?></th>
|
|
|
|
<th><?php echo getlocal("pending.table.head.state") ?></th>
|
|
|
|
<th><?php echo getlocal("pending.table.head.operator") ?></th>
|
|
|
|
<th><?php echo getlocal("pending.table.head.total") ?></th>
|
|
|
|
<th><?php echo getlocal("pending.table.head.waittime") ?></th>
|
|
|
|
<th><?php echo getlocal("pending.table.head.etc") ?></th>
|
2007-10-10 19:15:47 +04:00
|
|
|
</tr>
|
2009-03-13 03:52:37 +03:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr id="tprio"><td colspan="7"></td></tr>
|
|
|
|
<tr id="tprioend"><td colspan="7"></td></tr>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<tr id="twait"><td colspan="7"></td></tr>
|
|
|
|
<tr id="twaitend"><td colspan="7"></td></tr>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<tr id="tchat"><td colspan="7"></td></tr>
|
|
|
|
<tr id="tchatend"><td colspan="7"></td></tr>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<tr><td id="statustd" colspan="7" height="30">Loading....</td></tr>
|
|
|
|
</tbody>
|
2007-10-10 19:15:47 +04:00
|
|
|
</table>
|
|
|
|
|
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<div id="connstatus">
|
|
|
|
</div>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-07-24 11:37:58 +04:00
|
|
|
<div id="connlinks">
|
|
|
|
<?php if($page['istatus']) { ?>
|
|
|
|
<a href="users.php<?php echo $page['havemenu'] ? "" : "?nomenu" ?>"><?php echo getlocal("pending.status.setonline") ?></a>
|
|
|
|
<?php } else { ?>
|
|
|
|
<a href="users.php?away<?php echo $page['havemenu'] ? "" : "&nomenu" ?>"><?php echo getlocal("pending.status.setaway") ?></a>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
<?php
|
|
|
|
} /* content */
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2009-03-13 03:52:37 +03:00
|
|
|
require_once('inc_main.php');
|
|
|
|
?>
|