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/lib/common.lib.php b/lib/common.lib.php index 06352c768..9ae44e510 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2000,14 +2000,16 @@ function delete_board_thumbnail($bo_table, $file) } // 에디터 이미지 얻기 -function get_editor_image($contents) +function get_editor_image($contents, $view=true) { if(!$contents) return false; // $contents 중 img 태그 추출 - //$pattern = "/]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/"; - $pattern = "/]*)>/iS"; + if ($view) + $pattern = "/]*)>/iS"; + else + $pattern = "/]*src=[\'\"]?([^>\'\"]+[^>\'\"]+)[\'\"]?[^>]*>/"; preg_match_all($pattern, $contents, $matchs); return $matchs; diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index 5920105d1..caf04acc1 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -22,7 +22,7 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_ $write_table = $g5['write_prefix'].$bo_table; $sql = " select wr_content from $write_table where wr_id = '$wr_id' "; $write = sql_fetch($sql); - $matches = get_editor_image($write['wr_content']); + $matches = get_editor_image($write['wr_content'], false); $edt = true; for($i=0; $i 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..c95b2d5c6 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; // 개별 페이지 접근 불가 ?> +

-
- - - - - +

+ 시도 및 시군구 선택없이 도로명, 읍/면/동, 건물명 등으로 검색하실 수 있습니다.
+ 검색결과는 최대 1,000건만 표시됩니다. 만약 검색결과에 찾으시는 주소가 없을 때는
+ 시도와 시군구를 선택하신 후 다시 검색해 주십시오. +

+ +
- - +
+ + + + +
+
+ + + +
+ - - - - - 0) { ?> -
-
건 가나다순 정렬
-
-
    - -
  • -
  • - -
-
-
- -

검색결과가 끝났습니다.

- +
- 0) { ?> - -
+ + + \ No newline at end of file diff --git a/skin/board/basic/style.css b/skin/board/basic/style.css index 3a706aa32..ff3826b57 100644 --- a/skin/board/basic/style.css +++ b/skin/board/basic/style.css @@ -238,7 +238,6 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc p a {text-decoration:underline} #bo_vc_empty {margin:0;padding:20px !important;text-align:center} -#bo_vc fieldset {margin:0 0 10px;padding:0} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} #bo_vc footer:after {display:block;visibility:hidden;clear:both;content:""} @@ -254,6 +253,4 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa #bo_vc_sns {margin:0;padding:0;list-style:none;zoom:1} #bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""} #bo_vc_sns li {float:left;margin:0 20px 0 0} -#bo_vc_sns input {margin:0 0 0 5px} - -#bo_vc form {padding:0} \ No newline at end of file +#bo_vc_sns input {margin:0 0 0 5px} \ No newline at end of file diff --git a/skin/board/gallery/style.css b/skin/board/gallery/style.css index a89cbc1d3..cdc04b992 100644 --- a/skin/board/gallery/style.css +++ b/skin/board/gallery/style.css @@ -231,7 +231,6 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa #bo_vc p {padding:0 0 5px;line-height:1.8em} #bo_vc p a {text-decoration:underline} #bo_vc_empty {margin:0;padding:20px !important;text-align:center} -#bo_vc fieldset {margin:0 0 10px;padding:0} #bo_vc #bo_vc_winfo {float:left} #bo_vc footer {zoom:1} #bo_vc footer:after {display:block;visibility:hidden;clear:both;content:""} @@ -247,6 +246,4 @@ html.no-overflowscrolling #autosave_pop {height:auto;max-height:10000px !importa #bo_vc_sns {margin:0;padding:0;list-style:none;zoom:1} #bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""} #bo_vc_sns li {float:left;margin:0 20px 0 0} -#bo_vc_sns input {margin:0 0 0 5px} - -#bo_vc form {padding:0} \ No newline at end of file +#bo_vc_sns input {margin:0 0 0 5px} \ No newline at end of file diff --git a/skin/member/basic/register_form.skin.php b/skin/member/basic/register_form.skin.php index f8bbc846e..342a9e451 100644 --- a/skin/member/basic/register_form.skin.php +++ b/skin/member/basic/register_form.skin.php @@ -154,9 +154,11 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 class="frm_input frm_address " size="50"> class="frm_input frm_address " size="50"> +
+ diff --git a/skin/member/basic/zip.skin.php b/skin/member/basic/zip.skin.php index b1101b9c9..c95b2d5c6 100644 --- a/skin/member/basic/zip.skin.php +++ b/skin/member/basic/zip.skin.php @@ -8,64 +8,155 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

- - - - - - +

+ 시도 및 시군구 선택없이 도로명, 읍/면/동, 건물명 등으로 검색하실 수 있습니다.
+ 검색결과는 최대 1,000건만 표시됩니다. 만약 검색결과에 찾으시는 주소가 없을 때는
+ 시도와 시군구를 선택하신 후 다시 검색해 주십시오. +

+
- - - +
+ + + + +
+
+ + + +
- - - 0) { ?> -
-
건 가나다순 정렬
-
- '; - ?> -
  • -
  • - 0) echo ''; - ?> -
    -
    - -

    검색결과가 끝났습니다.

    - - +
    - 0) { ?> - -
    + + \ No newline at end of file