From 656c6efd1f9acd70222ec6a21e49460cb0298c4e Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 15 Feb 2008 06:52:53 +0000 Subject: [PATCH] admin.php hard-coded block onf CBHOLD as dial status minor bug fix in VDAD and CLOSER stats pages(length_in_sec >4 changed to 0) git-svn-id: svn://192.168.202.10@780 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php | 2 +- agc_2-X/trunk/www/vicidial/AST_VDADstats.php | 2 +- agc_2-X/trunk/www/vicidial/admin.php | 15 ++++++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php index 9f4226a7..30477687 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats.php @@ -329,7 +329,7 @@ echo "+--------------------------+------------+----------+--------+\n"; echo "| AGENT | CALLS | TIME M | AVRG M |\n"; echo "+--------------------------+------------+----------+--------+\n"; -$stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_closer_log.user is not null and length_in_sec is not null and length_in_sec > 4 and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;"; +$stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_closer_log.user is not null and length_in_sec is not null and length_in_sec > 0 and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $users_to_print = mysql_num_rows($rslt); diff --git a/agc_2-X/trunk/www/vicidial/AST_VDADstats.php b/agc_2-X/trunk/www/vicidial/AST_VDADstats.php index 6ea7520a..6d07ad01 100644 --- a/agc_2-X/trunk/www/vicidial/AST_VDADstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_VDADstats.php @@ -332,7 +332,7 @@ echo "+--------------------------+------------+----------+--------+\n"; echo "| AGENT | CALLS | TIME M | AVRG M |\n"; echo "+--------------------------+------------+----------+--------+\n"; -$stmt="select vicidial_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_log.user is not null and length_in_sec is not null and length_in_sec > 4 and vicidial_log.user=vicidial_users.user group by vicidial_log.user;"; +$stmt="select vicidial_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_log.user is not null and length_in_sec is not null and length_in_sec > 0 and vicidial_log.user=vicidial_users.user group by vicidial_log.user;"; if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");} $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 6f546376..3353f3e0 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -9065,12 +9065,14 @@ if ($ADD==31) $rslt=mysql_query($stmt, $link); $statuses_to_print = mysql_num_rows($rslt); $statuses_list=''; + $dial_statuses_list=''; $o=0; while ($statuses_to_print > $o) { $rowx=mysql_fetch_row($rslt); $statuses_list .= "\n"; + if ($rowx[0] != 'CBHOLD') {$dial_statuses_list .= "\n";} $statname_list["$rowx[0]"] = "$rowx[1]"; $LRstatuses_list .= "\n"; if (eregi("Y",$rowx[2])) @@ -9087,6 +9089,7 @@ if ($ADD==31) { $rowx=mysql_fetch_row($rslt); $statuses_list .= "\n"; + if ($rowx[0] != 'CBHOLD') {$dial_statuses_list .= "\n";} $statname_list["$rowx[0]"] = "$rowx[1]"; $LRstatuses_list .= "\n"; if (eregi("Y",$rowx[2])) @@ -9195,7 +9198,7 @@ if ($ADD==31) echo "Add A Dial Status:   \n"; echo "     $NWB#vicidial_campaigns-dial_status$NWE\n"; @@ -9784,12 +9787,13 @@ if ($ADD==34) $rslt=mysql_query($stmt, $link); $statuses_to_print = mysql_num_rows($rslt); $statuses_list=''; - + $dial_statuses_list=''; $o=0; while ($statuses_to_print > $o) { $rowx=mysql_fetch_row($rslt); $statuses_list .= "\n"; + if ($rowx[0] != 'CBHOLD') {$dial_statuses_list .= "\n";} $statname_list["$rowx[0]"] = "$rowx[1]"; $LRstatuses_list .= "\n"; if (eregi("Y",$rowx[2])) @@ -9806,6 +9810,7 @@ if ($ADD==34) { $rowx=mysql_fetch_row($rslt); $statuses_list .= "\n"; + if ($rowx[0] != 'CBHOLD') {$dial_statuses_list .= "\n";} $statname_list["$rowx[0]"] = "$rowx[1]"; $LRstatuses_list .= "\n"; if (eregi("Y",$rowx[2])) @@ -9909,7 +9914,7 @@ if ($ADD==34) echo "Add A Dial Status:   \n"; echo "     $NWB#vicidial_campaigns-dial_status$NWE\n"; @@ -10207,7 +10212,7 @@ if ( ($ADD==34) or ($ADD==31) ) echo " \n"; echo "ADD   \n"; echo "REMOVE\n"; @@ -10268,7 +10273,7 @@ if ( ($ADD==34) or ($ADD==31) ) echo "$mixlists_list"; echo "\n"; echo "Dial Status: \n"; echo "   \n"; echo "\n";