source: temp/trunk/data/downloads/module/mdl_epsilon/card.php @ 7717

Revision 7717, 2.8 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");
9require_once(DATA_PATH . "module/Request.php");
10require_once(MODULE_PATH . "mdl_epsilon/mdl_epsilon.inc");
11
12class LC_Page {
13    function LC_Page() {
14        /** ɬ¤º»ØÄꤹ¤ë **/
15        $this->tpl_mainpage = 'mdl_epsilon/card.tpl';           // ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È
16        /*
17         session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
18         ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìɽ¼¨¤òÍÞÀ©¤¹¤ë¡£
19         private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
20        */
21        session_cache_limiter('private-no-expire');     
22    }
23}
24
25$objPage = new LC_Page();
26$objView = new SC_SiteView();
27$objSiteInfo = $objView->objSiteInfo;
28$arrInfo = $objSiteInfo->data;
29
30// trans_code¤ËÃͤ¬¤¢¤ê³î¤Ä¡¢Àµ¾ï½ªÎ»¤Î¤È¤­¤Ï¥ª¡¼¥À¡¼³Îǧ¤ò¹Ô¤¦¡£
31if($_GET["result"] == "1"){
32   
33    // Àµ¾ï¤Ê¿ä°Ü¤Ç¤¢¤ë¤³¤È¤òµ­Ï¿¤·¤Æ¤ª¤¯
34    $objSiteSess->setRegistFlag();
35   
36    // GET¥Ç¡¼¥¿¤ò´°Î»²èÌ̤ØPOSTÁ÷¿®¤¹¤ë
37    //sfSendPostData(SITE_URL . "shopping/complete.php", $_GET);
38   
39    $str_get = "?result = " . $_GET["result"];
40    foreach($_GET as $key => $val){
41        if($key != "result") $str_get = "&" . $key . "=" . $val;
42    }
43
44    // ´°Î»²èÌ̤Ø
45    header("Location: " . SITE_URL . "shopping/complete.php" . $str_get);
46}
47
48// ¥«¡¼¥È½¸·×½èÍý
49$objPage = sfTotalCart($objPage, $objCartSess, $arrInfo);
50
51// °ì»þ¼õÃí¥Æ¡¼¥Ö¥ë¤ÎÆÉ¹þ
52$arrData = sfGetOrderTemp($uniqid);
53
54// ¥«¡¼¥È½¸·×¤ò¸µ¤ËºÇ½ª·×»»
55$arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo);
56
57// Âåɽ¾¦ÉʾðÊó
58$arrMainProduct = $objPage->arrProductsClass[0];
59
60// »Ùʧ¤¤¾ðÊó¤ò¼èÆÀ
61$arrPayment = $objQuery->getall("SELECT memo01, memo02, memo03, memo04, memo05, memo06, memo07, memo08, memo09, memo10 FROM dtb_payment WHERE payment_id = ? ", array($arrData["payment_id"]));
62
63// ¥Ç¡¼¥¿Á÷¿®ÀèCGI
64$order_url = $arrPayment[0]["memo02"];
65
66// Á÷¿®¥Ç¡¼¥¿À¸À®
67$arrData = array(
68    'contract_code' => $arrPayment[0]["memo01"],                        // ·ÀÌ󥳡¼¥É
69    'user_id' => $arrData["customer_id"],                               // ¥æ¡¼¥¶ID
70    'user_name' => $arrData["order_name01"].$arrData["order_name02"],   // ¥æ¡¼¥¶Ì¾
71    'user_mail_add' => $arrData["order_email"],                         // ¥á¡¼¥ë¥¢¥É¥ì¥¹
72    'order_number' => $arrData["order_id"],                             // ¥ª¡¼¥À¡¼ÈÖ¹æ
73    'item_code' => $arrMainProduct["product_code"],                     // ¾¦ÉÊ¥³¡¼¥É(Âåɽ)
74    'item_name' => $arrMainProduct["name"],                             // ¾¦ÉÊ̾(Âåɽ)
75    'item_price' => $arrData["payment_total"],                          // ¾¦ÉʲÁ³Ê(Àǹþ¤ßÁí³Û)
76    'st_code' => $arrPayment[0]["memo04"],                              // ·èºÑ¶èʬ
77    'mission_code' => '1',                                              // ²Ý¶â¶èʬ(¸ÇÄê)
78    'process_code' => '1',                                              // ½èÍý¶èʬ(¸ÇÄê)
79    'xml' => '1',                                                       // ±þÅú·Á¼°(¸ÇÄê)
80    'memo1' => ECCUBE_PAYMENT,                                          // ͽÈ÷01
81    'memo2' => ''                                                       // ͽÈ÷02
82);
83
84// ¥Ç¡¼¥¿Á÷¿®
85sfPostPaymentData($order_url, $arrData);
86
87//---------------------------------------------------------------------------------------------------------------------------------------------------------
88
89?>
Note: See TracBrowser for help on using the repository browser.