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-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_Admin_Basis_Point.php 18734 2010-06-22 08:45:33Z nanasess $
$this->tpl_subnavi = 'basis/subnavi.tpl';
$this->tpl_subno = 'point';
$this->tpl_subtitle = 'ポイント設定';
SC_Utils_Ex::sfIsSuccess($objSess);
$cnt = $objQuery->count("dtb_baseinfo");
$this->tpl_mode = "update";
$this->tpl_mode = "insert";
if(isset ($_POST['mode']) && !empty($_POST['mode'])) {
if(count($this->arrErr) == 0) {
$this->tpl_onload = "window.alert('ポイント設定が完了しました。');";
$col = SC_Utils_Ex::sfGetCommaList($arrCol);
$arrRet = $objQuery->select($col, "dtb_baseinfo");
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
$this->objFormParam->addParam("ポイント付与率", "point_rate", PERCENTAGE_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$this->objFormParam->addParam("会員登録時付与ポイント", "welcome_point", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK"));
$sqlval['update_date'] = 'Now()';
$ret = $objQuery->update("dtb_baseinfo", $sqlval);
$sqlval['update_date'] = 'Now()';
$ret = $objQuery->insert("dtb_baseinfo", $sqlval);
Documentation generated on Fri, 24 Feb 2012 13:58:29 +0900 by Seasoft
|