Changeset 19371


Ignore:
Timestamp:
2010/11/07 02:14:19 (12 years ago)
Author:
Yammy
Message:

管理画面用のLC_Page_Adminを新たに作成

Location:
branches/camp/camp-2_5-E/data
Files:
2 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_5-E/data/class/SC_Display.php

    r19193 r19371  
    4545    * @param $page LC_Page 
    4646    */ 
    47     function hoge(LC_Page $page){ 
     47    function hoge(LC_Page $page, $is_admin = false){ 
    4848        if(!$this->deviceSeted || !is_null($this->view)){ 
    49             $device = $this->detectDevice(); 
     49            $device = ($is_admin) ? 8 : $this->detectDevice(); 
    5050            $this->setDevice($device); 
    5151        } 
  • branches/camp/camp-2_5-E/data/class/pages/LC_Page.php

    r19341 r19371  
    115115 
    116116    /** 
    117      * Page のアクション. 
     117     * Page のレスポンス送信. 
    118118     * 
    119119     * @return void 
  • branches/camp/camp-2_5-E/data/class/pages/admin/LC_Page_Admin.php

    r18701 r19371  
    4444    function init() { 
    4545        parent::init(); 
    46         $this->tpl_mainpage = 'login.tpl'; 
    4746    } 
    4847 
     
    5352     */ 
    5453    function process() { 
    55         $objView = new SC_AdminView(); 
    56         $objView->assignobj($this); 
    57         $objView->display(LOGIN_FRAME); 
     54        $this->action(); 
     55        $this->sendResponse(); 
    5856    } 
     57 
     58    /** 
     59     * Page のレスポンス送信. 
     60     * 
     61     * @return void 
     62     */ 
     63    function sendResponse() { 
     64        $this->objDisplay->hoge($this, true); 
     65        $this->objDisplay->response->response(); 
     66    } 
     67 
    5968 
    6069    /** 
Note: See TracChangeset for help on using the changeset viewer.