Source for file LC_Page_Mypage_Delivery.php
Documentation is available at LC_Page_Mypage_Delivery.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2010 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_Delivery.php 18735 2010-06-22 08:53:31Z nanasess $
$this->tpl_navi = TEMPLATE_DIR . 'mypage/navi.tpl';
$this->tpl_mypageno = 'delivery';
$masterData = new SC_DB_MasterData_Ex();
$this->arrPref= $masterData->getMasterData("mtb_pref",
array("pref_id", "pref_name", "rank"));
if(!$objCustomer->isLoginSuccess()) {
SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
$this->CustomerName1 = $objCustomer->getvalue('name01');
$this->CustomerName2 = $objCustomer->getvalue('name02');
$this->CustomerPoint = $objCustomer->getvalue('point');
$objLayout = new SC_Helper_PageLayout_Ex();
$objLayout->sfGetPageLayout($this, false, "mypage/index.php");
$mode = isset ($_POST['mode']) ? $_POST['mode'] : '';
$customerId = $objCustomer->getValue('customer_id');
if ($objForm->checkError()) {
SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);
$this->tpl_linemax = count($this->arrOtherDeliv);;
$objView->assignobj($this);
$objView->display(SITE_FRAME);
$objForm->addParam('お届け先ID', 'other_deliv_id', INT_LEN, '', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));
$objForm->setParam($_POST);
* @param integer $customerId
$objQuery->setOrder('other_deliv_id DESC');
$arrRet = $objQuery->select('*', 'dtb_other_deliv', 'customer_id = ?', array($customerId));
return empty($arrRet) ? array() : $arrRet;
* @param integer $customerId
* @param integer $delivId
$where = 'customer_id = ? AND other_deliv_id = ?';
$objQuery->delete("dtb_other_deliv", $where, array($customerId, $delivId));
Documentation generated on Fri, 24 Feb 2012 13:59:34 +0900 by Seasoft
|