Source for file LC_Page_Mypage_Change.php
Documentation is available at LC_Page_Mypage_Change.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 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_EX_REALDIR . 'page_extends/mypage/LC_Page_AbstractMypage_Ex.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Mypage_Change.php 21275 2011-10-07 03:52:54Z Seasoft $
$this->tpl_subtitle = '会員登録内容変更(入力ページ)';
$this->tpl_mypageno = 'change';
$masterData = new SC_DB_MasterData_Ex();
$this->arrReminder = $masterData->getMasterData("mtb_reminder");
$this->arrPref = $masterData->getMasterData('mtb_pref');
$this->arrJob = $masterData->getMasterData("mtb_job");
$this->arrMAILMAGATYPE = $masterData->getMasterData("mtb_mail_magazine_type");
$this->arrSex = $masterData->getMasterData("mtb_sex");
$this->httpCacheControl('nocache');
$objDate = new SC_Date_Ex(BIRTH_YEAR, date('Y',strtotime('now')));
$this->arrYear = $objDate->getYear('', START_BIRTH_YEAR, '');
$this->arrMonth = $objDate->getMonth(true);
$this->arrDay = $objDate->getDay(true);
$objCustomer = new SC_Customer_Ex();
$customer_id = $objCustomer->getValue('customer_id');
// mobile用(戻るボタンでの遷移かどうかを判定)
if (!empty($_POST['return'])) {
$_POST['mode'] = 'return';
// パラメーター管理クラス,パラメーター情報の初期化
$objFormParam = new SC_FormParam_Ex();
SC_Helper_Customer_Ex::sfCustomerMypageParam($objFormParam);
$objFormParam->setParam($_POST); // POST値の取得
switch ($this->getMode()) {
$this->arrErr = SC_Helper_Customer_Ex::sfCustomerMypageErrorCheck($objFormParam);
$this->arrForm = $objFormParam->getHashArray();
if (empty($this->arrErr)) {
$this->passlen = SC_Utils_Ex::sfPassLen(strlen($this->arrForm['password']));
$this->tpl_mainpage = 'mypage/change_confirm.tpl';
$this->tpl_title = '会員登録(確認ページ)';
$this->arrErr = SC_Helper_Customer_Ex::sfCustomerMypageErrorCheck($objFormParam);
$this->arrForm = $objFormParam->getHashArray();
if (empty($this->arrErr)) {
$this->lfRegistCustomerData($objFormParam, $customer_id);
SC_Response_Ex::sendRedirect('change_complete.php');
$this->arrForm = $objFormParam->getHashArray();
$this->arrForm = SC_Helper_Customer_Ex::sfGetCustomerData($customer_id);
* @param mixed $objFormParam
* @param mixed $customer_id
function lfRegistCustomerData(&$objFormParam, $customer_id) {
$arrRet = $objFormParam->getHashArray();
$sqlval = $objFormParam->getDbArray();
$sqlval['birth'] = SC_Utils_Ex::sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']);
SC_Helper_Customer_Ex::sfEditCustomerData($sqlval, $customer_id);
Documentation generated on Fri, 24 Feb 2012 14:02:05 +0900 by Seasoft
|