Changeset 20148
- Timestamp:
- 2011/02/11 18:57:58 (13 years ago)
- Location:
- branches/version-2_5-dev/data/class
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_Product.php
r20116 r20148 739 739 return $sql; 740 740 } 741 741 742 742 /** 743 743 * 商品規格ID1、2に紐づいた,product_class_idを取得する. -
branches/version-2_5-dev/data/class/helper/SC_Helper_Customer.php
r20147 r20148 288 288 289 289 290 /** 291 * 会員登録時フォーム初期化 292 * 293 * @param mixed $objFormParam 294 * @access public 295 * @return void 296 */ 290 297 function sfCustomerEntryParam (&$objFormParam) { 291 298 SC_Helper_Customer_Ex::sfCustomerCommonParam($objFormParam); 292 299 } 293 300 301 /** 302 * 会員情報変更フォーム初期化 303 * 304 * @param mixed $objFormParam 305 * @access public 306 * @return void 307 */ 294 308 function sfCustomerMypageParam (&$objFormParam) { 295 309 SC_Helper_Customer_Ex::sfCustomerCommonParam($objFormParam); … … 300 314 } 301 315 316 /** 317 * 会員フォーム共通 318 * 319 * @param mixed $objFormParam 320 * @access public 321 * @return void 322 */ 302 323 function sfCustomerCommonParam (&$objFormParam) { 303 324 … … 336 357 } 337 358 359 /** 360 * 会員登録エラーチェック 361 * 362 * @param mixed $objFormParam 363 * @access public 364 * @return array エラーの配列 365 */ 338 366 function sfCustomerEntryErrorCheck(&$objFormParam) { 339 367 $objErr->arrErr = SC_Helper_Customer_Ex::sfCustomerCommonErrorCheck(&$objFormParam); … … 341 369 } 342 370 371 /** 372 * 会員情報変更エラーチェック 373 * 374 * @param mixed $objFormParam 375 * @access public 376 * @return array エラーの配列 377 */ 343 378 function sfCustomerMypageErrorCheck(&$objFormParam) { 344 379 … … 359 394 360 395 /** 361 * 入力エラーチェック396 * 会員エラーチェック共通 362 397 * 363 398 * @param mixed $objFormParam … … 390 425 return $objErr->arrErr; 391 426 } 392 393 394 395 427 } -
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 ?> -
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_History.php
r20144 r20148 68 68 */ 69 69 function action() { 70 $objQuery = new SC_Query();71 70 $objCustomer = new SC_Customer(); 72 71 $objDb = new SC_Helper_DB_Ex(); … … 171 170 } 172 171 } 173 ?> -
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Login.php
r20143 r20148 44 44 function init() { 45 45 parent::init(); 46 $this->tpl_title = 'MYページ(ログイン)';47 46 $this->httpCacheControl('nocache'); 48 47 } -
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Order.php
r20139 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_Order extends LC_Page {34 class LC_Page_Mypage_Order extends LC_Page_AbstractMypage { 35 35 36 36 // }}} … … 53 53 function process() { 54 54 parent::process(); 55 $this->action();56 $this->sendResponse();57 55 } 58 56 … … 69 67 70 68 //ログインしていない、またはDBに情報が無い場合 71 if ( !$objCustomer->isLoginSuccess(true) ||empty($arrOrderDetail)){69 if (empty($arrOrderDetail)){ 72 70 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 73 71 } -
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Refusal.php
r20140 r20148 44 44 function init() { 45 45 parent::init(); 46 $this->tpl_title = 'MYページ';47 46 $this->tpl_subtitle = '退会手続き(入力ページ)'; 48 $this->tpl_navi = TEMPLATE_REALDIR . 'mypage/navi.tpl';49 $this->tpl_mainno = 'mypage';50 47 $this->tpl_mypageno = 'refusal'; 51 48 } … … 104 101 */ 105 102 function lfDeleteCustomer($customer_id){ 106 $objQuery 103 $objQuery = SC_Query::getSingletonInstance(); 107 104 108 105 $sqlval['del_flg'] = 1;
Note: See TracChangeset
for help on using the changeset viewer.