Changeset 1967 for temp/trunk
- Timestamp:
- 2006/08/25 14:53:23 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 2 edited
-
data/Smarty/templates/mypage/change.tpl (modified) (previous)
-
html/mypage/change.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/mypage/change.php
r1328 r1967 84 84 $objPage->arrForm = lfConvertParam($objPage->arrForm, $arrRegistColumn); 85 85 $objPage->arrForm['email'] = strtolower($objPage->arrForm['email']); // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý 86 87 //ÃÂÀ¸ÆüÉÔÀµÊѹ¹¤Î¥Á¥§¥Ã¥¯ 88 $arrCustomer = lfGetCustomerData(); 89 if ($arrCustomer['birth'] != "" && ($objPage->arrForm['year'] != $arrCustomer['year'] || $objPage->arrForm['month'] != $arrCustomer['month'] || $objPage->arrForm['day'] != $arrCustomer['day'])){ 90 sfDispSiteError(CUSTOMER_ERROR); 91 }else{ 92 //¥¨¥é¡¼¥Á¥§¥Ã¥¯ 93 $objPage->arrErr = lfErrorCheck($objPage->arrForm); 94 $email_flag = true; 95 //¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÊѹ¹¤·¤Æ¤¤¤ë¾ì¹ç¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î½ÅÊ£¥Á¥§¥Ã¥¯ 96 if ($objPage->arrForm['email'] != $objCustomer->getValue('email')){ 97 $email_cnt = $objQuery->count("dtb_customer","delete=0 AND email=?", array($objPage->arrForm['email'])); 98 if ($email_cnt > 0){ 99 $email_flag = false; 100 } 101 } 102 //¥¨¥é¡¼¤Ê¤·¤Ç¤«¤Ä¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬½ÅÊ£¤·¤Æ¤¤¤Ê¤¤¾ì¹ç 103 if ($objPage->arrErr == "" && $email_flag == true){ 104 //³Îǧ¥Ú¡¼¥¸¤Ø 105 $objPage->tpl_mainpage = 'mypage/change_confirm.tpl'; 106 $objPage->tpl_title = 'MY¥Ú¡¼¥¸/²ñ°÷ÅÐÏ¿ÆâÍÆÊѹ¹(³Îǧ¥Ú¡¼¥¸)'; 107 $passlen = strlen($objPage->arrForm['password']); 108 $objPage->passlen = lfPassLen($passlen); 109 } else { 110 lfFormReturn($objPage->arrForm,$objPage); 111 if ($email_flag == false){ 112 $objPage->arrErr['email'].="´û¤Ë»ÈÍѤµ¤ì¤Æ¤¤¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ç¤¹¡£"; 113 } 86 87 //¥¨¥é¡¼¥Á¥§¥Ã¥¯ 88 $objPage->arrErr = lfErrorCheck($objPage->arrForm); 89 $email_flag = true; 90 //¥á¡¼¥ë¥¢¥É¥ì¥¹¤òÊѹ¹¤·¤Æ¤¤¤ë¾ì¹ç¡¢¥á¡¼¥ë¥¢¥É¥ì¥¹¤Î½ÅÊ£¥Á¥§¥Ã¥¯ 91 if ($objPage->arrForm['email'] != $objCustomer->getValue('email')){ 92 $email_cnt = $objQuery->count("dtb_customer","delete=0 AND email=?", array($objPage->arrForm['email'])); 93 if ($email_cnt > 0){ 94 $email_flag = false; 95 } 96 } 97 //¥¨¥é¡¼¤Ê¤·¤Ç¤«¤Ä¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬½ÅÊ£¤·¤Æ¤¤¤Ê¤¤¾ì¹ç 98 if ($objPage->arrErr == "" && $email_flag == true){ 99 //³Îǧ¥Ú¡¼¥¸¤Ø 100 $objPage->tpl_mainpage = 'mypage/change_confirm.tpl'; 101 $objPage->tpl_title = 'MY¥Ú¡¼¥¸/²ñ°÷ÅÐÏ¿ÆâÍÆÊѹ¹(³Îǧ¥Ú¡¼¥¸)'; 102 $passlen = strlen($objPage->arrForm['password']); 103 $objPage->passlen = lfPassLen($passlen); 104 } else { 105 lfFormReturn($objPage->arrForm,$objPage); 106 if ($email_flag == false){ 107 $objPage->arrErr['email'].="´û¤Ë»ÈÍѤµ¤ì¤Æ¤¤¤ë¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ç¤¹¡£"; 114 108 } 115 109 }
Note: See TracChangeset
for help on using the changeset viewer.
