Changeset 12728


Ignore:
Timestamp:
2007/05/14 11:17:44 (15 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

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

    r12727 r12728  
    365365//            } 
    366366          
    367             lfRegistData($objPage->tpl_uniqid);  
     367            lfRegistDataTemp($objPage->tpl_uniqid,$objPage->arrAddr[0]);  
    368368             
    369369            lfCopyDeliv($objPage->tpl_uniqid, $_POST); 
     
    406406    $sqlval['customer_id'] = '0'; 
    407407    $sqlval['order_name01'] = $objPage->arrAddr[0]['name01']; 
     408           
     409    print_r($sqlval); 
     410    // ´û¸¥Ç¡¼¥¿¤Î¥Á¥§¥Ã¥¯ 
     411    $objQuery = new SC_Query(); 
     412    $where = "order_temp_id = ?"; 
     413    $cnt = $objQuery->count("dtb_order_temp", $where, array($uniqid)); 
     414    // ´û¸¥Ç¡¼¥¿¤¬¤Ê¤¤¾ì¹ç 
     415    if ($cnt == 0) { 
     416        $sqlval['create_date'] = 'Now()'; 
     417        $objQuery->insert("dtb_order_temp", $sqlval); 
     418    } else { 
     419        $objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid)); 
     420    } 
     421} 
     422 
     423function lfRegistDataTemp($uniqid,$array) { 
     424    global $objFormParam; 
     425    $arrRet = $objFormParam->getHashArray(); 
     426    $sqlval = $objFormParam->getDbArray(); 
     427     
     428    // ÅÐÏ¿¥Ç¡¼¥¿¤ÎºîÀ® 
     429    $sqlval['order_temp_id'] = $uniqid; 
     430    $sqlval['order_birth'] = sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']); 
     431    $sqlval['update_date'] = 'Now()'; 
     432    $sqlval['customer_id'] = '0'; 
     433    $sqlval['order_name01'] = $array['name01']; 
    408434           
    409435    print_r($sqlval); 
Note: See TracChangeset for help on using the changeset viewer.