Added settings-report_default_format and help text for several reports
Added agents per server counts to bottom of reports page Standardized formatting on several agent reports Added display of several fields to modify lead page git-svn-id: svn://192.168.202.10@2474 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1641,7 +1641,8 @@ custom_reports_use_slave_db VARCHAR(2000) default '',
|
||||
usacan_phone_dialcode_fix ENUM('0','1') default '0',
|
||||
cache_carrier_stats_realtime ENUM('0','1') default '0',
|
||||
oldest_logs_date DATETIME,
|
||||
log_recording_access ENUM('0', '1') default '0'
|
||||
log_recording_access ENUM('0', '1') default '0',
|
||||
report_default_format ENUM('TEXT', 'HTML') default 'TEXT'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_campaigns_list_mix (
|
||||
@@ -3712,4 +3713,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version';
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1451',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1452',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -508,3 +508,7 @@ ALTER TABLE vicidial_users ADD access_recordings ENUM('0', '1') default '0';
|
||||
ALTER TABLE system_settings ADD log_recording_access ENUM('0', '1') default '0';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1451',db_schema_update_date=NOW() where db_schema_version < 1451;
|
||||
|
||||
ALTER TABLE system_settings ADD report_default_format ENUM('TEXT', 'HTML') default 'TEXT';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1452',db_schema_update_date=NOW() where db_schema_version < 1452;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_agent_days_detail.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 @@
|
||||
# 141230-1526 - Added code for on-the-fly language translations display
|
||||
# 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
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -57,7 +58,7 @@ if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
|
||||
if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
|
||||
elseif (isset($_POST["report_display_type"])) {$report_display_type=$_POST["report_display_type"];}
|
||||
if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search_archived_data"];}
|
||||
elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];}
|
||||
@@ -71,7 +72,7 @@ $JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,report_default_format FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -84,9 +85,11 @@ if ($qm_conf_ct > 0)
|
||||
$reports_use_slave_db = $row[3];
|
||||
$SSenable_languages = $row[4];
|
||||
$SSlanguage_method = $row[5];
|
||||
$SSreport_default_format = $row[6];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
if (strlen($report_display_type)<2) {$report_display_type = $SSreport_default_format;}
|
||||
|
||||
### ARCHIVED DATA CHECK CONFIGURATION
|
||||
$archives_available="N";
|
||||
@@ -368,7 +371,10 @@ if (strlen($customer_interactive_statuses)>0)
|
||||
#$customer_interactive_statuses = '|NI|DNC|CALLBK|AP|SALE|COMP|HAP1|HAP2|HBED|DIED|';
|
||||
#$customer_interactive_statuses = '|NI|DNC|CALLBK|XFER|C2|B7|B8|C1|';
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date&shift=$shift&DB=$DB&user=$user$groupQS&search_archived_data=$search_archived_data";
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date&shift=$shift&DB=$DB&user=$user$groupQS&search_archived_data=$search_archived_data&report_display_type=$report_display_type";
|
||||
|
||||
$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)
|
||||
{
|
||||
@@ -400,15 +406,15 @@ if ($file_download < 1)
|
||||
require("admin_header.php");
|
||||
|
||||
echo "</span>\n";
|
||||
$ASCII_text.="<span style=\"position:absolute;left:3px;top:3px;z-index:19;\" id=agent_status_stats>\n";
|
||||
$ASCII_text.="<PRE><FONT SIZE=2>\n";
|
||||
$GRAPH_text.="<PRE><FONT SIZE=2>\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:30px;z-index:19;\" id=agent_status_stats>\n";
|
||||
echo "<b>"._QXZ("$report_name")."</b> $NWB#single_agent_daily$NWE\n";
|
||||
echo "<PRE><FONT SIZE=2>";
|
||||
}
|
||||
|
||||
if (strlen($group[0]) < 1)
|
||||
{
|
||||
echo "\n";
|
||||
echo _QXZ("PLEASE SELECT A USER AND DATE-TIME ABOVE AND CLICK SUBMIT")."\n";
|
||||
echo "";
|
||||
echo _QXZ("PLEASE SELECT A USER AND DATE-TIME BELOW AND CLICK SUBMIT")."\n";
|
||||
echo " "._QXZ("NOTE: stats taken from shift specified")."\n";
|
||||
}
|
||||
|
||||
@@ -438,16 +444,14 @@ else
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
$ASCII_text.=_QXZ("Agent Days Status Report",24).": $user $NOW_TIME\n";
|
||||
$ASCII_text.=_QXZ("Agent Days Status Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
$ASCII_text.=_QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
|
||||
$ASCII_text.="---------- "._QXZ("AGENT Details")." -------------\n\n";
|
||||
$GRAPH_text.=_QXZ("Agent Days Status Report",24).": $user $NOW_TIME\n";
|
||||
$GRAPH_text.=_QXZ("Agent Days Status Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
$GRAPH_text.=_QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
|
||||
$GRAPH_text.="---------- "._QXZ("AGENT Details")." -------------\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_output .= _QXZ("Agent Days Status Report",24).": $user $NOW_TIME\n";
|
||||
$file_output .= _QXZ("Agent Days Status Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
$file_output .= _QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
|
||||
}
|
||||
|
||||
@@ -861,23 +865,17 @@ $JS_onload.="}\n";
|
||||
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
|
||||
$JS_text.="</script>\n";
|
||||
|
||||
if ($report_display_type=="HTML")
|
||||
{
|
||||
echo $JS_text;
|
||||
echo $GRAPH_text;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $ASCII_text;
|
||||
}
|
||||
|
||||
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 "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>";
|
||||
echo "<TABLE CELLSPACING=3 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function openNewWindow(url)
|
||||
{
|
||||
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
|
||||
}
|
||||
var o_cal = new tcal ({
|
||||
// form name
|
||||
'formname': 'vicidial_report',
|
||||
@@ -953,14 +951,25 @@ else
|
||||
echo "<a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a> </FONT>\n";
|
||||
echo "</TD></TR></TABLE>";
|
||||
|
||||
echo "</FORM>\n\n<BR>$db_source";
|
||||
echo "</FORM>";
|
||||
|
||||
if ($report_display_type=="HTML")
|
||||
{
|
||||
echo $JS_text;
|
||||
echo $GRAPH_text;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $ASCII_text;
|
||||
}
|
||||
|
||||
|
||||
echo "</span>\n";
|
||||
|
||||
if ($report_display_type=="TEXT" || !$report_display_type)
|
||||
{
|
||||
echo "<span style=\"position:absolute;left:3px;top:3px;z-index:18;\" id=agent_status_bars>\n";
|
||||
echo "<PRE><FONT SIZE=2>\n\n\n\n\n\n\n\n\n\n";
|
||||
echo "<PRE><FONT SIZE=2>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
|
||||
|
||||
$m=0;
|
||||
while ($m < $k)
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
# AST_agent_days_time.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
# 150114-2158 - First build based on AST_agent_days_detail.php
|
||||
# 151227-1718 - Added option to search archive records instead of main
|
||||
# 160121-2217 - Added report title header, default report format, cleaned up formatting
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -37,7 +38,7 @@ if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
|
||||
if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
|
||||
elseif (isset($_POST["report_display_type"])) {$report_display_type=$_POST["report_display_type"];}
|
||||
if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search_archived_data"];}
|
||||
elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];}
|
||||
@@ -51,7 +52,7 @@ $JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,report_default_format FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -64,9 +65,11 @@ if ($qm_conf_ct > 0)
|
||||
$reports_use_slave_db = $row[3];
|
||||
$SSenable_languages = $row[4];
|
||||
$SSlanguage_method = $row[5];
|
||||
$SSreport_default_format = $row[6];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
if (strlen($report_display_type)<2) {$report_display_type = $SSreport_default_format;}
|
||||
|
||||
### ARCHIVED DATA CHECK CONFIGURATION
|
||||
$archives_available="N";
|
||||
@@ -348,7 +351,10 @@ if (strlen($customer_interactive_statuses)>0)
|
||||
#$customer_interactive_statuses = '|NI|DNC|CALLBK|AP|SALE|COMP|HAP1|HAP2|HBED|DIED|';
|
||||
#$customer_interactive_statuses = '|NI|DNC|CALLBK|XFER|C2|B7|B8|C1|';
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date&shift=$shift&DB=$DB&user=$user$groupQS&search_archived_data=$search_archived_data";
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date&shift=$shift&DB=$DB&user=$user$groupQS&search_archived_data=$search_archived_data&report_display_type=$report_display_type";
|
||||
|
||||
$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)
|
||||
{
|
||||
@@ -380,15 +386,15 @@ if ($file_download < 1)
|
||||
require("admin_header.php");
|
||||
|
||||
echo "</span>\n";
|
||||
$ASCII_text.="<span style=\"position:absolute;left:3px;top:3px;z-index:19;\" id=agent_status_stats>\n";
|
||||
$ASCII_text.="<PRE><FONT SIZE=2>\n";
|
||||
$GRAPH_text.="<PRE><FONT SIZE=2>\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:30px;z-index:19;\" id=agent_status_stats>\n";
|
||||
echo "<b>"._QXZ("$report_name")."</b> $NWB#single_agent_time$NWE\n";
|
||||
echo "<PRE><FONT SIZE=2>";
|
||||
}
|
||||
|
||||
if (strlen($group[0]) < 1)
|
||||
{
|
||||
echo "\n";
|
||||
echo _QXZ("PLEASE SELECT A USER AND DATE-TIME ABOVE AND CLICK SUBMIT")."\n";
|
||||
echo _QXZ("PLEASE SELECT A USER AND DATE-TIME BELOW AND CLICK SUBMIT")."\n";
|
||||
echo " "._QXZ("NOTE: stats taken from shift specified")."\n";
|
||||
}
|
||||
|
||||
@@ -418,16 +424,14 @@ else
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
$ASCII_text.=_QXZ("Agent Days Time Report",24).": $user $NOW_TIME\n";
|
||||
$ASCII_text.=_QXZ("Agent Days Time Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
$ASCII_text.=_QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
|
||||
$ASCII_text.="---------- "._QXZ("AGENT Details")." -------------\n\n";
|
||||
$GRAPH_text.=_QXZ("Agent Days Time Report",24).": $user $NOW_TIME\n";
|
||||
$GRAPH_text.=_QXZ("Agent Days Time Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
$GRAPH_text.=_QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
|
||||
$GRAPH_text.="---------- "._QXZ("AGENT Details")." -------------\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_output .= _QXZ("Agent Days Time Report",24).": $user $NOW_TIME\n";
|
||||
$file_output .= _QXZ("Agent Days Time Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
$file_output .= _QXZ("Time range").": $query_date_BEGIN "._QXZ("to")." $query_date_END\n\n";
|
||||
}
|
||||
|
||||
@@ -467,10 +471,10 @@ else
|
||||
}
|
||||
|
||||
|
||||
$MAIN.="<BR><BR><BR>\n";
|
||||
$MAIN.="";
|
||||
$MAIN.="<TABLE width=750 cellspacing=0 cellpadding=1>\n";
|
||||
$MAIN.="<tr><td><font size=2>"._QXZ("DATE")." </td><td align=left><font size=2>"._QXZ("PAUSE")."</td><td align=left><font size=2> "._QXZ("WAIT")."</td><td align=left><font size=2> "._QXZ("TALK")."</td><td align=right><font size=2> "._QXZ("DISPO")."</td><td align=right><font size=2> "._QXZ("DEAD")."</td><td align=right><font size=2> "._QXZ("CUSTOMER")."</td><td align=right><font size=2> "._QXZ("TOTAL")."</td></tr>\n";
|
||||
echo $MAIN;
|
||||
$MAINprintALL .= $MAIN;
|
||||
|
||||
$i=0;
|
||||
while ($i < $rows_to_print)
|
||||
@@ -595,7 +599,7 @@ else
|
||||
$MAIN.="<td align=right><font size=2> $TOTALtotalSECONDShh</td>\n";
|
||||
$MAIN.="</tr>\n";
|
||||
|
||||
echo $MAIN;
|
||||
$MAINprintALL .= $MAIN;
|
||||
$MAIN='';
|
||||
|
||||
# $CSV_text7.="\"\",\"\",\""._QXZ("(in HH:MM:SS)")."\",\"$TOTALpauseSECONDShh\",\"$TOTALwaitSECONDShh\",\"$TOTALtalkSECONDShh\",\"$TOTALdispoSECONDShh\",\"$TOTALdeadSECONDShh\",\"$TOTALcustomerSECONDShh\"\n";
|
||||
@@ -606,15 +610,19 @@ else
|
||||
$MAIN.="</TABLE></center><BR><BR>\n";
|
||||
}
|
||||
|
||||
echo $MAIN;
|
||||
$MAINprintALL .= $MAIN;
|
||||
|
||||
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 "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>";
|
||||
echo "<TABLE CELLSPACING=3 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function openNewWindow(url)
|
||||
{
|
||||
window.open (url,"",'width=620,height=300,scrollbars=yes,menubar=yes,address=yes');
|
||||
}
|
||||
var o_cal = new tcal ({
|
||||
// form name
|
||||
'formname': 'vicidial_report',
|
||||
@@ -689,7 +697,9 @@ else
|
||||
echo "<a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a> </FONT>\n";
|
||||
echo "</TD></TR></TABLE>";
|
||||
|
||||
echo "</FORM>\n\n<BR>$db_source";
|
||||
echo "</FORM>";
|
||||
|
||||
echo $MAINprintALL;
|
||||
|
||||
echo "</span>\n";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_agent_performance_detail.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -53,6 +53,7 @@
|
||||
# 150909-0728 - Fix for time display issue for downloads, issue #886
|
||||
# 151112-1338 - Added ability to search archive logs and show defunct users
|
||||
# 151229-2015 - Added feature to break down agent stats by day
|
||||
# 160121-2212 - Added report title header, default report format, cleaned up formatting
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -95,7 +96,7 @@ if (isset($_GET["breakdown_by_date"])) {$breakdown_by_date=$_GET["breakdown_by
|
||||
elseif (isset($_POST["breakdown_by_date"])) {$breakdown_by_date=$_POST["breakdown_by_date"];}
|
||||
if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search_archived_data"];}
|
||||
elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];}
|
||||
if (isset($_GET["show_defunct_users"])) {$show_defunct_users=$_GET["show_defunct_users"];}
|
||||
if (isset($_GET["show_defunct_users"])) {$show_defunct_users=$_GET["show_defunct_users"];}
|
||||
elseif (isset($_POST["show_defunct_users"])) {$show_defunct_users=$_POST["show_defunct_users"];}
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
@@ -126,7 +127,7 @@ $JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,report_default_format FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {$HTML_text.="$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -139,9 +140,11 @@ if ($qm_conf_ct > 0)
|
||||
$reports_use_slave_db = $row[3];
|
||||
$SSenable_languages = $row[4];
|
||||
$SSlanguage_method = $row[5];
|
||||
$SSreport_default_format = $row[6];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
if (strlen($report_display_type)<2) {$report_display_type = $SSreport_default_format;}
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
@@ -455,7 +458,7 @@ else
|
||||
|
||||
if ($DB) {$HTML_text.="$user_group_string|$user_group_ct|$user_groupQS|$i<BR>";}
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&DB=$DB&show_percentages=$show_percentages&time_in_sec=$time_in_sec&search_archived_data=$search_archived_data&show_defunct_users=$show_defunct_users&breakdown_by_date=$breakdown_by_date";
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&DB=$DB&show_percentages=$show_percentages&time_in_sec=$time_in_sec&search_archived_data=$search_archived_data&show_defunct_users=$show_defunct_users&breakdown_by_date=$breakdown_by_date&report_display_type=$report_display_type";
|
||||
|
||||
$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>";
|
||||
@@ -483,10 +486,11 @@ $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.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
$HTML_text.="<b>"._QXZ("$report_name")."</b> $NWB#agent_performance_detail$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 CELLSPACING=3 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
$HTML_text.="<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
$HTML_text.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
@@ -562,14 +566,7 @@ while ($users_to_print > $o)
|
||||
$o++;
|
||||
}
|
||||
$HTML_text.="</SELECT>\n";
|
||||
$HTML_text.="</TD><TD VALIGN=TOP>"._QXZ("Shift").":<BR>";
|
||||
$HTML_text.="<SELECT SIZE=1 NAME=shift>\n";
|
||||
$HTML_text.="<option selected value=\"$shift\">$shift</option>\n";
|
||||
$HTML_text.="<option value=\"\">--</option>\n";
|
||||
$HTML_text.="<option value=\"AM\">"._QXZ("AM")."</option>\n";
|
||||
$HTML_text.="<option value=\"PM\">"._QXZ("PM")."</option>\n";
|
||||
$HTML_text.="<option value=\"ALL\">"._QXZ("ALL")."</option>\n";
|
||||
$HTML_text.="</SELECT><BR>\n";
|
||||
$HTML_text.="</TD><TD VALIGN=TOP>";
|
||||
$HTML_text.="<input type='checkbox' name='show_percentages' value='checked' $show_percentages>"._QXZ("Show %s")."<BR>\n";
|
||||
$HTML_text.="<input type='checkbox' name='time_in_sec' value='checked' $time_in_sec>"._QXZ("Time in seconds")."<BR>\n";
|
||||
$HTML_text.="<input type='checkbox' name='breakdown_by_date' value='checked' $breakdown_by_date>"._QXZ("Show date breakdown")."<BR>\n";
|
||||
@@ -579,8 +576,16 @@ $HTML_text.="</TD><TD VALIGN=TOP>";
|
||||
$HTML_text.=_QXZ("Display as").":<BR>";
|
||||
$HTML_text.="<select name='report_display_type'>";
|
||||
if ($report_display_type) {$HTML_text.="<option value='$report_display_type' selected>$report_display_type</option>";}
|
||||
$HTML_text.="<option value='TEXT'>"._QXZ("TEXT")."</option><option value='HTML'>"._QXZ("HTML")."</option></select><BR><BR>\n";
|
||||
$HTML_text.="<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE='"._QXZ("SUBMIT")."'>$NWB#agent_performance_detail$NWE\n";
|
||||
$HTML_text.="<option value='TEXT'>"._QXZ("TEXT")."</option><option value='HTML'>"._QXZ("HTML")."</option></select><BR>\n";
|
||||
$HTML_text.=_QXZ("Shift").":<BR>";
|
||||
$HTML_text.="<SELECT SIZE=1 NAME=shift>\n";
|
||||
$HTML_text.="<option selected value=\"$shift\">$shift</option>\n";
|
||||
$HTML_text.="<option value=\"\">--</option>\n";
|
||||
$HTML_text.="<option value=\"AM\">"._QXZ("AM")."</option>\n";
|
||||
$HTML_text.="<option value=\"PM\">"._QXZ("PM")."</option>\n";
|
||||
$HTML_text.="<option value=\"ALL\">"._QXZ("ALL")."</option>\n";
|
||||
$HTML_text.="</SELECT><BR><BR>\n";
|
||||
$HTML_text.=" <INPUT TYPE=SUBMIT NAME=SUBMIT VALUE='"._QXZ("SUBMIT")."'>\n";
|
||||
$HTML_text.="</TD><TD VALIGN=TOP> ";
|
||||
|
||||
$HTML_text.="<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> \n";
|
||||
@@ -591,11 +596,11 @@ $HTML_text.="</TD></TR></TABLE>";
|
||||
$HTML_text.="</FORM>\n\n";
|
||||
|
||||
|
||||
$HTML_text.="<PRE><FONT SIZE=2>\n";
|
||||
$HTML_text.="<PRE><FONT SIZE=2>";
|
||||
|
||||
if (!$group)
|
||||
{
|
||||
$HTML_text.="\n";
|
||||
$HTML_text.="";
|
||||
$HTML_text.=_QXZ("PLEASE SELECT A CAMPAIGN AND DATE-TIME ABOVE AND CLICK SUBMIT")."\n";
|
||||
$HTML_text.=" "._QXZ("NOTE: stats taken from shift specified")."\n";
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_agent_status_detail.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -28,6 +28,7 @@
|
||||
# 150516-1310 - Fixed Javascript element problem, Issue #857
|
||||
# 150603-1532 - Statuses are now sorted in alphabetical order
|
||||
# 151112-1345 - Added ability to search archive logs and show defunct users
|
||||
# 160121-2209 - Added report title header, default report format, cleaned up formatting
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -58,11 +59,11 @@ if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
|
||||
if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
|
||||
elseif (isset($_POST["report_display_type"])) {$report_display_type=$_POST["report_display_type"];}
|
||||
if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search_archived_data"];}
|
||||
elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];}
|
||||
if (isset($_GET["show_defunct_users"])) {$show_defunct_users=$_GET["show_defunct_users"];}
|
||||
if (isset($_GET["show_defunct_users"])) {$show_defunct_users=$_GET["show_defunct_users"];}
|
||||
elseif (isset($_POST["show_defunct_users"])) {$show_defunct_users=$_POST["show_defunct_users"];}
|
||||
|
||||
if (strlen($shift)<2) {$shift='ALL';}
|
||||
@@ -75,7 +76,7 @@ $JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,report_default_format FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -86,9 +87,11 @@ if ($qm_conf_ct > 0)
|
||||
$outbound_autodial_active = $row[1];
|
||||
$slave_db_server = $row[2];
|
||||
$reports_use_slave_db = $row[3];
|
||||
$SSreport_default_format = $row[4];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
if (strlen($report_display_type)<2) {$report_display_type = $SSreport_default_format;}
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
@@ -390,7 +393,10 @@ if (strlen($customer_interactive_statuses)>0)
|
||||
#$customer_interactive_statuses = '|NI|DNC|CALLBK|AP|SALE|COMP|HAP1|HAP2|HBED|DIED|';
|
||||
#$customer_interactive_statuses = '|NI|DNC|CALLBK|XFER|C2|B7|B8|C1|';
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&search_archived_data=$search_archived_data&show_defunct_users=$show_defunct_users&DB=$DB";
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&search_archived_data=$search_archived_data&show_defunct_users=$show_defunct_users&report_display_type=$report_display_type&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)
|
||||
{
|
||||
@@ -422,15 +428,15 @@ if ($file_download < 1)
|
||||
require("admin_header.php");
|
||||
|
||||
echo "</span>\n";
|
||||
$ASCII_text.="<span style=\"position:absolute;left:3px;top:3px;z-index:19;\" id=agent_status_stats>\n";
|
||||
$ASCII_text.="\n\n\n<PRE><FONT SIZE=2>\n";
|
||||
$GRAPH.="<PRE><FONT SIZE=2>\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:30px;z-index:19;\" id=agent_status_stats>\n";
|
||||
echo "<b>"._QXZ("$report_name")."</b> $NWB#agent_status_detail$NWE";
|
||||
echo "<PRE><FONT SIZE=2>";
|
||||
}
|
||||
|
||||
if ( (strlen($group[0]) < 1) or (strlen($user_group[0]) < 1) )
|
||||
{
|
||||
echo "<PRE><FONT SIZE=2>\n\n\n";
|
||||
echo "PLEASE SELECT A CAMPAIGN OR USER GROUP AND DATE-TIME ABOVE AND CLICK SUBMIT\n";
|
||||
echo "<PRE><FONT SIZE=2>";
|
||||
echo "PLEASE SELECT A CAMPAIGN OR USER GROUP AND DATE-TIME BELOW AND CLICK SUBMIT\n";
|
||||
echo " NOTE: stats taken from shift specified\n";
|
||||
}
|
||||
|
||||
@@ -460,16 +466,14 @@ else
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
$ASCII_text.="<BR><BR>Agent Status Detail Report $NOW_TIME\n";
|
||||
$ASCII_text.=_QXZ("$report_name")." Report $NOW_TIME ($db_source)\n";
|
||||
$ASCII_text.="Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
$ASCII_text.="---------- AGENT Details -------------\n\n";
|
||||
$GRAPH.="<BR><BR>Agent Status Detail Report $NOW_TIME\n";
|
||||
$GRAPH.=_QXZ("$report_name")." Report $NOW_TIME\n";
|
||||
$GRAPH.="Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
$GRAPH.="---------- AGENT Details -------------";
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_output .= "Agent Status Detail Report $NOW_TIME\n";
|
||||
$file_output .= _QXZ("$report_name")." Report $NOW_TIME\n";
|
||||
$file_output .= "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
}
|
||||
|
||||
@@ -999,21 +1003,8 @@ $JS_onload.="}\n";
|
||||
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
|
||||
$JS_text.="</script>\n";
|
||||
|
||||
if ($report_display_type=="HTML")
|
||||
{
|
||||
echo $GRAPH.$GRAPH2.$GRAPH3;
|
||||
echo $JS_text;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $ASCII_text;
|
||||
}
|
||||
|
||||
$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>";
|
||||
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
echo "<TABLE CELLSPACING=3><TR><TD VALIGN=TOP> Dates:<BR>";
|
||||
echo "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>";
|
||||
echo "<TABLE CELLSPACING=3 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> Dates:<BR>";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
@@ -1090,26 +1081,37 @@ echo "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'>TEXT</option><option value='HTML'>HTML</option></select>\n<BR><BR>";
|
||||
echo "<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT>$NWB#agent_status_detail$NWE\n";
|
||||
echo "</TD><TD VALIGN=TOP><BR>";
|
||||
echo "<input type='checkbox' name='search_archived_data' value='checked' $search_archived_data>"._QXZ("Search archived data")."<BR><BR>\n";
|
||||
echo "<input type='checkbox' name='show_defunct_users' value='checked' $show_defunct_users>"._QXZ("Show defunct users")."<BR>\n";
|
||||
echo "<input type='checkbox' name='search_archived_data' value='checked' $search_archived_data>"._QXZ("Search archived data")."<BR>\n";
|
||||
echo "<input type='checkbox' name='show_defunct_users' value='checked' $show_defunct_users>"._QXZ("Show defunct users")."<BR><BR>\n";
|
||||
echo " <INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT>\n";
|
||||
echo "</TD><TD VALIGN=TOP> ";
|
||||
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> \n";
|
||||
echo " <a href=\"$LINKbase&stage=$stage&file_download=1\">DOWNLOAD</a> | \n";
|
||||
echo " <a href=\"./admin.php?ADD=999999\">REPORTS</a> </FONT>\n";
|
||||
echo " <a href=\"./admin.php?ADD=999999\">REPORTS</a> </FONT>";
|
||||
echo "</FONT>\n";
|
||||
echo "</TD></TR></TABLE>";
|
||||
|
||||
echo "</FORM>\n\n<BR>$db_source";
|
||||
echo "</FORM>";
|
||||
|
||||
if ($report_display_type=="HTML")
|
||||
{
|
||||
echo $GRAPH.$GRAPH2.$GRAPH3;
|
||||
echo $JS_text;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $ASCII_text;
|
||||
}
|
||||
|
||||
|
||||
echo "</span>\n";
|
||||
|
||||
if (!$report_display_type || $report_display_type=="TEXT")
|
||||
{
|
||||
echo "<span style=\"position:absolute;left:3px;top:3px;z-index:18;\" id=agent_status_bars>\n";
|
||||
echo "<PRE><FONT SIZE=2>\n\n\n\n\n\n\n\n\n\n";
|
||||
echo "<PRE><FONT SIZE=2>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
|
||||
|
||||
$m=0;
|
||||
while ($m < $k)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Pulls time stats per agent selectable by campaign or user group
|
||||
# should be most accurate agent stats of all of the reports
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 90522-0723 - First build
|
||||
@@ -45,6 +45,7 @@
|
||||
# 150529-1921 - Sub statuses are now sorted in alphabetical order
|
||||
# 151110-1612 - Changed download function to always export time with hours
|
||||
# 151112-1335 - Added option to search archived tables
|
||||
# 160121-2037 - Added report title header, default report format, cleaned up formatting
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -143,7 +144,7 @@ if ($time_in_sec)
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,report_default_format FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -156,9 +157,11 @@ if ($qm_conf_ct > 0)
|
||||
$reports_use_slave_db = $row[3];
|
||||
$SSenable_languages = $row[4];
|
||||
$SSlanguage_method = $row[5];
|
||||
$SSreport_default_format = $row[6];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
if (strlen($report_display_type)<2) {$report_display_type = $SSreport_default_format;}
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
@@ -171,6 +174,7 @@ else
|
||||
$PHP_AUTH_USER = preg_replace("/'|\"|\\\\|;/","",$PHP_AUTH_USER);
|
||||
}
|
||||
|
||||
|
||||
$stmt="SELECT selected_language from vicidial_users where user='$PHP_AUTH_USER';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -444,7 +448,10 @@ while ($i < $statha_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&show_parks=$show_parks&time_in_sec=$time_in_sec&search_archived_data=$search_archived_data&DB=$DB";
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&show_parks=$show_parks&time_in_sec=$time_in_sec&search_archived_data=$search_archived_data&report_display_type=$report_display_type&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)
|
||||
{
|
||||
@@ -476,14 +483,15 @@ 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";
|
||||
echo "<PRE><FONT SIZE=2>\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:30px;z-index:19;\" id=agent_status_stats>\n";
|
||||
echo "<b>"._QXZ("$report_name")."</b> $NWB#agent_time_detail$NWE\n";
|
||||
echo "<PRE><FONT SIZE=2>";
|
||||
}
|
||||
|
||||
if ( (strlen($group[0]) < 1) or (strlen($user_group[0]) < 1) )
|
||||
{
|
||||
echo "\n";
|
||||
echo _QXZ("PLEASE SELECT A CAMPAIGN OR USER GROUP AND DATE-TIME ABOVE AND CLICK SUBMIT")."\n";
|
||||
# echo "\n";
|
||||
echo _QXZ("PLEASE SELECT A CAMPAIGN OR USER GROUP AND DATE-TIME BELOW AND CLICK SUBMIT")."\n";
|
||||
echo _QXZ(" NOTE: stats taken from shift specified")."\n";
|
||||
}
|
||||
|
||||
@@ -528,16 +536,16 @@ else
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
$ASCII_text.="\n"._QXZ("Agent Time Detail",40)." $NOW_TIME\n";
|
||||
$ASCII_text.=""._QXZ("$report_name",40)." $NOW_TIME ($db_source)\n";
|
||||
$ASCII_text.=_QXZ("Time range").": $query_date_BEGIN to $query_date_END\n\n";
|
||||
|
||||
$GRAPH.=_QXZ("Agent Time Detail",40)." $NOW_TIME\n";
|
||||
$GRAPH.="Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
$GRAPH.=_QXZ("$report_name",40)." $NOW_TIME\n";
|
||||
$GRAPH.=_QXZ("Time range").": $query_date_BEGIN to $query_date_END\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$file_output .= _QXZ("Agent Time Detail",40)." $NOW_TIME\n";
|
||||
$file_output .= "Time range: $query_date_BEGIN to $query_date_END\n\n";
|
||||
$file_output .= _QXZ("$report_name",40)." $NOW_TIME\n";
|
||||
$file_output .= _QXZ("Time range").": $query_date_BEGIN to $query_date_END\n\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -1449,9 +1457,6 @@ if ($file_download > 0)
|
||||
exit;
|
||||
}
|
||||
|
||||
$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>";
|
||||
|
||||
############################################################################
|
||||
##### BEGIN HTML form section
|
||||
############################################################################
|
||||
@@ -1459,8 +1464,8 @@ $JS_onload.="}\n";
|
||||
if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
|
||||
$JS_text.="</script>\n";
|
||||
|
||||
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 "<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>";
|
||||
echo "<TABLE CELLSPACING=3 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> "._QXZ("Dates").":<BR>";
|
||||
echo "<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
@@ -1544,7 +1549,7 @@ echo "</TD><TD VALIGN=TOP>"._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 "<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE='"._QXZ("SUBMIT")."'>$NWB#agent_time_detail$NWE\n";
|
||||
echo "<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE='"._QXZ("SUBMIT")."'>\n";
|
||||
echo "</TD><TD VALIGN=TOP> ";
|
||||
|
||||
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> \n";
|
||||
@@ -1553,7 +1558,7 @@ echo " <a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a> </FONT>\n";
|
||||
echo "</FONT>\n";
|
||||
echo "</TD></TR></TABLE>";
|
||||
|
||||
echo "</FORM>\n\n<BR>$db_source";
|
||||
echo "</FORM>";
|
||||
############################################################################
|
||||
##### END HTML form section
|
||||
############################################################################
|
||||
@@ -1576,8 +1581,8 @@ echo "<font size=1 color=white>$RUNtime</font>\n";
|
||||
|
||||
##### BEGIN horizontal yellow transparent bar graph overlay on top of agent stats
|
||||
echo "</span>\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:3px;z-index:18;\" id=agent_status_bars>\n";
|
||||
echo "<PRE><FONT SIZE=2>\n\n\n\n\n\n\n\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:30px;z-index:18;\" id=agent_status_bars>\n";
|
||||
echo "<PRE><FONT SIZE=2>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
|
||||
|
||||
if ($stage == 'NAME') {$k=0;}
|
||||
$m=0;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_performance_comparison_report.php
|
||||
#
|
||||
# Copyright (C) 2015 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com LICENSE: AGPLv2
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -13,6 +13,7 @@
|
||||
# 141230-0939 - Added code for on-the-fly language translations display
|
||||
# 150516-1314 - Fixed Javascript element problem, Issue #857
|
||||
# 151227-1746 - Added option for searching archived data
|
||||
# 160121-2215 - Added report title header, default report format, cleaned up formatting
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -43,11 +44,11 @@ if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
||||
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
||||
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["file_download"])) {$file_download=$_GET["file_download"];}
|
||||
if (isset($_GET["file_download"])) {$file_download=$_GET["file_download"];}
|
||||
elseif (isset($_POST["file_download"])) {$file_download=$_POST["file_download"];}
|
||||
if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
|
||||
if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
|
||||
elseif (isset($_POST["report_display_type"])) {$report_display_type=$_POST["report_display_type"];}
|
||||
if (isset($_GET["show_percentages"])) {$show_percentages=$_GET["show_percentages"];}
|
||||
if (isset($_GET["show_percentages"])) {$show_percentages=$_GET["show_percentages"];}
|
||||
elseif (isset($_POST["show_percentages"])) {$show_percentages=$_POST["show_percentages"];}
|
||||
if (isset($_GET["search_archived_data"])) {$search_archived_data=$_GET["search_archived_data"];}
|
||||
elseif (isset($_POST["search_archived_data"])) {$search_archived_data=$_POST["search_archived_data"];}
|
||||
@@ -61,7 +62,7 @@ $JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,report_default_format FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {$HTML_text.="$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -74,9 +75,11 @@ if ($qm_conf_ct > 0)
|
||||
$reports_use_slave_db = $row[3];
|
||||
$SSenable_languages = $row[4];
|
||||
$SSlanguage_method = $row[5];
|
||||
$SSreport_default_format = $row[6];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
if (strlen($report_display_type)<2) {$report_display_type = $SSreport_default_format;}
|
||||
|
||||
### ARCHIVED DATA CHECK CONFIGURATION
|
||||
$archives_available="N";
|
||||
@@ -425,7 +428,7 @@ else
|
||||
|
||||
if ($DB) {$HTML_text.="$user_group_string|$user_group_ct|$user_groupQS|$i<BR>";}
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&DB=$DB&show_percentages=$show_percentages&search_archived_data=$search_archived_data";
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&DB=$DB&show_percentages=$show_percentages&search_archived_data=$search_archived_data&report_display_type=$report_display_type";
|
||||
|
||||
$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>";
|
||||
@@ -453,10 +456,11 @@ $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.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
$HTML_text.="<b>"._QXZ("$report_name")."</b> $NWB#performance_comparison_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("date").":<BR>";
|
||||
$HTML_text.="<TABLE CELLSPACING=3 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> "._QXZ("Date").":<BR>";
|
||||
$HTML_text.="<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
$HTML_text.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
@@ -560,15 +564,15 @@ $HTML_text.=" <a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a> </FONT>
|
||||
$HTML_text.="</FONT>\n";
|
||||
$HTML_text.="</TD></TR></TABLE>";
|
||||
|
||||
$HTML_text.="</FORM>\n\n";
|
||||
$HTML_text.="</FORM>\n";
|
||||
|
||||
|
||||
$HTML_text.="<PRE><FONT SIZE=2>\n";
|
||||
$HTML_text.="<PRE><FONT SIZE=2>";
|
||||
|
||||
|
||||
if (!$group)
|
||||
{
|
||||
$HTML_text.="\n";
|
||||
# $HTML_text.="\n";
|
||||
$HTML_text.=_QXZ("PLEASE SELECT A CAMPAIGN AND DATE-TIME ABOVE AND CLICK SUBMIT")."\n";
|
||||
$HTML_text.=" "._QXZ("NOTE: stats taken from shift specified")."\n";
|
||||
}
|
||||
@@ -601,8 +605,6 @@ else
|
||||
|
||||
|
||||
|
||||
$ASCII_text="---------- "._QXZ("PERFORMANCE Details")." -------------\n";
|
||||
|
||||
$HTML_text.=_QXZ("Agent Performance Comparison",50)." $NOW_TIME\n";
|
||||
$HTML_text.=""._QXZ("Starting date",15,"r").": $query_date <a href=\"$LINKbase&stage=$stage&file_download=1\">["._QXZ("DOWNLOAD")."]</a>\n\n";
|
||||
|
||||
@@ -704,7 +706,7 @@ else
|
||||
{
|
||||
$agent_performance_array[$row[3]][($array_offset+1)]+=$row[0]; # SALES FOR TIME RANGE
|
||||
}
|
||||
$agent_performance_array[$row[3]][($array_offset+4)]+=($row[4]+$row[1]+$row[6]+$row[5]+$row[8]); # TIME - pause, talk, disp, wait, dead
|
||||
$agent_performance_array[$row[3]][($array_offset+4)]+=($row[4]+$row[1]+$row[6]+$row[5]); # TIME - pause, talk, disp, wait
|
||||
$i++;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# QC statuses of QCFAIL, QCCANC and sales are defined by the Sale=Y status
|
||||
# flags being set on those statuses.
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -25,6 +25,7 @@
|
||||
# 141230-1424 - Added code for on-the-fly language translations display
|
||||
# 150516-1315 - Fixed Javascript element problem, Issue #857
|
||||
# 151219-0139 - Added option for searching archived data
|
||||
# 160121-2214 - Added report title header, default report format, cleaned up formatting
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -68,7 +69,7 @@ $JS_onload="onload = function() {\n";
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,report_default_format FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {$HTML_text.="$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -81,9 +82,11 @@ if ($qm_conf_ct > 0)
|
||||
$reports_use_slave_db = $row[3];
|
||||
$SSenable_languages = $row[4];
|
||||
$SSlanguage_method = $row[5];
|
||||
$SSreport_default_format = $row[6];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
if (strlen($report_display_type)<2) {$report_display_type = $SSreport_default_format;}
|
||||
|
||||
### ARCHIVED DATA CHECK CONFIGURATION
|
||||
$archives_available="N";
|
||||
@@ -439,6 +442,8 @@ else
|
||||
######################################
|
||||
if ($DB) {$HTML_text.="$user_group_string|$user_group_ct|$user_groupQS|$i<BR>";}
|
||||
|
||||
$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>";
|
||||
|
||||
###########################
|
||||
|
||||
@@ -463,10 +468,11 @@ $HTML_head.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
$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>$group_S\n";
|
||||
|
||||
$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#team_performance_detail$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>";
|
||||
$HTML_text.="<TABLE CELLSPACING=3 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>";
|
||||
$HTML_text.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$HTML_text.="<INPUT TYPE=HIDDEN NAME=type VALUE=\"$type\">\n";
|
||||
$HTML_text.="Date Range:<BR>\n";
|
||||
@@ -476,6 +482,10 @@ $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";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# This User-Group based report runs some very intensive SQL queries, so it is
|
||||
# not recommended to run this on long time periods.
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -19,6 +19,7 @@
|
||||
# 141230-1413 - Added code for on-the-fly language translations display
|
||||
# 150516-1316 - Fixed Javascript element problem, Issue #857
|
||||
# 151229-2014 - Added archive search option
|
||||
# 160121-2218 - Added report title header, default report format, cleaned up formatting
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -49,7 +50,7 @@ $db_source = 'M';
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,outbound_autodial_active,slave_db_server,reports_use_slave_db,enable_languages,language_method,report_default_format FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {$HTML_text.="$stmt\n";}
|
||||
if ($archive_tbl) {$agent_log_table="vicidial_agent_log_archive";} else {$agent_log_table="vicidial_agent_log";}
|
||||
@@ -63,9 +64,11 @@ if ($qm_conf_ct > 0)
|
||||
$reports_use_slave_db = $row[3];
|
||||
$SSenable_languages = $row[4];
|
||||
$SSlanguage_method = $row[5];
|
||||
$SSreport_default_format = $row[6];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
if (strlen($report_display_type)<2) {$report_display_type = $SSreport_default_format;}
|
||||
|
||||
### ARCHIVED DATA CHECK CONFIGURATION
|
||||
$archives_available="N";
|
||||
@@ -294,6 +297,8 @@ else
|
||||
######################################
|
||||
if ($DB) {$HTML_text.="$user_group_string|$user_group_ct|$user_groupQS|$i<BR>";}
|
||||
|
||||
$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>";
|
||||
|
||||
###########################
|
||||
|
||||
@@ -307,14 +312,21 @@ $HTML_head.=" .blue {color: white; background-color: blue}\n";
|
||||
$HTML_head.=" .purple {color: white; background-color: purple}\n";
|
||||
$HTML_head.="-->\n";
|
||||
$HTML_head.=" </STYLE>\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.="</script>\n";
|
||||
|
||||
$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";
|
||||
|
||||
$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#usergroup_login$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> <BR>";
|
||||
$HTML_text.="<TABLE CELLSPACING=3 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP> <BR>";
|
||||
$HTML_text.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$HTML_text.="<INPUT TYPE=HIDDEN NAME=type VALUE=\"$type\">\n";
|
||||
$HTML_text.="</TD><TD VALIGN=TOP>"._QXZ("Teams/User Groups").":<BR>";
|
||||
@@ -355,11 +367,21 @@ $HTML_text.="<a href=\"$PHP_SELF?DB=$DB&query_date=$query_date&end_date=$end_dat
|
||||
$HTML_text.=" <a href=\"./admin.php?ADD=999999\">"._QXZ("REPORTS")."</a> </FONT>\n";
|
||||
$HTML_text.="</FONT>\n";
|
||||
$HTML_text.="</TD></TR></TABLE>";
|
||||
$HTML_text.="</FORM><font size=2><PRE>\n\n";
|
||||
$HTML_text.="</FORM><font size=2><PRE>\n";
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
$ASCII_text.=_QXZ("Usergroup Login Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
$GRAPH_text.=_QXZ("Usergroup Login Report Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$CSV_text .= _QXZ("Usergroup Login Report Report",24).": $user $NOW_TIME ($db_source)\n";
|
||||
}
|
||||
|
||||
if ($SUBMIT)
|
||||
{
|
||||
$ASCII_text="+--------------------------------+----------+----------------------+---------------------+---------------------+----------+-----------------+-----------------+----------------------+--------------+-----------------+-----------------+-----------------+\n";
|
||||
$ASCII_text.="+--------------------------------+----------+----------------------+---------------------+---------------------+----------+-----------------+-----------------+----------------------+--------------+-----------------+-----------------+-----------------+\n";
|
||||
$ASCII_text.="| "._QXZ("USER NAME",30)." | "._QXZ("ID",8)." | "._QXZ("USER GROUP",20)." | "._QXZ("FIRST LOGIN DATE",19)." | "._QXZ("LAST LOGIN DATE",19)." | "._QXZ("CAMPAIGN",8)." | "._QXZ("SERVER IP",15)." | "._QXZ("COMPUTER IP",15)." | "._QXZ("EXTENSION",20)." | "._QXZ("BROWSER",12)." | "._QXZ("PHONE LOGIN",15)." | "._QXZ("SERVER PHONE",15)." | "._QXZ("PHONE IP",15)." |\n";
|
||||
$ASCII_text.="+--------------------------------+----------+----------------------+---------------------+---------------------+----------+-----------------+-----------------+----------------------+--------------+-----------------+-----------------+-----------------+\n";
|
||||
|
||||
@@ -413,7 +435,7 @@ else
|
||||
# if ($report_display_type=='HTML') {$JS_text.=$JS_onload;}
|
||||
# $JS_text.="</script>\n";
|
||||
|
||||
if ($report_display_type=="HTML")
|
||||
if ($report_display_type=="HTMLOFF")
|
||||
{
|
||||
$HTML_text.=$GRAPH_text;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -75,6 +75,7 @@
|
||||
# 150923-0700 - Fixed security issues with user access, issue #894
|
||||
# 160102-1238 - Fixed issues with special characters, added $htmlconvert option
|
||||
# 160112-2344 - Added link to direct to recording logging page, access log display
|
||||
# 160122-1337 - Added display of gmt-offset, last-local-call and called-since-last-reset
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -1160,6 +1161,7 @@ else
|
||||
$vendor_id = $row[5];
|
||||
$list_id = $row[7];
|
||||
$gmt_offset_now = $row[8];
|
||||
$called_since_last_reset = $row[9];
|
||||
$phone_code = $row[10];
|
||||
$phone_number = $row[11];
|
||||
$title = $row[12];
|
||||
@@ -1230,8 +1232,8 @@ else
|
||||
echo "<input type=hidden name=parked_time value=\"$parked_time\">\n";
|
||||
echo "<input type=hidden name=FORM_LOADED id=FORM_LOADED value=\"0\" />\n";
|
||||
echo "<table cellpadding=1 cellspacing=0>\n";
|
||||
echo "<tr><td colspan=2>"._QXZ("Lead ID").": $lead_id "._QXZ("List ID").": $list_id</td></tr>\n";
|
||||
echo "<tr><td colspan=2>"._QXZ("Fronter").": <A HREF=\"user_stats.php?user=$tsr\">$tsr</A> "._QXZ("Called Count").": $called_count</td></tr>\n";
|
||||
echo "<tr><td colspan=2>"._QXZ("Lead ID").": $lead_id "._QXZ("List ID").": $list_id <font size=2>"._QXZ("GMT offset").": $gmt_offset_now "._QXZ("CSLR").": $called_since_last_reset</td></tr>\n";
|
||||
echo "<tr><td colspan=2>"._QXZ("Fronter").": <A HREF=\"user_stats.php?user=$tsr\">$tsr</A> "._QXZ("Called Count").": $called_count <font size=2>"._QXZ("Last Local Call").": $last_local_call_time</td></tr>\n";
|
||||
if ($archive_search=="Yes")
|
||||
{
|
||||
echo "<tr><td colspan=2 align='center'>";
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
# 160106-1348 - Added inbound_groups-on_hook_cid_number entry
|
||||
# 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
|
||||
#
|
||||
|
||||
|
||||
@@ -5063,6 +5064,11 @@ FR_SPAC 00 00 00 00 00 - <?php echo _QXZ("France space separated phone number");
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Default Server Password"); ?> -</B><?php echo _QXZ("This is the default server password used when new servers are added to the system. Default is test."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="settings-report_default_format">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Report Default Format"); ?> -</B><?php echo _QXZ("Determines whether the reports will default to display in text or html format. Default is TEXT."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="settings-slave_db_server">
|
||||
<BR>
|
||||
@@ -5565,7 +5571,7 @@ if ($SSqc_features_active > 0)
|
||||
<?php echo _QXZ("<U>TALK</U> = Time the agent talks to a customer or is in dead state (<U>DEAD</U> + <U>CUSTOMER</U>)."); ?><BR>
|
||||
<?php echo _QXZ("<U>DISPO</U> = Time the agent uses at the disposition screen (where the agent picks NI, SALE etc)."); ?><BR>
|
||||
<?php echo _QXZ("<U>PAUSE</U> = Time the agent is in pause mode (<U>LOGIN</U> + <U>LAGGED</U> + ...)."); ?><BR>
|
||||
<?php echo _QXZ("<U>DEAD</U> = Time the agent is in a call where the customer has hung up."); ?><BR>
|
||||
<?php echo _QXZ("<U>DEAD</U> = Time the agent is in a call after the customer has hung up."); ?><BR>
|
||||
<?php echo _QXZ("<U>CUSTOMER</U> = Time the agent is in a live call with a customer."); ?><BR>
|
||||
<?php echo _QXZ("- The next table is pause codes and their time."); ?><BR>
|
||||
<?php echo _QXZ("<U>LOGIN</U> = The pause code when going from login directly to pause."); ?><BR>
|
||||
@@ -5584,7 +5590,7 @@ if ($SSqc_features_active > 0)
|
||||
<A NAME="agent_performance_detail">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Agent Performance Detail"); ?> -</B><?php echo _QXZ("This is a combination of Agent Time Detail and Agent Status Detail."); ?><BR>
|
||||
<?php echo _QXZ("(Statistics related to handling of calls only)"); ?><BR>
|
||||
<?php echo _QXZ("(Statistics related to handling of calls only. What this means is that the top section will only include time involving a phone call. If an agent clicks to go active, then pauses, then goes active again without taking a call, that time will not be included in the top section of this report.)"); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = Total number of calls sent to the user."); ?><BR>
|
||||
<?php echo _QXZ("<U>TIME</U> = Total time of these (<U>PAUSE</U> + <U>WAIT</U> + <U>TALK</U> + <U>DISPO</U>)."); ?><BR>
|
||||
<?php echo _QXZ("<U>PAUSE</U> = Amount of time being paused in related to call handling."); ?><BR>
|
||||
@@ -5592,7 +5598,7 @@ if ($SSqc_features_active > 0)
|
||||
<?php echo _QXZ("<U>WAIT</U> = Time the agent waits for a call."); ?><BR>
|
||||
<?php echo _QXZ("<U>TALK</U> = Time the agent talks to a customer or is in dead state (<U>DEAD</U> + <U>CUSTOMER</U>)."); ?><BR>
|
||||
<?php echo _QXZ("<U>DISPO</U> = Time the agent uses at the disposition screen (where the agent picks NI, SALE etc)."); ?><BR>
|
||||
<?php echo _QXZ("<U>DEAD</U> = Time the agent is in a call where the customer has hung up."); ?><BR>
|
||||
<?php echo _QXZ("<U>DEAD</U> = Time the agent is in a call after the customer has hung up."); ?><BR>
|
||||
<?php echo _QXZ("<U>CUSTOMER</U> = Time the agent is in a live call with a customer."); ?><BR>
|
||||
<?php echo _QXZ("And the rest is just System Statuses that the agent picked and how many, to find out what they means then head over to Admin -> System Statuses."); ?><BR>
|
||||
<?php echo _QXZ("- Next table is Pause Codes."); ?><BR>
|
||||
@@ -5605,6 +5611,71 @@ if ($SSqc_features_active > 0)
|
||||
<?php echo _QXZ("<U>ANDIAL</U> = This pause code triggers if the agent been on dispo screen for longer than 1000 seconds."); ?><BR>
|
||||
<?php echo _QXZ("and empty is undefined pause code."); ?><BR>
|
||||
|
||||
<A NAME="team_performance_detail">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Team Performance Detail"); ?> -</B><?php echo _QXZ("This report contains some of the same information as the Agent Time Detail report, as well as several new fields. Also, the users are grouped together within their User Groups, and there is a User Group summary at the bottom of the results."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = Total number of calls sent to the user."); ?><BR>
|
||||
<?php echo _QXZ("<U>LEADS</U> = Total number of unique leads the user handled."); ?><BR>
|
||||
<?php echo _QXZ("<U>CONTACTS</U> = Total number of calls the user handled that were statused in a Customer Contact status."); ?><BR>
|
||||
<?php echo _QXZ("<U>CONTACT RATIO</U> = Percent of calls where a customer was contacted."); ?><BR>
|
||||
<?php echo _QXZ("<U>NONPAUSE</U> = Everything except pause (<U>WAIT</U> + <U>TALK</U> + <U>DISPO</U>)."); ?><BR>
|
||||
<?php echo _QXZ("<U>TIME</U> = Total time of these (<U>PAUSE</U> + <U>WAIT</U> + <U>TALK</U> + <U>DISPO</U>)."); ?><BR>
|
||||
<?php echo _QXZ("<U>TALK</U> = Time the agent talks to a customer minus <U>DEAD</U> time."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES</U> = Total number of calls the user handled that were statused in a Sales status."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES PER WORKING HOUR</U> = Total number of sales divided by system time."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES TO LEADS RATIO</U> = Total number of sales divided by leads handled."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES TO CONTACTS RATIO</U> = Total number of sales divided by contacts."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES PER HOUR</U> = Total number of sales divided by talk time."); ?><BR>
|
||||
<?php echo _QXZ("<U>INCOMPLETE SALES</U> = Total number of calls statused as QCFAIL."); ?><BR>
|
||||
<?php echo _QXZ("<U>CANCELLED SALES</U> = Total number of calls statused as QCCANC."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLBACKS</U> = Total number of active or live callbacks for this user in the system."); ?><BR>
|
||||
<?php echo _QXZ("<U>FIRST CALL RESOLUTION</U> = Total number of calls handled divided by leads handled."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVERAGE SALE TIME</U> = Total number of sales divided by the talk time for those sales calls."); ?><BR>
|
||||
<?php echo _QXZ("<U>AVERAGE CONTACT TIME</U> = Total number of contacts divided by the talk time for those contact calls."); ?><BR>
|
||||
|
||||
<A NAME="performance_comparison_report">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Performance Comparison Report"); ?> -</B><?php echo _QXZ("This report contains some of the same information as the Team Performance Detail report, and the results for today and yesterday as well as the last 2, 3, 5, 10 and 30 days."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = Total number of calls sent to the user."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES</U> = Total number of calls the user handled that were statused in a Sales status."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES CONVERSION PCT</U> = Total number of sales divided by calls handled."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES PER HOUR</U> = Total number of sales divided by system time."); ?><BR>
|
||||
<?php echo _QXZ("<U>TIME</U> = Total time of these (<U>PAUSE</U> + <U>WAIT</U> + <U>TALK</U> + <U>DISPO</U>)."); ?><BR>
|
||||
|
||||
<A NAME="single_agent_daily">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Single Agent Daily"); ?> -</B><?php echo _QXZ("This report contains most of the same information as the Agent Status Detail report, except for only one agent across a range of days."); ?><BR>
|
||||
<?php echo _QXZ("<U>CALLS</U> = Total number of calls sent to the user."); ?><BR>
|
||||
<?php echo _QXZ("<U>CI CALLS</U> = Total number of calls the user handled that were statused in a Customer Contact status."); ?><BR>
|
||||
<?php echo _QXZ("<U>DNC CI PCT</U> = Total number of DNC statused calls divided by the number of Customer Contact calls."); ?><BR>
|
||||
<?php echo _QXZ("<U>SALES PER HOUR</U> = Total number of sales divided by system time."); ?><BR>
|
||||
<?php echo _QXZ("(the rest of the fields are the statuses that the agent selected)"); ?><BR>
|
||||
|
||||
<A NAME="single_agent_time">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Single Agent Daily Time"); ?> -</B><?php echo _QXZ("This report is similar to the Agent Time Detail report, except for only one agent across a range of days."); ?><BR>
|
||||
<?php echo _QXZ("<U>PAUSE</U> = Amount of time for the agent being paused."); ?><BR>
|
||||
<?php echo _QXZ("<U>WAIT</U> = Time the agent waits for a call."); ?><BR>
|
||||
<?php echo _QXZ("<U>TALK</U> = Time the agent talks to a customer or is in dead state (<U>DEAD</U> + <U>CUSTOMER</U>)."); ?><BR>
|
||||
<?php echo _QXZ("<U>DISPO</U> = Time the agent uses at the disposition screen (where the agent picks NI, SALE etc)."); ?><BR>
|
||||
<?php echo _QXZ("<U>DEAD</U> = Time the agent is in a call after the customer has hung up."); ?><BR>
|
||||
<?php echo _QXZ("<U>CUSTOMER</U> = Time the agent is in a live call with a customer."); ?><BR>
|
||||
<?php echo _QXZ("<U>TOTAL</U> = Total time of these (<U>PAUSE</U> + <U>WAIT</U> + <U>TALK</U> + <U>DISPO</U>)."); ?><BR>
|
||||
|
||||
<A NAME="usergroup_login">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("User Group Login Report"); ?> -</B><?php echo _QXZ("This report includes information on all of the users within a user group related to agent screen activity."); ?><BR>
|
||||
<?php echo _QXZ("<U>FIRST LOGIN DATE</U> = The earliest date this user logged in to the agent screen."); ?><BR>
|
||||
<?php echo _QXZ("<U>LAST LOGIN DATE</U> = The most recent date this user logged in to the agent screen."); ?><BR>
|
||||
<?php echo _QXZ("<U>CAMPAIGN</U> = The most recent campaign this user was logged in to."); ?><BR>
|
||||
<?php echo _QXZ("<U>SERVER IP</U> = The most recent server this user logged in to."); ?><BR>
|
||||
<?php echo _QXZ("<U>COMPUTER IP</U> = The most recent computer this user used to log in to the agent screen."); ?><BR>
|
||||
<?php echo _QXZ("<U>EXTENSION</U> = The most recent phone this user used to log in to the agent screen."); ?><BR>
|
||||
<?php echo _QXZ("<U>BROWSER</U> = The most recent web browser version this user used to log in to the agent screen."); ?><BR>
|
||||
<?php echo _QXZ("<U>PHONE LOGIN</U> = The most recent phone login this user used to log in to the agent screen."); ?><BR>
|
||||
<?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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user