Added option to show in-group color in real-time report agent records
Rewrote Fronter/Closer report Updated reports to reformat the forms in a more unified format Added Help entries for most reports git-svn-id: svn://192.168.202.10@2482 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_CLOSER_service_level.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -31,6 +31,7 @@
|
||||
# 141230-0923 - Added code for on-the-fly language translations display
|
||||
# 150516-1258 - Fixed Javascript element problem, Issue #857
|
||||
# 151125-1627 - Added search archive option
|
||||
# 160227-1153 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -290,6 +291,9 @@ while ($i < $groups_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -317,12 +321,17 @@ $short_header=1;
|
||||
|
||||
# require("admin_header.php");
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#CLOSER_service_level$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD>";
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
$MAIN.="<script language=\"JavaScript\">\n";
|
||||
$MAIN.="function openNewWindow(url)\n";
|
||||
$MAIN.=" {\n";
|
||||
$MAIN.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$MAIN.=" }\n";
|
||||
$MAIN.="var o_cal = new tcal ({\n";
|
||||
$MAIN.=" // form name\n";
|
||||
$MAIN.=" 'formname': 'vicidial_report',\n";
|
||||
@@ -378,7 +387,7 @@ if ($archives_available=="Y")
|
||||
{
|
||||
$MAIN.="<BR><input type='checkbox' name='search_archived_data' value='checked' $search_archived_data>"._QXZ("Search archived data")."\n";
|
||||
}
|
||||
$MAIN.="</FONT>\n";
|
||||
$MAIN.="</FONT></TD></TR></TABLE>\n";
|
||||
|
||||
$MAIN.="</FORM>\n\n";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_CLOSERstats.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES:
|
||||
# 60619-1714 - Added variable filtering to eliminate SQL injection attack threat
|
||||
@@ -51,6 +51,7 @@
|
||||
# 150928-1234 - Separated User Group permissions for this report by in-group and by DID
|
||||
# 151124-1236 - Changed bottom chart to pull all time segments
|
||||
# 151125-1633 - Added search archive option
|
||||
# 160227-1129 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -394,6 +395,9 @@ while ($i < $statcats_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -419,7 +423,8 @@ $short_header=1;
|
||||
|
||||
#require("admin_header.php");
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#CLOSERstats$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
if ($DB > 0)
|
||||
{
|
||||
@@ -431,7 +436,7 @@ if ($DB > 0)
|
||||
}
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=POST name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE BORDER=0><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DID VALUE=\"$DID\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=EMAIL VALUE=\"$EMAIL\">\n";
|
||||
@@ -439,6 +444,10 @@ $MAIN.=_QXZ("Date Range").":<BR>\n";
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
$MAIN.="<script language=\"JavaScript\">\n";
|
||||
$MAIN.="function openNewWindow(url)\n";
|
||||
$MAIN.=" {\n";
|
||||
$MAIN.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$MAIN.=" }\n";
|
||||
$MAIN.="var o_cal = new tcal ({\n";
|
||||
$MAIN.=" // form name\n";
|
||||
$MAIN.=" 'formname': 'vicidial_report',\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_CLOSERstats_v2.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES:
|
||||
# 60619-1714 - Added variable filtering to eliminate SQL injection attack threat
|
||||
@@ -54,6 +54,7 @@
|
||||
# 151216-1023 - Forked from original as "v2" for Call Time option changes, added CHAT option
|
||||
# 151218-0651 - Added User Group Call Times restrictions to select list
|
||||
# 151219-1702 - Some text changes for more efficient dynamic language function
|
||||
# 160227-1101 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -403,6 +404,9 @@ while ($i < $statcats_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -428,7 +432,8 @@ $short_header=1;
|
||||
|
||||
#require("admin_header.php");
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#CLOSERstats_v2$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
if ($DB > 0)
|
||||
{
|
||||
@@ -440,7 +445,7 @@ if ($DB > 0)
|
||||
}
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=POST name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE BORDER=0><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DID VALUE=\"$DID\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=EMAIL VALUE=\"$EMAIL\">\n";
|
||||
@@ -449,6 +454,10 @@ $MAIN.=_QXZ("Date Range").":<BR>\n";
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
$MAIN.="<script language=\"JavaScript\">\n";
|
||||
$MAIN.="function openNewWindow(url)\n";
|
||||
$MAIN.=" {\n";
|
||||
$MAIN.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$MAIN.=" }\n";
|
||||
$MAIN.="var o_cal = new tcal ({\n";
|
||||
$MAIN.=" // form name\n";
|
||||
$MAIN.=" 'formname': 'vicidial_report',\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_CLOSERsummary_hourly.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -25,6 +25,7 @@
|
||||
# 141230-1511 - Added code for on-the-fly language translations display
|
||||
# 150516-1300 - Fixed Javascript element problem, Issue #857
|
||||
# 151125-1609 - Added search archive option
|
||||
# 160227-1151 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -371,6 +372,9 @@ while ($i < $times_to_print)
|
||||
}
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -396,7 +400,8 @@ if ($bareformat < 1)
|
||||
|
||||
# require("admin_header.php");
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#CLOSERsummary_hourly$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
if ($DB > 0)
|
||||
{
|
||||
@@ -408,7 +413,7 @@ if ($bareformat < 1)
|
||||
}
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE BORDER=0><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=inbound_rate VALUE=\"$inbound_rate\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=outbound_rate VALUE=\"$outbound_rate\">\n";
|
||||
@@ -418,6 +423,10 @@ if ($bareformat < 1)
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
$MAIN.=" <script language=\"JavaScript\">\n";
|
||||
$MAIN.="function openNewWindow(url)\n";
|
||||
$MAIN.=" {\n";
|
||||
$MAIN.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$MAIN.=" }\n";
|
||||
$MAIN.=" var o_cal = new tcal ({\n";
|
||||
$MAIN.=" // form name\n";
|
||||
$MAIN.=" 'formname': 'vicidial_report',\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_DIDstats.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -27,6 +27,7 @@
|
||||
# 141113-2040 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1508 - Added code for on-the-fly language translations display
|
||||
# 151125-1614 - Added search archive option
|
||||
# 160227-1150 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -316,6 +317,9 @@ if ( (strlen($slave_db_server)>5) and (preg_match("/$report_name/",$reports_use_
|
||||
$MAIN.="<!-- Using slave server $slave_db_server $db_source -->\n";
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -357,13 +361,18 @@ if ($DB > 0)
|
||||
$MAIN.="<BR>\n";
|
||||
}
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#DIDstats$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=POST name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2><TR><TD align=center valign=top>\n";
|
||||
$MAIN.="<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD align=center valign=top>\n";
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
$MAIN.="<script language=\"JavaScript\">\n";
|
||||
$MAIN.="function openNewWindow(url)\n";
|
||||
$MAIN.=" {\n";
|
||||
$MAIN.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$MAIN.=" }\n";
|
||||
$MAIN.="var o_cal = new tcal ({\n";
|
||||
$MAIN.=" // form name\n";
|
||||
$MAIN.=" 'formname': 'vicidial_report',\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_IVRfilter.php
|
||||
#
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -18,6 +18,7 @@
|
||||
# 140328-0005 - Converted division calculations to use MathZDC function
|
||||
# 141114-0833 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1449 - Added code for on-the-fly language translations display
|
||||
# 160227-1931 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -211,6 +212,9 @@ if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
$i=0;
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HTML_header.="<HTML>\n";
|
||||
$HTML_header.="<HEAD>\n";
|
||||
$HTML_header.="<STYLE type=\"text/css\">\n";
|
||||
@@ -232,15 +236,20 @@ $HTML_header.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
|
||||
# require("admin_header.php");
|
||||
|
||||
$HTML_text.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$HTML_text="<b>"._QXZ("$report_name")."</b> $NWB#IVRfilter$NWE\n";
|
||||
$HTML_text.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
$HTML_text.="<FORM ACTION=\"$PHP_SELF\" NAME='IVRfilter_report' METHOD=GET>\n";
|
||||
$HTML_text.="<TABLE BORDER=0><TR><TD VALIGN=TOP>\n";
|
||||
$HTML_text.="<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>\n";
|
||||
$HTML_text.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$HTML_text.=_QXZ("Date Range").":<BR>\n";
|
||||
$HTML_text.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
|
||||
|
||||
$HTML_text.="<script language=\"JavaScript\">\n";
|
||||
$HTML_text.="function openNewWindow(url)\n";
|
||||
$HTML_text.=" {\n";
|
||||
$HTML_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$HTML_text.=" }\n";
|
||||
$HTML_text.="var o_cal = new tcal ({\n";
|
||||
$HTML_text.=" // form name\n";
|
||||
$HTML_text.=" 'formname': 'IVRfilter_report',\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_IVRstats.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 81026-2026 - First build
|
||||
@@ -33,6 +33,7 @@
|
||||
# 150516-1301 - Fixed Javascript element problem, Issue #857
|
||||
# 151125-1643 - Added search archive option
|
||||
# 151204-0544 - Added code to look for "CALL_MENU" and "XML_PULL" In-Group permissions for those list options
|
||||
# 160227-1130 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -413,6 +414,9 @@ while ($i < $statcats_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -480,7 +484,8 @@ $HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marg
|
||||
|
||||
# require("admin_header.php");
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#IVRstats$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
if ($DB > 0)
|
||||
{
|
||||
@@ -492,7 +497,7 @@ if ($DB > 0)
|
||||
}
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE BORDER=0><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN='TOP'>";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=type VALUE=\"$type\">\n";
|
||||
$MAIN.=_QXZ("Date Range").":<BR>\n";
|
||||
@@ -502,6 +507,10 @@ $MAIN.="<INPUT TYPE=hidden NAME=end_date ID=end_date VALUE=\"$end_date\">\n";
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$query_date_D\">";
|
||||
|
||||
$MAIN.="<script language=\"JavaScript\">\n";
|
||||
$MAIN.="function openNewWindow(url)\n";
|
||||
$MAIN.=" {\n";
|
||||
$MAIN.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$MAIN.=" }\n";
|
||||
$MAIN.="var o_cal = new tcal ({\n";
|
||||
$MAIN.=" // form name\n";
|
||||
$MAIN.=" 'formname': 'vicidial_report',\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_LISTS_campaign_stats.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This is a list inventory report, not a calling report. This report will show
|
||||
# statistics for all of the lists in the selected campaigns
|
||||
@@ -24,6 +24,7 @@
|
||||
# 141230-1444 - Added code for on-the-fly language translations display
|
||||
# 150516-1302 - Fixed Javascript element problem, Issue #857
|
||||
# 151229-2009 - Added archive search option
|
||||
# 160227-1043 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -54,6 +55,10 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search
|
||||
$report_name = 'Lists Campaign Statuses Report';
|
||||
$db_source = 'M';
|
||||
$JS_text="<script language='Javascript'>\n";
|
||||
$JS_text.="function openNewWindow(url)\n";
|
||||
$JS_text.=" {\n";
|
||||
$JS_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$JS_text.=" }\n";
|
||||
$JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
@@ -411,6 +416,9 @@ else {$scheduled_callback_statuses="''";}
|
||||
if (strlen($completed_statuses)>2) {$completed_statuses = substr("$completed_statuses", 0, -1);}
|
||||
else {$completed_statuses="''";}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -428,10 +436,11 @@ $HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marg
|
||||
|
||||
$short_header=1;
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#LISTS_campaign_stats$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE CELLSPACING=3><TR><TD VALIGN=TOP>";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
|
||||
$MAIN.="</TD><TD VALIGN=TOP> "._QXZ("Campaigns").":<BR>";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_LISTS_pass_report.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This is a list inventory report, not a calling report. This report will show
|
||||
# statistics for all of the lists in the selected campaigns
|
||||
@@ -14,6 +14,7 @@
|
||||
# 141230-0919 - Added code for on-the-fly language translations display
|
||||
# 150516-1303 - Fixed Javascript element problem, Issue #857
|
||||
# 151125-1640 - Added search archive option
|
||||
# 160227-1138 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -47,6 +48,10 @@ if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search
|
||||
$report_name = 'Lists Pass Report';
|
||||
$db_source = 'M';
|
||||
$JS_text="<script language='Javascript'>\n";
|
||||
$JS_text.="function openNewWindow(url)\n";
|
||||
$JS_text.=" {\n";
|
||||
$JS_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$JS_text.=" }\n";
|
||||
$JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
@@ -409,8 +414,8 @@ else {$completed_statuses="''";}
|
||||
|
||||
if ($DB) {echo "<!-- SALE statuses: $sale_statuses -->";}
|
||||
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -429,10 +434,11 @@ $HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marg
|
||||
|
||||
$short_header=1;
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#LISTS_pass_report$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE CELLSPACING=3><TR><TD VALIGN=TOP>";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=use_lists VALUE=\"$use_lists\">\n";
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
# 141114-0825 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1442 - Added code for on-the-fly language translations display
|
||||
# 150516-1304 - Fixed Javascript element problem, Issue #857
|
||||
# 160227-1026 - Fixed dbconnect bug, standardized form layout
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -46,6 +47,10 @@ if (isset($_GET["campaigns_or_lists_rpt"])) {$campaigns_or_lists_rpt=$_GET["c
|
||||
$report_name = 'Lists Statuses Report';
|
||||
$db_source = 'M';
|
||||
$JS_text="<script language='Javascript'>\n";
|
||||
$JS_text.="function openNewWindow(url)\n";
|
||||
$JS_text.=" {\n";
|
||||
$JS_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$JS_text.=" }\n";
|
||||
$JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
@@ -187,7 +192,7 @@ if ( (strlen($slave_db_server)>5) and (preg_match("/$report_name/",$reports_use_
|
||||
mysqli_close($link);
|
||||
$use_slave_server=1;
|
||||
$db_source = 'S';
|
||||
require("dbconnect.php");
|
||||
require("dbconnect_mysqli.php");
|
||||
$MAIN.="<!-- Using slave server $slave_db_server $db_source -->\n";
|
||||
}
|
||||
|
||||
@@ -375,6 +380,9 @@ else {$scheduled_callback_statuses="''";}
|
||||
if (strlen($completed_statuses)>2) {$completed_statuses = substr("$completed_statuses", 0, -1);}
|
||||
else {$completed_statuses="''";}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -392,10 +400,11 @@ $HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marg
|
||||
|
||||
$short_header=1;
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#LISTS_stats$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE CELLSPACING=3><TR><TD VALIGN=TOP>";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="</TD>";
|
||||
|
||||
@@ -819,7 +828,7 @@ if ($db_source == 'S')
|
||||
mysqli_close($link);
|
||||
$use_slave_server=0;
|
||||
$db_source = 'M';
|
||||
require("dbconnect.php");
|
||||
require("dbconnect_mysqli.php");
|
||||
}
|
||||
|
||||
$endMS = microtime();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_OUTBOUNDsummary_interval.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -25,6 +25,7 @@
|
||||
# 141230-0912 - Added code for on-the-fly language translations display
|
||||
# 150516-1305 - Fixed Javascript element problem, Issue #857
|
||||
# 151125-1632 - Added search archive option
|
||||
# 160227-1136 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -74,6 +75,10 @@ if (strlen($include_rollover)<2) {$include_rollover='NO';}
|
||||
$report_name = 'Outbound Summary Interval Report';
|
||||
$db_source = 'M';
|
||||
$JS_text="<script language='Javascript'>\n";
|
||||
$JS_text.="function openNewWindow(url)\n";
|
||||
$JS_text.=" {\n";
|
||||
$JS_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$JS_text.=" }\n";
|
||||
$JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
@@ -498,6 +503,9 @@ while ($i < $statdnc_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -521,7 +529,8 @@ if ($bareformat < 1)
|
||||
$short_header=1;
|
||||
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#OUTBOUNDsummary_interval$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
if ($DB > 0)
|
||||
{
|
||||
@@ -534,7 +543,7 @@ if ($bareformat < 1)
|
||||
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE BORDER=0><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=costformat VALUE=\"$costformat\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=print_calls VALUE=\"$print_calls\">\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_VDADstats.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 60619-1718 - Added variable filtering to eliminate SQL injection attack threat
|
||||
@@ -46,6 +46,7 @@
|
||||
# 150516-1306 - Fixed Javascript element problem, Issue #857
|
||||
# 150619-0137 - Added option to calculate 'Percent of DROP Calls taken out of Answers' differently
|
||||
# 151125-1615 - Added search archive option
|
||||
# 160227-1101 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -101,6 +102,10 @@ if (strlen($include_rollover)<2) {$include_rollover='NO';}
|
||||
$report_name = 'Outbound Calling Report';
|
||||
$db_source = 'M';
|
||||
$JS_text="<script language='Javascript'>\n";
|
||||
$JS_text.="function openNewWindow(url)\n";
|
||||
$JS_text.=" {\n";
|
||||
$JS_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$JS_text.=" }\n";
|
||||
$JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
@@ -476,6 +481,10 @@ if (strlen($customer_interactive_statuses)>2)
|
||||
else
|
||||
{$customer_interactive_statuses="''";}
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
@@ -579,10 +588,11 @@ $draw_graph=1;
|
||||
|
||||
require("admin_header.php");
|
||||
|
||||
echo "<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
echo "<b>"._QXZ("$report_name")."</b> $NWB#VDADstats$NWE\n";
|
||||
echo "<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
echo "<TABLE CELLSPACING=3><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
echo "<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=agent_hours VALUE=\"$agent_hours\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=outbound_rate VALUE=\"$outbound_rate\">\n";
|
||||
@@ -1234,7 +1244,7 @@ else
|
||||
}
|
||||
$graph_stats[$i][0]="$status - $status_name - $statcat";
|
||||
|
||||
$ASCII_text .= "| $status | $status_name | $statcat | $STATUScount | $STATUShours | $STATUSavg | $STATUSrate | $AGENTrate |\n";
|
||||
$ASCII_text .= "| $status | $status_name | $statcat | $STATUScount | $STATUShours | $STATUSavg | $STATUSrate | $AGENTrate | \n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
# 150516-1307 - Fixed Javascript element problem, Issue #857
|
||||
# 151227-1718 - Added option to search archive records instead of main
|
||||
# 160121-2216 - Added report title header, default report format, cleaned up formatting
|
||||
# 160225-1625 - Fixed download issue where report was not printing properly
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -486,7 +487,7 @@ else
|
||||
$statusesTXT = sprintf("%8s", $status[$i]);
|
||||
$statusesHEAD .= "----------+";
|
||||
$statusesHTML .= " $statusesTXT |";
|
||||
$statusesFILE .= "$statusesTXT,";
|
||||
$statusesFILE .= "$status[$i],";
|
||||
$statuses .= "$status[$i]-";
|
||||
$statusesARY[$j] = $status[$i];
|
||||
$j++;
|
||||
@@ -579,7 +580,7 @@ else
|
||||
|
||||
$SstatusTXT = sprintf("%8s", $calls[$i]);
|
||||
$SstatusesHTML .= " $SstatusTXT |";
|
||||
$SstatusesFILE .= "$SstatusTXT,";
|
||||
$SstatusesFILE .= "$calls[$i],";
|
||||
$status_found++;
|
||||
}
|
||||
$i++;
|
||||
@@ -587,6 +588,7 @@ else
|
||||
if ($status_found < 1)
|
||||
{
|
||||
$SstatusesHTML .= " 0 |";
|
||||
$SstatusesFILE .= "0,";
|
||||
}
|
||||
### END loop through each stat line ###
|
||||
$n++;
|
||||
@@ -729,7 +731,7 @@ else
|
||||
{
|
||||
$SUMstatusTXT = sprintf("%8s", $Scalls);
|
||||
$SUMstatusesHTML .= " $SUMstatusTXT |";
|
||||
$SUMstatusesFILE .= "$SUMstatusTXT,";
|
||||
$SUMstatusesFILE .= "$Scalls,";
|
||||
$$total_var=$Scalls;
|
||||
}
|
||||
$n++;
|
||||
@@ -815,7 +817,7 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_output .= _QXZ("TOTALS").",$TOTcalls,$CIScountTOT,$DNCcountPCT%,$SUMstatusesFILE\n";
|
||||
$file_output .= _QXZ("TOTALS").",".trim($TOTcalls).",".trim($CIScountTOT).",".trim($DNCcountPCT)."%,".trim($SUMstatusesFILE)."\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
# Pulls all timeclock records for an agent
|
||||
#
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 90602-2244 - First build
|
||||
@@ -22,6 +22,7 @@
|
||||
# 140328-0005 - Converted division calculations to use MathZDC function
|
||||
# 141114-0905 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1520 - Added code for on-the-fly language translations display
|
||||
# 160227-1934 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -352,6 +353,9 @@ while ($i < $statha_to_print)
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_dateURL&end_date=$end_dateURL$groupQS$user_groupQS&shift=$shift&DB=$DB";
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
?>
|
||||
@@ -370,7 +374,12 @@ if ($file_download < 1)
|
||||
<script language="JavaScript" src="calendar_db.js"></script>
|
||||
<link rel="stylesheet" href="calendar.css">
|
||||
<link rel="stylesheet" href="horizontalbargraph.css">
|
||||
|
||||
<script language='Javascript'>
|
||||
function openNewWindow(url)
|
||||
{
|
||||
window.open(url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -381,7 +390,125 @@ if ($file_download < 1)
|
||||
require("admin_header.php");
|
||||
|
||||
echo "</span>\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:3px;z-index:19;\" id=agent_status_stats>\n";
|
||||
|
||||
############################################################################
|
||||
##### BEGIN HTML form section
|
||||
############################################################################
|
||||
echo "<BR><BR>";
|
||||
echo "<b>"._QXZ("$report_name")."</b> $NWB#agent_timeclock_detail$NWE\n";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
echo "<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=hidden NAME=query_date ID=query_date VALUE=\"$query_date\">\n";
|
||||
echo "<INPUT TYPE=hidden NAME=end_date ID=end_date VALUE=\"$end_date\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$query_date_D\">";
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
var o_cal = new tcal ({
|
||||
// form name
|
||||
'formname': 'vicidial_report',
|
||||
// input name
|
||||
'controlname': 'query_date_D'
|
||||
});
|
||||
o_cal.a_tpl.yearscroll = false;
|
||||
// o_cal.a_tpl.weekstart = 1; // Monday week start
|
||||
</script>
|
||||
<?php
|
||||
|
||||
echo " <INPUT TYPE=TEXT NAME=query_date_T SIZE=9 MAXLENGTH=8 VALUE=\"$query_date_T\">";
|
||||
|
||||
echo "<BR> "._QXZ("to")." <BR><INPUT TYPE=TEXT NAME=end_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$end_date_D\">";
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
var o_cal = new tcal ({
|
||||
// form name
|
||||
'formname': 'vicidial_report',
|
||||
// input name
|
||||
'controlname': 'end_date_D'
|
||||
});
|
||||
o_cal.a_tpl.yearscroll = false;
|
||||
// o_cal.a_tpl.weekstart = 1; // Monday week start
|
||||
</script>
|
||||
<?php
|
||||
|
||||
echo " <INPUT TYPE=TEXT NAME=end_date_T SIZE=9 MAXLENGTH=8 VALUE=\"$end_date_T\">";
|
||||
|
||||
# echo "</TD><TD VALIGN=TOP> Campaigns:<BR>";
|
||||
# echo "<SELECT SIZE=5 NAME=group[] multiple>\n";
|
||||
# if (preg_match('/\-\-ALL\-\-/',$group_string))
|
||||
# {echo "<option value=\"--ALL--\" selected>-- ALL CAMPAIGNS --</option>\n";}
|
||||
# else
|
||||
# {echo "<option value=\"--ALL--\">-- ALL CAMPAIGNS --</option>\n";}
|
||||
# $o=0;
|
||||
# while ($campaigns_to_print > $o)
|
||||
# {
|
||||
# if (preg_match("/$groups[$o]\|/i",$group_string)) {echo "<option selected value=\"$groups[$o]\">$groups[$o]</option>\n";}
|
||||
# else {echo "<option value=\"$groups[$o]\">$groups[$o]</option>\n";}
|
||||
# $o++;
|
||||
# }
|
||||
# echo "</SELECT>\n";
|
||||
|
||||
echo "</TD><TD VALIGN=TOP>"._QXZ("User Groups").":<BR>";
|
||||
echo "<SELECT SIZE=5 NAME=user_group[] multiple>\n";
|
||||
|
||||
if (preg_match('/\-\-ALL\-\-/',$user_group_string))
|
||||
{echo "<option value=\"--ALL--\" selected>-- "._QXZ("ALL USER GROUPS")." --</option>\n";}
|
||||
else
|
||||
{echo "<option value=\"--ALL--\">-- "._QXZ("ALL USER GROUPS")." --</option>\n";}
|
||||
$o=0;
|
||||
while ($user_groups_to_print > $o)
|
||||
{
|
||||
if (preg_match("/\|$user_groups[$o]\|/i",$user_group_string)) {echo "<option selected value=\"$user_groups[$o]\">$user_groups[$o]</option>\n";}
|
||||
else {echo "<option value=\"$user_groups[$o]\">$user_groups[$o]</option>\n";}
|
||||
$o++;
|
||||
}
|
||||
echo "</SELECT>\n";
|
||||
echo "</TD><TD VALIGN=TOP>";
|
||||
echo _QXZ("Display as").": <BR>";
|
||||
echo "<select name='report_display_type'>";
|
||||
if ($report_display_type) {echo "<option value='$report_display_type' selected>$report_display_type</option>";}
|
||||
echo "<option value='TEXT'>"._QXZ("TEXT")."</option><option value='HTML'>"._QXZ("HTML")."</option></select>\n<BR><BR>";
|
||||
echo "</TD><TD VALIGN=TOP>"._QXZ("Shift").":<BR>";
|
||||
echo "<SELECT SIZE=1 NAME=shift>\n";
|
||||
echo "<option selected value=\"$shift\">$shift</option>\n";
|
||||
echo "<option value=\"\">--</option>\n";
|
||||
echo "<option value=\"AM\">"._QXZ("AM")."</option>\n";
|
||||
echo "<option value=\"PM\">"._QXZ("PM")."</option>\n";
|
||||
echo "<option value=\"ALL\">"._QXZ("ALL")."</option>\n";
|
||||
echo "</SELECT><BR><BR>\n";
|
||||
|
||||
?>
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
|
||||
function submit_form()
|
||||
{
|
||||
document.vicidial_report.end_date.value = document.vicidial_report.end_date_D.value + " " + document.vicidial_report.end_date_T.value;
|
||||
document.vicidial_report.query_date.value = document.vicidial_report.query_date_D.value + " " + document.vicidial_report.query_date_T.value;
|
||||
|
||||
document.vicidial_report.submit();
|
||||
}
|
||||
|
||||
</SCRIPT>
|
||||
|
||||
<input type=button value="<?php echo _QXZ("SUBMIT"); ?>" name=smt id=smt onClick="submit_form()">
|
||||
<?php
|
||||
echo "</TD><TD VALIGN=TOP> ";
|
||||
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> \n";
|
||||
echo " <a href=\"$LINKbase&stage=$stage&file_download=1\">"._QXZ("DOWNLOAD")."</a> | \n";
|
||||
echo " <a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a> </FONT>\n";
|
||||
echo "</FONT>\n";
|
||||
echo "</TD></TR></TABLE>";
|
||||
|
||||
echo "</FORM>\n\n";
|
||||
############################################################################
|
||||
##### END HTML form section
|
||||
############################################################################
|
||||
|
||||
|
||||
echo "<span style=\"z-index:19;\" id=agent_status_stats>\n";
|
||||
echo "<PRE><FONT SIZE=2>\n";
|
||||
}
|
||||
|
||||
@@ -815,123 +942,6 @@ else
|
||||
echo $ASCII_text;
|
||||
}
|
||||
|
||||
############################################################################
|
||||
##### BEGIN HTML form section
|
||||
############################################################################
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
echo "<TABLE CELLSPACING=3><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=hidden NAME=query_date ID=query_date VALUE=\"$query_date\">\n";
|
||||
echo "<INPUT TYPE=hidden NAME=end_date ID=end_date VALUE=\"$end_date\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$query_date_D\">";
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
var o_cal = new tcal ({
|
||||
// form name
|
||||
'formname': 'vicidial_report',
|
||||
// input name
|
||||
'controlname': 'query_date_D'
|
||||
});
|
||||
o_cal.a_tpl.yearscroll = false;
|
||||
// o_cal.a_tpl.weekstart = 1; // Monday week start
|
||||
</script>
|
||||
<?php
|
||||
|
||||
echo " <INPUT TYPE=TEXT NAME=query_date_T SIZE=9 MAXLENGTH=8 VALUE=\"$query_date_T\">";
|
||||
|
||||
echo "<BR> "._QXZ("to")." <BR><INPUT TYPE=TEXT NAME=end_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$end_date_D\">";
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
var o_cal = new tcal ({
|
||||
// form name
|
||||
'formname': 'vicidial_report',
|
||||
// input name
|
||||
'controlname': 'end_date_D'
|
||||
});
|
||||
o_cal.a_tpl.yearscroll = false;
|
||||
// o_cal.a_tpl.weekstart = 1; // Monday week start
|
||||
</script>
|
||||
<?php
|
||||
|
||||
echo " <INPUT TYPE=TEXT NAME=end_date_T SIZE=9 MAXLENGTH=8 VALUE=\"$end_date_T\">";
|
||||
|
||||
# echo "</TD><TD VALIGN=TOP> Campaigns:<BR>";
|
||||
# echo "<SELECT SIZE=5 NAME=group[] multiple>\n";
|
||||
# if (preg_match('/\-\-ALL\-\-/',$group_string))
|
||||
# {echo "<option value=\"--ALL--\" selected>-- ALL CAMPAIGNS --</option>\n";}
|
||||
# else
|
||||
# {echo "<option value=\"--ALL--\">-- ALL CAMPAIGNS --</option>\n";}
|
||||
# $o=0;
|
||||
# while ($campaigns_to_print > $o)
|
||||
# {
|
||||
# if (preg_match("/$groups[$o]\|/i",$group_string)) {echo "<option selected value=\"$groups[$o]\">$groups[$o]</option>\n";}
|
||||
# else {echo "<option value=\"$groups[$o]\">$groups[$o]</option>\n";}
|
||||
# $o++;
|
||||
# }
|
||||
# echo "</SELECT>\n";
|
||||
|
||||
echo "</TD><TD VALIGN=TOP>"._QXZ("User Groups").":<BR>";
|
||||
echo "<SELECT SIZE=5 NAME=user_group[] multiple>\n";
|
||||
|
||||
if (preg_match('/\-\-ALL\-\-/',$user_group_string))
|
||||
{echo "<option value=\"--ALL--\" selected>-- "._QXZ("ALL USER GROUPS")." --</option>\n";}
|
||||
else
|
||||
{echo "<option value=\"--ALL--\">-- "._QXZ("ALL USER GROUPS")." --</option>\n";}
|
||||
$o=0;
|
||||
while ($user_groups_to_print > $o)
|
||||
{
|
||||
if (preg_match("/\|$user_groups[$o]\|/i",$user_group_string)) {echo "<option selected value=\"$user_groups[$o]\">$user_groups[$o]</option>\n";}
|
||||
else {echo "<option value=\"$user_groups[$o]\">$user_groups[$o]</option>\n";}
|
||||
$o++;
|
||||
}
|
||||
echo "</SELECT>\n";
|
||||
echo "</TD><TD VALIGN=TOP>";
|
||||
echo _QXZ("Display as").": <BR>";
|
||||
echo "<select name='report_display_type'>";
|
||||
if ($report_display_type) {echo "<option value='$report_display_type' selected>$report_display_type</option>";}
|
||||
echo "<option value='TEXT'>"._QXZ("TEXT")."</option><option value='HTML'>"._QXZ("HTML")."</option></select>\n<BR><BR>";
|
||||
echo "</TD><TD VALIGN=TOP>"._QXZ("Shift").":<BR>";
|
||||
echo "<SELECT SIZE=1 NAME=shift>\n";
|
||||
echo "<option selected value=\"$shift\">$shift</option>\n";
|
||||
echo "<option value=\"\">--</option>\n";
|
||||
echo "<option value=\"AM\">"._QXZ("AM")."</option>\n";
|
||||
echo "<option value=\"PM\">"._QXZ("PM")."</option>\n";
|
||||
echo "<option value=\"ALL\">"._QXZ("ALL")."</option>\n";
|
||||
echo "</SELECT><BR><BR>\n";
|
||||
|
||||
|
||||
?>
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
|
||||
function submit_form()
|
||||
{
|
||||
document.vicidial_report.end_date.value = document.vicidial_report.end_date_D.value + " " + document.vicidial_report.end_date_T.value;
|
||||
document.vicidial_report.query_date.value = document.vicidial_report.query_date_D.value + " " + document.vicidial_report.query_date_T.value;
|
||||
|
||||
document.vicidial_report.submit();
|
||||
}
|
||||
|
||||
</SCRIPT>
|
||||
|
||||
<input type=button value="<?php echo _QXZ("SUBMIT"); ?>" name=smt id=smt onClick="submit_form()">
|
||||
<?php
|
||||
|
||||
|
||||
echo "</TD><TD VALIGN=TOP> ";
|
||||
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> \n";
|
||||
echo " <a href=\"$LINKbase&stage=$stage&file_download=1\">"._QXZ("DOWNLOAD")."</a> | \n";
|
||||
echo " <a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a> </FONT>\n";
|
||||
echo "</FONT>\n";
|
||||
echo "</TD></TR></TABLE>";
|
||||
|
||||
echo "</FORM>\n\n";
|
||||
############################################################################
|
||||
##### END HTML form section
|
||||
############################################################################
|
||||
|
||||
|
||||
$ENDtime = date("U");
|
||||
$RUNtime = ($ENDtime - $STARTtime);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# This report is designed to show the breakdown by list_id of the calls and
|
||||
# their statuses for all lists within a campaign for a set time period
|
||||
#
|
||||
# Copyright (C) 2015 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -21,6 +21,7 @@
|
||||
# 141230-1516 - Added code for on-the-fly language translations display
|
||||
# 150516-1312 - Fixed Javascript element problem, Issue #857
|
||||
# 151219-0107 - Added option for searching archived data
|
||||
# 160227-1059 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -308,6 +309,9 @@ else
|
||||
$query_date="$query_date_D $query_date_T";
|
||||
$end_date="$end_date_D $end_date_T";
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HTML_head.="<HTML>\n";
|
||||
$HTML_head.="<HEAD>\n";
|
||||
$HTML_head.="<STYLE type=\"text/css\">\n";
|
||||
@@ -329,16 +333,21 @@ $short_header=1;
|
||||
|
||||
# require("admin_header.php");
|
||||
|
||||
$HTML_text.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$HTML_text.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
$HTML_text.="<b>"._QXZ("$report_name")."</b> $NWB#campaign_status_list_report$NWE\n";
|
||||
|
||||
$HTML_text.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$HTML_text.="<TABLE CELLSPACING=3><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
$HTML_text.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
$HTML_text.="<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
$HTML_text.="<INPUT TYPE=hidden NAME=query_date ID=query_date VALUE=\"$query_date\">\n";
|
||||
$HTML_text.="<INPUT TYPE=hidden NAME=end_date ID=end_date VALUE=\"$end_date\">\n";
|
||||
$HTML_text.="<INPUT TYPE=TEXT NAME=query_date_D SIZE=11 MAXLENGTH=10 VALUE=\"$query_date_D\">";
|
||||
|
||||
$HTML_text.="<script language=\"JavaScript\">\n";
|
||||
$HTML_text.="function openNewWindow(url)\n";
|
||||
$HTML_text.=" {\n";
|
||||
$HTML_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$HTML_text.=" }\n";
|
||||
$HTML_text.="var o_cal = new tcal ({\n";
|
||||
$HTML_text.=" // form name\n";
|
||||
$HTML_text.=" 'formname': 'vicidial_report',\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_dialer_inventory_report.php
|
||||
#
|
||||
# Copyright (C) 2014 Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
# Matt Florell <vicidial@gmail.com>
|
||||
#
|
||||
# NOTES:
|
||||
@@ -22,6 +22,7 @@
|
||||
# 140328-0005 - Converted division calculations to use MathZDC function
|
||||
# 141114-0006 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1509 - Added code for on-the-fly language translations display
|
||||
# 160227-1933 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -350,6 +351,9 @@ while ($ss_row=mysqli_fetch_row($snapshot_rslt))
|
||||
}
|
||||
$snapshot_span_txt.="</SELECT>\n";
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HTML_header.="<HTML>\n";
|
||||
$HTML_header.="<HEAD>\n";
|
||||
$HTML_header.="<STYLE type='text/css'>\n";
|
||||
@@ -364,6 +368,10 @@ $HTML_header.=" </STYLE>\n";
|
||||
if ($report_type=='LIST') {$onload="onload=\"ToggleSpan('list_span', 'campaign_span')\"";}
|
||||
|
||||
$HTML_header.="<script language='Javascript'>\n";
|
||||
$HTML_header.="function openNewWindow(url)\n";
|
||||
$HTML_header.=" {\n";
|
||||
$HTML_header.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$HTML_header.=" }\n";
|
||||
$HTML_header.="function ToggleSpan(show_span, hide_span) {\n";
|
||||
$HTML_header.="\n";
|
||||
$HTML_header.=" if (show_span) {document.getElementById(show_span).style.display = 'block';}\n";
|
||||
@@ -899,11 +907,12 @@ if ($SUBMIT)
|
||||
$HTML_header.="</PRE>\n";
|
||||
###############################
|
||||
|
||||
$HTML_text="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>\n";
|
||||
$HTML_text="<b>"._QXZ("$report_name")."</b> $NWB#dialer_inventory_report$NWE\n";
|
||||
$HTML_text.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
$HTML_text.="\n";
|
||||
$HTML_text.="<FORM ACTION='$PHP_SELF' METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$HTML_text.="<INPUT TYPE=hidden NAME=DB VALUE='$DB'>\n";
|
||||
$HTML_text.="<TABLE CELLSPACING=3><TR height='200'><TD VALIGN=TOP>\n";
|
||||
$HTML_text.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR height='150'><TD VALIGN=TOP>\n";
|
||||
$HTML_text.=" <table width='*' align='center'>\n";
|
||||
$HTML_text.=" <tr><td>"._QXZ("Report type").":</td></tr>\n";
|
||||
if ($report_type=='LIST') {$cmp_checked=""; $list_checked="checked";} else {$cmp_checked="checked"; $list_checked="";}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_email_log_report.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# report of emails handled by the system
|
||||
#
|
||||
@@ -17,12 +17,13 @@
|
||||
# 141113-2048 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1504 - Added code for on-the-fly language translations display
|
||||
# 151219-0117 - Added option for searching archived data
|
||||
# 160227-1045 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
|
||||
$version = '2.10-10';
|
||||
$build = '141230-1504';
|
||||
$version = '2.12-11';
|
||||
$build = '160227-1045';
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -333,6 +334,9 @@ else
|
||||
}
|
||||
if (strlen($group_SQL)<3) {$group_SQL="''";}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -353,6 +357,10 @@ $HEADER.="<script language=\"JavaScript\" src=\"wz_jsgraphics.js\"></script>\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"line.js\"></script>\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"line.js\"></script>\n";
|
||||
$HEADER.="<script language=\"JavaScript\">\n";
|
||||
$HEADER.="function openNewWindow(url)\n";
|
||||
$HEADER.=" {\n";
|
||||
$HEADER.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$HEADER.=" }\n";
|
||||
$HEADER.="function OpenWindow(URL) {\n";
|
||||
$HEADER.="\tvar ns = navigator.appName == \"Netscape\";\n";
|
||||
$HEADER.="\tif (ns)\n";
|
||||
@@ -378,7 +386,8 @@ $short_header=1;
|
||||
|
||||
#require("admin_header.php");
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#email_log_report$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
if ($DB > 0)
|
||||
{
|
||||
@@ -390,7 +399,7 @@ if ($DB > 0)
|
||||
}
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE BORDER=0><TR><TD VALIGN=TOP><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>\n";
|
||||
$MAIN.="<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.=_QXZ("Date Range").":<BR>\n";
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_inbound_daily_report.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -25,6 +25,7 @@
|
||||
# 150218-1142 - Fix for download issue
|
||||
# 150516-1313 - Fixed Javascript element problem, Issue #857
|
||||
# 151125-1629 - Added search archive option
|
||||
# 160227-1142 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -357,6 +358,9 @@ while ($i < $times_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -384,12 +388,19 @@ $short_header=1;
|
||||
|
||||
# require("admin_header.php");
|
||||
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#inbound_daily_report$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR valign='bottom'><TD colspan=2>";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR valign='top'><TD>";
|
||||
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
$MAIN.="<script language=\"JavaScript\">\n";
|
||||
$MAIN.="function openNewWindow(url)\n";
|
||||
$MAIN.=" {\n";
|
||||
$MAIN.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$MAIN.=" }\n";
|
||||
$MAIN.="var o_cal = new tcal ({\n";
|
||||
$MAIN.=" // form name\n";
|
||||
$MAIN.=" 'formname': 'vicidial_report',\n";
|
||||
@@ -412,7 +423,7 @@ $MAIN.="});\n";
|
||||
$MAIN.="o_cal.a_tpl.yearscroll = false;\n";
|
||||
$MAIN.="// o_cal.a_tpl.weekstart = 1; // Monday week start\n";
|
||||
$MAIN.="</script>\n";
|
||||
|
||||
$MAIN.="</TD><TD rowspan=2>\n";
|
||||
$MAIN.="<SELECT SIZE=5 NAME=group[] multiple>\n";
|
||||
$MAIN.="<option $all_selected value=\"--ALL--\">--"._QXZ("ALL INGROUPS")."--</option>\n";
|
||||
|
||||
@@ -450,12 +461,13 @@ if ($IDR_calltime_available==1)
|
||||
}
|
||||
|
||||
$MAIN.="<INPUT TYPE=submit NAME=SUBMIT VALUE='"._QXZ("SUBMIT")."'></TD></TR>\n";
|
||||
$MAIN.="<TR><TD align='left'><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><INPUT TYPE=checkbox NAME=hourly_breakdown VALUE='checked' $hourly_breakdown>"._QXZ("Show hourly results")."<BR><INPUT TYPE=checkbox NAME=show_disposition_statuses VALUE='checked' $show_disposition_statuses>"._QXZ("Show disposition statuses")."<BR><INPUT TYPE=checkbox NAME=ignore_afterhours VALUE='checked' $ignore_afterhours>"._QXZ("Ignore after-hours calls");
|
||||
$MAIN.="<TR><TD align='left' rowspan=2><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><INPUT TYPE=checkbox NAME=hourly_breakdown VALUE='checked' $hourly_breakdown>"._QXZ("Show hourly results")."<BR><INPUT TYPE=checkbox NAME=show_disposition_statuses VALUE='checked' $show_disposition_statuses>"._QXZ("Show disposition statuses")."<BR><INPUT TYPE=checkbox NAME=ignore_afterhours VALUE='checked' $ignore_afterhours>"._QXZ("Ignore after-hours calls");
|
||||
if ($archives_available=="Y")
|
||||
{
|
||||
$MAIN.="<BR><input type='checkbox' name='search_archived_data' value='checked' $search_archived_data>"._QXZ("Search archived data")."\n";
|
||||
}
|
||||
$MAIN.="</FONT></TD><TD align='right'><a href=\"$PHP_SELF?DB=$DB&query_date=$query_date&end_date=$end_date$selected_group_URLstr&shift=$shift&hourly_breakdown=$hourly_breakdown&show_disposition_statuses=$show_disposition_statuses&SUBMIT=$SUBMIT&file_download=1&search_archived_data=$search_archived_data\">"._QXZ("DOWNLOAD")."</a> | <a href=\"./admin.php?ADD=3111&group_id=$group[0]\">"._QXZ("MODIFY")."</a> | <a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a></TD></TR>\n";
|
||||
$MAIN.="</FONT></TD></TR><TR><TD align='right'><a href=\"$PHP_SELF?DB=$DB&query_date=$query_date&end_date=$end_date$selected_group_URLstr&shift=$shift&hourly_breakdown=$hourly_breakdown&show_disposition_statuses=$show_disposition_statuses&SUBMIT=$SUBMIT&file_download=1&search_archived_data=$search_archived_data\">"._QXZ("DOWNLOAD")."</a> | <a href=\"./admin.php?ADD=3111&group_id=$group[0]\">"._QXZ("MODIFY")."</a> | <a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a></TD></TR>\n";
|
||||
$MAIN.="</TD></TR></TABLE>\n";
|
||||
$MAIN.="<TR><TD colspan=2>";
|
||||
$MAIN.="<PRE><FONT SIZE=2>\n\n";
|
||||
|
||||
|
||||
@@ -96,10 +96,11 @@
|
||||
# 150919-0238 - Added display for chats in queue
|
||||
# 150925-2223 - Added User option to hide users from real-time report
|
||||
# 160104-1059 - Added detection of dead chat sessions
|
||||
# 160227-1031 - Added INGROUPcolorOVERRIDE option
|
||||
#
|
||||
|
||||
$version = '2.12-84';
|
||||
$build = '160104-1059';
|
||||
$version = '2.12-85';
|
||||
$build = '160227-1031';
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -165,6 +166,8 @@ 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["INGROUPcolorOVERRIDE"])) {$INGROUPcolorOVERRIDE=$_GET["INGROUPcolorOVERRIDE"];}
|
||||
elseif (isset($_POST["INGROUPcolorOVERRIDE"])) {$INGROUPcolorOVERRIDE=$_POST["INGROUPcolorOVERRIDE"];}
|
||||
if (isset($_GET["RTajax"])) {$RTajax=$_GET["RTajax"];}
|
||||
elseif (isset($_POST["RTajax"])) {$RTajax=$_POST["RTajax"];}
|
||||
if (isset($_GET["RTuser"])) {$RTuser=$_GET["RTuser"];}
|
||||
@@ -1084,7 +1087,7 @@ else
|
||||
</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&droppedOFtotal=$droppedOFtotal\">\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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">\n";
|
||||
echo "<TITLE>$report_name: $group</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
$short_header=1;
|
||||
@@ -1125,6 +1128,7 @@ if ($RTajax < 1)
|
||||
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 "<INPUT TYPE=HIDDEN NAME=INGROUPcolorOVERRIDE VALUE=\"$INGROUPcolorOVERRIDE\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=droppedOFtotal VALUE=\"$droppedOFtotal\">\n";
|
||||
echo _QXZ("$report_name")." \n";
|
||||
echo "<span style=\"position:absolute;left:160px;top:27px;z-index:19;\" id=campaign_select_list>\n";
|
||||
@@ -1135,9 +1139,9 @@ if ($RTajax < 1)
|
||||
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&droppedOFtotal=$droppedOFtotal\">"._QXZ("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&droppedOFtotal=$droppedOFtotal\">"._QXZ("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&droppedOFtotal=$droppedOFtotal\">"._QXZ("GO")."</a>";
|
||||
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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("GO")."</a>";
|
||||
if (preg_match('/ALL\-ACTIVE/i',$group_string))
|
||||
{
|
||||
echo " <a href=\"./admin.php?ADD=10\">"._QXZ("MODIFY")."</a> | \n";
|
||||
@@ -1912,60 +1916,60 @@ if ($RTajax < 1)
|
||||
{
|
||||
if ($adastats<2)
|
||||
{
|
||||
echo "<a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>+ "._QXZ("VIEW MORE")."</font></a>";
|
||||
echo "<a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>+ "._QXZ("VIEW MORE")."</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>- "._QXZ("VIEW LESS")."</font></a>";
|
||||
echo "<a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>- "._QXZ("VIEW LESS")."</font></a>";
|
||||
}
|
||||
if ($UGdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE USER GROUP")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE USER GROUP")."</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("VIEW USER GROUP")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("VIEW USER GROUP")."</font></a>";
|
||||
}
|
||||
if ($SERVdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE SERVER INFO")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE SERVER INFO")."</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW SERVER INFO")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW SERVER INFO")."</font></a>";
|
||||
}
|
||||
if ($CALLSdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE WAITING CALLS")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE WAITING CALLS")."</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW WAITING CALLS")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW WAITING CALLS")."</font></a>";
|
||||
}
|
||||
|
||||
if ($ALLINGROUPstats>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE IN-GROUP STATS")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE IN-GROUP STATS")."</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW IN-GROUP STATS")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW IN-GROUP STATS")."</font></a>";
|
||||
}
|
||||
if ($PHONEdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE PHONES")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE PHONES")."</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW PHONES")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW PHONES")."</font></a>";
|
||||
}
|
||||
if ($CUSTPHONEdisplay>0)
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE CUSTPHONES")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("HIDE CUSTPHONES")."</font></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW CUSTPHONES")."</font></a>";
|
||||
echo " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\"><font size=1>"._QXZ("SHOW CUSTPHONES")."</font></a>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2302,13 +2306,13 @@ $HTbegin = "|";
|
||||
$HDstation = "----------------+";
|
||||
$HTstation = " "._QXZ("STATION", 14)." |";
|
||||
$HDphone = "-------------+";
|
||||
$HTphone = " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\">"._QXZ("PHONE",11)."</a> |";
|
||||
$HTphone = " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("PHONE",11)."</a> |";
|
||||
if ($RTajax > 0)
|
||||
{$HTphone = " <a href=\"#\" onclick=\"update_variables('orderby','phone');\">"._QXZ("PHONE",11)."</a> |";}
|
||||
$HDuser = "------------------------+";
|
||||
|
||||
|
||||
$HTuser = " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\">"._QXZ("USER",5)."</a> ";
|
||||
$HTuser = " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("USER",5)."</a> ";
|
||||
if ($RTajax > 0)
|
||||
{$HTuser = " <a href=\"#\" onclick=\"update_variables('orderby','user');\">"._QXZ("USER",5)."</a> ";}
|
||||
if ($UidORname>0)
|
||||
@@ -2317,7 +2321,7 @@ if ($UidORname>0)
|
||||
{$HTuser .= "<a href=\"#\" onclick=\"update_variables('UidORname','');\">"._QXZ("SHOW ID",8)."</a> ";}
|
||||
else
|
||||
{
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\">"._QXZ("SHOW ID",8)."</a> ";
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("SHOW ID",8)."</a> ";
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -2326,7 +2330,7 @@ else
|
||||
{$HTuser .= "<a href=\"#\" onclick=\"update_variables('UidORname','');\">"._QXZ("SHOW NAME",9)."</a>";}
|
||||
else
|
||||
{
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\">"._QXZ("SHOW NAME",9)."</a>";
|
||||
$HTuser .= "<a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("SHOW NAME",9)."</a>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2334,7 +2338,7 @@ $HTuser .= " "._QXZ("INFO",6)." |";
|
||||
|
||||
|
||||
$HDusergroup = "--------------+";
|
||||
$HTusergroup = " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\">"._QXZ("USER GROUP",12)."</a> |";
|
||||
$HTusergroup = " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("USER GROUP",12)."</a> |";
|
||||
if ($RTajax > 0)
|
||||
{$HTusergroup = " <a href=\"#\" onclick=\"update_variables('orderby','group');\">"._QXZ("USER GROUP",12)."</a> |";}
|
||||
$HDsessionid = "------------------+";
|
||||
@@ -2352,11 +2356,11 @@ $HTserver_ip = " "._QXZ("SERVER IP",15)." |";
|
||||
$HDcall_server_ip = "-----------------+";
|
||||
$HTcall_server_ip = " "._QXZ("CALL SERVER IP",15)." |";
|
||||
$HDtime = "---------+";
|
||||
$HTtime = " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\">MM:SS</a> |";
|
||||
$HTtime = " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">MM:SS</a> |";
|
||||
if ($RTajax > 0)
|
||||
{$HTtime = " <a href=\"#\" onclick=\"update_variables('orderby','time');\">MM:SS</a> |";}
|
||||
$HDcampaign = "------------+";
|
||||
$HTcampaign = " <a href=\"$PHP_SELF?$usergroupQS$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&droppedOFtotal=$droppedOFtotal\">"._QXZ("CAMPAIGN",10)."</a> |";
|
||||
$HTcampaign = " <a href=\"$PHP_SELF?$usergroupQS$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&INGROUPcolorOVERRIDE=$INGROUPcolorOVERRIDE&droppedOFtotal=$droppedOFtotal\">"._QXZ("CAMPAIGN",10)."</a> |";
|
||||
if ($RTajax > 0)
|
||||
{$HTcampaign = " <a href=\"#\" onclick=\"update_variables('orderby','campaign');\">"._QXZ("CAMPAIGN",10)."</a> |";}
|
||||
$HDcalls = "-------+";
|
||||
@@ -2901,9 +2905,10 @@ $talking_to_print = mysqli_num_rows($rslt);
|
||||
$INGRP='';
|
||||
if ($CM == 'I')
|
||||
{
|
||||
$stmt="SELECT vac.campaign_id,vac.stage,vig.group_name from vicidial_auto_calls vac,vicidial_inbound_groups vig where vac.callerid='$Acallerid[$i]' and vac.campaign_id=vig.group_id LIMIT 1;";
|
||||
$stmt="SELECT vac.campaign_id,vac.stage,vig.group_name,vig.group_id from vicidial_auto_calls vac,vicidial_inbound_groups vig where vac.callerid='$Acallerid[$i]' and vac.campaign_id=vig.group_id LIMIT 1;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$ING=$G; $INEG=$EG;
|
||||
$ingrp_to_print = mysqli_num_rows($rslt);
|
||||
if ($ingrp_to_print > 0)
|
||||
{
|
||||
@@ -2911,9 +2916,13 @@ $talking_to_print = mysqli_num_rows($rslt);
|
||||
$vac_campaign = sprintf("%-20s", "$row[0] - $row[2]");
|
||||
$row[1] = preg_replace('/.*\-/i', '',$row[1]);
|
||||
$vac_stage = sprintf("%-4s", $row[1]);
|
||||
|
||||
if ( ($INGROUPcolorOVERRIDE>0) or ($INGROUPcolorOVERRIDE=='YES') )
|
||||
{
|
||||
$ING='<SPAN class="csc'.$row[3].'"><B>'; $INEG='</B></SPAN>';
|
||||
}
|
||||
}
|
||||
|
||||
$INGRP = " $G$vac_stage$EG | $G$vac_campaign$EG ";
|
||||
$INGRP = " $ING$vac_stage$INEG | $ING$vac_campaign$INEG ";
|
||||
}
|
||||
|
||||
$agentcount++;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# called_counts_multilist_report.php
|
||||
#
|
||||
# Copyright (C) 2015 Joe Johnson <freewermadmin@gmail.com>, Matt Florell <mattf@vicidial.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Joe Johnson <freewermadmin@gmail.com>, Matt Florell <mattf@vicidial.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This is a report designed for showing called counts similar to the results
|
||||
# at the bottom of each list detail screen, but for multiple lists and using
|
||||
@@ -14,6 +14,7 @@
|
||||
# 141114-0045 - Finalized adding QXZ translation to all admin files
|
||||
# 141230-1346 - Added code for on-the-fly language translations display
|
||||
# 151229-2050 - Added archive search option
|
||||
# 160227-1036 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -61,6 +62,10 @@ if (strlen($include_rollover)<2) {$include_rollover='NO';}
|
||||
$report_name = 'Called Counts List IDs Report';
|
||||
$db_source = 'M';
|
||||
$JS_text="<script language='Javascript'>\n";
|
||||
$JS_text.="function openNewWindow(url)\n";
|
||||
$JS_text.=" {\n";
|
||||
$JS_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$JS_text.=" }\n";
|
||||
$JS_onload="onload = function() {\n";
|
||||
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
@@ -446,6 +451,9 @@ else
|
||||
}
|
||||
*/
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HEADER.="<!DOCTYPE HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<STYLE type=\"text/css\">\n";
|
||||
@@ -461,8 +469,8 @@ $HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
|
||||
$HEADER.="<script language=\"JavaScript\">\n";
|
||||
$HEADER.="$JS_text";
|
||||
#$HEADER.="<script language=\"JavaScript\">\n";
|
||||
$list_stmt="select list_id, list_name, campaign_id from vicidial_lists $whereLOGallowed_campaignsSQL order by list_id asc";
|
||||
$list_rslt=mysql_to_mysqli($list_stmt, $link);
|
||||
$list_rows=mysqli_num_rows($list_rslt);
|
||||
@@ -544,10 +552,11 @@ $draw_graph=1;
|
||||
|
||||
#require("admin_header.php");
|
||||
|
||||
$MAIN.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#called_counts_multilist_report$NWE\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE CELLSPACING=3><TR><TD VALIGN=TOP><input type='checkbox' name='override_date' value='1' checked>"._QXZ("All dates")."<BR><BR>"._QXZ("Dates").":<BR>";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP><input type='checkbox' name='override_date' value='1' checked>"._QXZ("All dates")."<BR><BR>"._QXZ("Dates").":<BR>";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=outbound_rate VALUE=\"$outbound_rate\">\n";
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
@@ -649,6 +658,8 @@ if (strlen($QUERY_STRING) > 5)
|
||||
} else {
|
||||
$lead_id_str=" and lead_id in ($lead_id_str) ";
|
||||
}
|
||||
} else {
|
||||
$lead_id_str=" and lead_id is null ";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# fcstats.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -31,6 +31,8 @@
|
||||
# 141230-1345 - Added code for on-the-fly language translations display
|
||||
# 150516-1317 - Fixed Javascript element problem, Issue #857
|
||||
# 151125-1642 - Added search archive option
|
||||
# 160211-2249 - Overhauled report calculations and labeling to make the report more accurate and "universal"
|
||||
# 160227-1131 - Uniform form format
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -66,6 +68,10 @@ if (strlen($shift)<2) {$shift='ALL';}
|
||||
$report_name = 'Fronter - Closer Report';
|
||||
$db_source = 'M';
|
||||
$JS_text="<script language='Javascript'>\n";
|
||||
$JS_text.="function openNewWindow(url)\n";
|
||||
$JS_text.=" {\n";
|
||||
$JS_text.=" window.open (url,\"\",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');\n";
|
||||
$JS_text.=" }\n";
|
||||
$JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
@@ -296,6 +302,9 @@ while ($i < $groups_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$HTML_head.="<HTML>\n";
|
||||
$HTML_head.="<HEAD>\n";
|
||||
$HTML_head.="<STYLE type=\"text/css\">\n";
|
||||
@@ -311,19 +320,6 @@ $HTML_head.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n"
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
#if (strlen($group) > 0)
|
||||
# {
|
||||
# if (preg_match("/\|$group\|/i",$groups_string))
|
||||
# {
|
||||
# # $HTML_head.="<!-- group set: $group $groups_string -->\n";
|
||||
# }
|
||||
# else
|
||||
# {
|
||||
# # $HTML_head.="<!-- group not found: $group $groups_string -->\n";
|
||||
# $group='';
|
||||
# }
|
||||
# }
|
||||
|
||||
$HTML_head.="<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
$HTML_head.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
@@ -331,7 +327,8 @@ $HTML_head.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE m
|
||||
|
||||
# require("admin_header.php");
|
||||
|
||||
$HTML_text.="<TABLE CELLPADDING=4 CELLSPACING=0><TR><TD>";
|
||||
$HTML_text.="<b>"._QXZ("$report_name")."</b> $NWB#fcstats$NWE\n";
|
||||
$HTML_text.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD>";
|
||||
|
||||
$HTML_text.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$HTML_text.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
@@ -378,6 +375,7 @@ $HTML_text.="<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
$HTML_text.="<INPUT TYPE=submit NAME=SUBMIT VALUE=SUBMIT>\n";
|
||||
$HTML_text.="<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> <a href=\"$PHP_SELF?query_date=$query_date&group=$group&shift=$shift&file_download=1&search_archived_data=$search_archived_data\">"._QXZ("DOWNLOAD")."</a> | <a href=\"./admin.php?ADD=3111&group_id=$group\">"._QXZ("MODIFY")."</a> | <a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a><BR/></FONT>\n";
|
||||
$HTML_text.="</FORM>\n\n";
|
||||
$HTML_text.="</TD></TR></TABLE>\n";
|
||||
|
||||
$HTML_text.="<PRE><FONT SIZE=2>\n\n";
|
||||
|
||||
@@ -433,14 +431,6 @@ $stmt="select count(*) from ".$vicidial_closer_log_table." where call_date >= '$
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {$HTML_text.="$stmt\n";}
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$A1_points = ($row[0] * 1);
|
||||
$A1_points = sprintf("%10s", $A1_points);
|
||||
$A1_tally = sprintf("%10s", $row[0]);
|
||||
|
||||
$TOT_tally = ($A1_tally + $A2_tally + $A3_tally + $A4_tally);
|
||||
$TOT_points = ($A1_points + $A2_points + $A3_points + $A4_points);
|
||||
$TOT_tally = sprintf("%10s", $TOT_tally);
|
||||
$TOT_points = sprintf("%10s", $TOT_points);
|
||||
|
||||
$HTML_text.=_QXZ("STATUS",8)." "._QXZ("CUSTOMERS")."\n";
|
||||
$HTML_text.=_QXZ("SALES").": $A1_tally\n";
|
||||
@@ -461,15 +451,6 @@ $HTML_text.="\n";
|
||||
$TOTagents=0;
|
||||
$TOTcalls=0;
|
||||
$TOTsales=0;
|
||||
$totA1=0;
|
||||
$totA2=0;
|
||||
$totA3=0;
|
||||
$totA4=0;
|
||||
$totA5=0;
|
||||
$totA6=0;
|
||||
$totA7=0;
|
||||
$totA8=0;
|
||||
$totA9=0;
|
||||
$totDROP=0;
|
||||
$totOTHER=0;
|
||||
|
||||
@@ -477,15 +458,15 @@ $CSV_fronter_header="\""._QXZ("TOTALS FOR")." $query_date_BEGIN "._QXZ("to")." $
|
||||
$CSV_fronter_header.="\""._QXZ("STATUS CUSTOMERS")."\"\n";
|
||||
$CSV_fronter_header.="\""._QXZ("SALES").": $A1_tally\"\n\n";
|
||||
$CSV_fronter_header.="\""._QXZ("FRONTER STATS")."\"\n";
|
||||
$CSV_fronter_header.="\""._QXZ("AGENT")."\",\""._QXZ("SUCCESS")."\",\""._QXZ("XFERS")."\",\""._QXZ("SUCCESS")."%\",\""._QXZ("SALE")."\",\""._QXZ("DROP")."\",\""._QXZ("OTHER")."\"\n";
|
||||
$CSV_fronter_header.="\""._QXZ("AGENT")."\",\""._QXZ("XFERS")."\",\""._QXZ("SALE")."%\",\""._QXZ("SALE")."\",\""._QXZ("DROP")."\",\""._QXZ("OTHER")."\"\n";
|
||||
$CSV_fronter_lines="";
|
||||
$CSV_fronter_footer="";
|
||||
|
||||
$ASCII_text="\n";
|
||||
$ASCII_text.="---------- "._QXZ("FRONTER STATS")."\n";
|
||||
$ASCII_text.="+--------------------------+-------+--------+--------+------+------+------+\n";
|
||||
$ASCII_text.="| "._QXZ("AGENT",24)." |"._QXZ("SUCCESS",7)."| "._QXZ("XFERS",6)." |"._QXZ("SUCCESS",7)."%| "._QXZ("SALE",4)." | "._QXZ("DROP",4)." |"._QXZ("OTHER",5)." |\n";
|
||||
$ASCII_text.="+--------------------------+-------+--------+--------+------+------+------+\n";
|
||||
$ASCII_text.="+--------------------------+--------+--------+------+------+------+\n";
|
||||
$ASCII_text.="| "._QXZ("AGENT",24)." | "._QXZ("XFERS",6)." |"._QXZ("SALE",7)."%| "._QXZ("SALE",4)." | "._QXZ("DROP",4)." |"._QXZ("OTHER",5)." |\n";
|
||||
$ASCII_text.="+--------------------------+--------+--------+------+------+------+\n";
|
||||
|
||||
######## GRAPHING #########
|
||||
$graph_stats=array();
|
||||
@@ -496,19 +477,17 @@ $max_sales=1;
|
||||
$max_drops=1;
|
||||
$max_other=1;
|
||||
$GRAPH="<a name='frontergraph'/><table border='0' cellpadding='0' cellspacing='2' width='800'>";
|
||||
$GRAPH.="<tr><th width='16%' class='grey_graph_cell' id='frontergraph1'><a href='#' onClick=\"DrawFronterGraph('SUCCESS', '1'); return false;\">"._QXZ("SUCCESS")."</a></th><th width='17%' class='grey_graph_cell' id='frontergraph2'><a href='#' onClick=\"DrawFronterGraph('XFERS', '2'); return false;\">"._QXZ("XFERS")."</a></th><th width='17%' class='grey_graph_cell' id='frontergraph3'><a href='#' onClick=\"DrawFronterGraph('SUCCESSPCT', '3'); return false;\">"._QXZ("SUCCESS")." %</a></th><th width='16%' class='grey_graph_cell' id='frontergraph4'><a href='#' onClick=\"DrawFronterGraph('SALE', '4'); return false;\">"._QXZ("SALE")."</a></th><th width='17%' class='grey_graph_cell' id='frontergraph5'><a href='#' onClick=\"DrawFronterGraph('DROP', '5'); return false;\">"._QXZ("DROP")."</a></th><th width='17%' class='grey_graph_cell' id='frontergraph6'><a href='#' onClick=\"DrawFronterGraph('OTHER', '6'); return false;\">"._QXZ("OTHER")."</a></th></tr>";
|
||||
$GRAPH.="<tr><td colspan='6' class='graph_span_cell'><span id='fronter_graph'><BR> <BR></span></td></tr></table><BR><BR>";
|
||||
$GRAPH.="<tr><th width='20%' class='grey_graph_cell' id='frontergraph1'><a href='#' onClick=\"DrawFronterGraph('XFERS', '1'); return false;\">"._QXZ("XFERS")."</a></th><th width='20%' class='grey_graph_cell' id='frontergraph2'><a href='#' onClick=\"DrawFronterGraph('SALEPCT', '2'); return false;\">"._QXZ("SALE")." %</a></th><th width='20%' class='grey_graph_cell' id='frontergraph3'><a href='#' onClick=\"DrawFronterGraph('SALE', '3'); return false;\">"._QXZ("SALE")."</a></th><th width='20%' class='grey_graph_cell' id='frontergraph4'><a href='#' onClick=\"DrawFronterGraph('DROP', '4'); return false;\">"._QXZ("DROP")."</a></th><th width='20%' class='grey_graph_cell' id='frontergraph5'><a href='#' onClick=\"DrawFronterGraph('OTHER', '5'); return false;\">"._QXZ("OTHER")."</a></th></tr>";
|
||||
$GRAPH.="<tr><td colspan='5' class='graph_span_cell'><span id='fronter_graph'><BR> <BR></span></td></tr></table><BR><BR>";
|
||||
$graph_header="<table cellspacing='0' cellpadding='0' summary='STATUS' class='horizontalgraph'><caption align='top'>"._QXZ("FRONTER STATS")."</caption><tr><th class='thgraph' scope='col'>"._QXZ("AGENT")."</th>";
|
||||
$SUCCESS_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("SUCCESS")." </th></tr>";
|
||||
$XFERS_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("XFERS")."</th></tr>";
|
||||
$SUCCESSPCT_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("SUCCESS")." %</th></tr>";
|
||||
$SALEPCT_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("SALE")." %</th></tr>";
|
||||
$SALE_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("SALE")."</th></tr>";
|
||||
$DROP_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("DROP")."</th></tr>";
|
||||
$OTHER_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("OTHER")."</th></tr>";
|
||||
###########################
|
||||
|
||||
#$stmt="select vicidial_xfer_log.user,full_name,count(*) from vicidial_xfer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysqli_real_escape_string($link, $group) . "' and vicidial_xfer_log.user is not null and vicidial_xfer_log.user=vicidial_users.user group by vicidial_xfer_log.user;";
|
||||
$stmt="select user,count(distinct lead_id) from ".$vicidial_xfer_log_table." where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysqli_real_escape_string($link, $group) . "' and user is not null group by user;";
|
||||
$stmt="select user,count(*) from ".$vicidial_xfer_log_table." where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysqli_real_escape_string($link, $group) . "' and user is not null group by user;";
|
||||
if ($non_latin > 0) {$rslt=mysql_to_mysqli("SET NAMES 'UTF8'", $link);}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {$ASCII_text.="$stmt\n";}
|
||||
@@ -551,8 +530,8 @@ while ($i < $users_to_print)
|
||||
else
|
||||
{$full_name[$i] = ' ';}
|
||||
|
||||
$A1=0; $A2=0; $A3=0; $A4=0; $A5=0; $A6=0; $A7=0; $A8=0; $A9=0; $DROP=0; $OTHER=0; $sales=0;
|
||||
$stmt="select vc.status,count(distinct vc.lead_id) from ".$vicidial_xfer_log_table." vx, ".$vicidial_closer_log_table." vc where vx.call_date >= '$query_date_BEGIN' and vx.call_date <= '$query_date_END' and vc.call_date >= '$query_date_BEGIN' and vc.call_date <= '$query_date_END' and vc.campaign_id='" . mysqli_real_escape_string($link, $group) . "' and vx.campaign_id='" . mysqli_real_escape_string($link, $group) . "' and vx.user='$userRAW[$i]' and vc.lead_id=vx.lead_id and vc.xfercallid=vx.xfercallid group by vc.status;";
|
||||
$DROP=0; $OTHER=0; $sales=0;
|
||||
$stmt="select vc.status,count(*) from ".$vicidial_xfer_log_table." vx, ".$vicidial_closer_log_table." vc where vx.call_date >= '$query_date_BEGIN' and vx.call_date <= '$query_date_END' and vc.call_date >= '$query_date_BEGIN' and vc.call_date <= '$query_date_END' and vc.campaign_id='" . mysqli_real_escape_string($link, $group) . "' and vx.campaign_id='" . mysqli_real_escape_string($link, $group) . "' and vx.user='$userRAW[$i]' and vc.lead_id=vx.lead_id and vc.xfercallid=vx.xfercallid group by vc.status;";
|
||||
if ($non_latin > 0) {$rslt=mysql_to_mysqli("SET NAMES 'UTF8'", $link);}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {$ASCII_text.="$stmt\n";}
|
||||
@@ -563,28 +542,11 @@ while ($i < $users_to_print)
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$recL=0;
|
||||
if ( (preg_match("/\|$row[0]\|/", $sale_dispo_str)) and ($recL < 1) ) {$A1=$row[1]; $recL++; $sales=($sales + $row[1]);}
|
||||
# if ( ($row[0]=='A2') and ($recL < 1) ) {$A2=$row[1]; $recL++; $sales=($sales + $row[1]);}
|
||||
# if ( ($row[0]=='A3') and ($recL < 1) ) {$A3=$row[1]; $recL++; $sales=($sales + $row[1]);}
|
||||
# if ( ($row[0]=='A4') and ($recL < 1) ) {$A4=$row[1]; $recL++; $sales=($sales + $row[1]);}
|
||||
# if ( ($row[0]=='A5') and ($recL < 1) ) {$A5=$row[1]; $recL++;}
|
||||
# if ( ($row[0]=='A6') and ($recL < 1) ) {$A6=$row[1]; $recL++;}
|
||||
# if ( ($row[0]=='A7') and ($recL < 1) ) {$A7=$row[1]; $recL++;}
|
||||
# if ( ($row[0]=='A8') and ($recL < 1) ) {$A8=$row[1]; $recL++;}
|
||||
# if ( ($row[0]=='A9') and ($recL < 1) ) {$A9=$row[1]; $recL++;}
|
||||
if ( ($row[0]=='DROP') and ($recL < 1) ) {$DROP=$row[1]; $recL++;}
|
||||
if ( ($row[0]=='DROP' || $row[0]=='TIMEOT') and ($recL < 1) ) {$DROP=($DROP+$row[1]); $recL++;}
|
||||
if ($recL < 1) {$OTHER=($row[1] + $OTHER); $recL++;}
|
||||
$j++;
|
||||
}
|
||||
|
||||
$totA1 = ($totA1 + $A1);
|
||||
$totA2 = ($totA2 + $A2);
|
||||
$totA3 = ($totA3 + $A3);
|
||||
$totA4 = ($totA4 + $A4);
|
||||
$totA5 = ($totA5 + $A5);
|
||||
$totA6 = ($totA6 + $A6);
|
||||
$totA7 = ($totA7 + $A7);
|
||||
$totA8 = ($totA8 + $A8);
|
||||
$totA9 = ($totA9 + $A9);
|
||||
$totDROP = ($totDROP + $DROP);
|
||||
$totOTHER = ($totOTHER + $OTHER);
|
||||
$TOTsales = ($TOTsales + $sales);
|
||||
@@ -596,33 +558,22 @@ while ($i < $users_to_print)
|
||||
if ($sales>$max_success) {$max_success=$sales;}
|
||||
if ($USERcalls[$i]>$max_xfers) {$max_xfers=$USERcalls[$i];}
|
||||
if ($Spct>$max_success_pct) {$max_success_pct=$Spct;}
|
||||
if ($A1>$max_sales) {$max_sales=$A1;}
|
||||
if ($DROP>$max_drops) {$max_drops=$DROP;}
|
||||
if ($OTHER>$max_other) {$max_other=$OTHER;}
|
||||
$graph_stats[$i][0]="$user[$i] - $full_name[$i]";
|
||||
$graph_stats[$i][1]=$sales;
|
||||
$graph_stats[$i][2]=$USERcalls[$i];
|
||||
$graph_stats[$i][3]=$Spct;
|
||||
$graph_stats[$i][4]=$A1;
|
||||
$graph_stats[$i][5]=$DROP;
|
||||
$graph_stats[$i][6]=$OTHER;
|
||||
$graph_stats[$i][1]=$USERcalls[$i];
|
||||
$graph_stats[$i][2]=$Spct;
|
||||
$graph_stats[$i][3]=$sales;
|
||||
$graph_stats[$i][4]=$DROP;
|
||||
$graph_stats[$i][5]=$OTHER;
|
||||
|
||||
$A1 = sprintf("%4s", $A1);
|
||||
$A2 = sprintf("%4s", $A2);
|
||||
$A3 = sprintf("%4s", $A3);
|
||||
$A4 = sprintf("%4s", $A4);
|
||||
$A5 = sprintf("%4s", $A5);
|
||||
$A6 = sprintf("%4s", $A6);
|
||||
$A7 = sprintf("%4s", $A7);
|
||||
$A8 = sprintf("%4s", $A8);
|
||||
$A9 = sprintf("%4s", $A9);
|
||||
$DROP = sprintf("%4s", $DROP);
|
||||
$OTHER = sprintf("%4s", $OTHER);
|
||||
$sales = sprintf("%5s", $sales);
|
||||
$sales = sprintf("%4s", $sales);
|
||||
$Spct = sprintf("%6s", $Spct);
|
||||
|
||||
$ASCII_text.="| $user[$i] - $full_name[$i] | $sales | $USERcalls[$i] | $Spct%| $A1 | $DROP | $OTHER |\n";
|
||||
$CSV_fronter_lines.="\"$user[$i] - $full_name[$i]\",\"$sales\",\"$USERcalls[$i]\",\"$Spct%\",\"$A1\",\"$DROP\",\"$OTHER\"\n";
|
||||
$ASCII_text.="| $user[$i] - $full_name[$i] | $USERcalls[$i] | $Spct%| $sales | $DROP | $OTHER |\n";
|
||||
$CSV_fronter_lines.="\"$user[$i] - $full_name[$i]\",\"$USERcalls[$i]\",\"$Spct%\",\"$sales\",\"$DROP\",\"$OTHER\"\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
@@ -636,15 +587,6 @@ $totSpct = sprintf("%6s", $totSpct);
|
||||
$TOTagents = sprintf("%6s", $i);
|
||||
$TOTcalls = sprintf("%6s", $TOTcalls);
|
||||
$TOTsales = sprintf("%5s", $TOTsales);
|
||||
$totA1 = sprintf("%5s", $totA1);
|
||||
$totA2 = sprintf("%5s", $totA2);
|
||||
$totA3 = sprintf("%5s", $totA3);
|
||||
$totA4 = sprintf("%5s", $totA4);
|
||||
$totA5 = sprintf("%5s", $totA5);
|
||||
$totA6 = sprintf("%5s", $totA6);
|
||||
$totA7 = sprintf("%5s", $totA7);
|
||||
$totA8 = sprintf("%5s", $totA8);
|
||||
$totA9 = sprintf("%5s", $totA9);
|
||||
$totDROP = sprintf("%5s", $totDROP);
|
||||
$totOTHER = sprintf("%5s", $totOTHER);
|
||||
|
||||
@@ -666,40 +608,37 @@ $AVGwait_MS = "$AVGwait_M_int:$AVGwait_S";
|
||||
$AVGwait = sprintf("%6s", $AVGwait_MS);
|
||||
|
||||
|
||||
$ASCII_text.="+--------------------------+-------+--------+--------+------+------+------+\n";
|
||||
$ASCII_text.="| "._QXZ("TOTAL FRONTERS",14).": $TOTagents | $TOTsales | $TOTcalls | $totSpct%|$totA1 |$totDROP |$totOTHER |\n";
|
||||
$ASCII_text.="+--------------------------+-------+--------+--------+------+------+------+\n";
|
||||
$ASCII_text.="| "._QXZ("Average time in Queue for customers",60,"r").": $AVGwait |\n";
|
||||
$ASCII_text.="+--------------------------+-------+--------+--------+------+------+------+\n";
|
||||
$ASCII_text.="+--------------------------+--------+--------+------+------+------+\n";
|
||||
$ASCII_text.="| "._QXZ("TOTAL FRONTERS",14).": $TOTagents | $TOTcalls | $totSpct%|$TOTsales |$totDROP |$totOTHER |\n";
|
||||
$ASCII_text.="+--------------------------+--------+--------+------+------+------+\n";
|
||||
$ASCII_text.="| "._QXZ("Average time in Queue for customers",52,"r").": $AVGwait |\n";
|
||||
$ASCII_text.="+--------------------------+--------+--------+------+------+------+\n";
|
||||
|
||||
$CSV_fronter_footer.="\""._QXZ("TOTAL FRONTERS").": $TOTagents\",\"$TOTsales\",\"$TOTcalls\",\"$totSpct%\",\"$totA1\",\"$totDROP\",\"$totOTHER\"\n";
|
||||
$CSV_fronter_footer.="\""._QXZ("TOTAL FRONTERS").": $TOTagents\",\"$TOTcalls\",\"$totSpct%\",\"$TOTsales\",\"$totDROP\",\"$totOTHER\"\n";
|
||||
$CSV_fronter_footer.="\""._QXZ("Average time in Queue for customers").": $AVGwait\"\n\n\n";
|
||||
|
||||
for ($d=0; $d<count($graph_stats); $d++) {
|
||||
if ($d==0) {$class=" first";} else if (($d+1)==count($graph_stats)) {$class=" last";} else {$class="";}
|
||||
$SUCCESS_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][1], $max_success))."' height='16' />".$graph_stats[$d][1]."</td></tr>";
|
||||
$XFERS_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][2], $max_xfers))."' height='16' />".$graph_stats[$d][2]."</td></tr>";
|
||||
$SUCCESSPCT_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][3], $max_success_pct))."' height='16' />".$graph_stats[$d][3]."</td></tr>";
|
||||
$SALE_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][4], $max_sales))."' height='16' />".$graph_stats[$d][4]."</td></tr>";
|
||||
$DROP_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][5], $max_drops))."' height='16' />".$graph_stats[$d][5]."</td></tr>";
|
||||
$XFERS_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][1], $max_xfers))."' height='16' />".$graph_stats[$d][1]."</td></tr>";
|
||||
$SALEPCT_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][2], $max_success_pct))."' height='16' />".$graph_stats[$d][2]."</td></tr>";
|
||||
$SALE_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][3], $max_sales))."' height='16' />".$graph_stats[$d][3]."</td></tr>";
|
||||
$DROP_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][4], $max_drops))."' height='16' />".$graph_stats[$d][4]."</td></tr>";
|
||||
$OTHER_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][5] ,$max_other))."' height='16' />".$graph_stats[$d][5]."</td></tr>";
|
||||
}
|
||||
$SUCCESS_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($TOTsales)."</th></tr></table>";
|
||||
$XFERS_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($TOTcalls)."</th></tr></table>";
|
||||
$SUCCESSPCT_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totSpct)."%</th></tr></table>";
|
||||
$SALE_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totA1)."</th></tr></table>";
|
||||
$SALEPCT_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totSpct)."%</th></tr></table>";
|
||||
$SALE_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($TOTsales)."</th></tr></table>";
|
||||
$DROP_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totDROP)."</th></tr></table>";
|
||||
$OTHER_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totOTHER)."</th></tr></table>";
|
||||
$JS_onload.="\tDrawFronterGraph('SUCCESS', '1');\n";
|
||||
$JS_onload.="\tDrawFronterGraph('XFERS', '1');\n";
|
||||
$JS_text.="function DrawFronterGraph(graph, th_id) {\n";
|
||||
$JS_text.=" var SUCCESS_graph=\"$SUCCESS_graph\";\n";
|
||||
$JS_text.=" var XFERS_graph=\"$XFERS_graph\";\n";
|
||||
$JS_text.=" var SUCCESSPCT_graph=\"$SUCCESSPCT_graph\";\n";
|
||||
$JS_text.=" var SALEPCT_graph=\"$SALEPCT_graph\";\n";
|
||||
$JS_text.=" var SALE_graph=\"$SALE_graph\";\n";
|
||||
$JS_text.=" var DROP_graph=\"$DROP_graph\";\n";
|
||||
$JS_text.=" var OTHER_graph=\"$OTHER_graph\";\n";
|
||||
$JS_text.="\n";
|
||||
$JS_text.=" for (var i=1; i<=6; i++) {\n";
|
||||
$JS_text.=" for (var i=1; i<=5; i++) {\n";
|
||||
$JS_text.=" var cellID=\"frontergraph\"+i;\n";
|
||||
$JS_text.=" document.getElementById(cellID).style.backgroundColor='#DDDDDD';\n";
|
||||
$JS_text.=" }\n";
|
||||
@@ -712,18 +651,9 @@ $CSV_fronter_footer.="\""._QXZ("Average time in Queue for customers").": $AVG
|
||||
|
||||
##############################
|
||||
######### CLOSER STATS
|
||||
|
||||
$graph_stats=array();
|
||||
$TOTagents=0;
|
||||
$TOTcalls=0;
|
||||
$totA1=0;
|
||||
$totA2=0;
|
||||
$totA3=0;
|
||||
$totA4=0;
|
||||
$totA5=0;
|
||||
$totA6=0;
|
||||
$totA7=0;
|
||||
$totA8=0;
|
||||
$totA9=0;
|
||||
$totDROP=0;
|
||||
$totOTHER=0;
|
||||
$TOTsales=0;
|
||||
@@ -734,12 +664,12 @@ $CSV_closer_footer="";
|
||||
|
||||
$ASCII_text.="\n";
|
||||
$ASCII_text.="---------- "._QXZ("CLOSER STATS")."\n";
|
||||
$ASCII_text.="+--------------------------+--------+------+------+------+------+-------+\n";
|
||||
$ASCII_text.="| "._QXZ("AGENT",24)." | "._QXZ("CALLS",6)." | "._QXZ("SALE",4)." | "._QXZ("DROP",4)." |"._QXZ("OTHER",5)." | "._QXZ("SALE",4)." | "._QXZ("CONV",4)." %|\n";
|
||||
$ASCII_text.="+--------------------------+--------+------+------+------+------+-------+\n";
|
||||
$ASCII_text.="+--------------------------+--------+------+------+------+-------+\n";
|
||||
$ASCII_text.="| "._QXZ("AGENT",24)." | "._QXZ("CALLS",6)." | "._QXZ("SALE",4)." | "._QXZ("DROP",4)." |"._QXZ("OTHER",5)." | "._QXZ("CONV",4)." %|\n";
|
||||
$ASCII_text.="+--------------------------+--------+------+------+------+-------+\n";
|
||||
|
||||
$CSV_closer_header="\""._QXZ("CLOSER STATS")."\"\n";
|
||||
$CSV_closer_header.="\""._QXZ("AGENT")."\",\""._QXZ("CALLS")."\",\""._QXZ("SALE")."\",\""._QXZ("DROP")."\",\""._QXZ("OTHER")."\",\""._QXZ("SALE")."\",\""._QXZ("CONV")." %\"\n";
|
||||
$CSV_closer_header.="\""._QXZ("AGENT")."\",\""._QXZ("CALLS")."\",\""._QXZ("SALE")."\",\""._QXZ("DROP")."\",\""._QXZ("OTHER")."\",\""._QXZ("CONV")." %\"\n";
|
||||
|
||||
######## GRAPHING #########
|
||||
$max_calls=1;
|
||||
@@ -749,14 +679,13 @@ $max_other=1;
|
||||
$max_sales2=1;
|
||||
$max_conv_pct=1;
|
||||
$GRAPH="<BR><BR><a name='closergraph'/><table border='0' cellpadding='0' cellspacing='2' width='800'>";
|
||||
$GRAPH.="<tr><th width='16%' class='grey_graph_cell' id='closergraph1'><a href='#' onClick=\"DrawCloserGraph('CALLS', '1'); return false;\">"._QXZ("CALLS")."</a></th><th width='17%' class='grey_graph_cell' id='closergraph2'><a href='#' onClick=\"DrawCloserGraph('SALES', '2'); return false;\">"._QXZ("SALE")."S</a></th><th width='17%' class='grey_graph_cell' id='closergraph3'><a href='#' onClick=\"DrawCloserGraph('DROP', '3'); return false;\">"._QXZ("DROP")."</a></th><th width='16%' class='grey_graph_cell' id='closergraph4'><a href='#' onClick=\"DrawCloserGraph('OTHER', '4'); return false;\">"._QXZ("OTHER")."</a></th><th width='17%' class='grey_graph_cell' id='closergraph5'><a href='#' onClick=\"DrawCloserGraph('SALES2', '5'); return false;\">"._QXZ("SALES")."</a></th><th width='17%' class='grey_graph_cell' id='closergraph6'><a href='#' onClick=\"DrawCloserGraph('CONVPCT', '6'); return false;\">"._QXZ("CONV")." %</a></th></tr>";
|
||||
$GRAPH.="<tr><td colspan='6' class='graph_span_cell'><span id='closer_graph'><BR> <BR></span></td></tr></table><BR><BR>";
|
||||
$GRAPH.="<tr><th width='20%' class='grey_graph_cell' id='closergraph1'><a href='#' onClick=\"DrawCloserGraph('CALLS', '1'); return false;\">"._QXZ("CALLS")."</a></th><th width='20%' class='grey_graph_cell' id='closergraph2'><a href='#' onClick=\"DrawCloserGraph('SALES', '2'); return false;\">"._QXZ("SALE")."S</a></th><th width='20%' class='grey_graph_cell' id='closergraph3'><a href='#' onClick=\"DrawCloserGraph('DROP', '3'); return false;\">"._QXZ("DROP")."</a></th><th width='20%' class='grey_graph_cell' id='closergraph4'><a href='#' onClick=\"DrawCloserGraph('OTHER', '4'); return false;\">"._QXZ("OTHER")."</a></th><th width='20%' class='grey_graph_cell' id='closergraph5'><a href='#' onClick=\"DrawCloserGraph('CONVPCT', '5'); return false;\">"._QXZ("CONV")." %</a></th></tr>";
|
||||
$GRAPH.="<tr><td colspan='5' class='graph_span_cell'><span id='closer_graph'><BR> <BR></span></td></tr></table><BR><BR>";
|
||||
$graph_header="<table cellspacing='0' cellpadding='0' summary='STATUS' class='horizontalgraph'><caption align='top'>"._QXZ("CLOSER STATS")."</caption><tr><th class='thgraph' scope='col'>"._QXZ("AGENT")."</th>";
|
||||
$CALLS_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("CALLS")." </th></tr>";
|
||||
$SALES_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("SALES")."</th></tr>";
|
||||
$DROP_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("DROP")."</th></tr>";
|
||||
$OTHER_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("OTHER")."</th></tr>";
|
||||
$SALES2_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("SALES")."</th></tr>";
|
||||
$CONVPCT_graph=$graph_header."<th class='thgraph' scope='col'>"._QXZ("CONV")." %</th></tr>";
|
||||
###########################
|
||||
|
||||
@@ -802,7 +731,7 @@ while ($i < $users_to_print)
|
||||
else
|
||||
{$full_name[$i] = ' ';}
|
||||
|
||||
$A1=0; $A2=0; $A3=0; $A4=0; $A5=0; $A6=0; $A7=0; $A8=0; $A9=0; $DROP=0; $OTHER=0; $sales=0; $uTOP=0; $uBOT=0; $points=0;
|
||||
$DROP=0; $OTHER=0; $sales=0; $uTOP=0; $uBOT=0; $points=0;
|
||||
$stmt="select status,count(*) from ".$vicidial_closer_log_table." where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysqli_real_escape_string($link, $group) . "' and user='$userRAW[$i]' group by status;";
|
||||
if ($non_latin > 0) {$rslt=mysql_to_mysqli("SET NAMES 'UTF8'", $link);}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -819,50 +748,13 @@ while ($i < $users_to_print)
|
||||
$sales=($sales + $row[1]);
|
||||
$points = ($points + ($row[1] * 1) );
|
||||
}
|
||||
/*
|
||||
if ( ($row[0]=='A2') and ($recL < 1) )
|
||||
{
|
||||
$A2=$row[1]; $recL++;
|
||||
$sales=($sales + $row[1]);
|
||||
$uTOP=($uTOP + $row[1]);
|
||||
$points = ($points + ($row[1] * 2) );
|
||||
}
|
||||
if ( ($row[0]=='A3') and ($recL < 1) )
|
||||
{
|
||||
$A3=$row[1]; $recL++;
|
||||
$sales=($sales + $row[1]);
|
||||
$uBOT=($uBOT + $row[1]);
|
||||
$points = ($points + ($row[1] * 2) );
|
||||
}
|
||||
if ( ($row[0]=='A4') and ($recL < 1) )
|
||||
{
|
||||
$A4=$row[1]; $recL++;
|
||||
$sales=($sales + $row[1]);
|
||||
$uTOP=($uTOP + $row[1]);
|
||||
$uBOT=($uBOT + $row[1]);
|
||||
$points = ($points + ($row[1] * 3) );
|
||||
}
|
||||
*/
|
||||
# if ( ($row[0]=='A5') and ($recL < 1) ) {$A5=$row[1]; $recL++;}
|
||||
# if ( ($row[0]=='A6') and ($recL < 1) ) {$A6=$row[1]; $recL++;}
|
||||
# if ( ($row[0]=='A7') and ($recL < 1) ) {$A7=$row[1]; $recL++;}
|
||||
# if ( ($row[0]=='A8') and ($recL < 1) ) {$A8=$row[1]; $recL++;}
|
||||
# if ( ($row[0]=='A9') and ($recL < 1) ) {$A9=$row[1]; $recL++;}
|
||||
if ( ($row[0]=='DROP') and ($recL < 1) ) {$DROP=$row[1]; $recL++;}
|
||||
if ($recL < 1) {$OTHER=($row[1] + $OTHER); $recL++;}
|
||||
|
||||
$j++;
|
||||
}
|
||||
|
||||
$totA1 = ($totA1 + $A1); $TOTsales = ($TOTsales + $A1);
|
||||
$totA2 = ($totA2 + $A2); $TOTsales = ($TOTsales + $A2); $totTOP = ($totTOP + $A2);
|
||||
$totA3 = ($totA3 + $A3); $TOTsales = ($TOTsales + $A3); $totBOT = ($totBOT + $A3);
|
||||
$totA4 = ($totA4 + $A4); $TOTsales = ($TOTsales + $A4); $totTOP = ($totTOP + $A4); $totBOT = ($totBOT + $A4);
|
||||
$totA5 = ($totA5 + $A5);
|
||||
$totA6 = ($totA6 + $A6);
|
||||
$totA7 = ($totA7 + $A7);
|
||||
$totA8 = ($totA8 + $A8);
|
||||
$totA9 = ($totA9 + $A9);
|
||||
$TOTsales = ($TOTsales + $sales);
|
||||
$totDROP = ($totDROP + $DROP);
|
||||
$totOTHER = ($totOTHER + $OTHER);
|
||||
$totPOINTS = ($totPOINTS + $points);
|
||||
@@ -895,27 +787,17 @@ while ($i < $users_to_print)
|
||||
if ($Cpct>$max_conv_pct) {$max_conv_pct=$Cpct;}
|
||||
$graph_stats[$i][0]="$user[$i] - $full_name[$i]";
|
||||
$graph_stats[$i][1]=$USERcalls[$i];
|
||||
$graph_stats[$i][2]=$A1;
|
||||
$graph_stats[$i][2]=$sales;
|
||||
$graph_stats[$i][3]=$DROP;
|
||||
$graph_stats[$i][4]=$OTHER;
|
||||
$graph_stats[$i][5]=$sales;
|
||||
$graph_stats[$i][6]=$Cpct;
|
||||
$graph_stats[$i][5]=$Cpct;
|
||||
|
||||
$A1 = sprintf("%4s", $A1);
|
||||
$A2 = sprintf("%4s", $A2);
|
||||
$A3 = sprintf("%4s", $A3);
|
||||
$A4 = sprintf("%4s", $A4);
|
||||
$A5 = sprintf("%4s", $A5);
|
||||
$A6 = sprintf("%4s", $A6);
|
||||
$A7 = sprintf("%4s", $A7);
|
||||
$A8 = sprintf("%4s", $A8);
|
||||
$A9 = sprintf("%4s", $A9);
|
||||
$DROP = sprintf("%4s", $DROP);
|
||||
$OTHER = sprintf("%4s", $OTHER);
|
||||
$sales = sprintf("%4s", $sales);
|
||||
|
||||
$ASCII_text.="| $user[$i] - $full_name[$i] | $USERcalls[$i] | $A1 | $DROP | $OTHER | $sales |$Cpct%|\n";
|
||||
$CSV_closer_lines.="\"$user[$i] - $full_name[$i]\",\"$USERcalls[$i]\",\"$A1\",\"$DROP\",\"$OTHER\",\"$sales\",\"$Cpct%\"\n";
|
||||
$ASCII_text.="| $user[$i] - $full_name[$i] | $USERcalls[$i] | $sales | $DROP | $OTHER |$Cpct%|\n";
|
||||
$CSV_closer_lines.="\"$user[$i] - $full_name[$i]\",\"$USERcalls[$i]\",\"$sales\",\"$DROP\",\"$OTHER\",\"$Cpct%\"\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
@@ -943,22 +825,13 @@ $BOT = sprintf("%3s", $BOT);
|
||||
|
||||
$TOTagents = sprintf("%6s", $i);
|
||||
$TOTcalls = sprintf("%6s", $TOTcalls);
|
||||
$totA1 = sprintf("%5s", $totA1);
|
||||
$totA2 = sprintf("%5s", $totA2);
|
||||
$totA3 = sprintf("%5s", $totA3);
|
||||
$totA4 = sprintf("%5s", $totA4);
|
||||
$totA5 = sprintf("%5s", $totA5);
|
||||
$totA6 = sprintf("%5s", $totA6);
|
||||
$totA7 = sprintf("%5s", $totA7);
|
||||
$totA8 = sprintf("%5s", $totA8);
|
||||
$totA9 = sprintf("%5s", $totA9);
|
||||
$totDROP = sprintf("%5s", $totDROP);
|
||||
$totOTHER = sprintf("%5s", $totOTHER);
|
||||
$TOTsales = sprintf("%5s", $TOTsales);
|
||||
|
||||
$ASCII_text.="+--------------------------+--------+------+------+------+------+-------+\n";
|
||||
$ASCII_text.="| "._QXZ("TOTAL CLOSERS",13).": $TOTagents | $TOTcalls |$totA1 |$totDROP |$totOTHER |$TOTsales |$totCpct%|\n";
|
||||
$ASCII_text.="+--------------------------+--------+------+------+------+------+-------+\n";
|
||||
$ASCII_text.="+--------------------------+--------+------+------+------+-------+\n";
|
||||
$ASCII_text.="| "._QXZ("TOTAL CLOSERS",13).": $TOTagents | $TOTcalls |$TOTsales |$totDROP |$totOTHER |$totCpct%|\n";
|
||||
$ASCII_text.="+--------------------------+--------+------+------+------+-------+\n";
|
||||
|
||||
$CSV_closer_footer.="\""._QXZ("TOTAL CLOSERS").": $TOTagents\",\"$TOTcalls\",\"$totA1\",\"$totDROP\",\"$totOTHER\",\"$TOTsales\",\"$totCpct%\"\n";
|
||||
|
||||
@@ -968,14 +841,12 @@ $CSV_closer_footer.="\""._QXZ("TOTAL CLOSERS").": $TOTagents\",\"$TOTcalls\",\"
|
||||
$SALES_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][2], $max_sales))."' height='16' />".$graph_stats[$d][2]."</td></tr>";
|
||||
$DROP_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][3], $max_drops))."' height='16' />".$graph_stats[$d][3]."</td></tr>";
|
||||
$OTHER_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][4], $max_other))."' height='16' />".$graph_stats[$d][4]."</td></tr>";
|
||||
$SALES2_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][5], $max_sales2))."' height='16' />".$graph_stats[$d][5]."</td></tr>";
|
||||
$CONVPCT_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][6], $max_conv_pct))."' height='16' />".$graph_stats[$d][6]."%</td></tr>";
|
||||
$CONVPCT_graph.=" <tr><td class='chart_td$class'>".$graph_stats[$d][0]."</td><td nowrap class='chart_td value$class'><img src='images/bar.png' alt='' width='".round(MathZDC(400*$graph_stats[$d][5], $max_conv_pct))."' height='16' />".$graph_stats[$d][5]."%</td></tr>";
|
||||
}
|
||||
$CALLS_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($TOTcalls)."</th></tr></table>";
|
||||
$SALES_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totA1)."</th></tr></table>";
|
||||
$SALES_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($TOTsales)."</th></tr></table>";
|
||||
$DROP_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totDROP)."</th></tr></table>";
|
||||
$OTHER_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totOTHER)."</th></tr></table>";
|
||||
$SALES2_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($TOTsales)."</th></tr></table>";
|
||||
$CONVPCT_graph.="<tr><th class='thgraph' scope='col'>"._QXZ("TOTAL").":</th><th class='thgraph' scope='col'>".trim($totCpct)."%</th></tr></table>";
|
||||
$JS_onload.="\tDrawCloserGraph('CALLS', '1');\n";
|
||||
$JS_text.="function DrawCloserGraph(graph, th_id) {\n";
|
||||
@@ -983,10 +854,9 @@ $CSV_closer_footer.="\""._QXZ("TOTAL CLOSERS").": $TOTagents\",\"$TOTcalls\",\"
|
||||
$JS_text.=" var SALES_graph=\"$SALES_graph\";\n";
|
||||
$JS_text.=" var DROP_graph=\"$DROP_graph\";\n";
|
||||
$JS_text.=" var OTHER_graph=\"$OTHER_graph\";\n";
|
||||
$JS_text.=" var SALES2_graph=\"$SALES2_graph\";\n";
|
||||
$JS_text.=" var CONVPCT_graph=\"$CONVPCT_graph\";\n";
|
||||
$JS_text.="\n";
|
||||
$JS_text.=" for (var i=1; i<=6; i++) {\n";
|
||||
$JS_text.=" for (var i=1; i<=5; i++) {\n";
|
||||
$JS_text.=" var cellID=\"closergraph\"+i;\n";
|
||||
$JS_text.=" document.getElementById(cellID).style.backgroundColor='#DDDDDD';\n";
|
||||
$JS_text.=" }\n";
|
||||
@@ -1012,7 +882,6 @@ else
|
||||
if ($DB) {$HTML_text.="\n"._QXZ("Run Time").": $RUNtime "._QXZ("seconds")."|$db_source\n";}
|
||||
|
||||
$HTML_text.="</PRE>\n";
|
||||
$HTML_text.="</TD></TR></TABLE>\n";
|
||||
|
||||
$HTML_text.="</BODY></HTML>\n";
|
||||
|
||||
@@ -1081,3 +950,4 @@ exit;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
# 160108-2217 - Added campaigns-manual_dial_hopper_check entry
|
||||
# 160116-1512 - Added access_recording and log_recording_access entries
|
||||
# 160121-2155 - Added settings-report_default_format entry and help text for several reports
|
||||
# 160211-2255 - Added help text for remaining reports
|
||||
#
|
||||
|
||||
|
||||
@@ -5684,9 +5685,277 @@ if ($SSqc_features_active > 0)
|
||||
<?php echo _QXZ("<U>SERVER PHONE</U> = The most recent server phone account this user was logged in through."); ?><BR>
|
||||
<?php echo _QXZ("<U>PHONE IP</U> = The IP address of the phone during the most recent agent screen session."); ?><BR>
|
||||
|
||||
<A NAME="agent_timeclock_detail">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("User Timeclock Detail Report"); ?> -</B><?php echo _QXZ("Pulls all timeclock records for agents meeting the selected parameters."); ?><BR>
|
||||
<?php echo _QXZ("<U>TIME CLOCK</U> = Total amount of time agent spent logged in."); ?><BR>
|
||||
<?php echo _QXZ("<U>TIME CLOCK PUNCHES</U> = A list of the punch-in and punch-out times for each agent. Punch-out times marked with an asterisk (*) denotes AUTOLOGOUT from timeclock."); ?><BR>
|
||||
|
||||
<A NAME="campaign_status_list_report">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Campaign Status List Report"); ?> -</B><?php echo _QXZ("This report is designed to show the breakdown by list_id of the calls and their statuses for all lists within a campaign for a set time period."); ?><BR>
|
||||
<?php echo _QXZ("<U>DISPOSITION</U> = The distinct dispositions made for the list within the time frame specified."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls ending with the disposition listed."); ?><BR>
|
||||
<?php echo _QXZ("<U>DURATION</U> = Sum of the length of the calls ending with the disposition listed."); ?><BR>
|
||||
<?php echo _QXZ("<U>HANDLE TIME</U> = Sum of the time the calls ending with the disposition listed were handled by an agent (<U>TALK</U> + <U>DEAD</U>)."); ?><BR><BR>
|
||||
<?php echo _QXZ("<U>TOTAL CALLS</U> = Number of calls placed to leads belonging to lists in this campaign within the time frame specified."); ?><BR>
|
||||
<?php echo _QXZ("<U>STATUS FLAGS BREAKDOWN</U> = Breakdown of the total calls into status categories, including counts per category and percentage relative to the number of calls to leads in the list within the time frame specified."); ?><BR>
|
||||
|
||||
<A NAME="CLOSER_service_level">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Inbound Service Level Report"); ?> -</B><?php echo _QXZ("This report is designed to give a daily breakdown of the number of calls, holds, and drop within the specified date range for the selected inbound group."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROPS</U> = The number of dropped calls to the inbound group within the time frame specified for that time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROP %</U> = The percentage of calls ending in DROPS."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG DROP(S)</U> = Average length in seconds of the calls ending in DROPS."); ?><BR>
|
||||
<?php echo _QXZ("<U>HOLDS</U> = The number of calls to the inbound group that were held in queue for that time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>HOLD %</U> = The percentage of calls that went to queue relative to the total calls."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG HOLD(S) HOLD</U> = Average length in seconds of the queue time for only the calls in queue."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG HOLD(S) TOTAL</U> = Average length in seconds of the queue time for ALL calls for the time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = Number of calls received by the ingroup within the time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL CALLTIME MIN:SEC</U> = Total length of all calls received."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG CALLTIME SECONDS</U> = Average length of all calls received."); ?><BR>
|
||||
|
||||
<A NAME="CLOSERstats">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Inbound Report (by DID)"); ?> -</B><?php echo _QXZ("This report is designed to give several different statistical breakdowns of calls received within the specified time frame, by either ingroup or by DID (refer to the title of the report)."); ?><BR>
|
||||
<?php echo _QXZ("<B>MULTI-GROUP BREAKDOWN</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls to the inbound groups or DIDs within the time frame specified for that time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROPS</U> = The number of dropped calls to the inbound groups or DIDs within the time frame specified for that time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROP %</U> = The percentage of calls ending in DROPS."); ?><BR>
|
||||
<?php echo _QXZ("<U>IVR</U> = The number of calls to the inbound group or DID that went to an IVR within the time frame specified for that time interval."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>CALL HANGUP REASON STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>HANGUP REASON</U> = The reason the call terminated."); ?><BR>
|
||||
<?php echo _QXZ("<U>HOLDS</U> = The number of calls terminated from the aforementioned reason."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>CALL STATUS STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>STATUS</U> = The call disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>DESCRIPTION</U> = A description of the call disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>CATEGORY</U> = The call category that the disposition currently belongs to."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls taken by the ingroups or DIDs that were dispositioned as the listed disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL TIME</U> = The total amount of time that was spent on calls that ended as the listed disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG TIME</U> = The average amount of time that was spent on calls that ended as the listed disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS /HOUR</U> = The number of calls per hour to the ingroups or DIDs that ended as the listed disposition."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>CUSTOM STATUS CATEGORY STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>CATEGORY</U> = The custom call category that a call was dispositioned under the selected report parameters."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls dispositioned under the custom status category."); ?><BR>
|
||||
<?php echo _QXZ("<U>DESCRIPTION</U> = A description of the custom call category."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>AGENT STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT</U> = The agent who received a call to the specified inbound groups or DIDs."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls fielded by the agent."); ?><BR>
|
||||
<?php echo _QXZ("<U>DESCRIPTION</U> = The total time the agent spent in calls to the specified inbound groups or DIDs."); ?><BR>
|
||||
<?php echo _QXZ("<U>DESCRIPTION</U> = The average time the agent spent in calls to the specified inbound groups or DIDs."); ?><BR>
|
||||
|
||||
<A NAME="CLOSERstats_v2">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Inbound Report (by DID), v2"); ?> -</B><?php echo _QXZ("This report is designed to give several different statistical breakdowns of calls received within the specified time frame, by either ingroup or by DID (refer to the title of the report)."); ?><BR>
|
||||
<?php echo _QXZ("<B>MULTI-GROUP BREAKDOWN</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls to the inbound groups or DIDs within the time frame specified for that time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROPS</U> = The number of dropped calls to the inbound groups or DIDs within the time frame specified for that time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROP %</U> = The percentage of calls ending in DROPS."); ?><BR>
|
||||
<?php echo _QXZ("<U>IVR</U> = The number of calls to the inbound group or DID that went to an IVR within the time frame specified for that time interval."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>CALL HANGUP REASON STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>HANGUP REASON</U> = The reason the call terminated."); ?><BR>
|
||||
<?php echo _QXZ("<U>HOLDS</U> = The number of calls terminated from the aforementioned reason."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>CALL STATUS STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>STATUS</U> = The call disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>DESCRIPTION</U> = A description of the call disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>CATEGORY</U> = The call category that the disposition currently belongs to."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls taken by the ingroups or DIDs that were dispositioned as the listed disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL TIME</U> = The total amount of time that was spent on calls that ended as the listed disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG TIME</U> = The average amount of time that was spent on calls that ended as the listed disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS /HOUR</U> = The number of calls per hour to the ingroups or DIDs that ended as the listed disposition."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>CUSTOM STATUS CATEGORY STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>CATEGORY</U> = The custom call category that a call was dispositioned under the selected report parameters."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls dispositioned under the custom status category."); ?><BR>
|
||||
<?php echo _QXZ("<U>DESCRIPTION</U> = A description of the custom call category."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>AGENT STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT</U> = The agent who received a call to the specified inbound groups or DIDs."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls fielded by the agent."); ?><BR>
|
||||
<?php echo _QXZ("<U>TIME H:M:S</U> = The total time the agent spent in calls to the specified inbound groups or DIDs."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVERAGE</U> = The average time the agent spent in calls to the specified inbound groups or DIDs."); ?><BR>
|
||||
|
||||
|
||||
<A NAME="CLOSERsummary_hourly">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Inbound Summary Hourly Report"); ?> -</B><?php echo _QXZ("This report is designed to give several different statistical breakdowns of calls received within the specified time frame, by either ingroup or by DID (refer to the title of the report)."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL CALLS</U> = Total calls taken by the in-group."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL ANSWER</U> = Total calls answered by the in-group."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL TALK</U> = Total amount of time spent in calls answered by the in-group."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVERAGE TALK</U> = Average amount of time spent in calls answered by the in-group."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL QUEUE TIME</U> = Total amount of time calls handled by the in-group spent in queue."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL QUEUE TIME</U> = Average amount of time calls handled by the in-group spent in queue."); ?><BR>
|
||||
<?php echo _QXZ("<U>MAXIMUM QUEUE TIME</U> = The longest amount of time any single call handled by the in-group spent in queue."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL ABANDON CALLS</U> = The number of calls to the in-group that were unanswered and abandoned by the caller."); ?><BR>
|
||||
|
||||
<A NAME="dialer_inventory_report">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Dialer Inventory Report"); ?> -</B><?php echo _QXZ("This report gives statistical information, including a status breakdown, of a single list or all lists in a single campaign."); ?><BR>
|
||||
<?php echo _QXZ("<U>Start Inv</U> = Total leads currently in list."); ?><BR>
|
||||
<?php echo _QXZ("<U>Call Inv Total</U> = Total leads currently dialable in list based on the campaign settings it belongs to."); ?><BR>
|
||||
<?php echo _QXZ("<U>Call Inv No filtr</U> = Total leads currently dialable in list based on the campaign settings EXCLUDING any filters."); ?><BR>
|
||||
<?php echo _QXZ("<U>Call Inv One-off</U> = Total leads currently dialable in list based on the campaign settings that are at least one dial attempt below the call count limit."); ?><BR>
|
||||
<?php echo _QXZ("<U>Call Inv Inactive</U> = Total leads currently in list that belong to INCOMPLETE statuses that are NOT currently selected as dialable for the campaign."); ?><BR>
|
||||
<?php echo _QXZ("<U>Dial Avg</U> = Total calls made on the list divided by the <U>Start Inv</U> of that list."); ?><BR>
|
||||
<?php echo _QXZ("<U>Pen. %</U> = Percentage of leads in the list that are no longer dialable (<B>Start Inv</B> - <B>Call Inv Total</B> / <B>Start Inv</B>."); ?><BR>
|
||||
|
||||
<A NAME="DIDstats">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Inbound DID Report"); ?> -</B><?php echo _QXZ("This report breaks down activity for a DID or a list of DIDs over a given time interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>ROUTE</U> = Where the DID is currently directed when a call reaches it."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = Number of calls the DIDs/servers/time frames (depending on which sub-report you are viewing) received during the specific date range."); ?><BR>
|
||||
|
||||
<A NAME="email_log_report">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Email Log Report"); ?> -</B><?php echo _QXZ("This report gives a detailed log report of any emails handled by the dialer, including links to the full text of received emails. It will display the date the email was received, the address and name of the sender, a bit of the beginning of the email's text (with a link to the full text), and the status that the agent dispositioned the email as."); ?><BR>
|
||||
|
||||
<A NAME="inbound_daily_report">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Inbound Daily Report"); ?> -</B><?php echo _QXZ("This report will give a daily or hourly, weekly, monthly, and quarterly count on all calls received by the in-groups selected for the given date range."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL CALLS OFFERED</U> = Total calls taken by the in-group."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL CALLS ANSWERED</U> = Total calls answered by the in-group."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL AGENTS ANSWERED</U> = Total number of distinct agents who fielded calls to this in-group."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL CALLS ABANDONED</U> = Total calls ended in queue (dropped)."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL ABANDON PERCENT</U> = Percentage of calls abandoned (<U>TOTAL CALLS ABANDONED</U> / <U>TOTAL CALLS OFFERED</U>)."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG ABANDON TIME</U> = Average amount of time a caller waited in queue before abandoning the call."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG ANSWER SPEED</U> = Average amount of time a caller waited in queue before an agent answered."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVG TALK TIME</U> = Average amount of time an agent remained on the line with the caller before the call was hung up - does not include caller queue time."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL TALK TIME</U> = Total amount of time agents remained on the line with callers before calls ended - does not include caller queue time."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL WRAP TIME</U> = Total amount of time agents used to 'wrap' the call - assumed to be 15 second per answered call."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL CALL TIME</U> = Total talk time plus total wrap time."); ?><BR>
|
||||
|
||||
<A NAME="IVRstats">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Inbound IVR Report"); ?> -</B><?php echo _QXZ("This report shows a breakdown of IVR paths followed by callers on selected IVRs based on the date range."); ?><BR>
|
||||
<?php echo _QXZ("<U>IVR CALLS</U> = Total calls taken by or made through the selected IVRs that follow the 'CALL PATH'."); ?><BR>
|
||||
<?php echo _QXZ("<U>QUEUE CALLS</U> = Total inbound calls taken by the selected IVRs that follow the 'CALL PATH'."); ?><BR>
|
||||
<?php echo _QXZ("<U>QUEUE DROP CALLS</U> = Total inbound calls taken by the selected IVRs that follow the 'CALL PATH' that were dropped."); ?><BR>
|
||||
<?php echo _QXZ("<U>QUEUE DROP PERCENT</U> = Percentage of dropped inbound calls taken by the selected IVRs (QUEUE DROP CALLS / QUEUE CALLS)."); ?><BR>
|
||||
<?php echo _QXZ("<U>IVR AVG TIME</U> = Average amount of time spent in-call, taken by dividing IVR CALLS by the total time spent in the selected IVRs."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL AVG TIME</U> = Total call time spent in the selected IVRs."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALL PATH</U> = The specific call path followed on the IVR - report will display each distinct path followed by all the selected IVRs for the selected date range."); ?><BR>
|
||||
|
||||
<A NAME="LISTS_campaign_stats">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Lists Campaign Statuses Report"); ?> -</B><?php echo _QXZ(""); ?><BR>
|
||||
<?php echo _QXZ("<U>LIST ID SUMMARY</U> = Shows each list in the campaign(s) selected by the user, the count of leads in each list, and whether the list is active or inactive."); ?><BR>
|
||||
<?php echo _QXZ("<U>STATUS FLAGS SUMMARY</U> = Shows a breakdown of the status flags for all the selected lists in all the selected campaigns combined. Status flags are set in the 'Statuses' section of a campaign or the 'System Statuses'."); ?><BR>
|
||||
<?php echo _QXZ("<U>CUSTOM STATUS CATEGORY STATS</U> = Shows a breakdown of the custom status categories for all the selected lists in all the selected campaigns combined. Categories can be defined under the 'System Statuses' in the admin section."); ?><BR>
|
||||
<?php echo _QXZ("<U>PER LIST DETAIL STATS</U> = Shows each list in the campaign(s) selected by the user, with a breakdown of each status flag (and percentage of each flag) and status within that list."); ?><BR>
|
||||
|
||||
<A NAME="LISTS_pass_report">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Lists Pass Report"); ?> -</B><?php echo _QXZ("This is a list inventory report, not a calling report. This report will show statistics for all of the lists in the selected campaigns"); ?><BR>
|
||||
<?php echo _QXZ("<U>FIRST LOAD DATE</U> = Date list first had leads loaded."); ?><BR>
|
||||
<?php echo _QXZ("<U>LIST ID and NAME</U> = List ID number and name of list."); ?><BR>
|
||||
<?php echo _QXZ("<U>CAMPAIGN</U> = Campaign that the list currently belongs to."); ?><BR>
|
||||
<?php echo _QXZ("<U>LEAD COUNT</U> = Number of leads in the list."); ?><BR>
|
||||
<?php echo _QXZ("<U>ACTIVE</U> = Whether or not the lead was active."); ?><BR>
|
||||
<?php echo _QXZ("<U>CONTACTS 1st-5th,LIFE PASS</U> = Leads that were 'human answered' (dispoed a status where HUMAN ANSWER is set to 'Y' on the statuses section) on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>CNT RATE 1st-5th PASS</U> = Percentage of leads on the list that were 'human answered' on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALE 1st-5th,LIFE PASS</U> = Leads that were sold to (dispoed a status where SALE is set to 'Y' on the statuses section) on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>CNV RATE 1st-5th PASS</U> = Percentage of leads on the list that were sold to on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>DNC 1st-5th,LIFE PASS</U> = Leads that were dispositioned 'do not call' (dispoed a status where DNC is set to 'Y' on the statuses section) on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>DNC RATE 1st-5th,LIFE PASS</U> = Percentage of leads on the list that were 'do not call' on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>CUST CONTACT 1st-5th,LIFE PASS</U> = Leads that were 'customer contacted' (dispoed a status where CUSTOMER CONTACT is set to 'Y' on the statuses section) on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>CUCT RATE 1st-5th,LIFE PASS</U> = Percentage of leads on the list that were 'customer contacted' on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>UNWORKABL 1st-5th,LIFE PASS</U> = Leads that were 'unworkable' (dispoed a status where UNWORKABLE is set to 'Y' on the statuses section) on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>UNWK RATE 1st-5th,LIFE PASS</U> = Percentage of leads on the list that were 'unworkable' on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>SCHEDL CB 1st-5th,LIFE PASS</U> = Leads that were 'scheduled callbacks' (dispoed a status where SCHEDULED CALLBACK is set to 'Y' on the statuses section) on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>SHCB RATE 1st-5th,LIFE PASS</U> = Percentage of leads on the list that were 'scheduled callbacks' on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>COMPLETED 1st-5th,LIFE PASS</U> = Leads that were 'completed' (dispoed a status where COMPLETED is set to 'Y' on the statuses section) on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
<?php echo _QXZ("<U>COMP RATE 1st-5th,LIFE PASS</U> = Percentage of leads on the list that were 'completed' on or after the first-fifth call attempt, or LIFE if contacted as such at any point ever."); ?><BR>
|
||||
|
||||
|
||||
<A NAME="LISTS_stats">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Lists Statuses Report"); ?> -</B><?php echo _QXZ("This report gives a detailed breakdown of the contents of a list or lists."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL LIST ID SUMMARY</U> = Shows each list selected by the user, the count of leads in the list, and whether the list is active or inactive."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL STATUS FLAGS SUMMARY</U> = Shows a breakdown of the status flags for all the selected lists combined. Status flags are set in the 'Statuses' section of a campaign or the 'System Statuses'."); ?><BR>
|
||||
<?php echo _QXZ("<U>LIST ID SUMMARY</U> = Each list selected in the report will be listed separately after the TOTALS summaries. The list summary gives specific information about each particular list."); ?><BR>
|
||||
<?php echo _QXZ("<U>STATUS FLAGS BREAKDOWN</U> = Same as <U>TOTAL STATUS FLAGS SUMMARY</U>, but only for one list."); ?><BR>
|
||||
<?php echo _QXZ("<U>STATUS BREAKDOWN</U> = A breakdown of each status in the individual list, along with the status description, number of leads, and percentage relative to the total leads in the list."); ?><BR>
|
||||
|
||||
<A NAME="OUTBOUNDsummary_interval">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Outbound Summary Interval Report"); ?> -</B><?php echo _QXZ("This report gives statistical information on selected campaigns, both as a summary of all selected campaigns and also by a selected interval for each individual campaign on outbound calling activity based on a date range and call time."); ?><BR>
|
||||
<?php echo _QXZ("<U>CAMPAIGN</U> = The campaign being reported on."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL CALLS</U> = The number of calls taken either by a campaign or during a time interval during a campaign, depending on the report."); ?><BR>
|
||||
<?php echo _QXZ("<U>SYSTEM RELEASE CALLS</U> = The number of calls terminated by the dialer per campaign or during a time interval for a campaign, depending on the report."); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT RELEASE CALLS</U> = The number of calls terminated by the agent per campaign or during a time interval for a campaign, depending on the report."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALE CALLS</U> = The number of sales made either on a campaign or during a time interval during a campaign, depending on the report."); ?><BR>
|
||||
<?php echo _QXZ("<U>DNC CALLS</U> = The number of DNC made either on a campaign or during a time interval during a campaign, depending on the report."); ?><BR>
|
||||
<?php echo _QXZ("<U>NO ANSWER PERCENT</U> = The percentage of calls dispositioned as no answer against the TOTAL CALLS."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROP PERCENT</U> = The percentage of calls dispositioned as DROPs against the TOTAL CALLS."); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT LOGIN TIME (H:M:S)</U> = The total pause, wait, talk, and dispo times logged by agents for the campaign/interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT PAUSE TIME (H:M:S)</U> = The total pause time logged by agents for the campaign/interval."); ?><BR>
|
||||
<?php echo _QXZ("<U>INTERVAL</U> = The interval (in 'HHii' format) being reported on under the campaign."); ?><BR>
|
||||
|
||||
<A NAME="VDADstats">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Outbound Calling Report"); ?> -</B><?php echo _QXZ("This report gives several reports on outbound calling for campaigns and lists for a specified date range"); ?><BR>
|
||||
<?php echo _QXZ("<B>CALL HANGUP REASON STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>HANGUP REASON</U> = The reason the call terminated."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls terminated from the aforementioned reason."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>CALL STATUS STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>STATUS</U> = The call disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>DESCRIPTION</U> = The description of the status."); ?><BR>
|
||||
<?php echo _QXZ("<U>CATEGORY</U> = The category of the status."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls resulting the disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALL TIME - TOTAL TIME</U> = The total time spent on calls resulting in the disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALL TIME - AVG TIME</U> = The average amount of time spent on calls resulting in the disposition."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALL TIME - CALLS/HOUR</U> = The number of calls per hour where the call resulted in the disposition - this is relative to the total time of all dispositions, not just this one."); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT TIME - CALLS/HOUR</U> = The number of calls per agent hour where the call resulted in the disposition, relative to the total time agents spent in call for all dispositions."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>LIST ID STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>LIST</U> = The list ID number - all lists meeting the selected criteria are displayed here."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of outbound calls placed from the aforementioned list."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>AGENT PRESET DIALS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>PRESET NAME</U> = The preset name logged in the user_call_log table (where applicable) for the outbound calls meeting the selected criteria."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls logged with the aforementioned preset."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>CUSTOM STATUS CATEGORY STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>CATEGORY</U> = The category the custom status is currently assigned to."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of calls logged with the aforementioned category."); ?><BR>
|
||||
<?php echo _QXZ("<U>DESCRIPTION</U> = The description of the category."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>AGENT STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT</U> = The user ID and agent involved on outbound calls meeting the selected criteria."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = The number of outbound calls handled by the aforementioned agent."); ?><BR>
|
||||
<?php echo _QXZ("<U>TIME H:M:S</U> = The total amount of time the agent spent on the outbound calls."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVERAGE</U> = The average amount of time the agent spent on the outbound calls."); ?><BR>
|
||||
|
||||
|
||||
<A NAME="called_counts_multilist_report">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Called Counts List IDs Report"); ?> -</B><?php echo _QXZ("This report will show a called count breakdown by status for a list or group of lists, optionally within a given date range. Lists may also be selected by campaign."); ?><BR>
|
||||
|
||||
<A NAME="fcstats">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Fronter - Closer Report"); ?> -</B><?php echo _QXZ("This report displays fronter and closer information on an in-group for the selected date - useful in local closer campaigns so you can see the activity on internal transfers."); ?><BR>
|
||||
<?php echo _QXZ("<B>FRONTER STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT</U> = The agent making the transfer (fronter)."); ?><BR>
|
||||
<?php echo _QXZ("<U>XFERS</U> = The number of transfers the agent made."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALE %</U> = Percentage of transfers the agent made that resulted in a sale."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALE</U> = Number of sales (dispos where sale='Y' in the 'Statuses' section) made on the agent's transfers."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROP</U> = Number of transfers that were dropped (did not make it to a live closer)."); ?><BR>
|
||||
<?php echo _QXZ("<U>OTHER</U> = Number of transfers that were not dropped, but also not sold by the closer."); ?><BR>
|
||||
|
||||
<?php echo _QXZ("<B>FRONTER STATS</B>"); ?><BR>
|
||||
<?php echo _QXZ("<U>AGENT</U> = The agent receiving the transfer (closer)."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = Total calls answered by the closer."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALE</U> = Number of sales (dispos where sale='Y' in the 'Statuses' section) made on the transfers the closer fielded."); ?><BR>
|
||||
<?php echo _QXZ("<U>DROP</U> = Number of calls the closer received that were dispo'ed as dropped."); ?><BR>
|
||||
<?php echo _QXZ("<U>OTHER</U> = Calls the closer fielded that did not result in sales."); ?><BR>
|
||||
<?php echo _QXZ("<U>CONV %</U> = Percentage of transfers the closer received that resulted in sales."); ?><BR>
|
||||
|
||||
<BR><BR><BR><BR>
|
||||
<B><FONT SIZE=3><?php echo _QXZ("Nanpa cellphone filtering"); ?></FONT></B><BR><BR>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# realtime_report.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# live real-time stats for the VICIDIAL Auto-Dialer all servers
|
||||
#
|
||||
@@ -31,12 +31,13 @@
|
||||
# 141230-0032 - Added code for on-the-fly language translations display
|
||||
# 150307-0823 - Fixes for QXZ
|
||||
# 150804-0953 - Added WHISPER option agent monitoring
|
||||
# 160227-1157 - Added INGROUPcolorOVERRIDE option
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
|
||||
$version = '2.12-19';
|
||||
$build = '150804-0953';
|
||||
$version = '2.12-20';
|
||||
$build = '160227-1157';
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
@@ -104,6 +105,8 @@ 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["INGROUPcolorOVERRIDE"])) {$INGROUPcolorOVERRIDE=$_GET["INGROUPcolorOVERRIDE"];}
|
||||
elseif (isset($_POST["INGROUPcolorOVERRIDE"])) {$INGROUPcolorOVERRIDE=$_POST["INGROUPcolorOVERRIDE"];}
|
||||
if (isset($_GET["droppedOFtotal"])) {$droppedOFtotal=$_GET["droppedOFtotal"];}
|
||||
elseif (isset($_POST["droppedOFtotal"])) {$droppedOFtotal=$_POST["droppedOFtotal"];}
|
||||
|
||||
@@ -294,6 +297,7 @@ $monitor_phone = preg_replace('/[^-_0-9a-zA-Z]/', '', $monitor_phone);
|
||||
$CARRIERstats = preg_replace('/[^-_0-9a-zA-Z]/', '', $CARRIERstats);
|
||||
$PRESETstats = preg_replace('/[^-_0-9a-zA-Z]/', '', $PRESETstats);
|
||||
$AGENTtimeSTATS = preg_replace('/[^-_0-9a-zA-Z]/', '', $AGENTtimeSTATS);
|
||||
$INGROUPcolorOVERRIDE = preg_replace('/[^-_0-9a-zA-Z]/', '', $INGROUPcolorOVERRIDE);
|
||||
$droppedOFtotal = preg_replace('/[^-_0-9a-zA-Z]/', '', $droppedOFtotal);
|
||||
|
||||
$stmt="SELECT selected_language from vicidial_users where user='$PHP_AUTH_USER';";
|
||||
@@ -849,6 +853,17 @@ $select_list .= "<option value='1'";
|
||||
$select_list .= ">"._QXZ("YES")."</option>";
|
||||
$select_list .= "</SELECT></TD></TR>";
|
||||
|
||||
$select_list .= "<TR><TD align=right>";
|
||||
$select_list .= _QXZ("In-group color override").": </TD><TD align=left><SELECT SIZE=1 NAME=INGROUPcolorOVERRIDE ID=INGROUPcolorOVERRIDE>";
|
||||
$select_list .= "<option value='0'";
|
||||
if ($INGROUPcolorOVERRIDE < 1) {$select_list .= " selected";}
|
||||
$select_list .= ">"._QXZ("NO")."</option>";
|
||||
$select_list .= "<option value='1'";
|
||||
if ($INGROUPcolorOVERRIDE=='1') {$select_list .= " selected";}
|
||||
$select_list .= ">"._QXZ("YES")."</option>";
|
||||
$select_list .= "</SELECT></TD></TR>";
|
||||
|
||||
|
||||
$select_list .= "</TABLE><BR>";
|
||||
$select_list .= "<INPUT type=hidden name=droppedOFtotal value='$droppedOFtotal'>";
|
||||
$select_list .= "<INPUT type=button VALUE=SUBMIT onclick=\\\"update_variables('form_submit','');\\\"><FONT FACE='ARIAL,HELVETICA' COLOR=BLACK SIZE=2> ";
|
||||
@@ -1031,6 +1046,7 @@ var NOLEADSalert = '<?php echo $NOLEADSalert ?>';
|
||||
var CARRIERstats = '<?php echo $CARRIERstats ?>';
|
||||
var PRESETstats = '<?php echo $PRESETstats ?>';
|
||||
var AGENTtimeSTATS = '<?php echo $AGENTtimeSTATS ?>';
|
||||
var INGROUPcolorOVERRIDE = '<?php echo $INGROUPcolorOVERRIDE; ?>';
|
||||
var droppedOFtotal = '<?php echo $droppedOFtotal ?>';
|
||||
|
||||
if (adastats == '') adastats = '1';
|
||||
@@ -1317,7 +1333,7 @@ function gather_realtime_content()
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
RTupdate_query = "RTajax=1&DB=" + DB + "" + groupQS + usergroupQS + "&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 + "&droppedOFtotal=" + droppedOFtotal + "";
|
||||
RTupdate_query = "RTajax=1&DB=" + DB + "" + groupQS + usergroupQS + "&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 + "&INGROUPcolorOVERRIDE=" + INGROUPcolorOVERRIDE + "&droppedOFtotal=" + droppedOFtotal + "";
|
||||
|
||||
xmlhttp.open('POST', 'AST_timeonVDADall.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
@@ -1445,6 +1461,9 @@ function update_variables(task_option,task_choice,force_reload)
|
||||
?>
|
||||
var AGENTtimeSTATSFORM = document.getElementById('AGENTtimeSTATS');
|
||||
AGENTtimeSTATS = AGENTtimeSTATSFORM[AGENTtimeSTATSFORM.selectedIndex].value;
|
||||
var INGROUPcolorOVERRIDEFORM = document.getElementById('INGROUPcolorOVERRIDE');
|
||||
INGROUPcolorOVERRIDE = INGROUPcolorOVERRIDEFORM[INGROUPcolorOVERRIDEFORM.selectedIndex].value;
|
||||
|
||||
var temp_monitor_phone = document.REALTIMEform.monitor_phone.value;
|
||||
var droppedOFtotal = document.REALTIMEform.droppedOFtotal.value;
|
||||
|
||||
@@ -1487,7 +1506,7 @@ function update_variables(task_option,task_choice,force_reload)
|
||||
// force a reload if the phone is changed
|
||||
if ( (temp_monitor_phone != monitor_phone) || (force_reload=='YES') )
|
||||
{
|
||||
reload_url = PHP_SELF + "?RR=" + RR + "&DB=" + DB + "" + groupQS + usergroupQS + "&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=" + temp_monitor_phone + "&ALLINGROUPstats=" + ALLINGROUPstats + "&DROPINGROUPstats=" + DROPINGROUPstats + "&NOLEADSalert=" + NOLEADSalert + "&CARRIERstats=" + CARRIERstats + "&PRESETstats=" + PRESETstats + "&AGENTtimeSTATS=" + AGENTtimeSTATS + "&droppedOFtotal=" + droppedOFtotal + "";
|
||||
reload_url = PHP_SELF + "?RR=" + RR + "&DB=" + DB + "" + groupQS + usergroupQS + "&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=" + temp_monitor_phone + "&ALLINGROUPstats=" + ALLINGROUPstats + "&DROPINGROUPstats=" + DROPINGROUPstats + "&NOLEADSalert=" + NOLEADSalert + "&CARRIERstats=" + CARRIERstats + "&PRESETstats=" + PRESETstats + "&AGENTtimeSTATS=" + AGENTtimeSTATS + "&INGROUPcolorOVERRIDE=" + INGROUPcolorOVERRIDE + "&droppedOFtotal=" + droppedOFtotal + "";
|
||||
|
||||
// alert('|' + temp_monitor_phone + '|' + monitor_phone + '|\n' + reload_url);
|
||||
window.location.href = reload_url;
|
||||
|
||||
Reference in New Issue
Block a user