Changeset 17575 for branches/comu-ver2/data/class/pages
- Timestamp:
- 2008/08/28 14:48:13 (18 years ago)
- Location:
- branches/comu-ver2/data/class/pages
- Files:
-
- 5 edited
-
admin/contents/LC_Page_Admin_Contents_CsvSql.php (modified) (2 diffs)
-
admin/customer/LC_Page_Admin_Customer.php (modified) (2 diffs)
-
admin/design/LC_Page_Admin_Design_Template.php (modified) (1 diff)
-
admin/mail/LC_Page_Admin_Mail.php (modified) (1 diff)
-
frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php (modified) (1 diff)
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 ?> -
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 ?> -
branches/comu-ver2/data/class/pages/admin/design/LC_Page_Admin_Design_Template.php
r17567 r17575 296 296 $templates_dir = SMARTY_TEMPLATES_DIR. $template_code. "/"; 297 297 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); 298 301 // ユーザーデータ削除 299 302 $user_dir = USER_TEMPLATE_PATH. $template_code. "/"; -
branches/comu-ver2/data/class/pages/admin/mail/LC_Page_Admin_Mail.php
r16741 r17575 425 425 426 426 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); 447 428 } 448 429 return $return; -
branches/comu-ver2/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php
r17263 r17575 64 64 // 文字サイズを制限する 65 65 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); 67 67 } 68 68 }
Note: See TracChangeset
for help on using the changeset viewer.
