Source for file LC_Page_Mypage_Refusal.php
Documentation is available at LC_Page_Mypage_Refusal.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH .
"pages/LC_Page.php");
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Mypage_Refusal.php 17704 2008-11-10 12:51:23Z Seasoft $
$this->tpl_subtitle =
'退会手続き(入力ページ)';
$this->tpl_navi =
TEMPLATE_DIR .
'mypage/navi.tpl';
$this->tpl_mypageno =
'refusal';
if (!$objCustomer->isLoginSuccess()){
$this->CustomerName1 =
$objCustomer->getvalue('name01');
$this->CustomerName2 =
$objCustomer->getvalue('name02');
$this->CustomerPoint =
$objCustomer->getvalue('point');
$objLayout->sfGetPageLayout($this, false, "mypage/index.php");
if (!isset
($_POST['mode'])) $_POST['mode'] =
"";
$this->tpl_mainpage =
TEMPLATE_DIR .
'mypage/refusal_confirm.tpl';
$this->tpl_subtitle =
'退会手続き(確認ページ)';
$objSiteSess->setRegistFlag();
$this->tpl_uniqid =
$objSiteSess->getUniqId();
$objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id')));
$objCustomer->EndSession();
$objView->assignobj($this);
$objView->display(SITE_FRAME);
if (!$objCustomer->isLoginSuccess(true)){
SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR, "", false, "", true);
$this->CustomerName1 =
$objCustomer->getvalue('name01');
$this->CustomerName2 =
$objCustomer->getvalue('name02');
$this->CustomerPoint =
$objCustomer->getvalue('point');
if (isset
($_POST['no'])) {
} elseif (isset
($_POST['complete'])){
$objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($objCustomer->getValue('customer_id')));
$objCustomer->EndSession();
$objView->assignobj($this);
$objView->display(SITE_FRAME);
// uniqid がPOSTされているかをチェック
$uniqid =
$objSiteSess->getUniqId();
if ( !empty($_POST['uniqid']) &&
($_POST['uniqid'] ===
$uniqid) ) {
SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, $objSiteSess);
Documentation generated on Tue, 28 Apr 2009 18:12:36 +0900 by phpDocumentor 1.4.2