source: branches/feature-module-update/html/mobile/mypage/refusal.php @ 15080

Revision 15080, 1.5 KB checked in by nanasess, 17 years ago (diff)

svn properties 設定

  • svn:mime-type - application/x-httpd-php; charset=UTF-8
  • svn:keywords - Id
  • Property svn:keywords set to Id
  • Property svn:mime-type set to application/x-httpd-php; charset=UTF-8
Line 
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 */
11require_once("../require.php");
12
13class 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//ログイン判定
27if (!$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
40if (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?>
Note: See TracBrowser for help on using the repository browser.