Ignore:
Timestamp:
2010/09/22 13:23:00 (14 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) 入金日追加、規格対応(規格構成変更と並行で作業中なので、作業途中の部分有)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php

    r18815 r18819  
    135135            $js_fnOnLoad .= "fnSetClassCategories(document.product_form{$arrProduct['product_id']});\n"; 
    136136        } 
    137          
     137 
    138138        if ($this->inCart) { 
    139139            // 商品IDの正当性チェック 
     
    279279    function lfGetCategoryId($category_id) { 
    280280        $objDb = new SC_Helper_DB_Ex(); 
    281          
     281 
    282282        // 指定なしの場合、0 を返す 
    283283        if ( 
     
    287287            return 0; 
    288288        } 
    289          
     289 
    290290        // 正当性チェック 
    291291        if ( 
     
    296296            SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND); 
    297297    } 
    298          
     298 
    299299        // 指定されたカテゴリIDを元に正しいカテゴリIDを取得する。 
    300300        $arrCategory_id = $objDb->sfGetCategoryId('', $category_id); 
    301          
     301 
    302302        if (empty($arrCategory_id)) { 
    303303            SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND); 
    304304        } 
    305          
     305 
    306306        return $arrCategory_id[0]; 
    307307    } 
     
    314314        $arrval_order = array(); 
    315315        $arrval_category = array(); 
    316          
     316 
    317317        // カテゴリからのWHERE文字列取得 
    318318        if ($this->arrSearchData['category_id'] != 0) { 
    319319            list($where_category, $arrval_category) = $objDb->sfGetCatWhere($this->arrSearchData['category_id']); 
    320320        } 
    321          
     321 
    322322        // ▼対象商品IDの抽出 
    323323        // 商品検索条件の作成(未削除、表示) 
    324324        $where = "del_flg = 0 AND status = 1 "; 
    325325        $where1 = "alldtl.del_flg = 0 AND alldtl.status = 1 "; 
    326          
     326 
    327327        // 在庫無し商品の非表示 
    328328        if (NOSTOCK_HIDDEN === true) { 
    329329            $where .= ' AND (stock_max >= 1 OR stock_unlimited_max = 1)'; 
    330330        } 
    331          
     331 
    332332        if (strlen($where_category) >= 1) { 
    333333            $where.= " AND $where_category"; 
     
    379379        $this->tpl_strnavi = empty($strnavi) ? " " : $strnavi; 
    380380        $startno = $this->objNavi->start_row;                 // 開始行 
    381          
     381 
    382382        // WHERE 句 
    383383        $where = '0=0'; 
     
    436436                break; 
    437437        } 
    438          
     438 
    439439        // 取得範囲の指定(開始行番号、行数のセット) 
    440440        $objQuery =& SC_Query::getSingletonInstance(); 
     
    447447        $this->arrProducts = $objProduct->lists($objQuery, $arrval_order); 
    448448 
    449          
    450449        $arrProductId = array(); 
    451450        // 規格セレクトボックス設定 
     
    453452            $arrProductId[] = $product['product_id']; 
    454453        } 
    455          
     454 
    456455        // 規格を設定 
    457456        $objProduct->setProductsClassByProductIds($arrProductId); 
    458          
     457 
    459458        // 規格1クラス名 
    460459        $this->tpl_class_name1 = $objProduct->className1; 
     
    462461        // 規格2クラス名 
    463462        $this->tpl_class_name2 = $objProduct->className2; 
    464          
     463 
    465464        // 規格1 
    466465        $this->arrClassCat1 = $objProduct->classCats1; 
     
    474473 
    475474        $productsClassCategories = $objProduct->classCategories; 
    476          
     475 
    477476        require_once DATA_PATH . 'module/Services/JSON.php'; 
    478477        $objJson = new Services_JSON(); 
     
    505504    function lfLoadParam() { 
    506505        $this->arrForm = $_GET; 
    507          
     506 
    508507        $this->mode = $this->arrForm['mode']; 
    509508        $this->arrSearchData['category_id'] = $this->lfGetCategoryId($this->arrForm['category_id']); 
Note: See TracChangeset for help on using the changeset viewer.