source: branches/dev/html/mobile/mypage/refusal.php @ 11653

Revision 11653, 1.3 KB checked in by uehara, 19 years ago (diff)
  • Property svn:eol-style set to native
Line 
1<?php
2/*
3 * Âà²ñ½èÍý
4 */
5require_once("../require.php");
6
7class LC_Page{
8    function LC_Page(){
9        $this->tpl_mainpage = 'mypage/refusal.tpl';
10        $this->tpl_title = "MY¥Ú¡¼¥¸/Âà²ñ¼ê³¤­(ÆþÎÏ¥Ú¡¼¥¸)";
11        //session_cache_limiter('private-no-expire');
12    }
13}
14
15$objPage = new LC_Page();
16$objView = new SC_SiteView();
17$objCustomer = new SC_Customer();
18$objQuery = new SC_Query();
19
20//¥í¥°¥¤¥óȽÄê
21if (!$objCustomer->isLoginSuccess()){
22    sfDispSiteError(CUSTOMER_ERROR);
23}else {
24    //¥Þ¥¤¥Ú¡¼¥¸¥È¥Ã¥×¸ÜµÒ¾ðÊóɽ¼¨ÍÑ
25    $objPage->CustomerName1 = $objCustomer->getvalue('name01');
26    $objPage->CustomerName2 = $objCustomer->getvalue('name02');
27    $objPage->CustomerPoint = $objCustomer->getvalue('point');
28}
29
30
31// ¥ì¥¤¥¢¥¦¥È¥Ç¥¶¥¤¥ó¤ò¼èÆÀ
32$objPage = sfGetPageLayout($objPage, false, "mypage/index.php");
33
34if (isset($_POST['no'])) {
35    header("Location: " . gfAddSessionId("index.php"));
36    exit;
37} elseif (isset($_POST['complete'])){
38    //²ñ°÷ºï½ü
39    $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id')));
40
41    $where = "email ILIKE ?";
42    if (DB_TYPE == "mysql") $where = sfChangeILIKE($where);
43    $objCustomer->EndSession();
44    //´°Î»¥Ú¡¼¥¸¤Ø
45    header("Location: " . gfAddSessionId("refusal_complete.php"));
46    exit;
47}
48
49$objView->assignobj($objPage);
50$objView->display(SITE_FRAME);
51
52?>
Note: See TracBrowser for help on using the repository browser.