Added headers to the list download report

Added field order to custom fields
Added ability to copy custom field definitions between lists

git-svn-id: svn://192.168.202.10@1428 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2010-05-09 13:25:37 +00:00
parent 78b4f2f386
commit 4c5823ba36
10 changed files with 599 additions and 213 deletions
+3
View File
@@ -400,6 +400,9 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom
98. Added Swedish Agent translation
99. Added headers to the list export and calls export reports
@@ -12,6 +12,7 @@
# 90508-0644 - Changed to PHP long tags
# 90721-1238 - Added rank and owner as vicidial_list fields
# 100119-1039 - Filtered comments for \n newlines
# 100508-1439 - Added header row to output
#
require("dbconnect.php");
@@ -112,6 +113,8 @@ header('Pragma: public');
ob_clean();
flush();
echo "lead_id\tentry_date\tmodify_date\tstatus\tuser\tvendor_lead_code\tsource_id\tlist_id\tgmt_offset_now\tcalled_since_last_reset\tphone_code\tphone_number\ttitle\tfirst_name\tmiddle_initial\tlast_name\taddress1\taddress2\taddress3\tcity\tstate\tprovince\tpostal_code\tcountry_code\tgender\tdate_of_birth\talt_phone\temail\tsecurity_phrase\tcomments\tcalled_count\tlast_local_call_time\trank\towner\r\n";
$stmt="select lead_id,entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,gmt_offset_now,called_since_last_reset,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,date_of_birth,alt_phone,email,security_phrase,comments,called_count,last_local_call_time,rank,owner from vicidial_list where list_id='$list_id';";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}