Changeset 14962
- Timestamp:
- 2007/06/28 12:20:01 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/html/mobile/nonmember/index.php
r14961 r14962 76 76 $objPage = lfSetNonMember($objPage); 77 77 // ¢¨break¤Ê¤· 78 //case 'confirm':79 //// ÆþÎÏÃͤÎÊÑ´¹80 //$objFormParam->convParam();81 //$objFormParam->toLower('order_mail');82 //$objFormParam->toLower('order_mail_check');83 //$objPage->arrErr = lfCheckError();84 //// ÆþÎÏ¥¨¥é¡¼¤Ê¤·85 //if(count($objPage->arrErr) == 0) {86 //// DB¤Ø¤Î¥Ç¡¼¥¿ÅÐÏ¿87 //lfRegistData($uniqid);88 //// Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµÏ¿¤·¤Æ¤ª¤¯89 //$objSiteSess->setRegistFlag();90 //// ¤ª»Ùʧ¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ°91 //header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_PAYMENT));92 //exit;93 //}94 //95 //break;78 case 'confirm': 79 // ÆþÎÏÃͤÎÊÑ´¹ 80 $objFormParam->convParam(); 81 $objFormParam->toLower('order_mail'); 82 $objFormParam->toLower('order_mail_check'); 83 $objPage->arrErr = lfCheckError(); 84 // ÆþÎÏ¥¨¥é¡¼¤Ê¤· 85 if(count($objPage->arrErr) == 0) { 86 // DB¤Ø¤Î¥Ç¡¼¥¿ÅÐÏ¿ 87 lfRegistData($uniqid); 88 // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµÏ¿¤·¤Æ¤ª¤¯ 89 $objSiteSess->setRegistFlag(); 90 // ¤ª»Ùʧ¤¤ÊýË¡ÁªÂò¥Ú¡¼¥¸¤Ø°ÜÆ° 91 header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_PAYMENT)); 92 exit; 93 } 94 95 break; 96 96 // Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë 97 97 case 'return': … … 109 109 // ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ 110 110 $uniqid = $objSiteSess->getUniqId(); 111 print($uniqid);112 111 $objQuery = new SC_Query(); 113 112 $where = "order_temp_id = ?"; … … 188 187 } 189 188 190 $objPage->arrForm['email'] = strtolower($objPage->arrForm['email']); // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý189 //$objPage->arrForm['email'] = strtolower($objPage->arrForm['email']); // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý 191 190 192 191 //-- ÆþÎϥǡ¼¥¿¤ÎÊÑ´¹ … … 219 218 $objPage->tpl_title = '¤ªµÒÍ;ðÊóÆþÎÏ(1/3)'; 220 219 } elseif ($_POST["mode2"] == "set3") { 221 sfprintr($objPage->arrForm);220 222 221 $objPage->arrErr = lfErrorCheck2($objPage->arrForm); 223 222 $objPage->tpl_mainpage = 'nonmember/nonmember_set2.tpl'; 224 223 $objPage->tpl_title = '¤ªµÒÍ;ðÊóÆþÎÏ(2/3)'; 225 } else{ 226 print('¤ªµÒÍ;ðÊóÆþÎÏ(3/3)'); 227 sfprintr($objPage->arrForm); 224 } elseif ($_POST["mode2"] == "deliv"){ 228 225 $objPage->arrErr = lfErrorCheck3($objPage->arrForm); 229 226 $objPage->tpl_mainpage = 'nonmember/nonmember_set3.tpl'; … … 239 236 // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 240 237 if ($objPage->arrErr || !empty($_POST["return"])) { 238 241 239 //-- ¥Ç¡¼¥¿¤ÎÀßÄê 242 240 if ($_POST["mode2"] == "set2") { … … 245 243 $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 246 244 } else { 247 sfprintr($objPage->arrForm);exit;248 245 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 249 246 } … … 271 268 } 272 269 } 273 //sfprintr($objPage); 270 274 271 //-- ¥Ç¡¼¥¿ÀßÄê 275 272 unset($objPage->list_data); … … 279 276 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 280 277 } else { 281 $checkVal = array( );278 $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 282 279 } 283 280 … … 304 301 */ 305 302 //¥Ç¡¼¥¿¤ÎÅÐÏ¿¤ò¹Ô¤¦ 306 //function lfRegistData($uniqid) {307 //global $objFormParam;308 //$arrRet = $objFormParam->getHashArray();309 //$sqlval = $objFormParam->getDbArray();310 // sfprintr($arrRet);exit; 311 //// ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ®312 //$sqlval['order_temp_id'] = $uniqid;313 //$sqlval['order_birth'] = sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']);314 //$sqlval['update_date'] = 'Now()';315 //$sqlval['customer_id'] = '0';316 //$sqlval['order_name01'] = $objPage->arrAddr[0]['name01'];317 //318 //// ´û¸¥Ç¡¼¥¿¤Î¥Á¥§¥Ã¥¯319 //$objQuery = new SC_Query();320 //$where = "order_temp_id = ?";321 //$cnt = $objQuery->count("dtb_order_temp", $where, array($uniqid));322 //// ´û¸¥Ç¡¼¥¿¤¬¤Ê¤¤¾ì¹ç323 //if ($cnt == 0) {324 //$sqlval['create_date'] = 'Now()';325 //$objQuery->insert("dtb_order_temp", $sqlval);326 //} else {327 //$objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid));328 //}329 //}303 function lfRegistData($uniqid) { 304 global $objFormParam; 305 $arrRet = $objFormParam->getHashArray(); 306 $sqlval = $objFormParam->getDbArray(); 307 308 // ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ® 309 $sqlval['order_temp_id'] = $uniqid; 310 $sqlval['order_birth'] = sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']); 311 $sqlval['update_date'] = 'Now()'; 312 $sqlval['customer_id'] = '0'; 313 $sqlval['order_name01'] = $objPage->arrAddr[0]['name01']; 314 315 // ´û¸¥Ç¡¼¥¿¤Î¥Á¥§¥Ã¥¯ 316 $objQuery = new SC_Query(); 317 $where = "order_temp_id = ?"; 318 $cnt = $objQuery->count("dtb_order_temp", $where, array($uniqid)); 319 // ´û¸¥Ç¡¼¥¿¤¬¤Ê¤¤¾ì¹ç 320 if ($cnt == 0) { 321 $sqlval['create_date'] = 'Now()'; 322 $objQuery->insert("dtb_order_temp", $sqlval); 323 } else { 324 $objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid)); 325 } 326 } 330 327 331 328
Note: See TracChangeset
for help on using the changeset viewer.