- Timestamp:
- 2008/08/28 14:48:13 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/customer/LC_Page_Admin_Customer.php
r17568 r17575 315 315 316 316 //- CSV出力 317 $data = $this->lfGetCSVData($this->search_data, $arrColumn);317 $data = SC_Utils_Ex::getCSVData($this->search_data, $arrColumn); 318 318 319 319 SC_Utils_Ex::sfCSVDownload($header.$data); … … 531 531 } 532 532 } 533 534 //---- CSV出力用データ取得535 function lfGetCSVData( $array, $arrayIndex){536 537 for ($i=0; $i<count($array); $i++){538 539 for ($j=0; $j<count($array[$i]); $j++ ){540 if ( $j > 0 ) $return .= ",";541 $return .= "\"";542 if ( $arrayIndex ){543 $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$arrayIndex[$j]] )) ."\"";544 } else {545 $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$j] )) ."\"";546 }547 }548 $return .= "\n";549 }550 551 return $return;552 }553 533 } 554 534 ?>
Note: See TracChangeset
for help on using the changeset viewer.