From 91d1307488d8fa283043a40333b27e01f21737d2 Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 5 Oct 2010 01:09:51 +0000 Subject: [PATCH] Added generic custom column headers for custom fields when downloading ALL-LISTS in list_download.php git-svn-id: svn://192.168.202.10@1534 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/list_download.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/www/vicidial/list_download.php b/www/vicidial/list_download.php index e99ddd51..fa1d0e31 100644 --- a/www/vicidial/list_download.php +++ b/www/vicidial/list_download.php @@ -19,6 +19,7 @@ # 100804-1745 - Added option to download DNC and FPGN lists # 100924-1609 - Added ALL-LISTS option for downloading everything # 100929-1919 - Fixed ALL-LISTS download option to include custom fields +# 101004-2108 - Added generic custom column headers for custom fields # require("dbconnect.php"); @@ -358,7 +359,7 @@ while ($i < $leads_to_print) $i++; } - +$ch=0; if ( ($custom_fields_enabled > 0) and ($event_code_type=='LIST') ) { $valid_custom_table=0; @@ -458,9 +459,14 @@ if ( ($custom_fields_enabled > 0) and ($event_code_type=='LIST') ) { $row=mysql_fetch_row($rslt); $t=1; - while ($columns_ct > $t) + while ($columns_ct > $t) { $custom_data[$i] .= "\t$row[$t]"; + if ($ch <= $t) + { + $ch++; + $header_columns .= "\tcustom$ch"; + } $t++; } }