Ignore:
Timestamp:
2009/10/30 20:14:22 (14 years ago)
Author:
satou
Message:

#562 支払方法選択画面でリロードしないように改良(jQuery×AJAX)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r18311 r18358  
    2424// {{{ requires 
    2525require_once(CLASS_PATH . "pages/LC_Page.php"); 
     26require_once(DATA_PATH . 'module/Services/JSON.php'); 
    2627 
    2728/** 
     
    3031 * @package Page 
    3132 * @author LOCKON CO.,LTD. 
    32  * @version $Id:LC_Page_Shopping_Payment.php 15532 2007-08-31 14:39:46Z nanasess $ 
     33 * @version $Id:LC_Page_Shopping_Payment.php 15532 2009-10-30 20:04:46Z satou $ 
    3334 */ 
    3435class LC_Page_Shopping_Payment extends LC_Page { 
     
    136137        // 支払い方法が変更された場合 
    137138        case 'payment': 
    138             // ここのbreakは、意味があるので外さないで下さい。 
     139            // 配送時間の配列を生成 
     140            $this->lfSetDelivTime(); 
    139141            break; 
    140142        default: 
     
    150152        // 支払い方法の画像があるなしを取得($img_show true:ある false:なし) 
    151153        $this->img_show = $this->lfGetImgShow($this->arrPayment); 
    152         // お届け時間の取得 
    153         $arrRet = $objDb->sfGetDelivTime($this->objFormParam->getValue('payment_id')); 
    154         $this->arrDelivTime = SC_Utils_Ex::sfArrKeyValue($arrRet, 'time_id', 'deliv_time'); 
    155  
    156154        // お届け日一覧の取得 
    157155        $this->arrDelivDate = $this->lfGetDelivDate(); 
     
    208206            SC_Utils_Ex::sfDispSiteError(SOLD_OUT, '', true); 
    209207        } 
    210          
     208 
    211209        $this->arrData = $objDb->sfTotalConfirm(array(), $this, $objCartSess); 
    212210 
     
    370368            $_POST['use_point'] = "0"; 
    371369        } 
    372          
     370 
    373371        if (!isset($_POST['point_check'])) $_POST['point_check'] = ""; 
    374          
     372 
    375373        if($_POST['point_check'] == '1') { 
    376374            $objErr->doFunc(array("ポイントを使用する", "point_check"), array("EXIST_CHECK")); 
     
    419417    function lfRegistData($uniqid) { 
    420418        $objDb = new SC_Helper_DB_Ex(); 
    421          
     419 
    422420        $sqlval = $this->objFormParam->getDbArray(); 
    423421        // 登録データの作成 
     
    526524    //一時受注テーブルからの情報を格納する 
    527525    function lfSetOrderTempData($uniqid) { 
    528  
    529526        $objQuery = new SC_Query(); 
    530527        $col = "payment_id, use_point, deliv_time_id, message, point_check, deliv_date"; 
     
    548545        return $img_show; 
    549546    } 
     547 
     548    /* 配送時間の配列を生成 */ 
     549    function lfSetDelivTime() { 
     550        $objDb = new SC_Helper_DB_Ex(); 
     551        $objJson = new Services_JSON; 
     552 
     553        // 配送時間の取得 
     554        $arrRet = $objDb->sfGetDelivTime($this->objFormParam->getValue('payment_id')); 
     555        // JSONエンコード 
     556        echo $objJson->encode($arrRet); 
     557        exit; 
     558    } 
    550559} 
    551560?> 
Note: See TracChangeset for help on using the changeset viewer.