Changeset 14953 for branches/dev


Ignore:
Timestamp:
2007/06/28 11:25:36 (17 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

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

    r14952 r14953  
    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; 
     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; 
    9696// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë 
    9797case 'return': 
     
    109109    // ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ 
    110110    $uniqid = $objSiteSess->getUniqId(); 
     111    sfprintr($uniqid);exit; 
    111112    $objQuery = new SC_Query(); 
    112113    $where = "order_temp_id = ?"; 
     
    187188    } 
    188189     
    189     //$objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);        // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý 
     190    $objPage->arrForm['email'] = strtolower($objPage->arrForm['email']);        // email¤Ï¤¹¤Ù¤Æ¾®Ê¸»ú¤Ç½èÍý 
    190191     
    191192    //-- ÆþÎϥǡ¼¥¿¤ÎÊÑ´¹ 
     
    303304 */ 
    304305 //¥Ç¡¼¥¿¤ÎÅÐÏ¿¤ò¹Ô¤¦ 
    305 function lfRegistData($uniqid) { 
    306     global $objFormParam; 
    307     $arrRet = $objFormParam->getHashArray(); 
    308     $sqlval = $objFormParam->getDbArray(); 
    309     sfprintr($arrRet);exit; 
    310     // ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ® 
    311     $sqlval['order_temp_id'] = $uniqid; 
    312     $sqlval['order_birth'] = sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']); 
    313     $sqlval['update_date'] = 'Now()'; 
    314     $sqlval['customer_id'] = '0'; 
    315     $sqlval['order_name01'] = $objPage->arrAddr[0]['name01']; 
    316            
    317     // ´û¸¥Ç¡¼¥¿¤Î¥Á¥§¥Ã¥¯ 
    318     $objQuery = new SC_Query(); 
    319     $where = "order_temp_id = ?"; 
    320     $cnt = $objQuery->count("dtb_order_temp", $where, array($uniqid)); 
    321     // ´û¸¥Ç¡¼¥¿¤¬¤Ê¤¤¾ì¹ç 
    322     if ($cnt == 0) { 
    323         $sqlval['create_date'] = 'Now()'; 
    324         $objQuery->insert("dtb_order_temp", $sqlval); 
    325     } else { 
    326         $objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid)); 
    327     } 
    328 } 
     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//} 
    329330 
    330331 
Note: See TracChangeset for help on using the changeset viewer.