Ignore:
Timestamp:
2007/10/02 21:43:36 (17 years ago)
Author:
nanasess
Message:

クラス化に伴う修正

Location:
branches/feature-module-update/data/class/pages/mypage
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/mypage/LC_Page_Mypage_Refusal.php

    r16119 r16238  
    9595 
    9696    /** 
     97     * モバイルページを初期化する. 
     98     * 
     99     * @return void 
     100     */ 
     101    function mobileInit() { 
     102        $this->tpl_mainpage = 'mypage/refusal.tpl'; 
     103        $this->tpl_title = "MYページ/退会手続き(入力ページ)"; 
     104 
     105    } 
     106 
     107    /** 
     108     * Page のプロセス(モバイル). 
     109     * 
     110     * @return void 
     111     */ 
     112    function mobileProcess() { 
     113        $objView = new SC_MobileView(); 
     114        $objCustomer = new SC_Customer(); 
     115        $objQuery = new SC_Query(); 
     116 
     117        //ログイン判定 
     118        if (!$objCustomer->isLoginSuccess()){ 
     119            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR, "", false, "", true); 
     120        }else { 
     121            //マイページトップ顧客情報表示用 
     122            $this->CustomerName1 = $objCustomer->getvalue('name01'); 
     123            $this->CustomerName2 = $objCustomer->getvalue('name02'); 
     124            $this->CustomerPoint = $objCustomer->getvalue('point'); 
     125        } 
     126 
     127        if (isset($_POST['no'])) { 
     128            $this->sendRedirect($this->getLocation(SC_Helper_Mobile_Ex::gfAddSessionId("index.php"))); 
     129            exit; 
     130        } elseif (isset($_POST['complete'])){ 
     131            //会員削除 
     132            $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id'))); 
     133 
     134            $where = "email = ?"; 
     135            $objCustomer->EndSession(); 
     136            //完了ページへ 
     137            $this->sendRedirect($this->getLocation(SC_Helper_Mobile_Ex::gfAddSessionId("refusal_complete.php"))); 
     138            exit; 
     139        } 
     140 
     141        $objView->assignobj($this); 
     142        $objView->display(SITE_FRAME); 
     143    } 
     144 
     145    /** 
    97146     * デストラクタ. 
    98147     * 
  • branches/feature-module-update/data/class/pages/mypage/LC_Page_Mypage_RefusalComplete.php

    r16117 r16238  
    5959 
    6060    /** 
     61     * モバイルページを初期化する. 
     62     * 
     63     * @return void 
     64     */ 
     65    function mobileInit() { 
     66        $this->tpl_mainpage = 'mypage/refusal_complete.tpl'; 
     67        $this->tpl_title = "MYページ/退会手続き(完了ページ)"; 
     68        $this->point_disp = false; 
     69    } 
     70 
     71    /** 
     72     * Page のプロセス(モバイル). 
     73     * 
     74     * @return void 
     75     */ 
     76    function mobileProcess() { 
     77        $objView = new SC_MobileView(); 
     78 
     79        $objCustomer = new SC_Customer(); 
     80        //マイページトップ顧客情報表示用 
     81        $this->CustomerName1 = $objCustomer->getvalue('name01'); 
     82        $this->CustomerName2 = $objCustomer->getvalue('name02'); 
     83        $this->CustomerPoint = $objCustomer->getvalue('point'); 
     84 
     85        $objView->assignobj($this); 
     86        $objView->display(SITE_FRAME); 
     87    } 
     88 
     89    /** 
    6190     * デストラクタ. 
    6291     * 
Note: See TracChangeset for help on using the changeset viewer.