Changeset 19091


Ignore:
Timestamp:
2010/11/06 22:18:21 (13 years ago)
Author:
Yammy
Message:

新process()処理修正

Location:
branches/camp/camp-2_5-E/data/class/pages/shopping
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_5-E/data/class/pages/shopping/LC_Page_Shopping.php

    r18853 r19091  
    6969     */ 
    7070    function process() { 
    71         global $objCampaignSess; 
    72  
    73         $objView = new SC_SiteView(); 
     71        parent::process(); 
     72        $this->action(); 
     73        $this->endResponse(); 
     74    } 
     75 
     76    /** 
     77     * Page のプロセス. 
     78     * 
     79     * @return void 
     80     */ 
     81    function action() { 
    7482        $objSiteSess = new SC_SiteSession(); 
    7583        $objCartSess = new SC_CartSession(); 
    76         $objCampaignSess = new SC_CampaignSession(); 
    7784        $objCustomer = new SC_Customer(); 
    7885        $objCookie = new SC_Cookie(); 
     
    192199 
    193200        $this->transactionid = $this->getToken(); 
    194         $objView->assignobj($this); 
    195         // フレームを選択(キャンペーンページから遷移なら変更) 
    196         $objCampaignSess->pageView($objView); 
    197201    } 
    198202 
     
    208212 
    209213    /** 
     214     * Page のアクション(モバイル). 
     215     * 
     216     * @return void 
     217     */ 
     218    function mobileProcess() { 
     219        parent::mobileProcess(); 
     220        $this->mobileAction(); 
     221        $this->endResponse(); 
     222    } 
     223 
     224    /** 
    210225     * Page のプロセス(モバイル). 
    211226     * 
    212227     * @return void 
    213228     */ 
    214     function mobileProcess() { 
     229    function mobileAction() { 
    215230        $objView = new SC_MobileView(); 
    216231        $objSiteSess = new SC_SiteSession(); 
     
    257272            $this->tpl_login_memory = "1"; 
    258273        } 
    259  
    260         $objView->assignobj($this); 
    261         $objView->display(SITE_FRAME); 
    262274    } 
    263275 
  • branches/camp/camp-2_5-E/data/class/pages/shopping/LC_Page_Shopping_Complete.php

    r18910 r19091  
    5959     */ 
    6060    function process() { 
    61         global $objCampaignSess; 
    62  
     61        $this->action(); 
     62        $this->sendResponse(); 
     63    } 
     64 
     65    /** 
     66     * Page のアクション. 
     67     * 
     68     * @return void 
     69     */ 
     70    function action() { 
    6371        $objView = new SC_SiteView(); 
    6472        $objSiteInfo = $objView->objSiteInfo; 
    6573        $this->arrInfo = $objSiteInfo->data; 
    66  
    67         $objView->assignobj($this); 
    68         $objView->display(SITE_FRAME); 
    6974    } 
    7075 
     
    9398     */ 
    9499    function mobileProcess() { 
     100        $this->mobileAction(); 
     101        $this->sendResponse(); 
     102    } 
     103    /** 
     104     * Page のプロセス(モバイル). 
     105     * 
     106     * @return void 
     107     */ 
     108    function mobileAction() { 
    95109        $objView = new SC_MobileView(); 
    96110        $this->objSiteSess = new SC_SiteSession(); 
     
    152166            } 
    153167        } 
    154  
    155         $objView->assignobj($this); 
    156         $objView->display(SITE_FRAME); 
    157168    } 
    158169 
     
    234245        } 
    235246        // 一時テーブルを受注テーブルに格納する 
    236         if (defined("MOBILE_SITE")) { 
    237             $order_id = $this->lfRegistOrder($objQuery, $arrData); 
    238         } else { 
    239             $order_id = $this->lfRegistOrder($objQuery, $arrData, $this->objCampaignSess); 
    240         } 
     247        $order_id = $this->lfRegistOrder($objQuery, $arrData); 
    241248        // カート商品を受注詳細テーブルに格納する 
    242249        $this->lfRegistOrderDetail($objQuery, $order_id, $this->objCartSess); 
    243250        // 受注一時テーブルの情報を削除する。 
    244251        $this->lfDeleteTempOrder($objQuery, $uniqid); 
    245         // キャンペーンからの遷移の場合登録する。 
    246         if (!defined("MOBILE_SITE")) { 
    247             if($this->objCampaignSess->getIsCampaign() and $this->objCartSess->chkCampaign($this->objCampaignSess->getCampaignId())) { 
    248                 $this->lfRegistCampaignOrder($objQuery, $objCampaignSess, $order_id); 
    249             } 
    250         } 
    251252 
    252253        // セッションカート内の商品を削除する。 
     
    381382     * @return integer 注文番号 
    382383     */ 
    383     function lfRegistOrder($objQuery, $arrData, $objCampaignSess = null) { 
     384    function lfRegistOrder($objQuery, $arrData) { 
    384385        $objDb = new SC_Helper_DB_Ex(); 
    385386        $sqlval = $arrData; 
     
    432433        $sqlval['create_date'] = 'Now()';       // 受注日 
    433434        $sqlval['update_date'] = 'Now()';       // 更新日時 
    434  
    435         // キャンペーンID 
    436         if (!defined("MOBILE_SITE")) { 
    437             if ($objCampaignSess->getIsCampaign()) $sqlval['campaign_id'] = $objCampaignSess->getCampaignId(); 
    438         } 
    439435 
    440436        // 受注テーブルの登録 
     
    489485    } 
    490486 
    491     // キャンペーン受注テーブルへ登録 
    492     function lfRegistCampaignOrder(&$objQuery, &$objCampaignSess, $order_id) { 
    493  
    494         // 受注データを取得 
    495         $cols = "order_id, campaign_id, customer_id, message, order_name01, order_name02,". 
    496                 "order_kana01, order_kana02, order_email, order_tel01, order_tel02, order_tel03,". 
    497                 "order_fax01, order_fax02, order_fax03, order_zip01, order_zip02, order_pref, order_addr01,". 
    498                 "order_addr02, order_sex, order_birth, order_job, deliv_name01, deliv_name02, deliv_kana01,". 
    499                 "deliv_kana02, deliv_tel01, deliv_tel02, deliv_tel03, deliv_fax01, deliv_fax02, deliv_fax03,". 
    500                 "deliv_zip01, deliv_zip02, deliv_pref, deliv_addr01, deliv_addr02, payment_total"; 
    501  
    502         $arrOrder = $objQuery->select($cols, "dtb_order", "order_id = ?", array($order_id)); 
    503  
    504         $sqlval = $arrOrder[0]; 
    505         $sqlval['create_date'] = 'Now()'; 
    506  
    507         // INSERTの実行 
    508         $objQuery->insert("dtb_campaign_order", $sqlval); 
    509  
    510         // 申し込み数の更新 
    511         $total_count = $objQuery->get("dtb_campaign", "total_count", "campaign_id = ?", array($sqlval['campaign_id'])); 
    512         $arrCampaign['total_count'] = $total_count += 1; 
    513         $objQuery->update("dtb_campaign", $arrCampaign, "campaign_id = ?", array($sqlval['campaign_id'])); 
    514  
    515     } 
    516  
    517  
    518  
    519487    /* 受注一時テーブルの削除 */ 
    520488    function lfDeleteTempOrder(&$objQuery, $uniqid) { 
  • branches/camp/camp-2_5-E/data/class/pages/shopping/LC_Page_Shopping_Confirm.php

    r18871 r19091  
    6262     */ 
    6363    function process() { 
    64         global $objCampaignSess; 
    65  
     64        $this->action(); 
     65        $this->sendResponse(); 
     66    } 
     67 
     68    /** 
     69     * Page のプロセス. 
     70     * 
     71     * @return void 
     72     */ 
     73    function process() { 
    6674        $objView = new SC_SiteView(); 
    6775        $objCartSess = new SC_CartSession(); 
    6876        $objSiteInfo = $objView->objSiteInfo; 
    6977        $objSiteSess = new SC_SiteSession(); 
    70         $objCampaignSess = new SC_CampaignSession(); 
    7178        $objCustomer = new SC_Customer(); 
    7279        $objQuery = new SC_Query(); 
     
    167174            break; 
    168175        } 
    169  
    170         $this->arrData = $arrData; 
    171         $this->arrInfo = $objSiteInfo->data; 
    172         $objView->assignobj($this); 
    173         // フレームを選択(キャンペーンページから遷移なら変更) 
    174         $objCampaignSess->pageView($objView); 
    175176    } 
    176177 
     
    190191     */ 
    191192    function mobileProcess() { 
     193        $this->mobileAction(); 
     194        $this->sendResponse(); 
     195    } 
     196 
     197    /** 
     198     * Page のアクション(モバイル). 
     199     * 
     200     * @return void 
     201     */ 
     202    function mobileAction() { 
    192203        $objView = new SC_MobileView(); 
    193204        $objCartSess = new SC_CartSession(); 
     
    270281        $this->arrData = $arrData; 
    271282        $this->arrInfo = $objSiteInfo->data; 
    272         $objView->assignobj($this); 
    273         $objView->display(SITE_FRAME); 
    274283    } 
    275284 
  • branches/camp/camp-2_5-E/data/class/pages/shopping/LC_Page_Shopping_Deliv.php

    r18880 r19091  
    6767     */ 
    6868    function process() { 
    69         global $objCampaignSess; 
    70  
     69        $this->action(); 
     70        $this->sendResponse(); 
     71    } 
     72 
     73    /** 
     74     * Page のプロセス. 
     75     * 
     76     * @return void 
     77     */ 
     78    function action() { 
    7179        $objView = new SC_SiteView(); 
    7280        $objSiteSess = new SC_SiteSession(); 
    7381        $objCartSess = new SC_CartSession(); 
    74         $objCampaignSess = new SC_CampaignSession(); 
    7582        $objCustomer = new SC_Customer(); 
    7683        $objDb = new SC_Helper_DB_Ex(); 
     
    225232        $this->arrForm = $this->objFormParam->getFormParamList(); 
    226233        $this->arrErr = $arrErr; 
    227  
    228         $objView->assignobj($this); 
    229         // フレームを選択(キャンペーンページから遷移なら変更) 
    230         $objCampaignSess->pageView($objView); 
    231234    } 
    232235 
     
    246249     */ 
    247250    function mobileProcess() { 
     251        $this->mobileAction(); 
     252        $this->sendResponse(); 
     253    } 
     254 
     255    /** 
     256     * Page のプロセス(モバイル). 
     257     * 
     258     * @return void 
     259     */ 
     260    function mobileAction() { 
    248261        $objView = new SC_MobileView(); 
    249262        $objSiteSess = new SC_SiteSession(); 
     
    426439        $this->arrForm = $this->objFormParam->getFormParamList(); 
    427440        $this->arrErr = $arrErr; 
    428         $objView->assignobj($this); 
    429         $objView->display(SITE_FRAME); 
    430441    } 
    431442 
  • branches/camp/camp-2_5-E/data/class/pages/shopping/LC_Page_Shopping_DelivAddr.php

    r18853 r19091  
    5252     */ 
    5353    function process() { 
     54        $this->action(); 
     55        $this->sendResponse(); 
     56    } 
     57 
     58    /** 
     59     * Page のアクション. 
     60     * 
     61     * @return void 
     62     */ 
     63    function action() { 
    5464    } 
    5565 
     
    7282     */ 
    7383    function mobileProcess() { 
     84        $this->mobileAction(); 
     85        $this->sendResponse(); 
     86    } 
     87 
     88    /** 
     89     * Page のアクション(モバイル). 
     90     * 
     91     * @return void 
     92     */ 
     93    function mobileAction() { 
    7494        $objView = new SC_MobileView(false); 
    7595        $objQuery = new SC_Query(); 
     
    186206            } 
    187207        } 
    188  
    189         $objView->assignobj($this); 
    190         $objView->display(SITE_FRAME); 
    191208    } 
    192209 
  • branches/camp/camp-2_5-E/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r18860 r19091  
    6565     */ 
    6666    function process() { 
    67         global $objCampaignSess; 
    68  
    69         $objView = new SC_SiteView(); 
     67        $this->action(); 
     68        $this->sendResponse(); 
     69    } 
     70 
     71    /** 
     72     * Page のプロセス. 
     73     * 
     74     * @return void 
     75     */ 
     76    function action() { 
    7077        $objSiteSess = new SC_SiteSession(); 
    7178        $objCartSess = new SC_CartSession(); 
    72         $objCampaignSess = new SC_CampaignSession(); 
    7379        $objDb = new SC_Helper_DB_Ex(); 
    7480        $this->objCustomer = new SC_Customer(); 
     
    175181 
    176182        $this->arrForm = $this->objFormParam->getFormParamList(); 
    177  
    178         $objView->assignobj($this); 
    179         // フレームを選択(キャンペーンページから遷移なら変更) 
    180         $objCampaignSess->pageView($objView); 
    181183    } 
    182184 
     
    196198     */ 
    197199    function mobileProcess() { 
    198         $objView = new SC_MobileView(); 
     200        $this->mobileAction(); 
     201        $this->sendResponse(); 
     202    } 
     203 
     204    /** 
     205     * Page のプロセス(モバイル). 
     206     * 
     207     * @return void 
     208     */ 
     209    function mobileProcess() { 
    199210        $objSiteSess = new SC_SiteSession(); 
    200211        $objCartSess = new SC_CartSession(); 
     
    338349 
    339350        $this->arrForm = $this->objFormParam->getFormParamList(); 
    340  
    341         $objView->assignobj($this); 
    342         $objView->display(SITE_FRAME); 
    343351    } 
    344352 
Note: See TracChangeset for help on using the changeset viewer.