Ignore:
Timestamp:
2008/11/06 15:42:41 (15 years ago)
Author:
takegami
Message:

#387 解決

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/shopping/LC_Page_Shopping_Deliv.php

    r17653 r17684  
    155155            } elseif($_POST['deliv_check'] >= 1) { 
    156156                if (SC_Utils_Ex::sfIsInt($_POST['deliv_check'])) { 
     157                    $objQuery = new SC_Query(); 
     158                    $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['deliv_check'])); 
     159                    if ($deliv_count != 1) { 
     160                        SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
     161                    } 
     162                     
    157163                    // 登録済みの別のお届け先を受注一時テーブルに書き込む 
    158164                    $this->lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['deliv_check']); 
     
    335341            if ($_POST['deli'] != "") { 
    336342                if (SC_Utils_Ex::sfIsInt($_POST['other_deliv_id'])) { 
     343                    $objQuery = new SC_Query(); 
     344                    $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id'])); 
     345                    if ($deliv_count != 1) { 
     346                        SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
     347                    } 
    337348                    // 登録済みの別のお届け先を受注一時テーブルに書き込む 
    338349                    $this->lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['other_deliv_id']); 
     
    348359            } 
    349360            break; 
    350  
    351             /* 
    352             // 別のお届け先を指定 
    353             case 'new_addr': 
    354             // 入力値の変換 
    355             $this->objFormParam->convParam(); 
    356             $this->arrErr = lfCheckError($arrRet); 
    357             // 入力エラーなし 
    358             if(count($this->arrErr) == 0) { 
    359             // DBへお届け先を登録 
    360             lfRegistNewAddrData($uniqid, $objCustomer); 
    361             // 正常に登録されたことを記録しておく 
    362             $objSiteSess->setRegistFlag(); 
    363             // お支払い方法選択ページへ移動 
    364             header("Location: " . URL_SHOP_PAYMENT); 
    365             exit; 
    366             } 
    367             break; 
    368             */ 
    369361 
    370362            // 前のページに戻る 
Note: See TracChangeset for help on using the changeset viewer.