Changeset 14962


Ignore:
Timestamp:
2007/06/28 12:20:01 (17 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/mobile/nonmember/index.php

    r14961 r14962  
    7676    $objPage = lfSetNonMember($objPage); 
    7777    // ¢¨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; 
     78case '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; 
    9696// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë 
    9797case 'return': 
     
    109109    // ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ 
    110110    $uniqid = $objSiteSess->getUniqId(); 
    111     print($uniqid); 
    112111    $objQuery = new SC_Query(); 
    113112    $where = "order_temp_id = ?"; 
     
    188187    } 
    189188     
    190     $objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);        // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý 
     189    //$objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);        // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý 
    191190     
    192191    //-- ÆþÎϥǡ¼¥¿¤ÎÊÑ´¹ 
     
    219218            $objPage->tpl_title = '¤ªµÒÍ;ðÊóÆþÎÏ(1/3)'; 
    220219        } elseif ($_POST["mode2"] == "set3") { 
    221             sfprintr($objPage->arrForm); 
     220             
    222221            $objPage->arrErr = lfErrorCheck2($objPage->arrForm); 
    223222            $objPage->tpl_mainpage = 'nonmember/nonmember_set2.tpl'; 
    224223            $objPage->tpl_title = '¤ªµÒÍ;ðÊóÆþÎÏ(2/3)'; 
    225         } else{ 
    226             print('¤ªµÒÍ;ðÊóÆþÎÏ(3/3)'); 
    227             sfprintr($objPage->arrForm); 
     224        } elseif ($_POST["mode2"] == "deliv"){ 
    228225            $objPage->arrErr = lfErrorCheck3($objPage->arrForm); 
    229226            $objPage->tpl_mainpage = 'nonmember/nonmember_set3.tpl'; 
     
    239236        // ÆþÎÏ¥¨¥é¡¼¤Î¥Á¥§¥Ã¥¯ 
    240237    if ($objPage->arrErr || !empty($_POST["return"])) {      
     238 
    241239        //-- ¥Ç¡¼¥¿¤ÎÀßÄê 
    242240        if ($_POST["mode2"] == "set2") { 
     
    245243            $checkVal = array("sex", "year", "month", "day", "zip01", "zip02"); 
    246244        } else { 
    247             sfprintr($objPage->arrForm);exit; 
    248245            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
    249246        } 
     
    271268            } 
    272269        } 
    273         //sfprintr($objPage); 
     270 
    274271        //-- ¥Ç¡¼¥¿ÀßÄê 
    275272        unset($objPage->list_data); 
     
    279276            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
    280277        } else { 
    281             $checkVal = array(); 
     278            $checkVal = array("pref", "addr01", "addr02", "tel01", "tel02", "tel03", "mail_flag"); 
    282279        } 
    283280 
     
    304301 */ 
    305302 //¥Ç¡¼¥¿¤ÎÅÐÏ¿¤ò¹Ô¤¦ 
    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 //} 
     303function 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} 
    330327 
    331328 
Note: See TracChangeset for help on using the changeset viewer.