- Timestamp:
- 2010/09/22 13:23:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php
r18815 r18819 135 135 $js_fnOnLoad .= "fnSetClassCategories(document.product_form{$arrProduct['product_id']});\n"; 136 136 } 137 137 138 138 if ($this->inCart) { 139 139 // 商品IDの正当性チェック … … 279 279 function lfGetCategoryId($category_id) { 280 280 $objDb = new SC_Helper_DB_Ex(); 281 281 282 282 // 指定なしの場合、0 を返す 283 283 if ( … … 287 287 return 0; 288 288 } 289 289 290 290 // 正当性チェック 291 291 if ( … … 296 296 SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND); 297 297 } 298 298 299 299 // 指定されたカテゴリIDを元に正しいカテゴリIDを取得する。 300 300 $arrCategory_id = $objDb->sfGetCategoryId('', $category_id); 301 301 302 302 if (empty($arrCategory_id)) { 303 303 SC_Utils_Ex::sfDispSiteError(CATEGORY_NOT_FOUND); 304 304 } 305 305 306 306 return $arrCategory_id[0]; 307 307 } … … 314 314 $arrval_order = array(); 315 315 $arrval_category = array(); 316 316 317 317 // カテゴリからのWHERE文字列取得 318 318 if ($this->arrSearchData['category_id'] != 0) { 319 319 list($where_category, $arrval_category) = $objDb->sfGetCatWhere($this->arrSearchData['category_id']); 320 320 } 321 321 322 322 // ▼対象商品IDの抽出 323 323 // 商品検索条件の作成(未削除、表示) 324 324 $where = "del_flg = 0 AND status = 1 "; 325 325 $where1 = "alldtl.del_flg = 0 AND alldtl.status = 1 "; 326 326 327 327 // 在庫無し商品の非表示 328 328 if (NOSTOCK_HIDDEN === true) { 329 329 $where .= ' AND (stock_max >= 1 OR stock_unlimited_max = 1)'; 330 330 } 331 331 332 332 if (strlen($where_category) >= 1) { 333 333 $where.= " AND $where_category"; … … 379 379 $this->tpl_strnavi = empty($strnavi) ? " " : $strnavi; 380 380 $startno = $this->objNavi->start_row; // 開始行 381 381 382 382 // WHERE 句 383 383 $where = '0=0'; … … 436 436 break; 437 437 } 438 438 439 439 // 取得範囲の指定(開始行番号、行数のセット) 440 440 $objQuery =& SC_Query::getSingletonInstance(); … … 447 447 $this->arrProducts = $objProduct->lists($objQuery, $arrval_order); 448 448 449 450 449 $arrProductId = array(); 451 450 // 規格セレクトボックス設定 … … 453 452 $arrProductId[] = $product['product_id']; 454 453 } 455 454 456 455 // 規格を設定 457 456 $objProduct->setProductsClassByProductIds($arrProductId); 458 457 459 458 // 規格1クラス名 460 459 $this->tpl_class_name1 = $objProduct->className1; … … 462 461 // 規格2クラス名 463 462 $this->tpl_class_name2 = $objProduct->className2; 464 463 465 464 // 規格1 466 465 $this->arrClassCat1 = $objProduct->classCats1; … … 474 473 475 474 $productsClassCategories = $objProduct->classCategories; 476 475 477 476 require_once DATA_PATH . 'module/Services/JSON.php'; 478 477 $objJson = new Services_JSON(); … … 505 504 function lfLoadParam() { 506 505 $this->arrForm = $_GET; 507 506 508 507 $this->mode = $this->arrForm['mode']; 509 508 $this->arrSearchData['category_id'] = $this->lfGetCategoryId($this->arrForm['category_id']);
Note: See TracChangeset
for help on using the changeset viewer.