From 111a0cfcdbf5e06cd596a117fe016fee7787940b Mon Sep 17 00:00:00 2001 From: mattf Date: Sun, 26 May 2019 02:17:44 +0000 Subject: [PATCH] Added RS_agentWAIT option for real-time report git-svn-id: svn://192.168.202.10@3103 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../trunk/www/vicidial/AST_timeonVDADall.php | 39 +++++++++++++++---- .../trunk/www/vicidial/options-example.php | 3 ++ .../trunk/www/vicidial/realtime_report.php | 8 +++- 3 files changed, 40 insertions(+), 10 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php index 16eb1b4c..1467e442 100644 --- a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php +++ b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php @@ -112,10 +112,11 @@ # 190313-0607 - Fix for columns display issue #1141 # 190420-1728 - Added RS_ListenBarge options.php setting # 190513-1711 - Added ingroup filter +# 190525-2133 - Added new agent time segment display # -$version = '2.14-99'; -$build = '190513-1711'; +$version = '2.14-100'; +$build = '190525-2133'; header ("Content-type: text/html; charset=utf-8"); @@ -240,6 +241,7 @@ if ( (strlen($slave_db_server)>5) and (preg_match("/$report_name/",$reports_use_ } $RS_ListenBarge = 'MONITOR|BARGE|WHISPER'; +$RS_agentWAIT = 3; if (file_exists('options.php')) { @@ -1187,6 +1189,7 @@ else .green {color: white; background-color: green} .red {color: white; background-color: red} .lightblue {color: black; background-color: #ADD8E6} + .rust {color: black; background-color: #F47442} .blue {color: white; background-color: blue} .midnightblue {color: white; background-color: #191970} .purple {color: white; background-color: purple} @@ -3461,9 +3464,19 @@ if ($talking_to_print > 0) if ( (preg_match("/READY/i",$status)) or (preg_match("/CLOSER/i",$status)) ) {$agent_ready++; $agent_total++;} if ( (preg_match("/READY/i",$status)) or (preg_match("/CLOSER/i",$status)) ) { - $G=''; $EG=''; $tr_class='TRlightblue'; - if ($call_time_S >= 60) {$G=''; $EG=''; $tr_class='TRblue';} - if ($call_time_S >= 300) {$G=''; $EG=''; $tr_class='TRmidnightblue';} + if ($RS_agentWAIT == 4) + { + $G=''; $EG=''; $tr_class='TRlightblue'; + if ($call_time_S >= 30) {$G=''; $EG=''; $tr_class='TRrust';} + if ($call_time_S >= 60) {$G=''; $EG=''; $tr_class='TRblue';} + if ($call_time_S >= 300) {$G=''; $EG=''; $tr_class='TRmidnightblue';} + } + else + { + $G=''; $EG=''; $tr_class='TRlightblue'; + if ($call_time_S >= 60) {$G=''; $EG=''; $tr_class='TRblue';} + if ($call_time_S >= 300) {$G=''; $EG=''; $tr_class='TRmidnightblue';} + } } if ($Astatus[$i] == 'RING') @@ -3618,9 +3631,19 @@ if ($talking_to_print > 0) # $Aecho .= " - "._QXZ("Balanced call")."\n"; $Aecho .= " - "._QXZ("Agent chatting")."\n"; $Aecho .= " - "._QXZ("Agent in email")."\n"; - $Aecho .= " - "._QXZ("Agent waiting for call")."\n"; - $Aecho .= " - "._QXZ("Agent waiting for call > 1 minute")."\n"; - $Aecho .= " - "._QXZ("Agent waiting for call > 5 minutes")."\n"; + if ($RS_agentWAIT == 4) + { + $Aecho .= " - "._QXZ("Agent waiting for call")."\n"; + $Aecho .= " - "._QXZ("Agent waiting for call > 30 seconds")."\n"; + $Aecho .= " - "._QXZ("Agent waiting for call > 1 minute")."\n"; + $Aecho .= " - "._QXZ("Agent waiting for call > 5 minutes")."\n"; + } + else + { + $Aecho .= " - "._QXZ("Agent waiting for call")."\n"; + $Aecho .= " - "._QXZ("Agent waiting for call > 1 minute")."\n"; + $Aecho .= " - "._QXZ("Agent waiting for call > 5 minutes")."\n"; + } $Aecho .= " - "._QXZ("Agent on call > 10 seconds")."\n"; $Aecho .= " - "._QXZ("Agent on call > 1 minute")."\n"; $Aecho .= " - "._QXZ("Agent on call > 5 minutes")."\n"; diff --git a/agc_2-X/trunk/www/vicidial/options-example.php b/agc_2-X/trunk/www/vicidial/options-example.php index 9ff434e9..63359966 100644 --- a/agc_2-X/trunk/www/vicidial/options-example.php +++ b/agc_2-X/trunk/www/vicidial/options-example.php @@ -24,6 +24,7 @@ # 190414-1121 - Added RS_logoutLINK # 190420-1722 - Added RS_ListenBarge # 190503-1544 - Added enable_status_mismatch_leadloader_option +# 190525-2145 - Added RS_agentWAIT option # # used by the realtime_report.php script @@ -66,6 +67,8 @@ $RS_AGENTtimeSTATS = 0; # 0=no, 1=yes $RS_droppedOFtotal = 0; # 0=no, 1=yes $RS_logoutLINK = 0; # 0=no, 1=yes $RS_ListenBarge = 'MONITOR|BARGE|WHISPER'; # list of listen-related features separated by pipes: "MONITOR|BARGE|WHISPER" +$RS_agentWAIT = 3; # 3 or 4 + # used by agent reports $user_case = 0; # 1=upper-case, 2-lower-case, 0-no-case-change diff --git a/agc_2-X/trunk/www/vicidial/realtime_report.php b/agc_2-X/trunk/www/vicidial/realtime_report.php index c3547c64..70a69b50 100644 --- a/agc_2-X/trunk/www/vicidial/realtime_report.php +++ b/agc_2-X/trunk/www/vicidial/realtime_report.php @@ -45,12 +45,13 @@ # 190414-1106 - Made admin and summary report links conditional, RS_logoutLINK options.php option # 190420-1729 - Added RS_ListenBarge options.php setting # 190513-1711 - Added ingroup filter +# 190525-2205 - Added rust color definition # $startMS = microtime(); -$version = '2.14-32'; -$build = '190513-1711'; +$version = '2.14-33'; +$build = '190525-2205'; header ("Content-type: text/html; charset=utf-8"); @@ -1699,6 +1700,7 @@ function update_variables(task_option,task_choice,force_reload) .green {color: white; background-color: green;} .red {color: white; background-color: red;} .lightblue {color: black; background-color: #ADD8E6;} + .rust {color: black; background-color: #F47442} .blue {color: white; background-color: blue;} .midnightblue {color: white; background-color: #191970;} .purple {color: white; background-color: purple;} @@ -1717,6 +1719,7 @@ function update_variables(task_option,task_choice,force_reload) .Hgreen {color: white; background-color: green; font-size: 11;} .Hred {color: white; background-color: red; font-size: 11;} .Hlightblue {color: black; background-color: #ADD8E6; font-size: 11;} + .Hrust {color: black; background-color: #F47442; font-size: 11;} .Hblue {color: white; background-color: blue; font-size: 11;} .Hmidnightblue {color: white; background-color: #191970; font-size: 11;} .Hpurple {color: white; background-color: purple; font-size: 11;} @@ -1735,6 +1738,7 @@ function update_variables(task_option,task_choice,force_reload) tr.TRgreen {background-color: green} tr.TRred {background-color: red} tr.TRlightblue {background-color: #ADD8E6} + tr.TRrust {background-color: #F47442} tr.TRblue {background-color: blue} tr.TRmidnightblue {background-color: #191970} tr.TRpurple {background-color: purple}