Differences

This shows you the differences between two versions of the page.

deutsch:andere-erweiterungen:hacks:formularergebnis-download-csv [2012/05/18 09:41]
Knut Heermann (flip-flop)
deutsch:andere-erweiterungen:hacks:formularergebnis-download-csv [2018/06/03 18:09] (current)
Line 90: Line 90:
$export = array(); $export = array();
$row = 1; $row = 1;
- $export[0] = array('#ID'=>'','#Date'=>'','#IP'=>'');+ $export[0] = array('#'=>'','#ID'=>'','#Date'=>'','#IP'=>'');
// run all data first and combine array elements // run all data first and combine array elements
Line 96: Line 96:
// numbering starting at 1 // numbering starting at 1
 + $export[$row]['#'] = $row;
$export[$row]['#ID'] = $value['formresult_id']; $export[$row]['#ID'] = $value['formresult_id'];
$export[$row]['#Date'] = $value['formresult_createdate']; $export[$row]['#Date'] = $value['formresult_createdate'];
Line 141: Line 142:
$elements[$x] .= ''; $elements[$x] .= '';
- if ( isset($export[$x][$key]) ) {+// if ( isset($export[$x][$key]) ) {
// // Nicht zwingen notwenig, nur um fuer HTML-Darstellung // // Nicht zwingen notwenig, nur um fuer HTML-Darstellung
Line 150: Line 151:
$export[$x][$key] = '"'.str_replace('"', '""', $export[$x][$key]).'"'; // Jede Spalte in "..." setzen $export[$x][$key] = '"'.str_replace('"', '""', $export[$x][$key]).'"'; // Jede Spalte in "..." setzen
- } +// } 
- + $elements[$x] .= $export[$x][$key];
$elements[$x] .= $separator; // CSV-Trenner setzen $elements[$x] .= $separator; // CSV-Trenner setzen
deutsch/andere-erweiterungen/hacks/formularergebnis-download-csv.1337326919.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0