Ignore:
Timestamp:
2008/06/03 20:26:52 (18 years ago)
Author:
naka
Message:

CSV出力データ作成関数の不具合修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/admin/customer/LC_Page_Admin_Customer.php

    r17214 r17343  
    275275 
    276276                    //- CSV出力 
    277                     $data = $this->lfGetCSVData($this->search_data, $arrColumn); 
     277                    $data = SC_Utils_Ex::getCSVData($this->search_data, $arrColumn); 
    278278 
    279279                    SC_Utils_Ex::sfCSVDownload($header.$data); 
     
    491491        } 
    492492    } 
    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     } 
    513493} 
    514494?> 
Note: See TracChangeset for help on using the changeset viewer.