From a9844957e1cabdbf40ddfca50aa75b5ce6de1cad Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 29 Oct 2007 12:59:07 +0000 Subject: [PATCH] added list_id to the hopper display php script git-svn-id: svn://192.168.202.10@695 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../www/vicidial/AST_VICIDIAL_hopperlist.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php b/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php index dae17443..97bbe4fe 100644 --- a/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php +++ b/agc_2-X/trunk/www/vicidial/AST_VICIDIAL_hopperlist.php @@ -8,7 +8,8 @@ # 60619-1654 - Added variable filtering to eliminate SQL injection attack threat # - Added required user/pass to gain access to this page # 70115-1614 - Added ALT field for vicidial_hopper alt_dial column -# +# 71029-0852 - Added list_id to the output +# require("dbconnect.php"); @@ -123,11 +124,11 @@ echo "Total leads in hopper right now: $TOTALcalls\n"; echo "\n"; echo "---------- LEADS IN HOPPER\n"; -echo "+------+-----------+------------+-------+--------+-------+--------+-------+\n"; -echo "| | LEAD_ID | PHONE NUM | STATE | STATUS | COUNT | GMT | ALT |\n"; -echo "+------+-----------+------------+-------+--------+-------+--------+-------+\n"; +echo "+------+-----------+------------+------------+-------+--------+-------+--------+-------+\n"; +echo "| | LEAD_ID | LIST ID | PHONE NUM | STATE | STATUS | COUNT | GMT | ALT |\n"; +echo "+------+-----------+------------+------------+-------+--------+-------+--------+-------+\n"; -$stmt="select vicidial_hopper.lead_id,phone_number,vicidial_hopper.state,vicidial_list.status,called_count,vicidial_hopper.gmt_offset_now,hopper_id,alt_dial from vicidial_hopper,vicidial_list where vicidial_hopper.campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_hopper.lead_id=vicidial_list.lead_id order by hopper_id limit 2000;"; +$stmt="select vicidial_hopper.lead_id,phone_number,vicidial_hopper.state,vicidial_list.status,called_count,vicidial_hopper.gmt_offset_now,hopper_id,alt_dial,vicidial_hopper.list_id from vicidial_hopper,vicidial_list where vicidial_hopper.campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_hopper.lead_id=vicidial_list.lead_id order by hopper_id limit 2000;"; $rslt=mysql_query($stmt, $link); if ($DB) {echo "$stmt\n";} $users_to_print = mysql_num_rows($rslt); @@ -145,14 +146,15 @@ while ($i < $users_to_print) $gmt = sprintf("%-6s", $row[5]); $hopper_id = sprintf("%-6s", $row[6]); $alt_dial = sprintf("%-5s", $row[7]); + $list_id = sprintf("%-10s", $row[8]); -if ($DB) {echo "| $FMT_i | $lead_id | $phone_number | $state | $status | $count | $gmt | $hopper_id |\n";} -else {echo "| $FMT_i | $lead_id | $phone_number | $state | $status | $count | $gmt | $alt_dial |\n";} +if ($DB) {echo "| $FMT_i | $lead_id | $list_id | $phone_number | $state | $status | $count | $gmt | $hopper_id |\n";} +else {echo "| $FMT_i | $lead_id | $list_id | $phone_number | $state | $status | $count | $gmt | $alt_dial |\n";} $i++; } -echo "+------+-----------+------------+-------+--------+-------+--------+-------+\n"; +echo "+------+-----------+------------+------------+-------+--------+-------+--------+-------+\n"; }