Changeset 17575 for branches/comu-ver2/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php
- Timestamp:
- 2008/08/28 14:48:13 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php
r16582 r17575 148 148 $header .= "\n"; 149 149 150 $data = $this->lfGetCSVData($arrCsvOutputData, $arrKey);150 $data = SC_Utils_Ex::getCSVData($arrCsvOutputData, $arrKey); 151 151 // CSV出力 152 152 SC_Utils_Ex::sfCSVDownload($header.$data); … … 411 411 return $ret; 412 412 } 413 414 415 //---- CSV出力用データ取得416 function lfGetCSVData( $array, $arrayIndex){417 $return = "";418 for ($i=0; $i<count($array); $i++){419 for ($j=0; $j<count($array[$i]); $j++ ){420 if ( $j > 0 ) $return .= ",";421 $return .= "\"";422 if ( $arrayIndex ){423 $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$arrayIndex[$j]] )) ."\"";424 } else {425 $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$j] )) ."\"";426 }427 }428 $return .= "\n";429 }430 431 return $return;432 }433 413 } 434 414 ?>
Note: See TracChangeset
for help on using the changeset viewer.