Changeset 19903 for branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
- Timestamp:
- 2011/01/13 14:46:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
r19807 r19903 30 30 * @package Page 31 31 * @author LOCKON CO.,LTD. 32 * @version $Id :LC_Page_FrontParts_Bloc_Category.php 15532 2007-08-31 14:39:46Z nanasess$32 * @version $Id$ 33 33 */ 34 34 class LC_Page_FrontParts_Bloc_Category extends LC_Page_FrontParts_Bloc { … … 63 63 */ 64 64 function action() { 65 $objDb = new SC_Helper_DB_Ex(); 65 if(Net_UserAgent_Mobile::isMobile() === true) { 66 $this->lfGetMainCat(true, $this); 67 } else { 68 $objDb = new SC_Helper_DB_Ex(); 66 69 67 // 選択中のカテゴリIDを判定する68 $arrCategory_id = $objDb->sfGetCategoryId($_GET['product_id'], $_GET['category_id']);70 // 選択中のカテゴリIDを判定する 71 $arrCategory_id = $objDb->sfGetCategoryId($_GET['product_id'], $_GET['category_id']); 69 72 70 // 選択中のカテゴリID 71 $this->tpl_category_id = empty($arrCategory_id) ? array(0) : $arrCategory_id;; 72 $this->lfGetCatTree($this->tpl_category_id, true, $this); 73 } 74 75 /** 76 * モバイルページを初期化する. 77 * 78 * @return void 79 */ 80 function mobileInit() { 81 $this->tpl_mainpage = MOBILE_TEMPLATE_REALDIR . "frontparts/" 82 . BLOC_DIR . 'category.tpl'; 83 } 84 85 /** 86 * Page のプロセス(モバイル). 87 * 88 * @return void 89 */ 90 function mobileProcess() { 91 $objSubView = new SC_MobileView(); 92 93 $this->lfGetMainCat(true, $this); 94 95 $objSubView->assignobj($this); 96 $objSubView->display($this->tpl_mainpage); 73 // 選択中のカテゴリID 74 $this->tpl_category_id = empty($arrCategory_id) ? array(0) : $arrCategory_id;; 75 $this->lfGetCatTree($this->tpl_category_id, true, $this); 76 } 97 77 } 98 78
Note: See TracChangeset
for help on using the changeset viewer.