Merge branch 'master' of github.com:gnuboard/g5
This commit is contained in:
@ -258,15 +258,15 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto}
|
||||
.sv_nojs .sv {display:block}
|
||||
|
||||
/* pagination */
|
||||
.pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center}
|
||||
.pg {display:inline-block;border:1px solid #cfded8;letter-spacing:-4px}
|
||||
.pg a:focus, .pg a:hover, .pg a:active {text-decoration:none}
|
||||
.pg_page, .pg_current {display:inline-block;padding:0 12px;height:30px;color:#000;letter-spacing:0;line-height:2.6em;vertical-align:middle}
|
||||
.pg_page {background:#f9f9f9;text-decoration:none}
|
||||
.pg_start, .pg_prev {border-right:1px solid #cfded8}
|
||||
.pg_end, .pg_next {border-left:1px solid #cfded8}
|
||||
.pg_current {background:#333;color:#fff;font-weight:bold}
|
||||
/* 페이징 */
|
||||
.pg_wrap {clear:both;margin:0 0 20px;padding:20px 0 0;text-align:center}
|
||||
.pg {}
|
||||
.pg_page, .pg_current {display:inline-block;padding:0 8px;height:25px;color:#000;letter-spacing:0;line-height:2.2em;vertical-align:middle}
|
||||
.pg a:focus, .pg a:hover {text-decoration:none}
|
||||
.pg_page {background:#e4eaec;text-decoration:none}
|
||||
.pg_start, .pg_prev {/* 이전 */}
|
||||
.pg_end, .pg_next {/* 다음 */}
|
||||
.pg_current {display:inline-block;margin:0 4px 0 0;background:#333;color:#fff;font-weight:normal}
|
||||
|
||||
/* Mobile화면으로 */
|
||||
#device_change {display:block;margin:0.3em;padding:0.5em 0;border:1px solid #eee;border-radius:2em;background:#fff;color:#000;font-size:2em;text-decoration:none;text-align:center}
|
||||
@ -43,7 +43,7 @@ a:hover, a:focus, a:active {color:#000;text-decoration:underline}
|
||||
/* 상단 레이아웃 */
|
||||
#hd {position:relative;background:#fff}
|
||||
#hd:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#hd_h1 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||
|
||||
#logo {float:left;padding:15px 0;margin-left:5px}
|
||||
|
||||
@ -217,14 +217,14 @@ a.btn_admin:focus, a.btn_admin:hover {text-decoration:none}
|
||||
/* 모바일에서는 사이드뷰를 지원하지 않습니다. */
|
||||
|
||||
/* 페이징 */
|
||||
.pg_wrap {clear:both;margin:0 0 10px;padding-top:10px;text-align:center}
|
||||
.pg {display:inline-block;border:1px solid #cfded8;letter-spacing:-4px}
|
||||
.pg a:focus, .pg a:hover, .pg a:active {text-decoration:none}
|
||||
.pg_page, .pg_current, .qa_page {display:inline-block;padding:0 10px;color:#000;letter-spacing:0;line-height:2.5em;vertical-align:middle}
|
||||
.pg_page, .qa_page {background:#f9f9f9;text-decoration:none}
|
||||
.pg_start, .pg_prev, .qa_start, .qa_prev {padding:0 5px;border-right:1px solid #cfded8}
|
||||
.pg_end, .pg_next, .qa_end, .qa_next {padding:0 5px;border-left:1px solid #cfded8}
|
||||
.pg_current {background:#333;color:#fff;font-weight:bold}
|
||||
.pg_wrap {clear:both;margin:0 0 20px;padding:20px 0 0;text-align:center}
|
||||
.pg {}
|
||||
.pg_page, .pg_current {display:inline-block;padding:0 8px;height:25px;color:#000;letter-spacing:0;line-height:2.2em;vertical-align:middle}
|
||||
.pg a:focus, .pg a:hover {text-decoration:none}
|
||||
.pg_page {background:#e4eaec;text-decoration:none}
|
||||
.pg_start, .pg_prev {/* 이전 */}
|
||||
.pg_end, .pg_next {/* 다음 */}
|
||||
.pg_current {display:inline-block;margin:0 4px 0 0;background:#333;color:#fff;font-weight:normal}
|
||||
|
||||
/* PC화면으로 */
|
||||
#device_change {display:block;margin:5px;padding:5px 0;border:1px solid #eee;border-radius:2em;color:#000;font-size:1em;text-decoration:none;text-align:center}
|
||||
@ -13,19 +13,16 @@ function certify_win_open(type, url)
|
||||
}
|
||||
else if(type == 'kcp-hp')
|
||||
{
|
||||
if( ( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) == false ) // 스마트폰이 아닌경우
|
||||
{
|
||||
var return_gubun;
|
||||
var width = 410;
|
||||
var height = 500;
|
||||
var return_gubun;
|
||||
var width = 410;
|
||||
var height = 500;
|
||||
|
||||
var leftpos = screen.width / 2 - ( width / 2 );
|
||||
var toppos = screen.height / 2 - ( height / 2 );
|
||||
var leftpos = screen.width / 2 - ( width / 2 );
|
||||
var toppos = screen.height / 2 - ( height / 2 );
|
||||
|
||||
var winopts = "width=" + width + ", height=" + height + ", toolbar=no,status=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
|
||||
var position = ",left=" + leftpos + ", top=" + toppos;
|
||||
var AUTH_POP = window.open(url,'auth_popup', winopts + position);
|
||||
}
|
||||
var winopts = "width=" + width + ", height=" + height + ", toolbar=no,status=no,statusbar=no,menubar=no,scrollbars=no,resizable=no";
|
||||
var position = ",left=" + leftpos + ", top=" + toppos;
|
||||
var AUTH_POP = window.open(url,'auth_popup', winopts + position);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
22
js/zip.js
22
js/zip.js
@ -43,7 +43,7 @@ sigungu['제주특별자치도'] = '서귀포시,제주시';
|
||||
|
||||
$(function() {
|
||||
// 시도 선택시 시군구 option 을 만든다.
|
||||
$("#sido").on("change", function() {
|
||||
$("#sido").bind("change", function() {
|
||||
var sido = $(this).val();
|
||||
|
||||
gugun_make(sido);
|
||||
@ -77,25 +77,17 @@ function gugun_make(sido)
|
||||
|
||||
function search_call(page)
|
||||
{
|
||||
$("#q_info").fadeOut(200);
|
||||
|
||||
var sido = $("#sido").val();
|
||||
var gugun = $("#gugun").val();
|
||||
var q = $.trim($("#q").val());
|
||||
|
||||
if(!page)
|
||||
page = 1;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://juso.sir.co.kr/search.php",
|
||||
async: false,
|
||||
dataType: "jsonp",
|
||||
jsonp: "callback",
|
||||
data: {
|
||||
"sido": sido,
|
||||
"gugun": gugun,
|
||||
"page": page,
|
||||
"q": q
|
||||
},
|
||||
success:function(data) {
|
||||
$.getJSON("http://juso.sir.co.kr/search.php?sido="+sido+"&gugun="+gugun+"&page="+page+"&q="+q+"&callback=?",
|
||||
function(data) {
|
||||
$("#result").empty();
|
||||
|
||||
if(data.error) {
|
||||
@ -105,5 +97,5 @@ function search_call(page)
|
||||
|
||||
$("#result").html(data.juso);
|
||||
}
|
||||
});
|
||||
);
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
mobile/skin/member/basic/img/zip_ico_up.gif
Normal file
BIN
mobile/skin/member/basic/img/zip_ico_up.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 B |
@ -255,15 +255,6 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
if ($config['cf_cert_use']) {
|
||||
// KCP 휴대폰인증 form
|
||||
if($config['cf_cert_hp'] == 'kcp')
|
||||
include_once(G5_KCPCERT_PATH.'/kcpcert_form.php');
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#reg_zip_find").css("display", "inline-block");
|
||||
@ -298,6 +289,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
$cert_type = 'kcp-hp';
|
||||
break;
|
||||
default:
|
||||
echo 'alert("기본환경설정에서 휴대폰 본인확인 설정을 해주십시오");';
|
||||
echo 'return false;';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
/* 우편번호 검색 */
|
||||
#post_code p {margin:0 20px 10px}
|
||||
#post_code #code_sch {margin:0 20px}
|
||||
#post_code #code_sch div {margin:5px 0 0}
|
||||
#post_code #code_sch #sch_q {position:relative;margin:5px 0 0}
|
||||
#post_code #code_sch .frm_input {height:22px}
|
||||
#post_code #code_sch .btn_submit {padding:0 8px;height:24px}
|
||||
#post_code #result {margin:0 20px}
|
||||
@ -174,7 +174,7 @@
|
||||
#post_code #result .result_msg {padding:15px 0}
|
||||
#post_code #result .result_fail {border:1px solid #dde4e9;background:#f0f5fc;color:#ff3061;text-align:center}
|
||||
#post_code #result ul {margin:0;padding:0;border-bottom:1px solid #dde4e9;background:#f0f5fc;list-style:none}
|
||||
#post_code #result li {padding:0 10px 10px;border:1px solid #dde4e9;border-bottom:0}
|
||||
#post_code #result li a {display:block;padding:10px 0 4px}
|
||||
#post_code #result li {padding:10px;border:1px solid #dde4e9;border-bottom:0}
|
||||
#post_code #result li div {margin:4px 0 0;color:#738D94}
|
||||
#post_code #result li div {color:#738D94}
|
||||
#post_code #result li div:before {content:"▶ "}
|
||||
@ -4,6 +4,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<!-- 우편번호 찾기 시작 { -->
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<script src="<?php echo G5_JS_URL; ?>/zip.js"></script>
|
||||
|
||||
<div id="post_code" class="new_win mbskin">
|
||||
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||
@ -20,28 +21,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<label for="sido" class="sound_only">시도선택</label>
|
||||
<select name="sido" id="sido">
|
||||
<option value="">- 시도 선택 -</option>
|
||||
<option value="서울특별시">서울</option>
|
||||
<option value="부산광역시">부산</option>
|
||||
<option value="대구광역시">대구</option>
|
||||
<option value="인천광역시">인천</option>
|
||||
<option value="광주광역시">광주</option>
|
||||
<option value="대전광역시">대전</option>
|
||||
<option value="울산광역시">울산</option>
|
||||
<option value="강원도">강원</option>
|
||||
<option value="경기도">경기</option>
|
||||
<option value="경상남도">경남</option>
|
||||
<option value="경상북도">경북</option>
|
||||
<option value="전라남도">전남</option>
|
||||
<option value="전라북도">전북</option>
|
||||
<option value="제주특별자치도">제주</option>
|
||||
<option value="충청남도">충남</option>
|
||||
<option value="충청북도">충북</option>
|
||||
</select>
|
||||
<label for="gugun" class="sound_only">시군구</label>
|
||||
<select name="gugun" id="gugun">
|
||||
<option value="">- 시군구 선택 -</option>
|
||||
</select>
|
||||
<div>
|
||||
<div id="sch_q">
|
||||
<label for="q" class="sound_only">검색어</label>
|
||||
<input type="text" name="q" value="" id="q" required class="required frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
@ -59,65 +44,16 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#sido").on("change", function() {
|
||||
var sido = $(this).val();
|
||||
|
||||
gugun_make(sido);
|
||||
});
|
||||
});
|
||||
|
||||
function gugun_make(sido)
|
||||
{
|
||||
var gugun = document.getElementById("gugun");
|
||||
|
||||
gugun.options.length = 1;
|
||||
gugun.options[0].value = "";
|
||||
gugun.options[0].text = "- 시군구 선택 -";
|
||||
gugun.options[0].selected = true;
|
||||
if (!sido) {
|
||||
return;
|
||||
}
|
||||
|
||||
sojae = sojaeji[sido].split(",");
|
||||
gugun.options.length = sojae.length+1;
|
||||
for (i=0; i<sojae.length; i++) {
|
||||
gugun.options[i+1].value = sojae[i];
|
||||
gugun.options[i+1].text = sojae[i];
|
||||
}
|
||||
}
|
||||
|
||||
function search_call(page)
|
||||
{
|
||||
var sido = $("#sido").val();
|
||||
var gugun = $("#gugun").val();
|
||||
var q = $.trim($("#q").val());
|
||||
if(!page)
|
||||
page = 1;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "http://juso.sir.co.kr/search.php",
|
||||
async: false,
|
||||
dataType: "jsonp",
|
||||
jsonp: "callback",
|
||||
data: {
|
||||
"sido": sido,
|
||||
"gugun": gugun,
|
||||
"page": page,
|
||||
"q": q
|
||||
},
|
||||
success:function(data) {
|
||||
$("#result").empty();
|
||||
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#result").html(data.juso);
|
||||
var msg_alert = true;
|
||||
$("input#q").bind("focusin", function() {
|
||||
if(!msg_alert) {
|
||||
return false;
|
||||
} else {
|
||||
alert("정확하고 빠른 검색을 위해 아래의 예시처럼 입력해 주세요.\n\n입력예1) 강남대로37길 24-6\n입력예2) 서초동 1362-19\n입력예3) 서초2동 1362-19");
|
||||
msg_alert = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function put_data(zip1, zip2, addr1, addr2, jibeon)
|
||||
{
|
||||
@ -135,26 +71,5 @@ function put_data(zip1, zip2, addr1, addr2, jibeon)
|
||||
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
||||
// 시군구 정보
|
||||
var sojaeji = new Array();
|
||||
|
||||
sojaeji['서울특별시'] = '강남구,강동구,강북구,강서구,관악구,광진구,구로구,금천구,노원구,도봉구,동대문구,동작구,마포구,서대문구,서초구,성동구,성북구,송파구,양천구,영등포구,용산구,은평구,종로구,중구,중랑구';
|
||||
sojaeji['부산광역시'] = '강서구,금정구,기장군,남구,동구,동래구,부산진구,북구,사상구,사하구,서구,수영구,연제구,영도구,중구,해운대구';
|
||||
sojaeji['대구광역시'] = '남구,달서구,달성군,동구,북구,서구,수성구,중구';
|
||||
sojaeji['인천광역시'] = '강화군,계양구,남구,남동구,동구,부평구,서구,연수구,옹진군,중구';
|
||||
sojaeji['광주광역시'] = '광산구,남구,동구,북구,서구';
|
||||
sojaeji['대전광역시'] = '대덕구,동구,서구,유성구,중구';
|
||||
sojaeji['울산광역시'] = '남구,동구,북구,울주군,중구';
|
||||
sojaeji['강원도'] = '강릉시,고성군,동해시,삼척시,속초시,양구군,양양군,영월군,원주시,인제군,정선군,철원군,춘천시,태백시,평창군,홍천군,화천군,횡성군';
|
||||
sojaeji['경기도'] = '가평군,고양시 덕양구,고양시 일산동구,고양시 일산서구,과천시,광명시,광주시,구리시,군포시,김포시,남양주시,동두천시,부천시 소사구,부천시 오정구,부천시 원미구,성남시 분당구,성남시 수정구,성남시 중원구,수원시 권선구,수원시 장안구,수원시 팔달구,시흥시,안산시 단원구,안산시 상록구,안성시,안양시 동안구,안양시 만안구,양주군,양평군,여주군,연천군,오산시,용인시,의왕시,의정부시,이천시,파주시,평택시,포천군,하남시,화성시';
|
||||
sojaeji['경상남도'] = '거제시,거창군,고성군,김해시,남해군,마산시,밀양시,사천시,산청군,양산시,의령군,진주시,진해시,창녕군,창원시 의창구, 창원시 성산구,창원시 마산합포구,창원시 마산회원구,창원시 진해구,통영시,하동군,함안군,함양군,합천군';
|
||||
sojaeji['경상북도'] = '경산시,경주시,고령군,구미시,군위군,김천시,문경시,봉화군,상주시,성주군,안동시,영덕군,영양군,영주시,영천시,예천군,울릉군,울진군,의성군,청도군,청송군,칠곡군,포항시 남구,포항시 북구';
|
||||
sojaeji['전라남도'] = '강진군,고흥군,곡성군,광양시,구례군,나주시,담양군,목포시,무안군,보성군,순천시,신안군,여수시,영광군,영암군,완도군,장성군,장흥군,진도군,함평군,해남군,화순군';
|
||||
sojaeji['전라북도'] = '고창군,군산시,김제시,남원시,무주군,부안군,순창군,완주군,익산시,임실군,장수군,전주시 덕진구,전주시 완산구,정읍시,진안군';
|
||||
sojaeji['제주특별자치도'] = '남제주군,북제주군,서귀포시,제주시';
|
||||
sojaeji['충청남도'] = '계룡시,공주시,금산군,논산시,당진군,보령시,부여군,서산시,서천군,아산시,연기군,예산군,천안시,청양군,태안군,홍성군';
|
||||
sojaeji['충청북도'] = '괴산군,단양군,보은군,영동군,옥천군,음성군,제천시,증평군,진천군,청원군,청주시 상당구,청주시 흥덕구,충주시';
|
||||
</script>
|
||||
<!-- } 우편번호 찾기 끝 -->
|
||||
BIN
skin/member/basic/img/zip_ico_up.gif
Normal file
BIN
skin/member/basic/img/zip_ico_up.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 B |
@ -167,14 +167,15 @@
|
||||
/* 우편번호 검색 */
|
||||
#post_code p {margin:0 20px 10px}
|
||||
#post_code #code_sch {margin:0 20px}
|
||||
#post_code #code_sch div {margin:5px 0 0}
|
||||
#post_code #code_sch #sch_q {position:relative;margin:5px 0 0}
|
||||
#post_code #code_sch #q_info {display:none;z-index:2;position:absolute;top:33px;left:0;padding:5px;background:#e4eaec}
|
||||
#post_code #code_sch #q_info span {position:absolute;top:-6px;left:5px;width:11px;height:6px;background:url('img/zip_ico_up.gif')}
|
||||
#post_code #code_sch .btn_submit {padding:0 8px;height:24px}
|
||||
#post_code #result {margin:0 20px}
|
||||
#post_code #result_b4 {display:block;padding:30px 0;border-bottom:1px solid #dde4e9;text-align:center}
|
||||
#post_code #result .result_msg {padding:15px 0}
|
||||
#post_code #result .result_fail {border:1px solid #dde4e9;background:#f0f5fc;color:#ff3061;text-align:center}
|
||||
#post_code #result ul {margin:0;padding:0;border-bottom:1px solid #dde4e9;background:#f0f5fc;list-style:none}
|
||||
#post_code #result li {padding:0 10px 10px;border:1px solid #dde4e9;border-bottom:0}
|
||||
#post_code #result li a {display:block;padding:10px 0 4px}
|
||||
#post_code #result li div {color:#738D94}
|
||||
#post_code #result li {padding:10px;border:1px solid #dde4e9;border-bottom:0}
|
||||
#post_code #result li div {margin:4px 0 0;color:#738D94}
|
||||
#post_code #result li div:before {content:"▶ "}
|
||||
@ -3,8 +3,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<!-- 우편번호 찾기 시작 { -->
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
|
||||
<script src="<?php echo G5_JS_URL ?>/zip.js"></script>
|
||||
<link rel="stylesheet" href="<?php echo $member_skin_url; ?>/style.css">
|
||||
<script src="<?php echo G5_JS_URL; ?>/zip.js"></script>
|
||||
|
||||
<div id="post_code" class="new_win mbskin">
|
||||
<h1 id="win_title"><?php echo $g5['title'] ?></h1>
|
||||
@ -26,7 +26,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
<select name="gugun" id="gugun">
|
||||
<option value="">- 시군구 선택 -</option>
|
||||
</select>
|
||||
<div>
|
||||
<div id="sch_q">
|
||||
<div id="q_info"><span></span>정확하고 빠른 검색을 위해 아래의 예시처럼 입력해 주세요.<br><br>입력예1) 강남대로37길 24-6<br>입력예2) 서초동 1362-19<br>입력예3) 서초2동 1362-19</div>
|
||||
<label for="q" class="sound_only">검색어</label>
|
||||
<input type="text" name="q" value="" id="q" required class="required frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
@ -44,6 +45,16 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("input#q").bind("focusin", function() {
|
||||
$("#q_info").fadeIn(200);
|
||||
});
|
||||
|
||||
$("input#q").bind("focusout", function() {
|
||||
$("#q_info").fadeOut(200);
|
||||
});
|
||||
});
|
||||
|
||||
function put_data(zip1, zip2, addr1, addr2, jibeon)
|
||||
{
|
||||
var of = window.opener.document.<?php echo $frm_name; ?>;
|
||||
|
||||
Reference in New Issue
Block a user