Source for file LC_Page_Admin_Basis.php
Documentation is available at LC_Page_Admin_Basis.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_Admin_Basis.php 17623 2008-09-22 14:41:51Z Yammy $
$this->tpl_subnavi =
'basis/subnavi.tpl';
$this->tpl_subno =
'index';
$this->arrPref =
$masterData->getMasterData("mtb_pref", array("pref_id", "pref_name", "rank"));
$this->arrTAXRULE =
$masterData->getMasterData("mtb_taxrule");
$this->tpl_subtitle =
'SHOPマスタ';
$this->arrRegularHoliday[0] =
'日';
$this->arrRegularHoliday[1] =
'月';
$this->arrRegularHoliday[2] =
'火';
$this->arrRegularHoliday[3] =
'水';
$this->arrRegularHoliday[4] =
'木';
$this->arrRegularHoliday[5] =
'金';
$this->arrRegularHoliday[6] =
'土';
$cnt =
$objQuery->count("dtb_baseinfo");
$this->tpl_mode =
"update";
$this->tpl_mode =
"insert";
if(isset
($_POST['mode']) &&
!empty($_POST["mode"])) {
$this->arrForm['regular_holiday_ids'] =
$_POST['regular_holiday_ids']; // 定休日情報を付加
if(count($this->arrErr) ==
0) {
$this->tpl_onload =
"window.alert('SHOPマスタの登録が完了しました。');";
if( empty($this->arrForm['regular_holiday_ids']) ) {
$this->arrSel =
$this->arrForm['regular_holiday_ids'];
$arrRet =
$objQuery->select($col, "dtb_baseinfo");
$this->arrForm =
$arrRet[0];
$regular_holiday_ids =
explode('|', $this->arrForm['regular_holiday_ids']);
$this->arrForm['regular_holiday_ids'] =
$regular_holiday_ids;
$objView->assignobj($this);
$objView->display(MAIN_FRAME);
foreach($arrCol as $val) {
$sqlval[$val] =
implode("|", $array[$val]);
$sqlval[$val] =
$array[$val];
$sqlval['update_date'] =
'Now()';
$ret =
$objQuery->update("dtb_baseinfo", $sqlval);
foreach($arrCol as $val) {
$sqlval[$val] =
$array[$val];
$sqlval['update_date'] =
'Now()';
$ret =
$objQuery->insert("dtb_baseinfo", $sqlval);
* K : 「半角(ハンカク)片仮名」を「全角片仮名」に変換
* C : 「全角ひら仮名」を「全角かた仮名」に変換
* V : 濁点付きの文字を一文字に変換。"K","H"と共に使用します
* n : 「全角」数字を「半角(ハンカク)」に変換
$arrConvList['company_name'] =
"KVa";
$arrConvList['company_kana'] =
"KVC";
$arrConvList['shop_name'] =
"KVa";
$arrConvList['shop_kana'] =
"KVC";
$arrConvList['addr01'] =
"KVa";
$arrConvList['addr02'] =
"KVa";
$arrConvList['zip01'] =
"n";
$arrConvList['zip02'] =
"n";
$arrConvList['tel01'] =
"n";
$arrConvList['tel02'] =
"n";
$arrConvList['tel03'] =
"n";
$arrConvList['fax01'] =
"n";
$arrConvList['fax02'] =
"n";
$arrConvList['fax03'] =
"n";
$arrConvList['email01'] =
"a";
$arrConvList['email02'] =
"a";
$arrConvList['email03'] =
"a";
$arrConvList['email04'] =
"a";
$arrConvList['tax'] =
"n";
$arrConvList['free_rule'] =
"n";
$arrConvList['business_hour'] =
"KVa";
$arrConvList['good_traded'] =
"";
$arrConvList['message'] =
"";
return SC_Utils_Ex::mbConvertKanaWithArray($array, $arrConvList);
$objErr->doFunc(array("会社名", "company_name", STEXT_LEN), array("MAX_LENGTH_CHECK"));
$objErr->doFunc(array("会社名(カナ)", "company_kana", STEXT_LEN), array("KANA_CHECK","MAX_LENGTH_CHECK"));
$objErr->doFunc(array("店名", "shop_name", STEXT_LEN), array("EXIST_CHECK","MAX_LENGTH_CHECK"));
$objErr->doFunc(array("店名(カナ)", "shop_kana", STEXT_LEN), array("KANA_CHECK","MAX_LENGTH_CHECK"));
$objErr->doFunc(array("郵便番号1","zip01",ZIP01_LEN ) ,array("EXIST_CHECK", "NUM_CHECK","NUM_COUNT_CHECK"));
$objErr->doFunc(array("郵便番号2","zip02",ZIP02_LEN ) ,array("EXIST_CHECK", "NUM_CHECK","NUM_COUNT_CHECK"));
$objErr->doFunc(array("郵便番号", "zip01", "zip02"), array("ALL_EXIST_CHECK"));
$objErr->doFunc(array("都道府県", "pref"), array("EXIST_CHECK"));
$objErr->doFunc(array("住所1", "addr01", STEXT_LEN), array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array("住所2", "addr02", STEXT_LEN), array("EXIST_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array('商品注文受付メールアドレス', "email01", STEXT_LEN) ,array("EXIST_CHECK", "EMAIL_CHECK", "EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array('問い合わせ受付メールアドレス', "email02", STEXT_LEN) ,array("EXIST_CHECK", "EMAIL_CHECK", "EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array('メール送信元メールアドレス', "email03", STEXT_LEN) ,array("EXIST_CHECK", "EMAIL_CHECK", "EMAIL_CHAR_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array('送信エラー受付メールアドレス', "email04", STEXT_LEN) ,array("EXIST_CHECK", "EMAIL_CHECK", "EMAIL_CHAR_CHECK","MAX_LENGTH_CHECK"));
$objErr->doFunc(array("TEL", "tel01", "tel02", "tel03", TEL_ITEM_LEN), array("TEL_CHECK"));
$objErr->doFunc(array("FAX", "fax01", "fax02", "fax03", TEL_ITEM_LEN), array("TEL_CHECK"));
$objErr->doFunc(array("消費税率", "tax", PERCENTAGE_LEN), array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array("送料無料条件", "free_rule", PRICE_LEN), array("NUM_CHECK", "MAX_LENGTH_CHECK"));
$objErr->doFunc(array("店舗営業時間", "business_hour", STEXT_LEN), array("MAX_LENGTH_CHECK"));
$objErr->doFunc(array("取扱商品", "good_traded", LLTEXT_LEN), array("MAX_LENGTH_CHECK"));
$objErr->doFunc(array("メッセージ", "message", LLTEXT_LEN), array("MAX_LENGTH_CHECK"));
Documentation generated on Tue, 28 Apr 2009 18:10:39 +0900 by phpDocumentor 1.4.2