source: temp/trunk/html/mypage/refusal.php @ 3337

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