source: branches/comu/html/shopping/loan_cancel.php @ 12197

Revision 12197, 2.5 KB checked in by adati, 17 years ago (diff)

1.3.0正式版のマージ

Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 */
7
8require_once("../require.php");
9
10class LC_Page {
11    function LC_Page() {
12        $this->tpl_mainpage = 'shopping/loan.tpl';
13        $this->tpl_css = URL_DIR.'css/layout/shopping/pay.css';
14        // ¥Û¡¼¥à¥¢¥É¥ì¥¹
15        $this->tpl_homeaddr = CF_HOMEADDR;
16        // ¥·¥å¥ß¥ì¡¼¥·¥ç¥ó¸Æ¤Ó½Ð¤·
17        $this->tpl_simulate = CF_SIMULATE;
18        // ²ÃÌÁŹ¥³¡¼¥É
19        $this->tpl_storecode = CF_STORECODE;
20        // Ìá¤êÀè
21        $this->tpl_returnurl = CF_RETURNURL;
22        // ¸Æ¤Ó½Ð¤·¶èʬ(0:¥·¥å¥ß¥ì¡¼¥·¥ç¥ó¤Î¤ß¡¢1:¥·¥å¥ß¥ì¡¼¥·¥ç¥ó+¿½¹þ)
23        $this->tpl_continue = CF_CONTINUE;
24        // Ìò̵̳ͭ¶èʬ(0:̵¡¢1:Í­)
25        $this->tpl_labor = CF_LABOR;
26        // ·ë²Ì±þÅú(1:·ë²Ì¤¢¤ê¡¢2:·ë²Ì¤Ê¤·)
27        $this->tpl_result = CF_RESULT;
28        // ¥­¥ã¥ó¥»¥ëURL
29        $this->tpl_cancelurl = CF_CANCELURL;
30       
31        /*
32         session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
33         ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìɽ¼¨¤òÍÞÀ©¤¹¤ë¡£
34         private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
35        */
36        session_cache_limiter('private-no-expire');     
37    }
38}
39
40$objPage = new LC_Page();
41$objView = new SC_SiteView();
42$objSiteSess = new SC_SiteSession();
43$objCartSess = new SC_CartSession();
44$objCampaignSess = new SC_CampaignSession();
45$objCustomer = new SC_Customer();
46$objSiteInfo = $objView->objSiteInfo;
47$arrInfo = $objSiteInfo->data;
48
49// Ãíʸ°ì»þID¤Î¼èÆÀ
50$uniqid = $objSiteSess->getUniqId();
51
52// ¥í¡¼¥ó·èºÑ¤ÎÌá¤êÃͤò¥Á¥§¥Ã¥¯¤¹¤ë¡£
53if($_GET['tranno'] == $uniqid) {
54    // ¥í¡¼¥ó·èºÑ¼õÉÕÈÖ¹æ¤òDB¤Ë½ñ¤­¹þ¤à
55    $sqlval['loan_result'] = $_GET['receiptno'];
56    $objQuery = new SC_Query();
57    $objQuery->update("dtb_order_temp", $sqlval, "order_temp_id = ?", array($uniqid));
58   
59    $objPage->tpl_message = "¥·¥ç¥Ã¥Ô¥ó¥°¥í¡¼¥ó¤Î¼ê³¤­¤Ï¡¢¥­¥ã¥ó¥»¥ë¤µ¤ì¤Þ¤·¤¿¡£";
60}
61
62switch($_POST['mode']) {
63// Á°¤Î¥Ú¡¼¥¸¤ËÌá¤ë
64case 'return':
65    // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
66    $objSiteSess->setRegistFlag();
67    header("Location: " . URL_SHOP_CONFIRM);
68    exit;
69    break;
70default:
71    break;
72}
73
74// ¥«¡¼¥È½¸·×½èÍý
75$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
76// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆɹþ
77$arrData = sfGetOrderTemp($uniqid);
78// ¥«¡¼¥È½¸·×¤ò¸µ¤ËºÇ½ª·×»»
79$arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo);
80
81// »Ùʧ¤¤Áí³Û
82$objPage->tpl_amount = $arrData['payment_total'];
83// ¼õÃí²¾ÈÖ¹æ
84$objPage->tpl_tranno = $uniqid;
85// ´ðËܾðÊó¤òÅϤ¹
86$objPage->arrInfo = $arrInfo;
87
88$objView->assignobj($objPage);
89// ¥Õ¥ì¡¼¥à¤òÁªÂò(¥­¥ã¥ó¥Ú¡¼¥ó¥Ú¡¼¥¸¤«¤éÁ«°Ü¤Ê¤éÊѹ¹)
90$objCampaignSess->pageView($objView);
91//--------------------------------------------------------------------------------------------------------------------------
92?>
Note: See TracBrowser for help on using the repository browser.