Added RS_agentWAIT option for real-time report
git-svn-id: svn://192.168.202.10@3103 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -112,10 +112,11 @@
|
|||||||
# 190313-0607 - Fix for columns display issue #1141
|
# 190313-0607 - Fix for columns display issue #1141
|
||||||
# 190420-1728 - Added RS_ListenBarge options.php setting
|
# 190420-1728 - Added RS_ListenBarge options.php setting
|
||||||
# 190513-1711 - Added ingroup filter
|
# 190513-1711 - Added ingroup filter
|
||||||
|
# 190525-2133 - Added new agent time segment display
|
||||||
#
|
#
|
||||||
|
|
||||||
$version = '2.14-99';
|
$version = '2.14-100';
|
||||||
$build = '190513-1711';
|
$build = '190525-2133';
|
||||||
|
|
||||||
header ("Content-type: text/html; charset=utf-8");
|
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_ListenBarge = 'MONITOR|BARGE|WHISPER';
|
||||||
|
$RS_agentWAIT = 3;
|
||||||
|
|
||||||
if (file_exists('options.php'))
|
if (file_exists('options.php'))
|
||||||
{
|
{
|
||||||
@@ -1187,6 +1189,7 @@ else
|
|||||||
.green {color: white; background-color: green}
|
.green {color: white; background-color: green}
|
||||||
.red {color: white; background-color: red}
|
.red {color: white; background-color: red}
|
||||||
.lightblue {color: black; background-color: #ADD8E6}
|
.lightblue {color: black; background-color: #ADD8E6}
|
||||||
|
.rust {color: black; background-color: #F47442}
|
||||||
.blue {color: white; background-color: blue}
|
.blue {color: white; background-color: blue}
|
||||||
.midnightblue {color: white; background-color: #191970}
|
.midnightblue {color: white; background-color: #191970}
|
||||||
.purple {color: white; background-color: purple}
|
.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)) ) {$agent_ready++; $agent_total++;}
|
||||||
if ( (preg_match("/READY/i",$status)) or (preg_match("/CLOSER/i",$status)) )
|
if ( (preg_match("/READY/i",$status)) or (preg_match("/CLOSER/i",$status)) )
|
||||||
{
|
{
|
||||||
$G='<SPAN class="lightblue"><B>'; $EG='</B></SPAN>'; $tr_class='TRlightblue';
|
if ($RS_agentWAIT == 4)
|
||||||
if ($call_time_S >= 60) {$G='<SPAN class="blue"><B>'; $EG='</B></SPAN>'; $tr_class='TRblue';}
|
{
|
||||||
if ($call_time_S >= 300) {$G='<SPAN class="midnightblue"><B>'; $EG='</B></SPAN>'; $tr_class='TRmidnightblue';}
|
$G='<SPAN class="lightblue"><B>'; $EG='</B></SPAN>'; $tr_class='TRlightblue';
|
||||||
|
if ($call_time_S >= 30) {$G='<SPAN class="rust"><B>'; $EG='</B></SPAN>'; $tr_class='TRrust';}
|
||||||
|
if ($call_time_S >= 60) {$G='<SPAN class="blue"><B>'; $EG='</B></SPAN>'; $tr_class='TRblue';}
|
||||||
|
if ($call_time_S >= 300) {$G='<SPAN class="midnightblue"><B>'; $EG='</B></SPAN>'; $tr_class='TRmidnightblue';}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$G='<SPAN class="lightblue"><B>'; $EG='</B></SPAN>'; $tr_class='TRlightblue';
|
||||||
|
if ($call_time_S >= 60) {$G='<SPAN class="blue"><B>'; $EG='</B></SPAN>'; $tr_class='TRblue';}
|
||||||
|
if ($call_time_S >= 300) {$G='<SPAN class="midnightblue"><B>'; $EG='</B></SPAN>'; $tr_class='TRmidnightblue';}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($Astatus[$i] == 'RING')
|
if ($Astatus[$i] == 'RING')
|
||||||
@@ -3618,9 +3631,19 @@ if ($talking_to_print > 0)
|
|||||||
# $Aecho .= " <SPAN class=\"orange\"><B> </SPAN> - "._QXZ("Balanced call")."</B>\n";
|
# $Aecho .= " <SPAN class=\"orange\"><B> </SPAN> - "._QXZ("Balanced call")."</B>\n";
|
||||||
$Aecho .= " <SPAN class=\"red\"><B> </SPAN> - "._QXZ("Agent chatting")."</B>\n";
|
$Aecho .= " <SPAN class=\"red\"><B> </SPAN> - "._QXZ("Agent chatting")."</B>\n";
|
||||||
$Aecho .= " <SPAN class=\"orange\"><B> </SPAN> - "._QXZ("Agent in email")."</B>\n";
|
$Aecho .= " <SPAN class=\"orange\"><B> </SPAN> - "._QXZ("Agent in email")."</B>\n";
|
||||||
$Aecho .= " <SPAN class=\"lightblue\"><B> </SPAN> - "._QXZ("Agent waiting for call")."</B>\n";
|
if ($RS_agentWAIT == 4)
|
||||||
$Aecho .= " <SPAN class=\"blue\"><B> </SPAN> - "._QXZ("Agent waiting for call > 1 minute")."</B>\n";
|
{
|
||||||
$Aecho .= " <SPAN class=\"midnightblue\"><B> </SPAN> - "._QXZ("Agent waiting for call > 5 minutes")."</B>\n";
|
$Aecho .= " <SPAN class=\"lightblue\"><B> </SPAN> - "._QXZ("Agent waiting for call")."</B>\n";
|
||||||
|
$Aecho .= " <SPAN class=\"rust\"><B> </SPAN> - "._QXZ("Agent waiting for call > 30 seconds")."</B>\n";
|
||||||
|
$Aecho .= " <SPAN class=\"blue\"><B> </SPAN> - "._QXZ("Agent waiting for call > 1 minute")."</B>\n";
|
||||||
|
$Aecho .= " <SPAN class=\"midnightblue\"><B> </SPAN> - "._QXZ("Agent waiting for call > 5 minutes")."</B>\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$Aecho .= " <SPAN class=\"lightblue\"><B> </SPAN> - "._QXZ("Agent waiting for call")."</B>\n";
|
||||||
|
$Aecho .= " <SPAN class=\"blue\"><B> </SPAN> - "._QXZ("Agent waiting for call > 1 minute")."</B>\n";
|
||||||
|
$Aecho .= " <SPAN class=\"midnightblue\"><B> </SPAN> - "._QXZ("Agent waiting for call > 5 minutes")."</B>\n";
|
||||||
|
}
|
||||||
$Aecho .= " <SPAN class=\"thistle\"><B> </SPAN> - "._QXZ("Agent on call > 10 seconds")."</B>\n";
|
$Aecho .= " <SPAN class=\"thistle\"><B> </SPAN> - "._QXZ("Agent on call > 10 seconds")."</B>\n";
|
||||||
$Aecho .= " <SPAN class=\"violet\"><B> </SPAN> - "._QXZ("Agent on call > 1 minute")."</B>\n";
|
$Aecho .= " <SPAN class=\"violet\"><B> </SPAN> - "._QXZ("Agent on call > 1 minute")."</B>\n";
|
||||||
$Aecho .= " <SPAN class=\"purple\"><B> </SPAN> - "._QXZ("Agent on call > 5 minutes")."</B>\n";
|
$Aecho .= " <SPAN class=\"purple\"><B> </SPAN> - "._QXZ("Agent on call > 5 minutes")."</B>\n";
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
# 190414-1121 - Added RS_logoutLINK
|
# 190414-1121 - Added RS_logoutLINK
|
||||||
# 190420-1722 - Added RS_ListenBarge
|
# 190420-1722 - Added RS_ListenBarge
|
||||||
# 190503-1544 - Added enable_status_mismatch_leadloader_option
|
# 190503-1544 - Added enable_status_mismatch_leadloader_option
|
||||||
|
# 190525-2145 - Added RS_agentWAIT option
|
||||||
#
|
#
|
||||||
|
|
||||||
# used by the realtime_report.php script
|
# 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_droppedOFtotal = 0; # 0=no, 1=yes
|
||||||
$RS_logoutLINK = 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_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
|
# used by agent reports
|
||||||
$user_case = 0; # 1=upper-case, 2-lower-case, 0-no-case-change
|
$user_case = 0; # 1=upper-case, 2-lower-case, 0-no-case-change
|
||||||
|
|||||||
@@ -45,12 +45,13 @@
|
|||||||
# 190414-1106 - Made admin and summary report links conditional, RS_logoutLINK options.php option
|
# 190414-1106 - Made admin and summary report links conditional, RS_logoutLINK options.php option
|
||||||
# 190420-1729 - Added RS_ListenBarge options.php setting
|
# 190420-1729 - Added RS_ListenBarge options.php setting
|
||||||
# 190513-1711 - Added ingroup filter
|
# 190513-1711 - Added ingroup filter
|
||||||
|
# 190525-2205 - Added rust color definition
|
||||||
#
|
#
|
||||||
|
|
||||||
$startMS = microtime();
|
$startMS = microtime();
|
||||||
|
|
||||||
$version = '2.14-32';
|
$version = '2.14-33';
|
||||||
$build = '190513-1711';
|
$build = '190525-2205';
|
||||||
|
|
||||||
header ("Content-type: text/html; charset=utf-8");
|
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;}
|
.green {color: white; background-color: green;}
|
||||||
.red {color: white; background-color: red;}
|
.red {color: white; background-color: red;}
|
||||||
.lightblue {color: black; background-color: #ADD8E6;}
|
.lightblue {color: black; background-color: #ADD8E6;}
|
||||||
|
.rust {color: black; background-color: #F47442}
|
||||||
.blue {color: white; background-color: blue;}
|
.blue {color: white; background-color: blue;}
|
||||||
.midnightblue {color: white; background-color: #191970;}
|
.midnightblue {color: white; background-color: #191970;}
|
||||||
.purple {color: white; background-color: purple;}
|
.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;}
|
.Hgreen {color: white; background-color: green; font-size: 11;}
|
||||||
.Hred {color: white; background-color: red; font-size: 11;}
|
.Hred {color: white; background-color: red; font-size: 11;}
|
||||||
.Hlightblue {color: black; background-color: #ADD8E6; 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;}
|
.Hblue {color: white; background-color: blue; font-size: 11;}
|
||||||
.Hmidnightblue {color: white; background-color: #191970; font-size: 11;}
|
.Hmidnightblue {color: white; background-color: #191970; font-size: 11;}
|
||||||
.Hpurple {color: white; background-color: purple; 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.TRgreen {background-color: green}
|
||||||
tr.TRred {background-color: red}
|
tr.TRred {background-color: red}
|
||||||
tr.TRlightblue {background-color: #ADD8E6}
|
tr.TRlightblue {background-color: #ADD8E6}
|
||||||
|
tr.TRrust {background-color: #F47442}
|
||||||
tr.TRblue {background-color: blue}
|
tr.TRblue {background-color: blue}
|
||||||
tr.TRmidnightblue {background-color: #191970}
|
tr.TRmidnightblue {background-color: #191970}
|
||||||
tr.TRpurple {background-color: purple}
|
tr.TRpurple {background-color: purple}
|
||||||
|
|||||||
Reference in New Issue
Block a user