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-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_Delivery.php 17519 2008-08-09 22:01:16Z Seasoft $
$this->tpl_subtitle =
'お届け先追加・変更';
$this->tpl_navi =
TEMPLATE_DIR .
'mypage/navi.tpl';
$this->tpl_mypageno =
'delivery';
$this->arrPref=
$masterData->getMasterData("mtb_pref",
array("pref_id", "pref_name", "rank"));
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");
$mode = isset
($_POST['mode']) ?
$_POST['mode'] :
'';
$customerId =
$objCustomer->getValue('customer_id');
if ($objForm->checkError()) {
$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 Tue, 28 Apr 2009 18:12:30 +0900 by phpDocumentor 1.4.2