diff --git a/agc_2-X/branches/agc_2.0.4/www/vicidial/AST_CLOSERstats.php b/agc_2-X/branches/agc_2.0.4/www/vicidial/AST_CLOSERstats.php index 9f4226a7..30477687 100644 --- a/agc_2-X/branches/agc_2.0.4/www/vicidial/AST_CLOSERstats.php +++ b/agc_2-X/branches/agc_2.0.4/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/branches/agc_2.0.4/www/vicidial/AST_VDADstats.php b/agc_2-X/branches/agc_2.0.4/www/vicidial/AST_VDADstats.php index 6ea7520a..6d07ad01 100644 --- a/agc_2-X/branches/agc_2.0.4/www/vicidial/AST_VDADstats.php +++ b/agc_2-X/branches/agc_2.0.4/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/branches/agc_2.0.4/www/vicidial/admin.php b/agc_2-X/branches/agc_2.0.4/www/vicidial/admin.php index 02f1e90b..15c08dbf 100644 --- a/agc_2-X/branches/agc_2.0.4/www/vicidial/admin.php +++ b/agc_2-X/branches/agc_2.0.4/www/vicidial/admin.php @@ -8933,12 +8933,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])) @@ -8955,6 +8957,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])) @@ -9063,7 +9066,7 @@ if ($ADD==31) echo "Add A Dial Status:   \n"; echo "     $NWB#vicidial_campaigns-dial_status$NWE\n"; @@ -9652,12 +9655,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])) @@ -9674,6 +9678,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])) @@ -9777,7 +9782,7 @@ if ($ADD==34) echo "Add A Dial Status:   \n"; echo "     $NWB#vicidial_campaigns-dial_status$NWE\n"; @@ -10075,7 +10080,7 @@ if ( ($ADD==34) or ($ADD==31) ) echo " \n"; echo "ADD   \n"; echo "REMOVE\n"; @@ -10136,7 +10141,7 @@ if ( ($ADD==34) or ($ADD==31) ) echo "$mixlists_list"; echo "\n"; echo "Dial Status: \n"; echo "   \n"; echo "\n";