1 | <?php |
---|
2 | /** |
---|
3 | * |
---|
4 | * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved. |
---|
5 | * |
---|
6 | * http://www.lockon.co.jp/ |
---|
7 | * |
---|
8 | * |
---|
9 | * Âà²ñ½èÍý |
---|
10 | */ |
---|
11 | require_once("../require.php"); |
---|
12 | |
---|
13 | class LC_Page{ |
---|
14 | function LC_Page(){ |
---|
15 | $this->tpl_mainpage = 'mypage/refusal.tpl'; |
---|
16 | $this->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼ê³¤(ÆþÎÏ¥Ú¡¼¥¸)"; |
---|
17 | //session_cache_limiter('private-no-expire'); |
---|
18 | } |
---|
19 | } |
---|
20 | |
---|
21 | $objPage = new LC_Page(); |
---|
22 | $objView = new SC_MobileView(); |
---|
23 | $objCustomer = new SC_Customer(); |
---|
24 | $objQuery = new SC_Query(); |
---|
25 | |
---|
26 | //¥í¥°¥¤¥óȽÄê |
---|
27 | if (!$objCustomer->isLoginSuccess()){ |
---|
28 | sfDispSiteError(CUSTOMER_ERROR, "", false, "", true); |
---|
29 | }else { |
---|
30 | //¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóɽ¼¨ÍÑ |
---|
31 | $objPage->CustomerName1 = $objCustomer->getvalue('name01'); |
---|
32 | $objPage->CustomerName2 = $objCustomer->getvalue('name02'); |
---|
33 | $objPage->CustomerPoint = $objCustomer->getvalue('point'); |
---|
34 | } |
---|
35 | |
---|
36 | |
---|
37 | // ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ |
---|
38 | $objPage = sfGetPageLayout($objPage, false, "mypage/index.php"); |
---|
39 | |
---|
40 | if (isset($_POST['no'])) { |
---|
41 | header("Location: " . gfAddSessionId("index.php")); |
---|
42 | exit; |
---|
43 | } elseif (isset($_POST['complete'])){ |
---|
44 | //²ñ°÷ºï½ü |
---|
45 | $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id'))); |
---|
46 | |
---|
47 | $where = "email ILIKE ?"; |
---|
48 | if (DB_TYPE == "mysql") $where = sfChangeILIKE($where); |
---|
49 | $objCustomer->EndSession(); |
---|
50 | //´°Î»¥Ú¡¼¥¸¤Ø |
---|
51 | header("Location: " . gfAddSessionId("refusal_complete.php")); |
---|
52 | exit; |
---|
53 | } |
---|
54 | |
---|
55 | $objView->assignobj($objPage); |
---|
56 | $objView->display(SITE_FRAME); |
---|
57 | |
---|
58 | ?> |
---|