From 5b0adff790de5c26c2b3fef6014eb4b440e2cb08 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 7 Jan 2014 10:57:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EA=B0=80=EB=B0=B0=EC=86=A1=EB=B9=84?= =?UTF-8?q?=20=EC=9A=B0=ED=8E=B8=EB=B2=88=ED=98=B8=20=EA=B2=80=EC=83=89=20?= =?UTF-8?q?juso.sir.co.kr=20=EC=9D=B4=EC=9A=A9=ED=95=98=EB=8F=84=EB=A1=9D?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/sendcostlist.php | 8 +- adm/shop_admin/sendcostzipcode.php | 143 ++++++++++++----------------- 2 files changed, 65 insertions(+), 86 deletions(-) diff --git a/adm/shop_admin/sendcostlist.php b/adm/shop_admin/sendcostlist.php index 4b2b8c3d6..38c66478c 100644 --- a/adm/shop_admin/sendcostlist.php +++ b/adm/shop_admin/sendcostlist.php @@ -140,8 +140,12 @@ include_once (G5_ADMIN_PATH.'/admin.head.php'); $(function() { $(".sch_zipcode").click(function() { var idx = $(".sch_zipcode").index($(this)); - var url = "./sendcostzipcode.php?no="+(idx+1); - var opt = "left=50,top=50,width=500,height=400"; + var no = idx + 1; + var sort = "asc"; + if(no == 2) + sort = "desc"; + var url = "./sendcostzipcode.php?no="+no+"&sort="+sort; + var opt = "left=50,top=50,width=600,height=700"; window.open(url, "win_zipcode", opt); }); }); diff --git a/adm/shop_admin/sendcostzipcode.php b/adm/shop_admin/sendcostzipcode.php index b8d78f7f9..8b8c71f4c 100644 --- a/adm/shop_admin/sendcostzipcode.php +++ b/adm/shop_admin/sendcostzipcode.php @@ -4,107 +4,82 @@ include_once('./_common.php'); auth_check($auth[$sub_menu], "r"); -$addr = trim($_GET['addr']); -$no = trim($_GET['no']); - -if($addr) { - $option_list = ''; - $zipfile = array(); - $fp = fopen(G5_BBS_PATH."/zip.db", "r"); - while(!feof($fp)) { - $zipfile[] = fgets($fp, 4096); - } - fclose($fp); - - $search_count = 0; - - while ($zipcode = each($zipfile)) - { - if(strstr(substr($zipcode[1],8,512), $addr)) - { - $address = trim($zipcode[1]); - - $list[$search_count] = $address; - - $search_count++; - } - } - - if($search_count) { - natsort($list); - if($no == 2) - $list = array_reverse($list); - - $result = array(); - - foreach($list as $value) { - $code = substr($value, 0, 7); - $result[] = ''.$value.' '.PHP_EOL; - } - } -} - $g5['title'] = "우편번호 찾기"; include_once(G5_PATH.'/head.sub.php'); ?> + -
-

+
+

+

+ 주소지의 시도를 선택해주세요.
+ 검색결과가 많은 경우 시/군/구를 지정하시됩니다.
+ (검색결과는 최대 1,000건만 표시됩니다.) +

-
- + + +
+ + + + +
+ +
+
+ +
-
-

주소지의 시/군을 입력하세요.

+
시도를 선택 후 검색해주세요.
-
- - - -
- - - - - 검색결과 -
    - -
  • - -
- -

검색된 결과가 없습니다.

- +
+
-
- 창닫기 -