|
|
|
@@ -70,10 +70,11 @@
|
|
|
|
|
# 100914-1326 - Added lookup for user_level 7 users to set to reports only which will remove other admin links
|
|
|
|
|
# 101024-0832 - Added Agent time stats option and agents-in-dispo counter
|
|
|
|
|
# 101109-1448 - Added Auto Hopper Level display (MikeC)
|
|
|
|
|
# 101216-1358 - Added functions to work with new realtime_report.php script
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
$version = '2.4-61';
|
|
|
|
|
$build = '101109-1448';
|
|
|
|
|
$version = '2.4-62';
|
|
|
|
|
$build = '101216-1358';
|
|
|
|
|
|
|
|
|
|
header ("Content-type: text/html; charset=utf-8");
|
|
|
|
|
|
|
|
|
@@ -139,6 +140,13 @@ if (isset($_GET["PRESETstats"])) {$PRESETstats=$_GET["PRESETstats"];}
|
|
|
|
|
elseif (isset($_POST["PRESETstats"])) {$PRESETstats=$_POST["PRESETstats"];}
|
|
|
|
|
if (isset($_GET["AGENTtimeSTATS"])) {$AGENTtimeSTATS=$_GET["AGENTtimeSTATS"];}
|
|
|
|
|
elseif (isset($_POST["AGENTtimeSTATS"])) {$AGENTtimeSTATS=$_POST["AGENTtimeSTATS"];}
|
|
|
|
|
if (isset($_GET["RTajax"])) {$RTajax=$_GET["RTajax"];}
|
|
|
|
|
elseif (isset($_POST["RTajax"])) {$RTajax=$_POST["RTajax"];}
|
|
|
|
|
if (isset($_GET["RTuser"])) {$RTuser=$_GET["RTuser"];}
|
|
|
|
|
elseif (isset($_POST["RTuser"])) {$RTuser=$_POST["RTuser"];}
|
|
|
|
|
if (isset($_GET["RTpass"])) {$RTpass=$_GET["RTpass"];}
|
|
|
|
|
elseif (isset($_POST["RTpass"])) {$RTpass=$_POST["RTpass"];}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$report_name = 'Real-Time Main Report';
|
|
|
|
|
$db_source = 'M';
|
|
|
|
@@ -258,7 +266,6 @@ $timeSIXhoursAGO = date("Y-m-d H:i:s",$epochSIXhoursAGO);
|
|
|
|
|
$epochTWENTYFOURhoursAGO = ($STARTtime - 86400);
|
|
|
|
|
$timeTWENTYFOURhoursAGO = date("Y-m-d H:i:s",$epochTWENTYFOURhoursAGO);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
|
|
|
|
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
|
|
|
|
|
|
|
|
@@ -559,283 +566,302 @@ $open_list = "<TABLE WIDTH=250 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#D9E6FE\"><
|
|
|
|
|
<HTML>
|
|
|
|
|
<HEAD>
|
|
|
|
|
|
|
|
|
|
<script language="Javascript">
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
window.onload = startup;
|
|
|
|
|
|
|
|
|
|
// function to detect the XY position on the page of the mouse
|
|
|
|
|
function startup()
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{
|
|
|
|
|
hide_ingroup_info();
|
|
|
|
|
if (window.Event)
|
|
|
|
|
echo "<!-- ajax-mode -->\n";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
?>
|
|
|
|
|
<script language="Javascript">
|
|
|
|
|
|
|
|
|
|
window.onload = startup;
|
|
|
|
|
|
|
|
|
|
// function to detect the XY position on the page of the mouse
|
|
|
|
|
function startup()
|
|
|
|
|
{
|
|
|
|
|
document.captureEvents(Event.MOUSEMOVE);
|
|
|
|
|
}
|
|
|
|
|
document.onmousemove = getCursorXY;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getCursorXY(e)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById('cursorX').value = (window.Event) ? e.pageX : event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
|
|
|
|
|
document.getElementById('cursorY').value = (window.Event) ? e.pageY : event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var select_list = '<?php echo $select_list ?>';
|
|
|
|
|
var open_list = '<?php echo $open_list ?>';
|
|
|
|
|
var monitor_phone = '<?php echo $monitor_phone ?>';
|
|
|
|
|
var user = '<?php echo $PHP_AUTH_USER ?>';
|
|
|
|
|
var pass = '<?php echo $PHP_AUTH_PW ?>';
|
|
|
|
|
|
|
|
|
|
// functions to hide and show different DIVs
|
|
|
|
|
function openDiv(divvar)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById(divvar).innerHTML = select_list;
|
|
|
|
|
document.getElementById(divvar).style.left = 0;
|
|
|
|
|
}
|
|
|
|
|
function closeDiv(divvar)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById(divvar).innerHTML = open_list;
|
|
|
|
|
document.getElementById(divvar).style.left = 160;
|
|
|
|
|
}
|
|
|
|
|
function closeAlert(divvar)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById(divvar).innerHTML = '';
|
|
|
|
|
}
|
|
|
|
|
// function to launch monitoring calls
|
|
|
|
|
|
|
|
|
|
function send_monitor(session_id,server_ip,stage)
|
|
|
|
|
{
|
|
|
|
|
// alert(session_id + "|" + server_ip + "|" + monitor_phone + "|" + stage + "|" + user);
|
|
|
|
|
var xmlhttp=false;
|
|
|
|
|
/*@cc_on @*/
|
|
|
|
|
/*@if (@_jscript_version >= 5)
|
|
|
|
|
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
|
|
|
|
// and security blocked creation of the objects.
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
|
|
|
|
} catch (e) {
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
} catch (E) {
|
|
|
|
|
xmlhttp = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@end @*/
|
|
|
|
|
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
|
|
|
|
{
|
|
|
|
|
xmlhttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
if (xmlhttp)
|
|
|
|
|
{
|
|
|
|
|
var monitorQuery = "source=realtime&function=blind_monitor&user=" + user + "&pass=" + pass + "&phone_login=" + monitor_phone + "&session_id=" + session_id + '&server_ip=' + server_ip + '&stage=' + stage;
|
|
|
|
|
xmlhttp.open('POST', 'non_agent_api.php');
|
|
|
|
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
|
|
xmlhttp.send(monitorQuery);
|
|
|
|
|
xmlhttp.onreadystatechange = function()
|
|
|
|
|
{
|
|
|
|
|
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
|
|
|
|
{
|
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
|
var Xoutput = null;
|
|
|
|
|
Xoutput = xmlhttp.responseText;
|
|
|
|
|
var regXFerr = new RegExp("ERROR","g");
|
|
|
|
|
var regXFscs = new RegExp("SUCCESS","g");
|
|
|
|
|
if (Xoutput.match(regXFerr))
|
|
|
|
|
{alert(xmlhttp.responseText);}
|
|
|
|
|
if (Xoutput.match(regXFscs))
|
|
|
|
|
{alert("SUCCESS: calling " + monitor_phone);}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
delete xmlhttp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// function to change in-groups selected for a specific agent
|
|
|
|
|
function submit_ingroup_changes(temp_agent_user)
|
|
|
|
|
{
|
|
|
|
|
var temp_ingroup_add_remove_changeIndex = document.getElementById("ingroup_add_remove_change").selectedIndex;
|
|
|
|
|
var temp_ingroup_add_remove_change = document.getElementById('ingroup_add_remove_change').options[temp_ingroup_add_remove_changeIndex].value;
|
|
|
|
|
|
|
|
|
|
var temp_set_as_defaultIndex = document.getElementById("set_as_default").selectedIndex;
|
|
|
|
|
var temp_set_as_default = document.getElementById('set_as_default').options[temp_set_as_defaultIndex].value;
|
|
|
|
|
|
|
|
|
|
var temp_blendedIndex = document.getElementById("blended").selectedIndex;
|
|
|
|
|
var temp_blended = document.getElementById('blended').options[temp_blendedIndex].value;
|
|
|
|
|
|
|
|
|
|
var temp_ingroup_choices = '';
|
|
|
|
|
var txtSelectedValuesObj = document.getElementById('txtSelectedValues');
|
|
|
|
|
var selectedArray = new Array();
|
|
|
|
|
var selObj = document.getElementById('ingroup_new_selections');
|
|
|
|
|
var i;
|
|
|
|
|
var count = 0;
|
|
|
|
|
for (i=0; i<selObj.options.length; i++)
|
|
|
|
|
{
|
|
|
|
|
if (selObj.options[i].selected)
|
|
|
|
|
hide_ingroup_info();
|
|
|
|
|
if (window.Event)
|
|
|
|
|
{
|
|
|
|
|
// selectedArray[count] = selObj.options[i].value;
|
|
|
|
|
temp_ingroup_choices = temp_ingroup_choices + '+' + selObj.options[i].value;
|
|
|
|
|
count++;
|
|
|
|
|
document.captureEvents(Event.MOUSEMOVE);
|
|
|
|
|
}
|
|
|
|
|
document.onmousemove = getCursorXY;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
temp_ingroup_choices = temp_ingroup_choices + '+-';
|
|
|
|
|
|
|
|
|
|
// alert(session_id + "|" + server_ip + "|" + monitor_phone + "|" + stage + "|" + user);
|
|
|
|
|
var xmlhttp=false;
|
|
|
|
|
/*@cc_on @*/
|
|
|
|
|
/*@if (@_jscript_version >= 5)
|
|
|
|
|
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
|
|
|
|
// and security blocked creation of the objects.
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
|
|
|
|
} catch (e) {
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
} catch (E) {
|
|
|
|
|
xmlhttp = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@end @*/
|
|
|
|
|
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
|
|
|
|
function getCursorXY(e)
|
|
|
|
|
{
|
|
|
|
|
xmlhttp = new XMLHttpRequest();
|
|
|
|
|
document.getElementById('cursorX').value = (window.Event) ? e.pageX : event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
|
|
|
|
|
document.getElementById('cursorY').value = (window.Event) ? e.pageY : event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop);
|
|
|
|
|
}
|
|
|
|
|
if (xmlhttp)
|
|
|
|
|
|
|
|
|
|
var select_list = '<?php echo $select_list ?>';
|
|
|
|
|
var open_list = '<?php echo $open_list ?>';
|
|
|
|
|
var monitor_phone = '<?php echo $monitor_phone ?>';
|
|
|
|
|
var user = '<?php echo $PHP_AUTH_USER ?>';
|
|
|
|
|
var pass = '<?php echo $PHP_AUTH_PW ?>';
|
|
|
|
|
|
|
|
|
|
// functions to hide and show different DIVs
|
|
|
|
|
function openDiv(divvar)
|
|
|
|
|
{
|
|
|
|
|
var changeQuery = "source=realtime&function=change_ingroups&user=" + user + "&pass=" + pass + "&agent_user=" + temp_agent_user + "&value=" + temp_ingroup_add_remove_change + '&set_as_default=' + temp_set_as_default + '&blended=' + temp_blended + '&ingroup_choices=' + temp_ingroup_choices;
|
|
|
|
|
xmlhttp.open('POST', '../agc/api.php');
|
|
|
|
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
|
|
xmlhttp.send(changeQuery);
|
|
|
|
|
xmlhttp.onreadystatechange = function()
|
|
|
|
|
{
|
|
|
|
|
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
|
|
|
|
{
|
|
|
|
|
// alert(changeQuery);
|
|
|
|
|
var Xoutput = null;
|
|
|
|
|
Xoutput = xmlhttp.responseText;
|
|
|
|
|
var regXFerr = new RegExp("ERROR","g");
|
|
|
|
|
if (Xoutput.match(regXFerr))
|
|
|
|
|
{alert(xmlhttp.responseText);}
|
|
|
|
|
else
|
|
|
|
|
document.getElementById(divvar).innerHTML = select_list;
|
|
|
|
|
document.getElementById(divvar).style.left = 0;
|
|
|
|
|
}
|
|
|
|
|
function closeDiv(divvar)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById(divvar).innerHTML = open_list;
|
|
|
|
|
document.getElementById(divvar).style.left = 160;
|
|
|
|
|
}
|
|
|
|
|
function closeAlert(divvar)
|
|
|
|
|
{
|
|
|
|
|
document.getElementById(divvar).innerHTML = '';
|
|
|
|
|
}
|
|
|
|
|
// function to launch monitoring calls
|
|
|
|
|
|
|
|
|
|
function send_monitor(session_id,server_ip,stage)
|
|
|
|
|
{
|
|
|
|
|
// alert(session_id + "|" + server_ip + "|" + monitor_phone + "|" + stage + "|" + user);
|
|
|
|
|
var xmlhttp=false;
|
|
|
|
|
/*@cc_on @*/
|
|
|
|
|
/*@if (@_jscript_version >= 5)
|
|
|
|
|
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
|
|
|
|
// and security blocked creation of the objects.
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
|
|
|
|
} catch (e) {
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
} catch (E) {
|
|
|
|
|
xmlhttp = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@end @*/
|
|
|
|
|
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
|
|
|
|
{
|
|
|
|
|
xmlhttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
if (xmlhttp)
|
|
|
|
|
{
|
|
|
|
|
var monitorQuery = "source=realtime&function=blind_monitor&user=" + user + "&pass=" + pass + "&phone_login=" + monitor_phone + "&session_id=" + session_id + '&server_ip=' + server_ip + '&stage=' + stage;
|
|
|
|
|
xmlhttp.open('POST', 'non_agent_api.php');
|
|
|
|
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
|
|
xmlhttp.send(monitorQuery);
|
|
|
|
|
xmlhttp.onreadystatechange = function()
|
|
|
|
|
{
|
|
|
|
|
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
|
|
|
|
{
|
|
|
|
|
alert(xmlhttp.responseText);
|
|
|
|
|
hide_ingroup_info();
|
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
|
var Xoutput = null;
|
|
|
|
|
Xoutput = xmlhttp.responseText;
|
|
|
|
|
var regXFerr = new RegExp("ERROR","g");
|
|
|
|
|
var regXFscs = new RegExp("SUCCESS","g");
|
|
|
|
|
if (Xoutput.match(regXFerr))
|
|
|
|
|
{alert(xmlhttp.responseText);}
|
|
|
|
|
if (Xoutput.match(regXFscs))
|
|
|
|
|
{alert("SUCCESS: calling " + monitor_phone);}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
delete xmlhttp;
|
|
|
|
|
}
|
|
|
|
|
delete xmlhttp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// function to display in-groups selected for a specific agent
|
|
|
|
|
function ingroup_info(agent_user,count)
|
|
|
|
|
{
|
|
|
|
|
var cursorheight = (document.REALTIMEform.cursorY.value - 0);
|
|
|
|
|
var newheight = (cursorheight + 10);
|
|
|
|
|
document.getElementById("agent_ingroup_display").style.top = newheight;
|
|
|
|
|
// alert(session_id + "|" + server_ip + "|" + monitor_phone + "|" + stage + "|" + user);
|
|
|
|
|
var xmlhttp=false;
|
|
|
|
|
/*@cc_on @*/
|
|
|
|
|
/*@if (@_jscript_version >= 5)
|
|
|
|
|
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
|
|
|
|
// and security blocked creation of the objects.
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
|
|
|
|
} catch (e) {
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
} catch (E) {
|
|
|
|
|
xmlhttp = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@end @*/
|
|
|
|
|
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
|
|
|
|
// function to change in-groups selected for a specific agent
|
|
|
|
|
function submit_ingroup_changes(temp_agent_user)
|
|
|
|
|
{
|
|
|
|
|
xmlhttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
if (xmlhttp)
|
|
|
|
|
{
|
|
|
|
|
var monitorQuery = "source=realtime&function=agent_ingroup_info&stage=change&user=" + user + "&pass=" + pass + "&agent_user=" + agent_user;
|
|
|
|
|
xmlhttp.open('POST', 'non_agent_api.php');
|
|
|
|
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
|
|
xmlhttp.send(monitorQuery);
|
|
|
|
|
xmlhttp.onreadystatechange = function()
|
|
|
|
|
{
|
|
|
|
|
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
|
|
|
|
var temp_ingroup_add_remove_changeIndex = document.getElementById("ingroup_add_remove_change").selectedIndex;
|
|
|
|
|
var temp_ingroup_add_remove_change = document.getElementById('ingroup_add_remove_change').options[temp_ingroup_add_remove_changeIndex].value;
|
|
|
|
|
|
|
|
|
|
var temp_set_as_defaultIndex = document.getElementById("set_as_default").selectedIndex;
|
|
|
|
|
var temp_set_as_default = document.getElementById('set_as_default').options[temp_set_as_defaultIndex].value;
|
|
|
|
|
|
|
|
|
|
var temp_blendedIndex = document.getElementById("blended").selectedIndex;
|
|
|
|
|
var temp_blended = document.getElementById('blended').options[temp_blendedIndex].value;
|
|
|
|
|
|
|
|
|
|
var temp_ingroup_choices = '';
|
|
|
|
|
var txtSelectedValuesObj = document.getElementById('txtSelectedValues');
|
|
|
|
|
var selectedArray = new Array();
|
|
|
|
|
var selObj = document.getElementById('ingroup_new_selections');
|
|
|
|
|
var i;
|
|
|
|
|
var count = 0;
|
|
|
|
|
for (i=0; i<selObj.options.length; i++)
|
|
|
|
|
{
|
|
|
|
|
if (selObj.options[i].selected)
|
|
|
|
|
{
|
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
|
var Xoutput = null;
|
|
|
|
|
Xoutput = xmlhttp.responseText;
|
|
|
|
|
var regXFerr = new RegExp("ERROR","g");
|
|
|
|
|
if (Xoutput.match(regXFerr))
|
|
|
|
|
{alert(xmlhttp.responseText);}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("agent_ingroup_display").visibility = "visible";
|
|
|
|
|
document.getElementById("agent_ingroup_display").innerHTML = Xoutput;
|
|
|
|
|
}
|
|
|
|
|
// selectedArray[count] = selObj.options[i].value;
|
|
|
|
|
temp_ingroup_choices = temp_ingroup_choices + '+' + selObj.options[i].value;
|
|
|
|
|
count++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
delete xmlhttp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// function to display in-groups selected for a specific agent
|
|
|
|
|
function hide_ingroup_info()
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("agent_ingroup_display").visibility = "hidden";
|
|
|
|
|
document.getElementById("agent_ingroup_display").innerHTML = '';
|
|
|
|
|
}
|
|
|
|
|
temp_ingroup_choices = temp_ingroup_choices + '+-';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<STYLE type="text/css">
|
|
|
|
|
<!--
|
|
|
|
|
.green {color: white; background-color: green}
|
|
|
|
|
.red {color: white; background-color: red}
|
|
|
|
|
.lightblue {color: black; background-color: #ADD8E6}
|
|
|
|
|
.blue {color: white; background-color: blue}
|
|
|
|
|
.midnightblue {color: white; background-color: #191970}
|
|
|
|
|
.purple {color: white; background-color: purple}
|
|
|
|
|
.violet {color: black; background-color: #EE82EE}
|
|
|
|
|
.thistle {color: black; background-color: #D8BFD8}
|
|
|
|
|
.olive {color: white; background-color: #808000}
|
|
|
|
|
.lime {color: white; background-color: #006600}
|
|
|
|
|
.yellow {color: black; background-color: yellow}
|
|
|
|
|
.khaki {color: black; background-color: #F0E68C}
|
|
|
|
|
.orange {color: black; background-color: orange}
|
|
|
|
|
.black {color: white; background-color: black}
|
|
|
|
|
|
|
|
|
|
.r1 {color: black; background-color: #FFCCCC}
|
|
|
|
|
.r2 {color: black; background-color: #FF9999}
|
|
|
|
|
.r3 {color: black; background-color: #FF6666}
|
|
|
|
|
.r4 {color: white; background-color: #FF0000}
|
|
|
|
|
.b1 {color: black; background-color: #CCCCFF}
|
|
|
|
|
.b2 {color: black; background-color: #9999FF}
|
|
|
|
|
.b3 {color: black; background-color: #6666FF}
|
|
|
|
|
.b4 {color: white; background-color: #0000FF}
|
|
|
|
|
<?php
|
|
|
|
|
$stmt="select group_id,group_color from vicidial_inbound_groups;";
|
|
|
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
|
if ($DB) {echo "$stmt\n";}
|
|
|
|
|
$INgroups_to_print = mysql_num_rows($rslt);
|
|
|
|
|
if ($INgroups_to_print > 0)
|
|
|
|
|
{
|
|
|
|
|
$g=0;
|
|
|
|
|
while ($g < $INgroups_to_print)
|
|
|
|
|
// alert(session_id + "|" + server_ip + "|" + monitor_phone + "|" + stage + "|" + user);
|
|
|
|
|
var xmlhttp=false;
|
|
|
|
|
/*@cc_on @*/
|
|
|
|
|
/*@if (@_jscript_version >= 5)
|
|
|
|
|
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
|
|
|
|
// and security blocked creation of the objects.
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
|
|
|
|
} catch (e) {
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
} catch (E) {
|
|
|
|
|
xmlhttp = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@end @*/
|
|
|
|
|
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
|
|
|
|
{
|
|
|
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
|
$group_id[$g] = $row[0];
|
|
|
|
|
$group_color[$g] = $row[1];
|
|
|
|
|
echo " .csc$group_id[$g] {color: black; background-color: $group_color[$g]}\n";
|
|
|
|
|
$g++;
|
|
|
|
|
xmlhttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
if (xmlhttp)
|
|
|
|
|
{
|
|
|
|
|
var changeQuery = "source=realtime&function=change_ingroups&user=" + user + "&pass=" + pass + "&agent_user=" + temp_agent_user + "&value=" + temp_ingroup_add_remove_change + '&set_as_default=' + temp_set_as_default + '&blended=' + temp_blended + '&ingroup_choices=' + temp_ingroup_choices;
|
|
|
|
|
xmlhttp.open('POST', '../agc/api.php');
|
|
|
|
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
|
|
xmlhttp.send(changeQuery);
|
|
|
|
|
xmlhttp.onreadystatechange = function()
|
|
|
|
|
{
|
|
|
|
|
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
|
|
|
|
{
|
|
|
|
|
// alert(changeQuery);
|
|
|
|
|
var Xoutput = null;
|
|
|
|
|
Xoutput = xmlhttp.responseText;
|
|
|
|
|
var regXFerr = new RegExp("ERROR","g");
|
|
|
|
|
if (Xoutput.match(regXFerr))
|
|
|
|
|
{alert(xmlhttp.responseText);}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
alert(xmlhttp.responseText);
|
|
|
|
|
hide_ingroup_info();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
delete xmlhttp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "\n-->\n
|
|
|
|
|
</STYLE>\n";
|
|
|
|
|
// function to display in-groups selected for a specific agent
|
|
|
|
|
function ingroup_info(agent_user,count)
|
|
|
|
|
{
|
|
|
|
|
var cursorheight = (document.REALTIMEform.cursorY.value - 0);
|
|
|
|
|
var newheight = (cursorheight + 10);
|
|
|
|
|
document.getElementById("agent_ingroup_display").style.top = newheight;
|
|
|
|
|
// alert(session_id + "|" + server_ip + "|" + monitor_phone + "|" + stage + "|" + user);
|
|
|
|
|
var xmlhttp=false;
|
|
|
|
|
/*@cc_on @*/
|
|
|
|
|
/*@if (@_jscript_version >= 5)
|
|
|
|
|
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
|
|
|
|
// and security blocked creation of the objects.
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
|
|
|
|
} catch (e) {
|
|
|
|
|
try {
|
|
|
|
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
} catch (E) {
|
|
|
|
|
xmlhttp = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@end @*/
|
|
|
|
|
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
|
|
|
|
{
|
|
|
|
|
xmlhttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
if (xmlhttp)
|
|
|
|
|
{
|
|
|
|
|
var monitorQuery = "source=realtime&function=agent_ingroup_info&stage=change&user=" + user + "&pass=" + pass + "&agent_user=" + agent_user;
|
|
|
|
|
xmlhttp.open('POST', 'non_agent_api.php');
|
|
|
|
|
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
|
|
|
|
xmlhttp.send(monitorQuery);
|
|
|
|
|
xmlhttp.onreadystatechange = function()
|
|
|
|
|
{
|
|
|
|
|
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
|
|
|
|
{
|
|
|
|
|
// alert(xmlhttp.responseText);
|
|
|
|
|
var Xoutput = null;
|
|
|
|
|
Xoutput = xmlhttp.responseText;
|
|
|
|
|
var regXFerr = new RegExp("ERROR","g");
|
|
|
|
|
if (Xoutput.match(regXFerr))
|
|
|
|
|
{alert(xmlhttp.responseText);}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("agent_ingroup_display").visibility = "visible";
|
|
|
|
|
document.getElementById("agent_ingroup_display").innerHTML = Xoutput;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
delete xmlhttp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// function to display in-groups selected for a specific agent
|
|
|
|
|
function hide_ingroup_info()
|
|
|
|
|
{
|
|
|
|
|
document.getElementById("agent_ingroup_display").visibility = "hidden";
|
|
|
|
|
document.getElementById("agent_ingroup_display").innerHTML = '';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<STYLE type="text/css">
|
|
|
|
|
<!--
|
|
|
|
|
.green {color: white; background-color: green}
|
|
|
|
|
.red {color: white; background-color: red}
|
|
|
|
|
.lightblue {color: black; background-color: #ADD8E6}
|
|
|
|
|
.blue {color: white; background-color: blue}
|
|
|
|
|
.midnightblue {color: white; background-color: #191970}
|
|
|
|
|
.purple {color: white; background-color: purple}
|
|
|
|
|
.violet {color: black; background-color: #EE82EE}
|
|
|
|
|
.thistle {color: black; background-color: #D8BFD8}
|
|
|
|
|
.olive {color: white; background-color: #808000}
|
|
|
|
|
.lime {color: white; background-color: #006600}
|
|
|
|
|
.yellow {color: black; background-color: yellow}
|
|
|
|
|
.khaki {color: black; background-color: #F0E68C}
|
|
|
|
|
.orange {color: black; background-color: orange}
|
|
|
|
|
.black {color: white; background-color: black}
|
|
|
|
|
|
|
|
|
|
.r1 {color: black; background-color: #FFCCCC}
|
|
|
|
|
.r2 {color: black; background-color: #FF9999}
|
|
|
|
|
.r3 {color: black; background-color: #FF6666}
|
|
|
|
|
.r4 {color: white; background-color: #FF0000}
|
|
|
|
|
.b1 {color: black; background-color: #CCCCFF}
|
|
|
|
|
.b2 {color: black; background-color: #9999FF}
|
|
|
|
|
.b3 {color: black; background-color: #6666FF}
|
|
|
|
|
.b4 {color: white; background-color: #0000FF}
|
|
|
|
|
<?php
|
|
|
|
|
$stmt="select group_id,group_color from vicidial_inbound_groups;";
|
|
|
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
|
if ($DB) {echo "$stmt\n";}
|
|
|
|
|
$INgroups_to_print = mysql_num_rows($rslt);
|
|
|
|
|
if ($INgroups_to_print > 0)
|
|
|
|
|
{
|
|
|
|
|
$g=0;
|
|
|
|
|
while ($g < $INgroups_to_print)
|
|
|
|
|
{
|
|
|
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
|
$group_id[$g] = $row[0];
|
|
|
|
|
$group_color[$g] = $row[1];
|
|
|
|
|
echo " .csc$group_id[$g] {color: black; background-color: $group_color[$g]}\n";
|
|
|
|
|
$g++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "\n-->\n
|
|
|
|
|
</STYLE>\n";
|
|
|
|
|
|
|
|
|
|
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
|
|
|
|
echo"<META HTTP-EQUIV=Refresh CONTENT=\"$RR; URL=$PHP_SELF?RR=$RR&DB=$DB$groupQS&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">\n";
|
|
|
|
|
echo "<TITLE>$report_name: $group</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
|
|
|
|
|
|
|
|
|
$short_header=1;
|
|
|
|
|
|
|
|
|
|
require("admin_header.php");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$stmt = "select count(*) from vicidial_campaigns where active='Y' and campaign_allow_inbound='Y' $group_SQLand;";
|
|
|
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
@@ -843,60 +869,55 @@ $rslt=mysql_query($stmt, $link);
|
|
|
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
|
$campaign_allow_inbound = $row[0];
|
|
|
|
|
|
|
|
|
|
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
|
|
|
|
echo"<META HTTP-EQUIV=Refresh CONTENT=\"$RR; URL=$PHP_SELF?RR=$RR&DB=$DB$groupQS&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">\n";
|
|
|
|
|
echo "<TITLE>$report_name: $group</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
|
|
|
|
|
|
|
|
|
$short_header=1;
|
|
|
|
|
|
|
|
|
|
require("admin_header.php");
|
|
|
|
|
|
|
|
|
|
echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
|
|
|
|
|
|
|
|
|
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET NAME=REALTIMEform ID=REALTIMEform>\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=RR VALUE=\"$RR\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=cursorX ID=cursorX>\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=cursorY ID=cursorY>\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=adastats VALUE=\"$adastats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=SIPmonitorLINK VALUE=\"$SIPmonitorLINK\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=IAXmonitorLINK VALUE=\"$IAXmonitorLINK\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=usergroup VALUE=\"$usergroup\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=UGdisplay VALUE=\"$UGdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=UidORname VALUE=\"$UidORname\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=orderby VALUE=\"$orderby\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=SERVdisplay VALUE=\"$SERVdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=CALLSdisplay VALUE=\"$CALLSdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=PHONEdisplay VALUE=\"$PHONEdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=CUSTPHONEdisplay VALUE=\"$CUSTPHONEdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=DROPINGROUPstats VALUE=\"$DROPINGROUPstats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=ALLINGROUPstats VALUE=\"$ALLINGROUPstats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=CARRIERstats VALUE=\"$CARRIERstats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=PRESETstats VALUE=\"$PRESETstats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=AGENTtimeSTATS VALUE=\"$AGENTtimeSTATS\">\n";
|
|
|
|
|
echo "Real-Time Report \n";
|
|
|
|
|
echo "<span style=\"position:absolute;left:160px;top:27px;z-index:19;\" id=campaign_select_list>\n";
|
|
|
|
|
echo "<TABLE WIDTH=250 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#D9E6FE\"><TR><TD ALIGN=CENTER>\n";
|
|
|
|
|
echo "<a href=\"#\" onclick=\"openDiv('campaign_select_list');\">Choose Report Display Options</a>";
|
|
|
|
|
echo "</TD></TR></TABLE>\n";
|
|
|
|
|
echo "</span>\n";
|
|
|
|
|
echo "<span style=\"position:absolute;left:10px;top:120px;z-index:18;\" id=agent_ingroup_display>\n";
|
|
|
|
|
echo " ";
|
|
|
|
|
echo "</span>\n";
|
|
|
|
|
echo "<a href=\"$PHP_SELF?RR=4000$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">STOP</a> | ";
|
|
|
|
|
echo "<a href=\"$PHP_SELF?RR=40$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">SLOW</a> | ";
|
|
|
|
|
echo "<a href=\"$PHP_SELF?RR=4$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">GO</a>";
|
|
|
|
|
if (eregi('ALL-ACTIVE',$group_string))
|
|
|
|
|
if ($RTajax < 1)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"./admin.php?ADD=10\">MODIFY</a> | \n";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"./admin.php?ADD=34&campaign_id=$group\">MODIFY</a> | \n";
|
|
|
|
|
}
|
|
|
|
|
echo "<a href=\"./AST_timeonVDADallSUMMARY.php?RR=$RR&DB=$DB&adastats=$adastats\">SUMMARY</a> </FONT>\n";
|
|
|
|
|
echo "\n\n";
|
|
|
|
|
echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
|
|
|
|
|
|
|
|
|
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET NAME=REALTIMEform ID=REALTIMEform>\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=RR VALUE=\"$RR\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=cursorX ID=cursorX>\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=cursorY ID=cursorY>\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=adastats VALUE=\"$adastats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=SIPmonitorLINK VALUE=\"$SIPmonitorLINK\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=IAXmonitorLINK VALUE=\"$IAXmonitorLINK\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=usergroup VALUE=\"$usergroup\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=UGdisplay VALUE=\"$UGdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=UidORname VALUE=\"$UidORname\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=orderby VALUE=\"$orderby\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=SERVdisplay VALUE=\"$SERVdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=CALLSdisplay VALUE=\"$CALLSdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=PHONEdisplay VALUE=\"$PHONEdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=CUSTPHONEdisplay VALUE=\"$CUSTPHONEdisplay\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=DROPINGROUPstats VALUE=\"$DROPINGROUPstats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=ALLINGROUPstats VALUE=\"$ALLINGROUPstats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=CARRIERstats VALUE=\"$CARRIERstats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=PRESETstats VALUE=\"$PRESETstats\">\n";
|
|
|
|
|
echo "<INPUT TYPE=HIDDEN NAME=AGENTtimeSTATS VALUE=\"$AGENTtimeSTATS\">\n";
|
|
|
|
|
echo "Real-Time Report \n";
|
|
|
|
|
echo "<span style=\"position:absolute;left:160px;top:27px;z-index:19;\" id=campaign_select_list>\n";
|
|
|
|
|
echo "<TABLE WIDTH=250 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#D9E6FE\"><TR><TD ALIGN=CENTER>\n";
|
|
|
|
|
echo "<a href=\"#\" onclick=\"openDiv('campaign_select_list');\">Choose Report Display Options</a>";
|
|
|
|
|
echo "</TD></TR></TABLE>\n";
|
|
|
|
|
echo "</span>\n";
|
|
|
|
|
echo "<span style=\"position:absolute;left:10px;top:120px;z-index:18;\" id=agent_ingroup_display>\n";
|
|
|
|
|
echo " ";
|
|
|
|
|
echo "</span>\n";
|
|
|
|
|
echo "<a href=\"$PHP_SELF?RR=4000$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">STOP</a> | ";
|
|
|
|
|
echo "<a href=\"$PHP_SELF?RR=40$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">SLOW</a> | ";
|
|
|
|
|
echo "<a href=\"$PHP_SELF?RR=4$groupQS&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">GO</a>";
|
|
|
|
|
if (eregi('ALL-ACTIVE',$group_string))
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"./admin.php?ADD=10\">MODIFY</a> | \n";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"./admin.php?ADD=34&campaign_id=$group\">MODIFY</a> | \n";
|
|
|
|
|
}
|
|
|
|
|
echo "<a href=\"./AST_timeonVDADallSUMMARY.php?RR=$RR&DB=$DB&adastats=$adastats\">SUMMARY</a> </FONT>\n";
|
|
|
|
|
echo "\n\n";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!$group)
|
|
|
|
|
{echo "<BR><BR>please select a campaign from the pulldown above</FORM>\n"; exit;}
|
|
|
|
@@ -1572,8 +1593,12 @@ else
|
|
|
|
|
|
|
|
|
|
if ($adastats>1)
|
|
|
|
|
{
|
|
|
|
|
$min_link='<a href=\"$PHP_SELF?$groupQS&RR=4&DB=$DB&adastats=1\"><font size=1>- min </font></a>';
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{$min_link='';}
|
|
|
|
|
|
|
|
|
|
echo "<TR BGCOLOR=\"#CCCCCC\">";
|
|
|
|
|
echo "<TD ALIGN=RIGHT><a href=\"$PHP_SELF?$groupQS&RR=4&DB=$DB&adastats=1\"><font size=1>- min </font></a><font size=2> <B>MAX LEVEL:</B></TD><TD ALIGN=LEFT><font size=2> $maxDIALlev </TD>";
|
|
|
|
|
echo "<TD ALIGN=RIGHT>$min_link<font size=2> <B>MAX LEVEL:</B></TD><TD ALIGN=LEFT><font size=2> $maxDIALlev </TD>";
|
|
|
|
|
echo "<TD ALIGN=RIGHT><font size=2><B>DROPPED MAX:</B></TD><TD ALIGN=LEFT><font size=2> $DROPmax% </TD>";
|
|
|
|
|
echo "<TD ALIGN=RIGHT><font size=2><B>TARGET DIFF:</B></TD><TD ALIGN=LEFT><font size=2> $targetDIFF </TD>";
|
|
|
|
|
echo "<TD ALIGN=RIGHT><font size=2><B>INTENSITY:</B></TD><TD ALIGN=LEFT><font size=2> $ADAintense </TD>";
|
|
|
|
@@ -1682,63 +1707,67 @@ echo "<TD ALIGN=LEFT COLSPAN=8>";
|
|
|
|
|
|
|
|
|
|
echo "$ingroup_detail";
|
|
|
|
|
|
|
|
|
|
if ($adastats<2)
|
|
|
|
|
if ($RTajax < 1)
|
|
|
|
|
{
|
|
|
|
|
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=2&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>+ VIEW MORE</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=1&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>+ VIEW LESS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($UGdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=0&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE USER GROUP</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=1&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>VIEW USER GROUP</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($SERVdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=0&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE SERVER INFO</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=1&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW SERVER INFO</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($CALLSdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=0&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE WAITING CALLS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=1&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW WAITING CALLS</font></a>";
|
|
|
|
|
if ($adastats<2)
|
|
|
|
|
{
|
|
|
|
|
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=2&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>+ VIEW MORE</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=1&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>+ VIEW LESS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($UGdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=0&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE USER GROUP</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=1&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>VIEW USER GROUP</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($SERVdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=0&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE SERVER INFO</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=1&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW SERVER INFO</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($CALLSdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=0&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE WAITING CALLS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=1&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW WAITING CALLS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($ALLINGROUPstats>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=0&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE IN-GROUP STATS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=1&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW IN-GROUP STATS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($PHONEdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=0&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE PHONES</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=1&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW PHONES</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($CUSTPHONEdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=0&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE CUSTPHONES</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=1&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW CUSTPHONES</font></a>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($ALLINGROUPstats>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=0&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE IN-GROUP STATS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=1&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW IN-GROUP STATS</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($PHONEdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=0&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE PHONES</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=1&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW PHONES</font></a>";
|
|
|
|
|
}
|
|
|
|
|
if ($CUSTPHONEdisplay>0)
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=0&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>HIDE CUSTPHONES</font></a>";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=1&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\"><font size=1>SHOW CUSTPHONES</font></a>";
|
|
|
|
|
}
|
|
|
|
|
echo "</TD>";
|
|
|
|
|
echo "</TR>";
|
|
|
|
|
echo "</TABLE>";
|
|
|
|
@@ -1997,17 +2026,31 @@ $HDstation = "----------------+";
|
|
|
|
|
$HTstation = " STATION |";
|
|
|
|
|
$HDphone = "-------------+";
|
|
|
|
|
$HTphone = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$phoneord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">PHONE</a> |";
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{$HTphone = " <a href=\"#\" onclick=\"update_variables('orderby','phone');\">PHONE</a> |";}
|
|
|
|
|
$HDuser = "------------------------+";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$HTuser = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$userord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">USER</a> ";
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{$HTuser = " <a href=\"#\" onclick=\"update_variables('orderby','user');\">USER</a> ";}
|
|
|
|
|
if ($UidORname>0)
|
|
|
|
|
{
|
|
|
|
|
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=0&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">SHOW ID</a> ";
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{$HTuser .= "<a href=\"#\" onclick=\"update_variables('UidORname','');\">SHOW ID</a> ";}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=0&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">SHOW ID</a> ";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=1&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">SHOW NAME</a>";
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{$HTuser .= "<a href=\"#\" onclick=\"update_variables('UidORname','');\">SHOW NAME</a>";}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$HTuser .= "<a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=1&orderby=$orderby&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">SHOW NAME</a>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$HTuser .= " INFO |";
|
|
|
|
@@ -2015,6 +2058,8 @@ $HTuser .= " INFO |";
|
|
|
|
|
|
|
|
|
|
$HDusergroup = "--------------+";
|
|
|
|
|
$HTusergroup = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$groupord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">USER GROUP</a> |";
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{$HTusergroup = " <a href=\"#\" onclick=\"update_variables('orderby','group');\">USER GROUP</a> |";}
|
|
|
|
|
$HDsessionid = "------------------+";
|
|
|
|
|
$HTsessionid = " SESSIONID |";
|
|
|
|
|
$HDbarge = "-------+";
|
|
|
|
@@ -2029,8 +2074,12 @@ $HDcall_server_ip = "-----------------+";
|
|
|
|
|
$HTcall_server_ip = " CALL SERVER IP |";
|
|
|
|
|
$HDtime = "---------+";
|
|
|
|
|
$HTtime = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$timeord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">MM:SS</a> |";
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{$HTtime = " <a href=\"#\" onclick=\"update_variables('orderby','time');\">MM:SS</a> |";}
|
|
|
|
|
$HDcampaign = "------------+";
|
|
|
|
|
$HTcampaign = " <a href=\"$PHP_SELF?$groupQS&RR=$RR&DB=$DB&adastats=$adastats&SIPmonitorLINK=$SIPmonitorLINK&IAXmonitorLINK=$IAXmonitorLINK&usergroup=$usergroup&UGdisplay=$UGdisplay&UidORname=$UidORname&orderby=$campaignord&SERVdisplay=$SERVdisplay&CALLSdisplay=$CALLSdisplay&PHONEdisplay=$PHONEdisplay&CUSTPHONEdisplay=$CUSTPHONEdisplay&with_inbound=$with_inbound&monitor_active=$monitor_active&monitor_phone=$monitor_phone&ALLINGROUPstats=$ALLINGROUPstats&DROPINGROUPstats=$DROPINGROUPstats&NOLEADSalert=$NOLEADSalert&CARRIERstats=$CARRIERstats&PRESETstats=$PRESETstats&AGENTtimeSTATS=$AGENTtimeSTATS\">CAMPAIGN</a> |";
|
|
|
|
|
if ($RTajax > 0)
|
|
|
|
|
{$HTcampaign = " <a href=\"#\" onclick=\"update_variables('orderby','campaign');\">CAMPAIGN</a> |";}
|
|
|
|
|
$HDcalls = "-------+";
|
|
|
|
|
$HTcalls = " CALLS |";
|
|
|
|
|
$HDpause = '';
|
|
|
|
@@ -2556,8 +2605,12 @@ $calls_to_list = mysql_num_rows($rslt);
|
|
|
|
|
echo "<PRE>$Cecho";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "</PRE>";
|
|
|
|
|
|
|
|
|
|
if ($RTajax < 1)
|
|
|
|
|
{
|
|
|
|
|
echo "</TD></TR></TABLE>";
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</PRE>
|
|
|
|
|
</TD></TR></TABLE>
|
|
|
|
|
|
|
|
|
|
</BODY></HTML>
|
|
|
|
|