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

Revision 5242, 2.6 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
3require_once("../require.php");
4
5class LC_Page {
6    var $arrSession;
7    var $tpl_mode;
8    var $tpl_total_deliv_fee;
9    function LC_Page() {
10        $this->tpl_mainpage = 'shopping/confirm.tpl';
11        $this->tpl_css = '/css/layout/shopping/confirm.css';
12        $this->tpl_title = "¤´ÆþÎÏÆâÍÆ¤Î¤´³Îǧ";
13        global $arrPref;
14        $this->arrPref = $arrPref;
15        global $arrSex;
16        $this->arrSex = $arrSex;
17        global $arrMAILMAGATYPE;
18        $this->arrMAILMAGATYPE = $arrMAILMAGATYPE;
19        global $arrReminder;
20        $this->arrReminder = $arrReminder;
21        /*
22         session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
23         ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìɽ¼¨¤òÍÞÀ©¤¹¤ë¡£
24         private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
25        */
26        session_cache_limiter('private-no-expire');     
27
28    }
29}
30
31$objPage = new LC_Page();
32$objView = new SC_SiteView();
33$objCartSess = new SC_CartSession();
34$objSiteInfo = $objView->objSiteInfo;
35$objSiteSess = new SC_SiteSession();
36$objCustomer = new SC_Customer();
37$arrInfo = $objSiteInfo->data;
38
39// Á°¤Î¥Ú¡¼¥¸¤ÇÀµ¤·¤¯ÅÐÏ¿¼ê³¤­¤¬¹Ô¤ï¤ì¤¿µ­Ï¿¤¬¤¢¤ë¤«È½Äê
40sfIsPrePage($objSiteSess);
41
42// ¥æ¡¼¥¶¥æ¥Ë¡¼¥¯ID¤Î¼èÆÀ¤È¹ØÆþ¾õÂÖ¤ÎÀµÅöÀ­¤ò¥Á¥§¥Ã¥¯
43$uniqid = sfCheckNormalAccess($objSiteSess, $objCartSess);
44$objPage->tpl_uniqid = $uniqid;
45
46// ¥«¡¼¥È½¸·×½èÍý
47$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
48// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
49$arrData = sfGetOrderTemp($uniqid);
50// ¥«¡¼¥È½¸·×¤ò¸µ¤ËºÇ½ª·×»»
51$arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo, $objCustomer);
52
53// ²ñ°÷¥í¥°¥¤¥ó¥Á¥§¥Ã¥¯
54if($objCustomer->isLoginSuccess()) {
55    $objPage->tpl_login = '1';
56    $objPage->tpl_user_point = $objCustomer->getValue('point');
57}
58
59switch($_POST['mode']) {
60// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
61case 'return':
62    // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
63    $objSiteSess->setRegistFlag();
64    header("Location: " . URL_SHOP_PAYMENT);
65    exit;
66    break;
67case 'confirm':
68    // ½¸·×·ë²Ì¤ò¼õÃí°ì»þ¥Æ¡¼¥Ö¥ë¤ËÈ¿±Ç
69    sfRegistTempOrder($uniqid, $arrData);
70    // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
71    $objSiteSess->setRegistFlag();
72   
73    // ·èºÑÊýË¡¤Ë¤è¤ê²èÌÌÀÚÂØ
74    switch($arrData['payment_id']) {
75/* ¥¯¥ì¥¸¥Ã¥È¡¢¥í¡¼¥ó¡¢¥³¥ó¥Ó¥Ë·èºÑ¤Ï¼¡´ü³«È¯
76    case PAYMENT_CREDIT_ID:
77        header("Location: " . URL_SHOP_CREDIT);
78        break;
79    case PAYMENT_LOAN_ID:
80        header("Location: " . URL_SHOP_LOAN);
81        break;
82    case PAYMENT_CONVENIENCE_ID:
83        header("Location: " . URL_SHOP_CONVENIENCE);
84        break;
85*/
86    default:
87    exit();
88        header("Location: " . URL_SHOP_COMPLETE);
89        break;
90    }
91    break;
92default:
93    break;
94}
95
96$objPage->arrData = $arrData;
97$objPage->arrInfo = $arrInfo;
98$objView->assignobj($objPage);
99$objView->display(SITE_FRAME);
100//--------------------------------------------------------------------------------------------------------------------------
101?>
Note: See TracBrowser for help on using the repository browser.