Ignore:
Timestamp:
2008/08/28 14:48:13 (18 years ago)
Author:
Seasoft
Message:

merge 17337,17338,17339,17343,17344,17346,17370,17371

Location:
branches/comu-ver2/data/class/pages
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php

    r16582 r17575  
    148148                $header .= "\n"; 
    149149 
    150                 $data = $this->lfGetCSVData($arrCsvOutputData, $arrKey); 
     150                $data = SC_Utils_Ex::getCSVData($arrCsvOutputData, $arrKey); 
    151151                // CSV出力 
    152152                SC_Utils_Ex::sfCSVDownload($header.$data); 
    … …  
    411411        return $ret; 
    412412    } 
    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     } 
    433413} 
    434414?> 
  • branches/comu-ver2/data/class/pages/admin/customer/LC_Page_Admin_Customer.php

    r17568 r17575  
    315315 
    316316                    //- CSV出力 
    317                     $data = $this->lfGetCSVData($this->search_data, $arrColumn); 
     317                    $data = SC_Utils_Ex::getCSVData($this->search_data, $arrColumn); 
    318318 
    319319                    SC_Utils_Ex::sfCSVDownload($header.$data); 
    … …  
    531531        } 
    532532    } 
    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     } 
    553533} 
    554534?> 
  • branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php

    r17567 r17575  
    296296        $templates_dir = SMARTY_TEMPLATES_DIR. $template_code. "/"; 
    297297        SC_Utils_Ex::sfDelFile($templates_dir); 
     298        // コンパイル削除 
     299        $templates_c_dir = DATA_PATH. "Smarty/templates_c/". $template_code. "/"; 
     300        SC_Utils_Ex::sfDelFile($templates_c_dir); 
    298301        // ユーザーデータ削除 
    299302        $user_dir = USER_TEMPLATE_PATH. $template_code. "/"; 
  • branches/comu-ver2/data/class/pages/admin/mail/LC_Page_Admin_Mail.php

    r16741 r17575  
    425425 
    426426        if ( $result ){ 
    427             $return = $this->lfGetCSVData( $result, $arrTitle); 
    428         } 
    429         return $return; 
    430     } 
    431  
    432     //---- CSV出力用データ取得 
    433     function lfGetCSVData( $array, $arrayIndex){ 
    434  
    435         for ($i=0; $i<count($array); $i++){ 
    436  
    437             for ($j=0; $j<count($array[$i]); $j++ ){ 
    438                 if ( $j > 0 ) $return .= ","; 
    439                 $return .= "\""; 
    440                 if ( $arrayIndex ){ 
    441                     $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$arrayIndex[$j]] )) ."\""; 
    442                 } else { 
    443                     $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$j] )) ."\""; 
    444                 } 
    445             } 
    446             $return .= "\n"; 
     427            $return = SC_Utils_Ex::getCSVData( $result, $arrTitle); 
    447428        } 
    448429        return $return; 
  • branches/comu-ver2/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php

    r17263 r17575  
    6464            // 文字サイズを制限する 
    6565            foreach($arrRet as $key => $val) { 
    66                 $arrRet[$key] = SC_Utils_Ex::sfCutString($val, SEARCH_CATEGORY_LEN); 
     66                $arrRet[$key] = SC_Utils_Ex::sfCutString($val, SEARCH_CATEGORY_LEN, false); 
    6767            } 
    6868        } 
Note: See TracChangeset for help on using the changeset viewer.