Ignore:
Timestamp:
2011/01/13 14:46:07 (13 years ago)
Author:
kotani
Message:

#880(mobile/sphoneディレクトリを削除)に対応。まずmobileのみ意図通りの動作になるように一部コミット(frontpartsディレクトリ)

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  
    3030 * @package Page 
    3131 * @author LOCKON CO.,LTD. 
    32  * @version $Id:LC_Page_FrontParts_Bloc_Category.php 15532 2007-08-31 14:39:46Z nanasess $ 
     32 * @version $Id$ 
    3333 */ 
    3434class LC_Page_FrontParts_Bloc_Category extends LC_Page_FrontParts_Bloc { 
     
    6363     */ 
    6464    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(); 
    6669 
    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']); 
    6972 
    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        } 
    9777    } 
    9878 
Note: See TracChangeset for help on using the changeset viewer.