Merge branch 'master' of github.com:gnuboard/g4s

Conflicts:
	skin/member/neo/register_form.skin.php
This commit is contained in:
gnuboard
2013-01-08 09:06:05 +09:00
28 changed files with 774 additions and 409 deletions

View File

@ -2,36 +2,42 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>쪽지함</h1>
<div id="memo_list" class="new_win">
<h1><?=$g4['title']?></h1>
<ul>
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
<li><a href="./memo_form.php">쪽지보내기</a></li>
</ul>
<ul class="new_win_ul">
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
<li><a href="./memo_form.php">쪽지보내기</a></li>
</ul>
<table>
<caption>
전체 <?=$kind_title?>쪽지 <?=$total_count?>통<br>
쪽지 보관일수는 최장 <?=$config[cf_memo_del]?>일 입니다.
</caption>
<thead>
<tr>
<th scope="col"><?= ($kind == "recv") ? "보낸사람" : "받는사람"; ?></th>
<th scope="col">보낸시간</th>
<th scope="col">읽은시간</th>
<th scope="col">쪽지삭제</th>
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><?=$list[$i][name]?></td>
<td><a href="<?=$list[$i][view_href]?>"><?=$list[$i][send_datetime]?></font></td>
<td><a href="<?=$list[$i][view_href]?>"><?=$list[$i][read_datetime]?></font></td>
<td><a href="javascript:del('<?=$list[$i][del_href]?>');"><img src="<?=$member_skin_path?>/img/btn_comment_delete.gif" width="45" height="14" border="0"></a></td>
</tr>
<? } ?>
<? if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
</tbody>
</table>
<table>
<caption>
전체 <?=$kind_title?>쪽지 <?=$total_count?>통<br>
<span class="caption_desc">쪽지 보관일수는 최장 <?=$config[cf_memo_del]?>일 입니다.</span>
</caption>
<thead>
<tr>
<th scope="col"><?= ($kind == "recv") ? "보낸사람" : "받는사람"; ?></th>
<th scope="col">보낸시간</th>
<th scope="col">읽은시간</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><div><?=$list[$i][name]?></div></td>
<td class="td_datetime"><a href="<?=$list[$i][view_href]?>"><?=$list[$i][send_datetime]?></font></td>
<td class="td_datetime"><a href="<?=$list[$i][view_href]?>"><?=$list[$i][read_datetime]?></font></td>
<td class="td_mng"><a href="javascript:del('<?=$list[$i][del_href]?>');">삭제</a></td>
</tr>
<? } ?>
<? if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
</tbody>
</table>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
</div>

View File

@ -2,21 +2,22 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<form name="fregister" method="POST" onsubmit="return fregister_submit(this);" autocomplete="off">
<form id="fregister" name="fregister" method="POST" onsubmit="return fregister_submit(this);" autocomplete="off">
<section>
<section id="fregister_term">
<h2>회원가입약관</h2>
<textarea readonly><?=get_text($config['cf_stipulation'])?></textarea>
<input type="radio" id="agree11" name="agree" value="1"><label for="agree11">동의합니다.</label>
<input type="radio" id="agree10" name="agree" value="0"><label for="agree10">동의하지 않습니다.</label>
</section>
<section>
<section id="fregister_private">
<h2>개인정보취급방침</h2>
<textarea readonly><?=get_text($config['cf_privacy'])?></textarea>
<input type="radio" id="agree21" name="agree2" value="1"><label for="agree21">동의합니다.</label>
<input type="radio" id="agree20" name="agree2" value="0"><label for="agree20">동의하지 않습니다.</label>
<input type="radio" id="agree21" name="agree2" value="1">
<label for="agree21">동의니다.</label>
<input type="radio" id="agree20" name="agree2" value="0">
<label for="agree20">동의하지 않습니다.</label>
</section>
<div class="btn_confirm">
@ -25,8 +26,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</form>
<script type="text/javascript">
<script>
function fregister_submit(f)
{
var agree1 = document.getElementsByName("agree");

View File

@ -1,5 +1,9 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$required = "";
$readonly = "";
if ($w == '') $required = "required";
else if ($w == 'u') $readonly = "readonly";
?>
<script>
@ -15,37 +19,54 @@ var member_skin_path = "<?=$member_skin_path?>";
<input type="hidden" id="mb_nick_enabled" name="mb_nick_enabled" value="">
<input type="hidden" id="mb_email_enabled" name="mb_email_enabled" value="">
<? if (isset($member['mb_sex'])) { ?><input type="hidden" name="mb_sex" value="<?=$member['mb_sex']?>"><? } ?>
<? if (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_nick_modify'] * 86400))) { // 별명수정일이 지나지 않았다면 ?>
<? if (isset($member['mb_nick_date']) && $member['mb_nick_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_nick_modify'] * 86400))) { // 별명수정일이 지나지 않았다면 ?>
<input type="hidden" name="mb_nick_default" value="<?=$member['mb_nick']?>">
<input type="hidden" name="mb_nick" value="<?=$member['mb_nick']?>">
<? } ?>
<table>
<table class="frm_tbl">
<caption>사이트 이용정보 입력</caption>
<tr>
<th scope="row"><label for="reg_mb_id">아이디</label></th>
<td>
<<<<<<< HEAD
<input type="text" id="reg_mb_id" name="mb_id" class="minlength_3" value="<?=$member['mb_id']?>" maxlength="20" <? if ($w=='u') { echo "readonly style='background-color:#dddddd;'"; } ?> <? if ($w=='') { echo 'required="required"'; } ?> title="회원아이디">
=======
<input type="text" id="reg_mb_id" name="mb_id" class="frm_input <?=$required?> <?=$readonly?>" value="<?=$member['mb_id']?>" maxlength="20" <?=$required?> <?=$readonly?>>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
<span id="msg_mb_id"></span>
<span>영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
<span class="frm_info">영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
</td>
</tr>
<tr>
<<<<<<< HEAD
<th scope="row"><label for="mb_password">패스워드</label></th>
<td><input type="password" id="reg_mb_password" name="mb_password" class="minlength_3" <?=($w=='')?'required="required"':'';?> maxlength="20" title="패스워드"></td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password_re">패스워드 확인</label></th>
<td><input type="password" id="reg_mb_password_re" name="mb_password_re" class="minlength_3" <?=($w=='')?'required="required"':'';?> maxlength="20" title="패스워드 확인"></td>
=======
<th scope="row"><label for="reg_mb_password">패스워드</label></th>
<td><input type="password" id="reg_mb_password" name="mb_password" class="frm_input <?=$required?>" maxlength="20" <?=$required?>></td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password_re">패스워드 확인</label></th>
<td><input type="password" id="reg_mb_password_re" name="mb_password_re" class="frm_input <?=$required?>" maxlength="20" <?=$required?>></td>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
</tr>
</table>
<table>
<table class="frm_tbl">
<caption>개인정보 입력</caption>
<tr>
<th scope="row"><label for="reg_mb_name">이름</label></th>
<td>
<<<<<<< HEAD
<input type="text" id="reg_mb_name" name="mb_name" class="hangul" value="<?=$member['mb_name']?>" <?=$member['mb_name']?"readonly2":"";?><?echo($w==''?'required="required"':'');?> title="이름">
=======
<input id="reg_mb_name" name="mb_name" class="frm_input <?=$required?> <?=$readonly?>" value="<?=$member['mb_name']?>" <?=$required?> <?=$readonly?>>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
<? if ($w=='') { echo "(공백없이 한글만 입력 가능)"; } ?>
</td>
</tr>
@ -54,10 +75,16 @@ var member_skin_path = "<?=$member_skin_path?>";
<th scope="row"><label for="reg_mb_nick">별명</label></th>
<td>
<input type="hidden" name="mb_nick_default" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>">
<<<<<<< HEAD
<input type="text" id="reg_mb_nick" name="mb_nick" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>" maxlength="20" <?echo($w==''?'required="required"':'');?> title="별명">
=======
<input type="text" id="reg_mb_nick" name="mb_nick" class="frm_input required" maxlength="20" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>" required>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
<span id="msg_mb_nick"></span>
<br>공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)
<br>별명을 바꾸시면 앞으로 <?=(int)$config['cf_nick_modify']?>일 이내에는 변경 할 수 없습니다.
<span class="frm_info">
공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br>
별명을 바꾸시면 앞으로 <?=(int)$config['cf_nick_modify']?>일 이내에는 변경 할 수 없습니다.
</span>
</td>
</tr>
<? } ?>
@ -66,11 +93,17 @@ var member_skin_path = "<?=$member_skin_path?>";
<th scope="row"><label for="reg_mb_email">E-mail</label></th>
<td>
<input type="hidden" name="old_email" value="<?=$member['mb_email']?>">
<<<<<<< HEAD
<input type="text" id="reg_mb_email" name="mb_email" class="email" value='<?=isset($member['mb_email'])?$member['mb_email']:'';?>' maxlength="100" required="required" title="E-mail">
=======
<input type="text" id="reg_mb_email" name="mb_email" class="frm_input <?=$config['cf_use_email_certify']?"required":"";?>" maxlength="100" value='<?=isset($member['mb_email'])?$member['mb_email']:'';?>' <?=$config['cf_use_email_certify']?"required":"";?>>
>>>>>>> 8532cb03667c58ee858ff3c7a65c1e4fd1a2b4f9
<span id="msg_mb_email"></span>
<? if ($config['cf_use_email_certify']) { ?>
<? if ($w=='') { echo "<br>e-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
<? if ($w=='u') { echo "<br>e-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
<span class="frm_info">
<? if ($w=='') { echo "e-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
<? if ($w=='u') { echo "e-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
</span>
<? } ?>
</td>
</tr>
@ -78,21 +111,21 @@ var member_skin_path = "<?=$member_skin_path?>";
<? if ($config['cf_use_homepage']) { ?>
<tr>
<th scope="row"><label for="reg_mb_homepage">홈페이지</label></th>
<td><input type="text" id="reg_mb_homepage" name="mb_homepage" maxlength="255" <?=$config['cf_req_homepage']?'required':'';?> value="<?=$member[mb_homepage]?>"></td>
<td><input type="text" id="reg_mb_homepage" name="mb_homepage" class="frm_input <?=$config['cf_req_homepage']?"required":"";?>" maxlength="255" <?=$config['cf_req_homepage']?"required":"";?> value="<?=$member['mb_homepage']?>"></td>
</tr>
<? } ?>
<? if ($config['cf_use_tel']) { ?>
<tr>
<th scope="row"><label for="reg_mb_tel">전화번호</label></th>
<td><input type="text" id="reg_mb_tel" name="mb_tel" maxlength="20" <?=$config['cf_req_tel']?'required':'';?> value="<?=$member[mb_tel]?>"></td>
<td><input type="text" id="reg_mb_tel" name="mb_tel" class="frm_input <?=$config['cf_req_tel']?"required":"";?>" maxlength="20" <?=$config['cf_req_tel']?"required":"";?> value="<?=$member['mb_tel']?>"></td>
</tr>
<? } ?>
<? if ($config['cf_use_hp']) { ?>
<tr>
<th scope="row"><label for="reg_mb_hp">핸드폰번호</label></th>
<td><input type="text" id="reg_mb_hp" name="mb_hp" maxlength="20" <?=$config['cf_req_hp']?'required':'';?> value="<?=$member[mb_hp]?>"></td>
<td><input type="text" id="reg_mb_hp" name="mb_hp" class="frm_input <?=$config['cf_req_hp']?"required":"";?>" maxlength="20" <?=$config['cf_req_hp']?"required":"";?> value="<?=$member[mb_hp]?>"></td>
</tr>
<? } ?>
@ -100,30 +133,30 @@ var member_skin_path = "<?=$member_skin_path?>";
<tr>
<th scope="row">주소</th>
<td>
<input type="text" id="reg_mb_zip1" name="mb_zip1" maxlength="3" readonly <?=$config[cf_req_addr]?'required':'';?> value="<?=$member[mb_zip1]?>" title="우편번호 앞자리">
<input type="text" id="reg_mb_zip1" name="mb_zip1" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" maxlength="3" readonly <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_zip1']?>" title="우편번호 앞자리">
-
<input type="text" id="reg_mb_zip2" name="mb_zip2" maxlength="3" readonly <?=$config[cf_req_addr]?'required':'';?> value="<?=$member[mb_zip2]?>" title="우편번호 뒷자리">
<input type="text" id="reg_mb_zip2" name="mb_zip2" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" maxlength="3" readonly <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_zip2']?>" title="우편번호 뒷자리">
<a href="javascript:;" onclick="win_zip('fregisterform', 'mb_zip1', 'mb_zip2', 'mb_addr1', 'mb_addr2');">주소찾기</a>
<input type="text" id="reg_mb_addr1" name="mb_addr1" readonly <?=$config[cf_req_addr]?'required':'';?> value="<?=$member[mb_addr1]?>" title="행정구역주소">
<input type="text" id="reg_mb_addr2" name="mb_addr2" <?=$config[cf_req_addr]?'required':'';?> value="<?=$member[mb_addr2]?>" title="상세주소">
<input type="text" id="reg_mb_addr1" name="mb_addr1" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" readonly <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_addr1']?>" title="행정구역주소">
<input type="text" id="reg_mb_addr2" name="mb_addr2" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_addr2']?>" title="상세주소">
</td>
</tr>
<? } ?>
</table>
<table>
<table class="frm_tbl">
<caption>기타 개인설정</caption>
<? if ($config['cf_use_signature']) { ?>
<tr>
<th scope="row"><label for="reg_mb_signature">서명</label></th>
<td><textarea id="reg_mb_signature" name="mb_signature" <?=$config[cf_req_signature]?'required':'';?>><?=$member[mb_signature]?></textarea></td>
<td><textarea id="reg_mb_signature" name="mb_signature" class="<?=$config['cf_req_signature']?"required":"";?>" <?=$config['cf_req_signature']?"required":"";?>><?=$member['mb_signature']?></textarea></td>
</tr>
<? } ?>
<? if ($config['cf_use_profile']) { ?>
<tr>
<th scope="row"><label for="reg_mb_profile">자기소개</label></th>
<td><textarea id="reg_mb_profile" name="mb_profile" <?=$config[cf_req_profile]?'required':'';?>><?=$member[mb_profile]?></textarea></td>
<td><textarea id="reg_mb_profile" name="mb_profile" class="<?=$config['cf_req_profile']?"required":"";?>" <?=$config['cf_req_profile']?"required":"";?>><?=$member['mb_profile']?></textarea></td>
</tr>
<? } ?>
@ -131,32 +164,47 @@ var member_skin_path = "<?=$member_skin_path?>";
<tr>
<th scope="row"><label for="reg_mb_icon">회원아이콘</label></th>
<td>
<input type="file" id="reg_mb_icon" name="mb_icon">
이미지 크기는 가로 <?=$config[cf_member_icon_width]?>픽셀, 세로 <?=$config[cf_member_icon_height]?>픽셀 이하로 해주세요.<br>
gif만 가능 / 용량:<?=number_format($config[cf_member_icon_size])?>바이트 이하만 등록됩니다.)
<input type="file" id="reg_mb_icon" name="mb_icon" class="frm_input">
<? if ($w == 'u' && file_exists($mb_icon)) { ?>
<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1"> 삭제
<input type="checkbox" id="del_mb_icon" name="del_mb_icon" value="1">
<label for="del_mb_icon">삭제</label>
<? } ?>
<span class="frm_info">
이미지 크기는 가로 <?=$config['cf_member_icon_width']?>픽셀, 세로 <?=$config['cf_member_icon_height']?>픽셀 이하로 해주세요.<br>
gif만 가능하며 용량 <?=number_format($config['cf_member_icon_size'])?>바이트 이하만 등록됩니다.
</span>
</td>
</tr>
<? } ?>
<tr>
<th scope="row"><label for="reg_mb_mailling">메일링서비스</label></th>
<td><input type="checkbox" id="reg_mb_mailling" name="mb_mailling" value="1" <?=($w=='' || $member['mb_mailling'])?'checked':'';?>>정보 메일을 받겠습니다.</td>
<td>
<input type="checkbox" id="reg_mb_mailling" name="mb_mailling" value="1" <?=($w=='' || $member['mb_mailling'])?'checked':'';?>>
정보 메일을 받겠습니다.
</td>
</tr>
<? if ($config['cf_use_hp']) { ?>
<tr>
<th scope="row"><label for="reg_mb_sms">SMS 수신여부</label></th>
<td><input type="checkbox" id="reg_mb_sms" name="mb_sms" value="1" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>핸드폰 문자메세지를 받겠습니다.</td>
<td>
<input type="checkbox" id="reg_mb_sms" name="mb_sms" value="1" <?=($w=='' || $member['mb_sms'])?'checked':'';?>>
핸드폰 문자메세지를 받겠습니다.
</td>
</tr>
<? } ?>
<? if (isset($member['mb_open_date']) && $member['mb_open_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_open_modify'] * 86400))) { // 정보공개 수정일이 지났다면 수정가능 ?>
<tr>
<th scope="row"><label for="reg_mb_open">정보공개</label></th>
<td>
<input type="hidden" name="mb_open_default" value="<?=$member['mb_open']?>">
<input type="checkbox" id="reg_mb_open" name="mb_open" value="1" <?=($w=='' || $member['mb_open'])?'checked':'';?>>다른분들이 나의 정보를 볼 수 있도록 합니다.<br>
정보공개를 바꾸시면 앞으로 <?=(int)$config['cf_open_modify']?>일 이내에는 변경이 안됩니다.
<input type="checkbox" id="reg_mb_open" name="mb_open" value="1" <?=($w=='' || $member['mb_open'])?'checked':'';?>>
다른분들이 나의 정보를 볼 수 있도록 합니다.
<span class="frm_info">
정보공개를 바꾸시면 앞으로 <?=(int)$config['cf_open_modify']?>일 이내에는 변경이 안됩니다.
</span>
</td>
</tr>
<? } else { ?>
@ -164,8 +212,10 @@ var member_skin_path = "<?=$member_skin_path?>";
<th scope="row">정보공개</th>
<td>
<input type="hidden" name="mb_open" value="<?=$member['mb_open']?>">
정보공개는 수정후 <?=(int)$config['cf_open_modify']?>일 이내, <?=date("Y년 m월 j일", isset($member['mb_open_date']) ? strtotime("{$member['mb_open_date']} 00:00:00")+$config['cf_open_modify']*86400:$g4['server_time']+$config['cf_open_modify']*86400);?> 까지는 변경이 안됩니다.<br>
이렇게 하는 이유는 잦은 정보공개 수정으로 인하여 쪽지를 보낸 후 받지 않는 경우를 막기 위해서 입니다.
<span class="frm_info">
정보공개 수정후 <?=(int)$config['cf_open_modify']?>일 이내, <?=date("Y년 m월 j일", isset($member['mb_open_date']) ? strtotime("{$member['mb_open_date']} 00:00:00")+$config['cf_open_modify']*86400:$g4['server_time']+$config['cf_open_modify']*86400);?> 까지는 변경이 안됩니다.<br>
이렇게 하는 이유는 잦은 정보공개 수정으로 인하여 쪽지를 보낸 후 받지 않는 경우를 막기 위해서 입니다.
</span>
</td>
</tr>
<? } ?>

View File

@ -2,38 +2,40 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>스크랩</h1>
<div id="scrap" class="new_win">
<h1><?=$g4['title']?></h1>
<table>
<caption>스크랩 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">보관일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><?=$list[$i][num]?></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href]?>';"><?=$list[$i][bo_subject]?></a></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href_wr_id]?>';"><?=$list[$i][subject]?></a></td>
<td><?=$list[$i][ms_datetime]?></td>
<td><a href="javascript:del('<?=$list[$i][del_href]?>');">삭제</a></td>
</tr>
<? } ?>
<table>
<caption>스크랩 목록</caption>
<thead>
<tr>
<th scope="col">번호</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">보관일시</th>
<th scope="col">삭제</th>
</tr>
</thead>
<tbody>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td><?=$list[$i][num]?></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href]?>';"><?=$list[$i][bo_subject]?></a></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href_wr_id]?>';"><?=$list[$i][subject]?></a></td>
<td><?=$list[$i][ms_datetime]?></td>
<td><a href="javascript:del('<?=$list[$i][del_href]?>');">삭제</a></td>
</tr>
<? } ?>
<? if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
</tbody>
</table>
<? if ($i == 0) echo "<tr><td colspan=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
</tbody>
</table>
<div class="pg">
<?=get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&amp;page=");?>
</div>
<div class="pg">
<?=get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&amp;page=");?>
</div>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
<div class="btn_window">
<a href="javascript:window.close();">창닫기</a>
</div>
</div>

View File

@ -2,53 +2,62 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<h1>우편번호검색</h1>
<div id="post_num" class="new_win">
<h1><?=$g4['title']?></h1>
<form name="fzip" method="get" autocomplete="off">
<input type="hidden" name="frm_name" value="<?=$frm_name?>">
<input type="hidden" name="frm_zip1" value="<?=$frm_zip1?>">
<input type="hidden" name="frm_zip2" value="<?=$frm_zip2?>">
<input type="hidden" name="frm_addr1" value="<?=$frm_addr1?>">
<input type="hidden" name="frm_addr2" value="<?=$frm_addr2?>">
<form name="fzip" method="get" autocomplete="off">
<input type="hidden" name="frm_name" value="<?=$frm_name?>">
<input type="hidden" name="frm_zip1" value="<?=$frm_zip1?>">
<input type="hidden" name="frm_zip2" value="<?=$frm_zip2?>">
<input type="hidden" name="frm_addr1" value="<?=$frm_addr1?>">
<input type="hidden" name="frm_addr2" value="<?=$frm_addr2?>">
<fieldset>
<legend>우편번호 검색</legend>
<label for="addr1">동/읍/면/리 검색</label>
<input type="text" id="addr1" name="addr1" value="<?=$addr1?>" required minlength=2>
<input type="submit" value="검색">
</fieldset>
<fieldset>
<legend>우편번호 검색</legend>
<label for="addr1">동/읍/면/리 검색</label>
<input type="text" id="addr1" name="addr1" class="fieldset_input" value="<?=$addr1?>" required minlength=2>
<input type="submit" class="fieldset_submit" value="검색">
</fieldset>
<!-- 검색결과 여기서부터 -->
<!-- 검색결과 여기서부터 -->
<script>
document.fzip.addr1.focus();
</script>
<script>
document.fzip.addr1.focus();
</script>
<? if ($search_count > 0) { ?>
<p>총 <?=$search_count?>건 가나다순 정렬</p>
<? if ($search_count > 0) { ?>
<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>
<? 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>
<p>검색결과가 끝났습니다.</p>
<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>
<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>
<? } ?>
</div>