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

Revision 5192, 1.6 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 = ROOT_DIR . USER_DIR . 'templates/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    $objPage->tpl_mainpage = ROOT_DIR . USER_DIR . 'templates/mypage/refusal_confirm.tpl';
38    $objPage->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼ê³¤­(³Îǧ¥Ú¡¼¥¸)";
39
40    break;
41   
42    case 'complete':
43    //²ñ°÷ºï½ü
44    $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id')));
45   
46    $where = "email ILIKE ?";
47    if (DB_TYPE == "mysql") $where = sfChangeILIKE($where);
48   
49    $objQuery->delete("dtb_customer_mail", $where, array($objCustomer->getValue('email')));
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.