2007-10-10 19:15:47 +04:00
|
|
|
<?php
|
|
|
|
/*
|
2013-03-07 01:22:53 +04:00
|
|
|
* Copyright 2005-2013 the original author or authors.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2007-10-10 19:15:47 +04:00
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
2012-11-22 14:28:22 +04:00
|
|
|
function tpl_header() { global $page, $webimroot;
|
2009-03-13 03:52:37 +03:00
|
|
|
?>
|
2012-11-22 14:28:22 +04:00
|
|
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/compiled/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")) ?>",
|
2011-04-07 12:34:04 +04:00
|
|
|
"<?php echo htmlspecialchars(getlocal("pending.popup_notification")) ?>",
|
|
|
|
"<?php echo getlocal("pending.table.tracked") ?>",
|
2012-01-29 16:46:53 +04:00
|
|
|
"<?php echo getlocal("pending.table.invite") ?>",
|
|
|
|
"<?php echo getlocal("pending.status.away") ?>",
|
|
|
|
"<?php echo getlocal("pending.status.online") ?>"
|
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'] ?>,
|
2011-04-07 12:34:04 +04:00
|
|
|
noclients:"<?php echo getlocal("clients.no_clients") ?>", havemenu: <?php echo $page['havemenu'] ?>, showpopup: <?php echo $page['showpopup'] ?>,
|
|
|
|
showonline: <?php echo $page['showonline'] ?>, showvisitors: <?php echo $page['showvisitors'] ?>, novisitors: "<?php echo getlocal("visitors.no_visitors") ?>",
|
|
|
|
trackedservl:"<?php echo $webimroot ?>/operator/tracked.php", inviteservl:"<?php echo $webimroot ?>/operator/invite.php" };
|
2007-10-10 19:15:47 +04:00
|
|
|
//--></script>
|
2012-11-22 14:28:22 +04:00
|
|
|
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/compiled/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>
|
2013-01-10 23:02:14 +04:00
|
|
|
<th><?php echo getlocal("pending.table.head.actions") ?></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>
|
2013-01-10 23:02:14 +04:00
|
|
|
<tr id="tprio"><td colspan="8"></td></tr>
|
|
|
|
<tr id="tprioend"><td colspan="8"></td></tr>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2013-01-10 23:02:14 +04:00
|
|
|
<tr id="twait"><td colspan="8"></td></tr>
|
|
|
|
<tr id="twaitend"><td colspan="8"></td></tr>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2013-01-10 23:02:14 +04:00
|
|
|
<tr id="tchat"><td colspan="8"></td></tr>
|
|
|
|
<tr id="tchatend"><td colspan="8"></td></tr>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2013-01-10 23:02:14 +04:00
|
|
|
<tr><td id="statustd" colspan="8" height="30">Loading....</td></tr>
|
2009-03-13 03:52:37 +03:00
|
|
|
</tbody>
|
2007-10-10 19:15:47 +04:00
|
|
|
</table>
|
|
|
|
|
2011-04-07 12:34:04 +04:00
|
|
|
<?php if ($page['showvisitors']) { ?>
|
|
|
|
<div class="tabletitle"><?php echo getlocal("visitors.title") ?></div>
|
|
|
|
<?php echo getlocal("visitors.intro") ?>
|
|
|
|
<br/>
|
|
|
|
<?php echo getlocal("visitors.how_to") ?>
|
|
|
|
<table id="visitorslist" class="awaiting" border="0">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="first"><?php echo getlocal("visitors.table.head.name") ?></th>
|
|
|
|
<th><?php echo getlocal("visitors.table.head.contactid") ?></th>
|
|
|
|
<th><?php echo getlocal("visitors.table.head.firsttimeonsite") ?></th>
|
|
|
|
<th><?php echo getlocal("visitors.table.head.lasttimeonsite") ?></th>
|
|
|
|
<th><?php echo getlocal("visitors.table.head.invited.by") ?></th>
|
|
|
|
<th><?php echo getlocal("visitors.table.head.invitationtime") ?></th>
|
|
|
|
<th><?php echo getlocal("visitors.table.head.invitations") ?></th>
|
|
|
|
<th><?php echo getlocal("visitors.table.head.etc") ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr id="visfree"><td colspan="8"></td></tr>
|
|
|
|
<tr id="visfreeend"><td colspan="8"></td></tr>
|
|
|
|
|
|
|
|
<tr id="visinvited"><td colspan="8"></td></tr>
|
|
|
|
<tr id="visinvitedend"><td colspan="8"></td></tr>
|
|
|
|
|
|
|
|
<tr><td id="visstatustd" colspan="8" height="30">Loading....</td></tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<hr/>
|
|
|
|
<?php } ?>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
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 { ?>
|
2011-02-26 15:09:46 +03:00
|
|
|
<a href="users.php?away<?php echo $page['havemenu'] ? "" : "&nomenu" ?>"><?php echo getlocal("pending.status.setaway") ?></a>
|
2009-07-24 11:37:58 +04:00
|
|
|
<?php } ?>
|
|
|
|
</div>
|
2007-10-10 19:15:47 +04:00
|
|
|
|
2011-02-21 03:02:39 +03:00
|
|
|
<?php if($page['showonline'] == "1") { ?>
|
|
|
|
<div id="onlineoperators">
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
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');
|
|
|
|
?>
|