source: temp/trunk/html/shopping/confirm.php @ 7564

Revision 7564, 3.1 KB checked in by kakinaka, 20 years ago (diff)

blank

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2/*
3 * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8require_once("../require.php");
9
10class LC_Page {
11    var $arrSession;
12    var $tpl_mode;
13    var $tpl_total_deliv_fee;
14    function LC_Page() {
15        $this->tpl_mainpage = 'shopping/confirm.tpl';
16        $this->tpl_css = '/css/layout/shopping/confirm.css';
17        $this->tpl_title = "¤´ÆþÎÏÆâÍÆ¤Î¤´³Îǧ";
18        global $arrPref;
19        $this->arrPref = $arrPref;
20        global $arrSex;
21        $this->arrSex = $arrSex;
22        global $arrMAILMAGATYPE;
23        $this->arrMAILMAGATYPE = $arrMAILMAGATYPE;
24        global $arrReminder;
25        $this->arrReminder = $arrReminder;
26        /*
27         session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
28         ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìɽ¼¨¤òÍÞÀ©¤¹¤ë¡£
29         private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
30        */
31        session_cache_limiter('private-no-expire');     
32
33    }
34}
35
36$objPage = new LC_Page();
37$objView = new SC_SiteView();
38$objCartSess = new SC_CartSession();
39$objSiteInfo = $objView->objSiteInfo;
40$objSiteSess = new SC_SiteSession();
41$objCustomer = new SC_Customer();
42$arrInfo = $objSiteInfo->data;
43$objQuery = new SC_Query();
44
45// Á°¤Î¥Ú¡¼¥¸¤ÇÀµ¤·¤¯ÅÐÏ¿¼ê³¤­¤¬¹Ô¤ï¤ì¤¿µ­Ï¿¤¬¤¢¤ë¤«È½Äê
46sfIsPrePage($objSiteSess);
47
48// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
49$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
50$objPage->tpl_uniqid = $uniqid;
51
52// ¥«¡¼¥È½¸·×½èÍý
53$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
54// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
55$arrData = sfGetOrderTemp($uniqid);
56// ¥«¡¼¥È½¸·×¤ò¸µ¤ËºÇ½ª·×»»
57$arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo, $objCustomer);
58
59// ¥«¡¼ÅÔÆâ¤Î¾¦ÉʤÎÇä¤êÀÚ¤ì¥Á¥§¥Ã¥¯
60$objCartSess->chkSoldOut($objCartSess->getCartList());
61
62// ²ñ°÷¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯
63if($objCustomer->isLoginSuccess()) {
64    $objPage->tpl_login = '1';
65    $objPage->tpl_user_point = $objCustomer->getValue('point');
66}
67
68switch($_POST['mode']) {
69// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
70case 'return':
71    // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
72    $objSiteSess->setRegistFlag();
73    header("Location: " . URL_SHOP_PAYMENT);
74    exit;
75    break;
76case 'confirm':
77    // ½¸·×·ë²Ì¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
78    sfRegistTempOrder($uniqid, $arrData);
79    // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
80    $objSiteSess->setRegistFlag();
81   
82    // ·èºÑ¶èʬ¤ò¼èÆÀ¤¹¤ë
83    if(sfColumnExists("dtb_payment", "memo01")){
84        $sql = "SELECT memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ?";
85        $arrPayment = $objQuery->getall($sql, array($arrData['payment_id']));
86    }
87   
88    // ·èºÑÊýË¡¤Ë¤è¤ê²èÌÌÀÚÂØ
89    switch($arrPayment[0]["memo04"]) {
90    case PAYMENT_CREDIT_ID:
91        //header("Location: " . URL_SHOP_CREDIT);
92        $_SESSION[""]
93        header("Location: " . URL_SHOP_MODULE);     
94        break;
95    case PAYMENT_CONVENIENCE_ID:
96        header("Location: " . URL_SHOP_CONVENIENCE);
97        break;
98/*
99    case PAYMENT_LOAN_ID:
100        header("Location: " . URL_SHOP_LOAN);
101        break;
102*/
103    default:
104        header("Location: " . URL_SHOP_COMPLETE);
105        break;
106    }
107    break;
108default:
109    break;
110}
111
112$objPage->arrData = $arrData;
113$objPage->arrInfo = $arrInfo;
114$objView->assignobj($objPage);
115$objView->display(SITE_FRAME);
116//--------------------------------------------------------------------------------------------------------------------------
117?>
Note: See TracBrowser for help on using the repository browser.