사용자: 우편번호 검색창
This commit is contained in:
@ -205,6 +205,7 @@ h6 {margin:0 0 20px}
|
|||||||
/* 새창 공통 */
|
/* 새창 공통 */
|
||||||
.new_win h1 {padding:10px 30px;background:#494946;color:#fff;font-size:1.2em}
|
.new_win h1 {padding:10px 30px;background:#494946;color:#fff;font-size:1.2em}
|
||||||
.new_win table {margin:0 auto 30px;width:90%}
|
.new_win table {margin:0 auto 30px;width:90%}
|
||||||
|
.new_win fieldset {margin:0 auto 30px;width:90%}
|
||||||
.new_win_ul {margin:-30px 0 20px 0;padding:0 0 0 30px;border-bottom:1px solid #ddd;background:#fff;font-size:0.8em;list-style:none;zoom:1}
|
.new_win_ul {margin:-30px 0 20px 0;padding:0 0 0 30px;border-bottom:1px solid #ddd;background:#fff;font-size:0.8em;list-style:none;zoom:1}
|
||||||
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
.new_win_ul li {float:left;margin-left:-1px}
|
.new_win_ul li {float:left;margin-left:-1px}
|
||||||
@ -220,6 +221,14 @@ h6 {margin:0 0 20px}
|
|||||||
|
|
||||||
/* 스크랩 */
|
/* 스크랩 */
|
||||||
|
|
||||||
|
/* 우편번호 검색 */
|
||||||
|
#post_num dl {margin:0 auto 10px;padding:0;width:90%}
|
||||||
|
#post_num dt {margin-bottom:15px}
|
||||||
|
#post_num dd {margin:0;padding:0}
|
||||||
|
#post_num ul {margin:0;padding:0;list-style:none}
|
||||||
|
#post_num li a {display:block;padding:5px 0;font-size:0.8em}
|
||||||
|
#post_num p {margin:0 auto 30px;width:90%}
|
||||||
|
|
||||||
/* pagination */
|
/* pagination */
|
||||||
.pg {margin-bottom:30px;font-size:0.875em;text-align:center}
|
.pg {margin-bottom:30px;font-size:0.875em;text-align:center}
|
||||||
.pg_page, .pg_current {display:inline-block;position:relative;margin-left:-6px;padding:0 10px;height:25px;border:1px solid #ddd;background:#fff;line-height:1.9em;vertical-align:middle}
|
.pg_page, .pg_current {display:inline-block;position:relative;margin-left:-6px;padding:0 10px;height:25px;border:1px solid #ddd;background:#fff;line-height:1.9em;vertical-align:middle}
|
||||||
|
|||||||
@ -2,53 +2,62 @@
|
|||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1>우편번호검색</h1>
|
<section id="post_num" class="new_win">
|
||||||
|
<h1>우편번호검색</h1>
|
||||||
|
|
||||||
<form name="fzip" method="get" autocomplete="off">
|
<form name="fzip" method="get" autocomplete="off">
|
||||||
<input type="hidden" name="frm_name" value="<?=$frm_name?>">
|
<input type="hidden" name="frm_name" value="<?=$frm_name?>">
|
||||||
<input type="hidden" name="frm_zip1" value="<?=$frm_zip1?>">
|
<input type="hidden" name="frm_zip1" value="<?=$frm_zip1?>">
|
||||||
<input type="hidden" name="frm_zip2" value="<?=$frm_zip2?>">
|
<input type="hidden" name="frm_zip2" value="<?=$frm_zip2?>">
|
||||||
<input type="hidden" name="frm_addr1" value="<?=$frm_addr1?>">
|
<input type="hidden" name="frm_addr1" value="<?=$frm_addr1?>">
|
||||||
<input type="hidden" name="frm_addr2" value="<?=$frm_addr2?>">
|
<input type="hidden" name="frm_addr2" value="<?=$frm_addr2?>">
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>우편번호 검색</legend>
|
<legend>우편번호 검색</legend>
|
||||||
<label for="addr1">동/읍/면/리 검색</label>
|
<label for="addr1">동/읍/면/리 검색</label>
|
||||||
<input type="text" id="addr1" name="addr1" value="<?=$addr1?>" required minlength=2>
|
<input type="text" id="addr1" name="addr1" class="fieldset_input" value="<?=$addr1?>" required minlength=2>
|
||||||
<input type="submit" value="검색">
|
<input type="submit" class="fieldset_submit" value="검색">
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- 검색결과 여기서부터 -->
|
<!-- 검색결과 여기서부터 -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.fzip.addr1.focus();
|
document.fzip.addr1.focus();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<? if ($search_count > 0) { ?>
|
<? if ($search_count > 0) { ?>
|
||||||
<p>총 <?=$search_count?>건 가나다순 정렬</p>
|
<dl>
|
||||||
|
<dt>총 <?=$search_count?>건 가나다순 정렬</dt>
|
||||||
|
<dd>
|
||||||
|
<ul>
|
||||||
|
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||||
|
<li><a href='javascript:;' onclick="find_zip('<?=$list[$i][zip1]?>', '<?=$list[$i][zip2]?>', '<?=$list[$i][addr]?>');"><?=$list[$i][zip1]?>-<?=$list[$i][zip2]?> <?=$list[$i][addr]?> <?=$list[$i][bunji]?></a></li>
|
||||||
|
<? } ?>
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
<ul>
|
<p>검색결과가 끝났습니다.</p>
|
||||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
|
||||||
<li><a href='javascript:;' onclick="find_zip('<?=$list[$i][zip1]?>', '<?=$list[$i][zip2]?>', '<?=$list[$i][addr]?>');"><?=$list[$i][zip1]?>-<?=$list[$i][zip2]?> <?=$list[$i][addr]?> <?=$list[$i][bunji]?></a></li>
|
<div class="btn_window">
|
||||||
|
<a href="javascript:window.close();">창닫기</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function find_zip(zip1, zip2, addr1)
|
||||||
|
{
|
||||||
|
var of = opener.document.<?=$frm_name?>;
|
||||||
|
|
||||||
|
of.<?=$frm_zip1?>.value = zip1;
|
||||||
|
of.<?=$frm_zip2?>.value = zip2;
|
||||||
|
|
||||||
|
of.<?=$frm_addr1?>.value = addr1;
|
||||||
|
|
||||||
|
of.<?=$frm_addr2?>.focus();
|
||||||
|
window.close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</ul>
|
</section>
|
||||||
|
|
||||||
<p>검색결과가 끝났습니다.</p>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
function find_zip(zip1, zip2, addr1)
|
|
||||||
{
|
|
||||||
var of = opener.document.<?=$frm_name?>;
|
|
||||||
|
|
||||||
of.<?=$frm_zip1?>.value = zip1;
|
|
||||||
of.<?=$frm_zip2?>.value = zip2;
|
|
||||||
|
|
||||||
of.<?=$frm_addr1?>.value = addr1;
|
|
||||||
|
|
||||||
of.<?=$frm_addr2?>.focus();
|
|
||||||
window.close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<? } ?>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user