- Timestamp:
- 2011/02/11 18:57:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage.php
r20116 r20148 23 23 24 24 // {{{ requires 25 require_once(CLASS_REALDIR . "pages/ LC_Page.php");25 require_once(CLASS_REALDIR . "pages/mypage/LC_Page_AbstractMypage.php"); 26 26 27 27 /** … … 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_MyPage extends LC_Page {34 class LC_Page_MyPage extends LC_Page_AbstractMypage { 35 35 36 36 // {{{ properties … … 49 49 function init() { 50 50 parent::init(); 51 $this->tpl_title = 'MYページ';51 $this->tpl_title = 'MYページ'; 52 52 if (Net_UserAgent_Mobile::isMobile() === true){ 53 53 $this->tpl_subtitle = 'MYページ'; … … 55 55 $this->tpl_subtitle = '購入履歴一覧'; 56 56 } 57 $this->tpl_navi = TEMPLATE_REALDIR . 'mypage/navi.tpl';58 $this->tpl_mainno = 'mypage';59 $this->tpl_mypageno = 'index';57 $this->tpl_navi = TEMPLATE_REALDIR . 'mypage/navi.tpl'; 58 $this->tpl_mainno = 'mypage'; 59 $this->tpl_mypageno = 'index'; 60 60 $this->httpCacheControl('nocache'); 61 61 } … … 68 68 function process() { 69 69 parent::process(); 70 $this->action();71 $this->sendResponse();72 70 } 73 71 74 72 /** 75 73 * Page のAction. … … 81 79 $objQuery = new SC_Query(); 82 80 $objCustomer = new SC_Customer(); 83 84 // 退会判定用情報の取得85 $this->tpl_login = $objCustomer->isLoginSuccess(true);86 87 // ログインチェック88 if(!$objCustomer->isLoginSuccess(true)) {89 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);90 }else {91 //マイページトップ顧客情報表示用92 $this->CustomerName1 = $objCustomer->getvalue('name01');93 $this->CustomerName2 = $objCustomer->getvalue('name02');94 $this->CustomerPoint = $objCustomer->getvalue('point');95 }96 81 97 82 //ページ送り用 … … 146 131 $this->tpl_strnavi = $objNavi->strnavi; // 表示文字列 147 132 $startno = $objNavi->start_row; 148 133 149 134 // 取得範囲の指定(開始行番号、行数のセット) 150 135 $objQuery->setLimitOffset(SEARCH_PMAX, $startno); 151 136 } 152 137 153 138 // 表示順序 154 139 $objQuery->setOrder($order); … … 171 156 parent::destroy(); 172 157 } 173 174 //エラーチェック175 176 function lfErrorCheck() {177 $objErr = new SC_CheckError();178 $objErr->doFunc(array("メールアドレス", "login_email", MTEXT_LEN), array("EXIST_CHECK","SPTAB_CHECK","EMAIL_CHECK","MAX_LENGTH_CHECK"));179 $objErr->dofunc(array("パスワード", "login_password", PASSWORD_LEN2), array("EXIST_CHECK","ALNUM_CHECK"));180 return $objErr->arrErr;181 }182 183 /* パラメータ情報の初期化 */184 function lfInitParam(&$objFormParam) {185 186 $objFormParam->addParam("記憶する", "login_memory", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"));187 $objFormParam->addParam("メールアドレス", "login_email", MTEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));188 $objFormParam->addParam("パスワード", "login_pass", STEXT_LEN, "a", array("EXIST_CHECK", "MAX_LENGTH_CHECK"));189 }190 191 158 } 192 ?>
Note: See TracChangeset
for help on using the changeset viewer.