diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php
index d9c0f11d..1cab987f 100644
--- a/agc_2-X/trunk/www/agc/vdc_db_query.php
+++ b/agc_2-X/trunk/www/agc/vdc_db_query.php
@@ -431,10 +431,11 @@
# 170504-1056 - Added start_call_url to manual-dial calls
# 170526-2327 - Added additional variable filtering
# 170527-2208 - Added more additional variable filtering, fixed rare inbound logging issue #1017
+# 170605-1633 - Added vendor_lead_code to agent lead search results screen
#
-$version = '2.14-325';
-$build = '170527-2208';
+$version = '2.14-326';
+$build = '170605-1633';
$php_script = 'vdc_db_query.php';
$mel=1; # Mysql Error Log enabled = 1
$mysql_log_count=684;
@@ -14457,13 +14458,14 @@ if ($ACTION == 'SEARCHRESULTSview')
echo "
"._QXZ("CITY")." | ";
echo " "._QXZ("STATE")." | ";
echo " "._QXZ("ZIP")." | ";
+ echo " "._QXZ("VENDOR ID")." | ";
echo " "._QXZ("INFO")." | ";
echo " "._QXZ("DIAL")." | ";
echo "";
if ($search_result_count)
{
- $stmt="SELECT first_name,last_name,phone_code,phone_number,status,last_local_call_time,lead_id,city,state,postal_code from vicidial_list where $searchSQL $searchownerSQL $searchmethodSQL order by last_local_call_time desc limit 1000;";
+ $stmt="SELECT first_name,last_name,phone_code,phone_number,status,last_local_call_time,lead_id,city,state,postal_code,vendor_lead_code from vicidial_list where $searchSQL $searchownerSQL $searchmethodSQL order by last_local_call_time desc limit 1000;";
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00380',$user,$server_ip,$session_name,$one_mysql_log);}
$out_logs_to_print = mysqli_num_rows($rslt);
@@ -14474,16 +14476,17 @@ if ($ACTION == 'SEARCHRESULTSview')
while ($out_logs_to_print > $u)
{
$row=mysqli_fetch_row($rslt);
- $ALLsort[$g] = "$row[0]-----$g";
- $ALLname[$g] = "$row[0] $row[1]";
- $ALLphone_code[$g] = $row[2];
- $ALLphone_number[$g] = $row[3];
- $ALLstatus[$g] = $row[4];
- $ALLcall_date[$g] = $row[5];
- $ALLlead_id[$g] = $row[6];
- $ALLcity[$g] = $row[7];
- $ALLstate[$g] = $row[8];
- $ALLpostal_code[$g] = $row[9];
+ $ALLsort[$g] = "$row[0]-----$g";
+ $ALLname[$g] = "$row[0] $row[1]";
+ $ALLphone_code[$g] = $row[2];
+ $ALLphone_number[$g] = $row[3];
+ $ALLstatus[$g] = $row[4];
+ $ALLcall_date[$g] = $row[5];
+ $ALLlead_id[$g] = $row[6];
+ $ALLcity[$g] = $row[7];
+ $ALLstate[$g] = $row[8];
+ $ALLpostal_code[$g] = $row[9];
+ $ALLvendor_lead_code[$g] = $row[10];
$g++;
$u++;
@@ -14513,6 +14516,7 @@ if ($ACTION == 'SEARCHRESULTSview')
echo " $ALLcity[$i] | \n";
echo " $ALLstate[$i] | \n";
echo " $ALLpostal_code[$i] | \n";
+ echo " $ALLvendor_lead_code[$i] | \n";
echo " "._QXZ("INFO")." | \n";
if ($inbound_lead_search < 1)
{