From 0a050d2b5cc2f83ababd5e3f7119ef8901d0366f Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 3 Jun 2009 22:48:32 +0000 Subject: [PATCH] Fixed real-time screen color bug git-svn-id: svn://192.168.202.10@1142 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../trunk/www/vicidial/AST_timeonVDADall.php | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php index 79d7a98e..16a90343 100644 --- a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php +++ b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php @@ -50,10 +50,11 @@ # 90518-0930 - Fixed $CALLSdisplay static assignment bug for some links(bug #210) # 90524-2231 - Changed to use functions.php for seconds to HH:MM:SS conversion # 90602-0405 - Added list mix display in statuses and order if active +# 90603-1845 - Fixed color coding bug # -$version = '2.0.5-41'; -$build = '90602-0405'; +$version = '2.0.5-42'; +$build = '90603-1845'; header ("Content-type: text/html; charset=utf-8"); @@ -1602,13 +1603,13 @@ $calls_to_list = mysql_num_rows($rslt); if ($Lstatus=='INCALL') { if ($call_time_S >= 10) {$G=''; $EG='';} - if ($call_time_M_int >= 1) {$G=''; $EG='';} - if ($call_time_M_int >= 5) {$G=''; $EG='';} - # if ($call_time_M_int >= 10) {$G=''; $EG='';} + if ($call_time_S >= 60) {$G=''; $EG='';} + if ($call_time_S >= 300) {$G=''; $EG='';} + # if ($call_time_S >= 600) {$G=''; $EG='';} } if ($Lstatus=='DEAD') { - if ($call_time_M_int >= 360) + if ($call_time_S >= 21600) {$j++; continue;} else { @@ -1619,15 +1620,15 @@ $calls_to_list = mysql_num_rows($rslt); } if ($Lstatus=='DISPO') { - if ($call_time_M_int >= 360) + if ($call_time_S >= 21600) {$j++; continue;} else { $agent_paused++; $agent_total++; $G=''; $EG=''; if ($call_time_S >= 10) {$G=''; $EG='';} - if ($call_time_M_int >= 1) {$G=''; $EG='';} - if ($call_time_M_int >= 5) {$G=''; $EG='';} + if ($call_time_S >= 60) {$G=''; $EG='';} + if ($call_time_S >= 300) {$G=''; $EG='';} } } if ($Lstatus=='PAUSED') @@ -1643,15 +1644,15 @@ $calls_to_list = mysql_num_rows($rslt); else {$pausecode='';} - if ($call_time_M_int >= 360) + if ($call_time_S >= 21600) {$j++; continue;} else { $agent_paused++; $agent_total++; $G=''; $EG=''; if ($call_time_S >= 10) {$G=''; $EG='';} - if ($call_time_M_int >= 1) {$G=''; $EG='';} - if ($call_time_M_int >= 5) {$G=''; $EG='';} + if ($call_time_S >= 60) {$G=''; $EG='';} + if ($call_time_S >= 300) {$G=''; $EG='';} } } # if ( (strlen($Acall_server_ip[$i])> 4) and ($Acall_server_ip[$i] != "$Aserver_ip[$i]") ) @@ -1662,8 +1663,8 @@ $calls_to_list = mysql_num_rows($rslt); if ( (eregi("READY",$status)) or (eregi("CLOSER",$status)) ) { $G=''; $EG=''; - if ($call_time_M_int >= 1) {$G=''; $EG='';} - if ($call_time_M_int >= 5) {$G=''; $EG='';} + if ($call_time_S >= 60) {$G=''; $EG='';} + if ($call_time_S >= 300) {$G=''; $EG='';} } $L='';