Changeset 20567 for branches/version-2_5-dev/data
- Timestamp:
- 2011/03/09 15:21:44 (13 years ago)
- Location:
- branches/version-2_5-dev/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/Smarty/templates/mobile/products/list.tpl
r20116 r20567 22 22 */ 23 23 *}--> 24 <!--{if isset($tpl_previous_page|smarty:nodefaults) || isset($tpl_next_page|smarty:nodefaults)}--> 25 <!--{if isset($tpl_previous_page|smarty:nodefaults)}--> 26 <a href="<!--{$tpl_previous_page|h}-->">前へ</a> 27 <!--{/if}--> 28 <!--{if isset($tpl_previous_page|smarty:nodefaults) && isset($tpl_next_page|smarty:nodefaults)}--> 29 | 30 <!--{/if}--> 31 <!--{if isset($tpl_next_page|smarty:nodefaults)}--> 32 <a href="<!--{$tpl_next_page|h}-->">次へ</a> 33 <!--{/if}--> 24 <!--{if $tpl_strnavi != " "}--> 25 <!--{$tpl_strnavi}--> 34 26 <br><br> 35 27 <!--{/if}--> … … 66 58 <!--{/foreach}--> 67 59 68 <!--{if isset($tpl_previous_page|smarty:nodefaults) || isset($tpl_next_page|smarty:nodefaults)}-->69 <!--{ if isset($tpl_previous_page|smarty:nodefaults)}-->70 < a href="<!--{$tpl_previous_page|h}-->">前へ</a>60 <!--{if $tpl_strnavi != " "}--> 61 <!--{$tpl_strnavi}--> 62 <br><br> 71 63 <!--{/if}--> 72 <!--{if isset($tpl_previous_page|smarty:nodefaults) && isset($tpl_next_page|smarty:nodefaults)}-->73 |74 <!--{/if}-->75 <!--{if isset($tpl_next_page|smarty:nodefaults)}-->76 <a href="<!--{$tpl_next_page|h}-->">次へ</a>77 <!--{/if}-->78 <br>79 <!--{/if}--> -
branches/version-2_5-dev/data/class/SC_PageNavi.php
r20155 r20567 137 137 } 138 138 139 if ($before ||$next) {139 if ($before && $next) { 140 140 $this->strnavi = $before .(($display_number) ? $page_number : ' | ') .$next; 141 } else if ($before || $next) { 142 $this->strnavi = $before .(($display_number) ? $page_number : '') .$next; 141 143 } 142 144 } else { -
branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php
r20540 r20567 124 124 $this->tpl_linemax = $this->lfGetProductAllNum($arrSearchCondition); 125 125 $urlParam = "category_id={$this->arrSearchData['category_id']}&pageno=#page#"; 126 $this->objNavi = new SC_PageNavi_Ex($this->tpl_pageno, $this->tpl_linemax, $this->disp_number, 'fnNaviPage', NAVI_PMAX, $urlParam, SC_Display_Ex::detectDevice() !== DEVICE_TYPE_MOBILE);127 $this->arrProducts = $this->lfGetProductsList($arrSearchCondition, $this->disp_number,$this->objNavi->start_row,$this->tpl_linemax,$objProduct);126 $this->objNavi = new SC_PageNavi_Ex($this->tpl_pageno, $this->tpl_linemax, $this->disp_number, 'fnNaviPage', NAVI_PMAX, $urlParam, SC_Display_Ex::detectDevice() !== DEVICE_TYPE_MOBILE); 127 $this->arrProducts = $this->lfGetProductsList($arrSearchCondition, $this->disp_number, $this->objNavi->start_row, $this->tpl_linemax, $objProduct); 128 128 //商品一覧の表示処理 129 129 $strnavi = $this->objNavi->strnavi; … … 314 314 // 規格を設定 315 315 $objProduct->setProductsClassByProductIds($arrProduct_id); 316 $arrProducts += array('productStatus'=>$objProduct->getProductStatus($arrProduct_id)); 316 $arrProducts += array('productStatus'=>$objProduct->getProductStatus($arrProduct_id)); 317 317 return $arrProducts; 318 318 } … … 358 358 * 359 359 * @return str 360 */ 360 */ 361 361 function lfGetPageTitle($mode,$category_id = 0){ 362 362 if ($mode == 'search') { … … 368 368 return $arrCat['name']; 369 369 } 370 return ""; 370 return ""; 371 371 } 372 372 … … 375 375 * 376 376 * @return array 377 */ 377 */ 378 378 function lfGetSearchConditionDisp($arrSearchData){ 379 379 $objQuery =& SC_Query_Ex::getSingletonInstance(); … … 400 400 * 401 401 * @return int 402 */ 402 */ 403 403 function lfGetProductAllNum($searchCondition){ 404 404 // 検索結果対象となる商品の数を取得 … … 413 413 * 414 414 * @return array 415 */ 415 */ 416 416 function lfGetSearchCondition($arrSearchData){ 417 417 $searchCondition = array( … … 468 468 * 469 469 * @return str 470 */ 470 */ 471 471 function lfSetSelectedData(&$arrProducts,$arrForm,$arrErr,$product_id){ 472 472 $js_fnOnLoad = ""; … … 488 488 * 489 489 * @return void 490 */ 490 */ 491 491 function lfAddCart($arrForm, $referer){ 492 492 $product_class_id = $arrForm['product_class_id'];
Note: See TracChangeset
for help on using the changeset viewer.