Changeset 16238 for branches/feature-module-update/data/class/pages/mypage/LC_Page_Mypage_Refusal.php
- Timestamp:
- 2007/10/02 21:43:36 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/pages/mypage/LC_Page_Mypage_Refusal.php
r16119 r16238 95 95 96 96 /** 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 /** 97 146 * デストラクタ. 98 147 *
Note: See TracChangeset
for help on using the changeset viewer.