Source for file LC_Page_InputZip.php
Documentation is available at LC_Page_InputZip.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/LC_Page_Ex.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_InputZip.php 20970 2011-06-10 10:27:24Z Seasoft $
$this->tpl_message = "住所を検索しています。";
$objView = new SC_SiteView_Ex(false);
foreach($arrErr as $key => $val) {
$zipcode = $_GET['zip1']. $_GET['zip2'];
$zipcode = mb_convert_kana($zipcode ,'n');
$arrAdsList = SC_Utils_Ex::sfGetAddress($zipcode);
if(!empty($arrAdsList)) {
$data = $arrAdsList[0]['state']. "|". $arrAdsList[0]['city']. "|". $arrAdsList[0]['town'];
echo "該当する住所が見つかりませんでした。";
* @param array $arrRequest リクエスト値($_GET)
* @return array $arrErr エラーメッセージ配列
$objFormParam = new SC_FormParam_Ex();
$objFormParam->addParam('郵便番号1', 'zip1', ZIP01_LEN, 'n', array('NUM_COUNT_CHECK', 'NUM_CHECK'));
$objFormParam->addParam('郵便番号2', 'zip2', ZIP02_LEN, 'n', array('NUM_COUNT_CHECK', 'NUM_CHECK'));
$objFormParam->setParam($arrRequest);
$arrErr = $objFormParam->checkError();
// 親ウィンドウの戻り値を格納するinputタグのnameのエラーチェック
$arrErr['input1'] = "※ 入力形式が不正です。<br />";
$arrErr['input2'] = "※ 入力形式が不正です。<br />";
* @return エラーなし:true エラー:false
// 半角英数字と_(アンダーバー), []以外の文字を使用していたらエラー
Documentation generated on Fri, 24 Feb 2012 14:02:04 +0900 by Seasoft
|