source: branches/comu/html/mypage/refusal.php @ 11982

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