- Timestamp:
- 2009/07/19 16:33:32 (15 years ago)
- Location:
- branches/comu-ver2/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/Smarty/templates/default/list.tpl
r18189 r18209 53 53 <div id="undercolumn" class="product product_list"> 54 54 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> 55 <input type="hidden" name="pageno" value="<!--{$tpl_pageno|escape}-->" />56 55 <input type="hidden" name="mode" value="" /> 57 56 <input type="hidden" name="orderby" value="<!--{$orderby|escape}-->" /> 57 <input type="hidden" name="disp_number" value="<!--{$disp_number|escape}-->" /> 58 58 <input type="hidden" name="product_id" value="" /> 59 <input type="hidden" name="disp_number" value="" />60 59 61 60 <!--★タイトル★--> -
branches/comu-ver2/data/class/pages/products/LC_Page_Products_List.php
r18195 r18209 82 82 if (!isset($_GET['pageno'])) unset($_SESSION['products_list']); 83 83 84 // 表示件数の 選択84 // 表示件数の取得 85 85 if (isset($_POST['disp_number']) && SC_Utils_Ex::sfIsInt($_POST['disp_number'])) { 86 86 $this->disp_number = $_SESSION['products_list']['disp_number'] = $_POST['disp_number']; … … 91 91 } 92 92 93 // 表示順序の 保存93 // 表示順序の取得 94 94 if (isset($_POST['orderby'])) { 95 95 $this->orderby = $_SESSION['products_list']['orderby'] = $_POST['orderby']; … … 408 408 409 409 /* 商品一覧の表示 */ 410 function lfDispProductsList($category_id, $name, $maker_id, $disp_num , $orderby) {410 function lfDispProductsList($category_id, $name, $maker_id, $disp_number, $orderby) { 411 411 412 412 $objQuery = new SC_Query(); … … 458 458 } 459 459 460 // 対象商品IDの抽出 460 461 $arrProduct_id = $objQuery->getCol('vw_products_allclass AS allcls', 'DISTINCT product_id', $where, $arrval); 461 // ▲対象商品IDの抽出462 462 463 463 // 行数の取得 … … 467 467 468 468 // ページ送りの取得 469 $this->objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, $disp_num , "fnNaviPage", NAVI_PMAX);469 $this->objNavi = new SC_PageNavi($this->tpl_pageno, $linemax, $disp_number, "fnNaviPage", NAVI_PMAX); 470 470 $strnavi = $this->objNavi->strnavi; 471 471 $strnavi = preg_replace('/list\.php.*?\'([0-9]+)\'.*?\"/', 'list.php?category_id=' . $category_id . '&pageno=$1"', $strnavi); … … 516 516 } 517 517 518 // 表示順序519 switch ($orderby) {520 521 // 販売価格順518 // 表示順序 519 switch ($orderby) { 520 521 // 販売価格順 522 522 case 'price': 523 523 $order = "price02_min, product_id"; 524 524 break; 525 525 526 // 新着順526 // 新着順 527 527 case 'date': 528 528 $order = "create_date DESC, product_id"; … … 565 565 566 566 // 取得範囲の指定(開始行番号、行数のセット) 567 $objQuery->setlimitoffset($disp_num , $startno);567 $objQuery->setlimitoffset($disp_number, $startno); 568 568 // 表示順序 569 569 $objQuery->setorder($order); … … 578 578 $arrClassCatName = $objDb->sfGetIDValueList("dtb_classcategory", "classcategory_id", "name"); 579 579 // 規格セレクトボックス設定 580 if($disp_num == 15) { 581 for($i = 0; $i < count($this->arrProducts); $i++) { 582 $this->lfMakeSelect($this->arrProducts[$i]['product_id'], $arrClassName, $arrClassCatName); 583 // 購入制限数を取得 584 $this->lfGetSaleLimit($this->arrProducts[$i]); 585 } 580 for ($i = 0; $i < count($this->arrProducts); $i++) { 581 $this->lfMakeSelect($this->arrProducts[$i]['product_id'], $arrClassName, $arrClassCatName); 582 // 購入制限数を取得 583 $this->lfGetSaleLimit($this->arrProducts[$i]); 586 584 } 587 585 }
Note: See TracChangeset
for help on using the changeset viewer.