source: branches/dev/html/mobile/nonmember/deliv.php @ 12850

Revision 12850, 2.3 KB checked in by nakanishi, 19 years ago (diff)
Line 
1<?php
2
3require_once("../require.php");
4
5class LC_Page {
6    var $arrSession;
7    var $tpl_mode;
8    var $tpl_login_email;
9    function LC_Page() {
10        $this->tpl_mainpage = 'nonmember/index.tpl';
11        global $arrPref;
12        $this->arrPref = $arrPref;
13        global $arrSex;
14        $this->arrSex = $arrSex;
15        global $arrJob;
16        $this->arrJob = $arrJob;
17        $this->tpl_onload = 'fnCheckInputDeliv();';
18       
19        /*
20         session_start»þ¤Îno-cache¥Ø¥Ã¥À¡¼¤òÍÞÀ©¤¹¤ë¤³¤È¤Ç
21         ¡ÖÌá¤ë¡×¥Ü¥¿¥ó»ÈÍÑ»þ¤ÎÍ­¸ú´ü¸ÂÀÚ¤ìɽ¼¨¤òÍÞÀ©¤¹¤ë¡£
22         private-no-expire:¥¯¥é¥¤¥¢¥ó¥È¤Î¥­¥ã¥Ã¥·¥å¤òµö²Ä¤¹¤ë¡£
23        */
24        session_cache_limiter('private-no-expire');             
25    }
26}
27
28$conn = new SC_DBConn();
29$objPage = new LC_Page();
30$objView = new SC_MobileView();
31$objSiteSess = new SC_SiteSession();
32$objCartSess = new SC_CartSession();
33$objCustomer = new SC_Customer();
34$objCookie = new SC_Cookie();
35$objFormParam = new SC_FormParam();         // ¥Õ¥©¡¼¥àÍÑ
36lfInitParam();                              // ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
37$objFormParam->setParam($_POST);            // POSTÃͤμèÆÀ
38
39
40if ($_POST["mode2"] == "deliv") {
41           
42            $objFormParam = new SC_FormParam();
43            // ¥Ñ¥é¥á¡¼¥¿¾ðÊó¤Î½é´ü²½
44           
45            // POSTÃͤμèÆÀ
46            $objFormParam->setParam($_POST);
47            $arrRet = $objFormParam->getHashArray();
48            $sqlval = $objFormParam->getDbArray();
49           
50            // ÆþÎÏÃͤμèÆÀ
51            $objPage->arrForm = $objFormParam->getFormParamList();
52            $objPage->arrErr = $arrErr;
53           
54           foreach($_POST as $key => $value){
55               $objPage->arrAddr[0][$key] = $value;
56           }
57            lfRegistDataTemp($objPage->tpl_uniqid,$objPage->arrAddr[0]);
58            lfCopyDeliv($objPage->tpl_uniqid, $_POST);
59           
60            $objPage->tpl_mainpage = 'nonmember/nonmember_deliv.tpl';
61            $objPage->tpl_title = '¤ªÆÏ¤±Àè¾ðÊó';
62        }
63       
64         if ($_POST["mode2"] == "customer_addr") {
65            //print_r($_POST);
66            if ($_POST['deli'] != "") {
67           
68           header("Location:" . gfAddSessionId("./payment.php"));
69            exit;
70    }else{
71        // ¥¨¥é¡¼¤òÊÖ¤¹
72        $arrErr['deli'] = '¢¨ ¤ªÆÏ¤±Àè¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£';
73    }
74         }
75?>
Note: See TracBrowser for help on using the repository browser.