Ignore:
Timestamp:
2008/04/04 17:56:26 (16 years ago)
Author:
satou
Message:

カテゴリ情報CSVダウンロード by Yammy (merge r17156)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/admin/products/LC_Page_Admin_Products_Category.php

    r16741 r17207  
    174174            break; 
    175175        case 'tree': 
     176            break; 
     177        case 'csv': 
     178            require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_CSV_Ex.php"); 
     179 
     180            $objCSV = new SC_Helper_CSV_Ex(); 
     181            // オプションの指定 
     182            $option = "ORDER BY rank DESC"; 
     183            // CSV出力タイトル行の作成 
     184            $arrOutput = SC_Utils_Ex::sfSwapArray($objCSV->sfgetCsvOutput(5, " WHERE csv_id = 5 AND status = 1")); 
     185 
     186            if (count($arrOutput) <= 0) break; 
     187 
     188            $arrOutputCols = $arrOutput['col']; 
     189            $arrOutputTitle = $arrOutput['disp_name']; 
     190 
     191            $head = SC_Utils_Ex::sfGetCSVList($arrOutputTitle); 
     192 
     193            $where = "del_flg = 0"; 
     194            $data = $objCSV->lfGetCategoryCSV($where, $option, $arrval, $arrOutputCols); 
     195 
     196            // CSVを送信する。 
     197            SC_Utils_Ex::sfCSVDownload($head.$data, 'category'); 
     198            exit; 
    176199            break; 
    177200        default: 
Note: See TracChangeset for help on using the changeset viewer.