Changeset 15551


Ignore:
Timestamp:
2007/09/01 20:12:14 (13 years ago)
Author:
nanasess
Message:

CSV アップロード関連の修正

Location:
branches/feature-module-update/data/class/pages/admin/products
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products.php

    r15532 r15551  
    1414 * @package Page 
    1515 * @author LOCKON CO.,LTD. 
    16  * @version $Id$ 
     16 * @version $Id:LC_Page_Admin_Products.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1717 */ 
    1818class LC_Page_Admin_Products extends LC_Page { 
     
    229229                switch($_POST['mode']) { 
    230230                case 'csv': 
     231 
     232                    require_once(CLASS_PATH . "helper_extends/SC_Helper_CSV_Ex.php"); 
     233 
     234                    $objCSV = new SC_Helper_CSV_Ex(); 
    231235                    // オプションの指定 
    232236                    $option = "ORDER BY $order"; 
    233237                    // CSV出力タイトル行の作成 
    234                     $arrOutput = SC_Utils_Ex::sfSwapArray(sfgetCsvOutput(1, " WHERE csv_id = 1 AND status = 1")); 
     238                    $arrOutput = SC_Utils_Ex::sfSwapArray($objCSV->sfgetCsvOutput(1, " WHERE csv_id = 1 AND status = 1")); 
    235239 
    236240                    if (count($arrOutput) <= 0) break; 
     
    241245                    $head = SC_Utils_Ex::sfGetCSVList($arrOutputTitle); 
    242246 
    243                     $data = $this->lfGetProductsCSV($where, $option, $arrval, $arrOutputCols); 
     247                    $data = $objCSV->lfGetProductsCSV($where, $option, $arrval, $arrOutputCols); 
    244248 
    245249                    // CSVを送信する。 
  • branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSV.php

    r15532 r15551  
    1616 * @package Page 
    1717 * @author LOCKON CO.,LTD. 
    18  * @version $Id$ 
     18 * @version $Id:LC_Page_Admin_Products_UploadCSV.php 15532 2007-08-31 14:39:46Z nanasess $ 
    1919 */ 
    2020class LC_Page_Admin_Products_UploadCSV extends LC_Page { 
     
    8989            echo str_pad('',256); 
    9090 
    91             if($arrErr['csv_file'] == "") { 
     91            if(empty($arrErr['csv_file'])) { 
    9292                // 一時ファイル名の取得 
    9393                $filepath = $this->objUpFile->getTempFilePath('csv_file'); 
     
    281281     */ 
    282282    function lfRegistProduct($objQuery, $line = "") { 
     283 
     284        $objDb = new SC_Helper_DB_Ex(); 
    283285 
    284286        $arrRet = $this->objFormParam->getHashArray(); 
     
    335337            // カテゴリ内ランクの調整処理 
    336338            $old_catid = $objQuery->get("dtb_products", "category_id", "product_id = ?", array($arrRet['product_id'])); 
    337             sfMoveCatRank($objQuery, "dtb_products", "product_id", "category_id", $old_catid, $arrRet['category_id'], $arrRet['product_id']); 
     339            $objDb->sfMoveCatRank($objQuery, "dtb_products", "product_id", "category_id", $old_catid, $arrRet['category_id'], $arrRet['product_id']); 
    338340 
    339341            // UPDATEの実行 
     
    403405        $sqlval['price02'] = $arrList['price02']; 
    404406        $sqlval['creator_id'] = $_SESSION['member_id']; 
     407 
     408        // FIXME $sqlval['member_id'] は何処から出てくる? 
    405409        if($sqlval['member_id'] == "") { 
    406410            $sqlval['creator_id'] = '0'; 
Note: See TracChangeset for help on using the changeset viewer.