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건만 표시됩니다.)
+