Changeset 17343 for branches/version-2/data/class/pages/admin/customer
- Timestamp:
- 2008/06/03 20:26:52 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
r17214 r17343 275 275 276 276 //- CSV出力 277 $data = $this->lfGetCSVData($this->search_data, $arrColumn);277 $data = SC_Utils_Ex::getCSVData($this->search_data, $arrColumn); 278 278 279 279 SC_Utils_Ex::sfCSVDownload($header.$data); … … 491 491 } 492 492 } 493 494 //---- CSV出力用データ取得495 function lfGetCSVData( $array, $arrayIndex){496 497 for ($i=0; $i<count($array); $i++){498 499 for ($j=0; $j<count($array[$i]); $j++ ){500 if ( $j > 0 ) $return .= ",";501 $return .= "\"";502 if ( $arrayIndex ){503 $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$arrayIndex[$j]] )) ."\"";504 } else {505 $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$j] )) ."\"";506 }507 }508 $return .= "\n";509 }510 511 return $return;512 }513 493 } 514 494 ?>
Note: See TracChangeset
for help on using the changeset viewer.
