Ignore:
Timestamp:
2011/01/12 12:12:16 (13 years ago)
Author:
fukuda
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_History.php

    r19807 r19881  
    4444    function init() { 
    4545        parent::init(); 
    46         $this->tpl_title = 'MYページ'; 
    47         $this->tpl_subtitle = '購入履歴詳細'; 
    4846        $this->tpl_navi = TEMPLATE_REALDIR . 'mypage/navi.tpl'; 
    4947        $this->tpl_mainno = 'mypage'; 
     
    5351        $this->arrMAILTEMPLATE = $masterData->getMasterData("mtb_mail_template"); 
    5452        $this->arrPref = $masterData->getMasterData('mtb_pref'); 
     53         
     54        $this->isMobile = Net_UserAgent_Mobile::isMobile(); 
    5555   } 
    5656 
     
    6262    function process() { 
    6363        parent::process(); 
    64         $this->action(); 
     64        if ( $this->isMobile === false ){ 
     65            $this->action(); 
     66        } else { 
     67            $this->mobileAction(); 
     68        } 
    6569        $this->sendResponse(); 
    6670    } 
     
    7276     */ 
    7377    function action() { 
    74         //$objView = new SC_SiteView(); 
    7578        $objQuery = new SC_Query(); 
    7679        $objCustomer = new SC_Customer(); 
     
    115118        $this->tpl_arrMailHistory = $this->lfGetMailHistory($orderId); 
    116119 
    117         //$objView->assignobj($this); 
    118         //$objView->display(SITE_FRAME); 
    119120    } 
    120121 
     
    129130 
    130131    /** 
    131      * モバイルページを初期化する. 
    132      * 
    133      * @return void 
    134      */ 
    135     function mobileInit() { 
    136         $this->init(); 
    137         $this->tpl_mainpage = MOBILE_TEMPLATE_REALDIR . 'mypage/history.tpl'; 
    138         $this->tpl_title = 'MYページ/購入履歴一覧'; 
    139         $this->httpCacheControl('nocache'); 
    140     } 
    141  
    142     /** 
    143      * Page のプロセス(モバイル). 
    144      * 
    145      * @return void 
    146      */ 
    147     function mobileProcess() { 
    148         parent::mobileProcess(); 
    149         $this->mobileAction(); 
    150         $this->sendResponse(); 
    151     } 
    152  
    153     /** 
    154132     * Page のAction(モバイル). 
    155133     * 
     
    159137        define ("HISTORY_NUM", 5); 
    160138 
    161         //$objView = new SC_MobileView(); 
    162139        $objQuery = new SC_Query(); 
    163140        $objCustomer = new SC_Customer(); 
     
    210187 
    211188        $this->tpl_strnavi = $previous . $bar . $next; 
    212         //$objView->assignobj($this);               //$objpage内の全てのテンプレート変数をsmartyに格納 
    213         //$objView->display(SITE_FRAME);                //パスとテンプレート変数の呼び出し、実行 
     189 
    214190    } 
    215191 
Note: See TracChangeset for help on using the changeset viewer.