diff --git a/adm/member_form.php b/adm/member_form.php
index 0306fb699..8e5519985 100644
--- a/adm/member_form.php
+++ b/adm/member_form.php
@@ -112,6 +112,11 @@ if(isset($mb['mb_adult'])) {
sql_query(" ALTER TABLE `{$g5['member_table']}` ADD `mb_adult` TINYINT NOT NULL DEFAULT '0' AFTER `mb_certify` ", false);
}
+// 지번주소 필드추가
+if(!isset($mb['mb_addr_jibeon'])) {
+ sql_query(" ALTER TABLE {$g5['member_table']} ADD `mb_addr_jibeon` varchar(255) NOT NULL DEFAULT '' AFTER `mb_addr2` ", false);
+}
+
if ($mb['mb_intercept_date']) $g5['title'] = "차단된 ";
else $g5['title'] .= "";
$g5['title'] .= '회원 '.$html_title;
@@ -203,9 +208,11 @@ include_once('./admin.head.php');
상세주소 입력
+
+ 지번주소 :
diff --git a/adm/member_form_update.php b/adm/member_form_update.php
index 1ce9a55f1..44a7d50c7 100644
--- a/adm/member_form_update.php
+++ b/adm/member_form_update.php
@@ -41,6 +41,7 @@ $sql_common = " mb_name = '{$_POST['mb_name']}',
mb_zip2 = '{$_POST['mb_zip2']}',
mb_addr1 = '{$_POST['mb_addr1']}',
mb_addr2 = '{$_POST['mb_addr2']}',
+ mb_addr_jibeon = '{$_POST['mb_addr_jibeon']}',
mb_birth = '{$_POST['mb_birth']}',
mb_sex = '{$_POST['mb_sex']}',
mb_signature = '{$_POST['mb_signature']}',
diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php
index eb2c80cc4..0b96a2867 100644
--- a/bbs/register_form_update.php
+++ b/bbs/register_form_update.php
@@ -26,30 +26,31 @@ $mb_password_re = escape_trim($_POST['mb_password_re']);
$mb_name = escape_trim($_POST['mb_name']);
$mb_nick = escape_trim($_POST['mb_nick']);
$mb_email = escape_trim($_POST['mb_email']);
-$mb_sex = isset($_POST['mb_sex']) ? escape_trim($_POST['mb_sex']) : "";
-$mb_birth = isset($_POST['mb_birth']) ? escape_trim($_POST['mb_birth']) : "";
-$mb_homepage = isset($_POST['mb_homepage']) ? escape_trim($_POST['mb_homepage']) : "";
-$mb_tel = isset($_POST['mb_tel']) ? escape_trim($_POST['mb_tel']) : "";
-$mb_hp = isset($_POST['mb_hp']) ? escape_trim($_POST['mb_hp']) : "";
-$mb_zip1 = isset($_POST['mb_zip1']) ? escape_trim($_POST['mb_zip1']) : "";
-$mb_zip2 = isset($_POST['mb_zip2']) ? escape_trim($_POST['mb_zip2']) : "";
-$mb_addr1 = isset($_POST['mb_addr1']) ? escape_trim($_POST['mb_addr1']) : "";
-$mb_addr2 = isset($_POST['mb_addr2']) ? escape_trim($_POST['mb_addr2']) : "";
-$mb_signature = isset($_POST['mb_signature']) ? escape_trim($_POST['mb_signature']) : "";
-$mb_profile = isset($_POST['mb_profile']) ? escape_trim($_POST['mb_profile']) : "";
-$mb_recommend = isset($_POST['mb_recommend']) ? escape_trim($_POST['mb_recommend']) : "";
-$mb_mailling = isset($_POST['mb_mailling']) ? escape_trim($_POST['mb_mailling']) : "";
-$mb_sms = isset($_POST['mb_sms']) ? escape_trim($_POST['mb_sms']) : "";
-$mb_1 = isset($_POST['mb_1']) ? escape_trim($_POST['mb_1']) : "";
-$mb_2 = isset($_POST['mb_2']) ? escape_trim($_POST['mb_2']) : "";
-$mb_3 = isset($_POST['mb_3']) ? escape_trim($_POST['mb_3']) : "";
-$mb_4 = isset($_POST['mb_4']) ? escape_trim($_POST['mb_4']) : "";
-$mb_5 = isset($_POST['mb_5']) ? escape_trim($_POST['mb_5']) : "";
-$mb_6 = isset($_POST['mb_6']) ? escape_trim($_POST['mb_6']) : "";
-$mb_7 = isset($_POST['mb_7']) ? escape_trim($_POST['mb_7']) : "";
-$mb_8 = isset($_POST['mb_8']) ? escape_trim($_POST['mb_8']) : "";
-$mb_9 = isset($_POST['mb_9']) ? escape_trim($_POST['mb_9']) : "";
-$mb_10 = isset($_POST['mb_10']) ? escape_trim($_POST['mb_10']) : "";
+$mb_sex = isset($_POST['mb_sex']) ? escape_trim($_POST['mb_sex']) : "";
+$mb_birth = isset($_POST['mb_birth']) ? escape_trim($_POST['mb_birth']) : "";
+$mb_homepage = isset($_POST['mb_homepage']) ? escape_trim($_POST['mb_homepage']) : "";
+$mb_tel = isset($_POST['mb_tel']) ? escape_trim($_POST['mb_tel']) : "";
+$mb_hp = isset($_POST['mb_hp']) ? escape_trim($_POST['mb_hp']) : "";
+$mb_zip1 = isset($_POST['mb_zip1']) ? escape_trim($_POST['mb_zip1']) : "";
+$mb_zip2 = isset($_POST['mb_zip2']) ? escape_trim($_POST['mb_zip2']) : "";
+$mb_addr1 = isset($_POST['mb_addr1']) ? escape_trim($_POST['mb_addr1']) : "";
+$mb_addr2 = isset($_POST['mb_addr2']) ? escape_trim($_POST['mb_addr2']) : "";
+$mb_addr_jibeon = isset($_POST['mb_addr_jibeon']) ? escape_trim($_POST['mb_addr_jibeon']) : "";
+$mb_signature = isset($_POST['mb_signature']) ? escape_trim($_POST['mb_signature']) : "";
+$mb_profile = isset($_POST['mb_profile']) ? escape_trim($_POST['mb_profile']) : "";
+$mb_recommend = isset($_POST['mb_recommend']) ? escape_trim($_POST['mb_recommend']) : "";
+$mb_mailling = isset($_POST['mb_mailling']) ? escape_trim($_POST['mb_mailling']) : "";
+$mb_sms = isset($_POST['mb_sms']) ? escape_trim($_POST['mb_sms']) : "";
+$mb_1 = isset($_POST['mb_1']) ? escape_trim($_POST['mb_1']) : "";
+$mb_2 = isset($_POST['mb_2']) ? escape_trim($_POST['mb_2']) : "";
+$mb_3 = isset($_POST['mb_3']) ? escape_trim($_POST['mb_3']) : "";
+$mb_4 = isset($_POST['mb_4']) ? escape_trim($_POST['mb_4']) : "";
+$mb_5 = isset($_POST['mb_5']) ? escape_trim($_POST['mb_5']) : "";
+$mb_6 = isset($_POST['mb_6']) ? escape_trim($_POST['mb_6']) : "";
+$mb_7 = isset($_POST['mb_7']) ? escape_trim($_POST['mb_7']) : "";
+$mb_8 = isset($_POST['mb_8']) ? escape_trim($_POST['mb_8']) : "";
+$mb_9 = isset($_POST['mb_9']) ? escape_trim($_POST['mb_9']) : "";
+$mb_10 = isset($_POST['mb_10']) ? escape_trim($_POST['mb_10']) : "";
if ($w == '' || $w == 'u') {
@@ -198,6 +199,7 @@ if ($w == '') {
mb_zip2 = '{$mb_zip2}',
mb_addr1 = '{$mb_addr1}',
mb_addr2 = '{$mb_addr2}',
+ mb_addr_jibeon = '{$mb_addr_jibeon}',
mb_signature = '{$mb_signature}',
mb_profile = '{$mb_profile}',
mb_today_login = '".G5_TIME_YMDHIS."',
@@ -308,6 +310,7 @@ if ($w == '') {
mb_zip2 = '{$mb_zip2}',
mb_addr1 = '{$mb_addr1}',
mb_addr2 = '{$mb_addr2}',
+ mb_addr_jibeon = '{$mb_addr_jibeon}',
mb_signature = '{$mb_signature}',
mb_profile = '{$mb_profile}',
mb_1 = '{$mb_1}',
diff --git a/bbs/zip.php b/bbs/zip.php
index 6f10ef7d9..55e4bc2b8 100644
--- a/bbs/zip.php
+++ b/bbs/zip.php
@@ -5,6 +5,7 @@ include_once('./_common.php');
//ini_set('memory_limit', '20M');
//$zipfile = file("./zip.db");
+/*
$zipfile = array();
$fp = fopen('./zip.db', 'r');
while(!feof($fp)) {
@@ -14,17 +15,17 @@ fclose($fp);
$search_count = 0;
-if ($addr1)
+if ($addr1)
{
- while ($zipcode = each($zipfile))
+ while ($zipcode = each($zipfile))
{
if(strstr(substr($zipcode[1],9,512), $addr1))
{
$list[$search_count][zip1] = substr($zipcode[1],0,3);
- $list[$search_count][zip2] = substr($zipcode[1],4,3);
+ $list[$search_count][zip2] = substr($zipcode[1],4,3);
$addr = explode(" ", substr($zipcode[1],8));
- if ($addr[sizeof($addr)-1])
+ if ($addr[sizeof($addr)-1])
{
$list[$search_count][addr] = str_replace($addr[sizeof($addr)-1], "", substr($zipcode[1],8));
$list[$search_count][bunji] = trim($addr[sizeof($addr)-1]);
@@ -34,20 +35,21 @@ if ($addr1)
$list[$search_count][encode_addr] = urlencode($list[$search_count][addr]);
$search_count++;
- }
+ }
}
if (!$search_count) alert('찾으시는 주소가 없습니다.');
}
+*/
/* 기존의 DB에서 불러오는 방식
-if ($addr1)
+if ($addr1)
{
//$sql = " select * from $g5[zip_table] where zp_dong like '%$addr1%' order by zp_id ";
$sql = " select * from $g5[zip_table] where zp_dong like '%$addr1%' order by zp_sido, zp_gugun, zp_dong ";
$result = sql_query($sql);
$search_count = 0;
- for ($i=0; $row=sql_fetch_array($result); $i++)
+ for ($i=0; $row=sql_fetch_array($result); $i++)
{
$list[$i][zip1] = substr($row[zp_code], 0, 3);
$list[$i][zip2] = substr($row[zp_code], 3, 3);
@@ -57,7 +59,7 @@ if ($addr1)
$search_count++;
}
- if (!$search_count)
+ if (!$search_count)
alert("찾으시는 주소가 없습니다.");
}
*/
diff --git a/install/gnuboard5.sql b/install/gnuboard5.sql
index 986aaa475..55e826937 100644
--- a/install/gnuboard5.sql
+++ b/install/gnuboard5.sql
@@ -456,6 +456,7 @@ CREATE TABLE IF NOT EXISTS `g5_member` (
`mb_zip2` char(3) NOT NULL default '',
`mb_addr1` varchar(255) NOT NULL default '',
`mb_addr2` varchar(255) NOT NULL default '',
+ `mb_addr_jibeon` varchar(255) NOT NULL default '',
`mb_signature` text NOT NULL,
`mb_recommend` varchar(255) NOT NULL default '',
`mb_point` int(11) NOT NULL default '0',
diff --git a/js/common.js b/js/common.js
index 375bddbc2..8d44e19e6 100644
--- a/js/common.js
+++ b/js/common.js
@@ -356,7 +356,7 @@ var win_homepage = function(href) {
* 우편번호 창
**/
var win_zip = function(href) {
- var new_win = window.open(href, 'win_zip', 'width=616, height=460, scrollbars=1');
+ var new_win = window.open(href, 'win_zip', 'width=616, height=760, scrollbars=1');
new_win.focus();
}
diff --git a/mobile/skin/member/basic/register_form.skin.php b/mobile/skin/member/basic/register_form.skin.php
index 609d087fb..6e43423fe 100644
--- a/mobile/skin/member/basic/register_form.skin.php
+++ b/mobile/skin/member/basic/register_form.skin.php
@@ -149,9 +149,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
class="frm_input frm_address " size="50">
class="frm_input frm_address " size="50">
+
+
diff --git a/mobile/skin/member/basic/zip.skin.php b/mobile/skin/member/basic/zip.skin.php
index f93338781..e0d524761 100644
--- a/mobile/skin/member/basic/zip.skin.php
+++ b/mobile/skin/member/basic/zip.skin.php
@@ -2,65 +2,161 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
+