Source for file LC_Page_Admin_Basis_ZipInstall.php
Documentation is available at LC_Page_Admin_Basis_ZipInstall.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");
define("ZIP_CSV_LINE_MAX", 8192);
define("ZIP_CSV_FILE_PATH", DATA_PATH . "downloads/KEN_ALL.CSV");
* @author LOCKON CO.,LTD.
* @version $Id:LC_Page_Admin_Basis_ZipInstall.php 16741 2007-11-08 00:43:24Z adachi $
SC_Utils_Ex::sfIsSuccess($objSess);
$img_path = USER_URL . "packages/" . TEMPLATE_NAME . "/img/";
// 一部のIEは256バイト以上受け取ってから表示を開始する。
for($i = 0; $i < 256; $i++ ) {
print ("<img src='". $img_path . "install/main_w.jpg'><br>");
print ("<img src='". $img_path . "install/space_w.gif'>");
$end_cnt = $objQuery->count("mtb_zip");
$sqlval['code'] = $arrCSV[0];
$sqlval['old_zipcode'] = $arrCSV[1];
$sqlval['zipcode'] = $arrCSV[2];
$sqlval['state_kana'] = $arrCSV[3];
$sqlval['city_kana'] = $arrCSV[4];
$sqlval['town_kana'] = $arrCSV[5];
$sqlval['state'] = $arrCSV[6];
$sqlval['city'] = $arrCSV[7];
$sqlval['town'] = $arrCSV[8];
$sqlval['flg1'] = $arrCSV[9];
$sqlval['flg2'] = $arrCSV[10];
$sqlval['flg3'] = $arrCSV[11];
$sqlval['flg4'] = $arrCSV[12];
$sqlval['flg5'] = $arrCSV[13];
$sqlval['flg6'] = $arrCSV[14];
$objQuery->insert("mtb_zip", $sqlval);
if($cnt % $disp_line == 0 && $img_cnt < IMAGE_MAX) {
print ("<img src='". $img_path . "install/graph_1_w.gif'>");
print ("<img src='". $img_path . "install/space_w.gif'><br>\n");
print ("<table width='700' height='50' border='0' cellpadding='0' cellspacing='0' bgcolor='#494E5F'>\n");
print ("<td align='center'><a href='javascript:window.close()'><img src='". $img_path . "install/close.gif' alt='CLOSE' width='85' height='22' border='0' /></a></td>\n");
* 出力バッファをフラッシュし, バッファリングを開始する.
Documentation generated on Fri, 24 Feb 2012 13:58:30 +0900 by Seasoft
|