Source for file LC_Page_Admin_Basis_Point.php
Documentation is available at LC_Page_Admin_Basis_Point.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/admin/LC_Page_Admin_Ex.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Admin_Basis_Point.php 21203 2011-08-19 08:18:01Z shutta $
$this->tpl_mainpage = 'basis/point.tpl';
$this->tpl_subno = 'point';
$this->tpl_mainno = 'basis';
$this->tpl_maintitle = '基本情報管理';
$this->tpl_subtitle = 'ポイント設定';
$objDb = new SC_Helper_DB_Ex();
$objFormParam = new SC_FormParam_Ex();
$objFormParam->setParam($_POST);
$cnt = $objDb->sfGetBasisCount();
$this->tpl_mode = 'update';
$this->tpl_mode = 'insert';
$objFormParam->convParam();
$this->arrErr = $objFormParam->checkError();
if(count($this->arrErr) == 0) {
switch($this->getMode()) {
$this->tpl_onload = "window.alert('ポイント設定が完了しました。');";
$arrCol = $objFormParam->getKeyList(); // キー名一覧を取得
$col = SC_Utils_Ex::sfGetCommaList($arrCol);
$arrRet = $objDb->sfGetBasisData(true, $col);
$objFormParam->setParam($arrRet);
$this->arrForm = $objFormParam->getFormParamList();
$objFormParam->addParam("ポイント付与率", "point_rate", PERCENTAGE_LEN, 'n', array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$objFormParam->addParam("会員登録時付与ポイント", "welcome_point", INT_LEN, 'n', array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$sqlval['update_date'] = 'CURRENT_TIMESTAMP';
$objQuery = & SC_Query_Ex::getSingletonInstance();
$ret = $objQuery->update("dtb_baseinfo", $sqlval);
$sqlval['update_date'] = 'CURRENT_TIMESTAMP';
$objQuery = & SC_Query_Ex::getSingletonInstance();
$ret = $objQuery->insert("dtb_baseinfo", $sqlval);
Documentation generated on Fri, 24 Feb 2012 14:01:05 +0900 by Seasoft
|