사용자: neo -> basic

This commit is contained in:
whitedot
2013-02-12 11:44:40 +09:00
parent 59e4ee310c
commit c4c16359c6
309 changed files with 1858 additions and 6055 deletions

View File

@ -1,20 +1,12 @@
<?
include_once("_common.php");
include_once(G4_LIB_PATH.'/register.lib.php');
if (trim($reg_mb_email)=='') {
echo "110"; // 입력이 없습니다.
} else if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $reg_mb_email)) {
echo "120"; // E-mail 주소 형식에 맞지 않음
} else {
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id <> '$reg_mb_id' and mb_email = '$reg_mb_email' ");
if ($row[cnt]) {
echo "130"; // 이미 존재하는 회원아이디
} else {
//if (preg_match("/[\,]?{$reg_mb_email}\,/i", $config[cf_prohibit_id].","))
if (preg_match("/[\,]?{$reg_mb_email}/i", $config[cf_prohibit_id]))
echo "140"; // 예약어로 금지된 회원아이디
else
echo "000"; // 정상
}
}
$mb_email = escape_trim($_POST['reg_mb_email']);
$mb_id = escape_trim($_POST['reg_mb_id']);
if ($msg = empty_mb_email($mb_email)) die($msg);
if ($msg = valid_mb_email($mb_email)) die($msg);
if ($msg = prohibit_mb_email($mb_email)) die($msg);
if ($msg = exist_mb_email($mb_email, $mb_id)) die($msg);
?>

View File

@ -1,22 +1,12 @@
<?
include_once("_common.php");
include_once(G4_LIB_PATH.'/register.lib.php');
// echo "한글"로 출력하지 않는 이유는 Ajax 는 euc_kr 에서 한글을 제대로 인식하지 못하기 때문
// 여기에서 영문으로 echo 하여 Request 된 값을 Javascript 에서 한글로 메세지를 출력함
$mb_id = escape_trim($_POST['reg_mb_id']);
if (preg_match("/[^0-9a-z_]+/i", $reg_mb_id)) {
echo "110"; // 유효하지 않은 회원아이디
} else if (strlen($reg_mb_id) < 3) {
echo "120"; // 3보다 작은 회원아이디
} else {
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_id = '$reg_mb_id' ");
if ($row[cnt]) {
echo "130"; // 이미 존재하는 회원아이디
} else {
if (preg_match("/[\,]?{$reg_mb_id}/i", $config[cf_prohibit_id]))
echo "140"; // 예약어로 금지된 회원아이디
else
echo "000"; // 정상
}
}
if ($msg = empty_mb_id($mb_id)) die($msg);
if ($msg = valid_mb_id($mb_id)) die($msg);
if ($msg = count_mb_id($mb_id)) die($msg);
if ($msg = exist_mb_id($mb_id)) die($msg);
if ($msg = reserve_mb_id($mb_id)) die($msg);
?>

View File

@ -1,40 +1,12 @@
<?
include_once("_common.php");
include_once(G4_LIB_PATH.'/register.lib.php');
if (!function_exists('convert_charset')) {
/*
-----------------------------------------------------------
Charset 을 변환하는 함수
-----------------------------------------------------------
iconv 함수가 있으면 iconv 로 변환하고
없으면 mb_convert_encoding 함수를 사용한다.
둘다 없으면 사용할 수 없다.
*/
function convert_charset($from_charset, $to_charset, $str) {
$mb_nick = escape_trim($_POST['reg_mb_nick']);
$mb_id = escape_trim($_POST['reg_mb_id']);
if( function_exists('iconv') )
return iconv($from_charset, $to_charset, $str);
elseif( function_exists('mb_convert_encoding') )
return mb_convert_encoding($str, $to_charset, $from_charset);
else
die("Not found 'iconv' or 'mbstring' library in server.");
}
}
if (strtolower($g4[charset]) == 'euc-kr')
$reg_mb_nick = convert_charset('UTF-8','CP949',$reg_mb_nick);
// 별명은 한글, 영문, 숫자만 가능
if (!check_string($reg_mb_nick, _G4_HANGUL_ + _G4_ALPHABETIC_ + _G4_NUMERIC_)) {
echo "110"; // 별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.
} else if (strlen($reg_mb_nick) < 4) {
echo "120"; // 4글자 이상 입력
} else {
$row = sql_fetch(" select count(*) as cnt from $g4[member_table] where mb_nick = '$reg_mb_nick' ");
if ($row[cnt]) {
echo "130"; // 이미 존재하는 별명
} else {
echo "000"; // 정상
}
}
if ($msg = empty_mb_nick($mb_nick)) die($msg);
if ($msg = valid_mb_nick($mb_nick)) die($msg);
if ($msg = count_mb_nick($mb_nick)) die($msg);
if ($msg = exist_mb_nick($mb_nick, $mb_id)) die($msg);
?>

View File

@ -1,70 +1,54 @@
var reg_mb_id_check = function() {
var result = "";
$.ajax({
type: 'POST',
url: member_skin_path+'/ajax_mb_id_check.php',
type: "POST",
url: member_skin_url+"/ajax_mb_id_check.php",
data: {
"reg_mb_id": encodeURIComponent($("#reg_mb_id").val())
},
cache: false,
async: false,
success: function(data) {
result = data;
}
});
return result;
}
var reg_mb_nick_check = function() {
var result = "";
$.ajax({
type: "POST",
url: member_skin_url+"/ajax_mb_nick_check.php",
data: {
"reg_mb_nick": ($("#reg_mb_nick").val()),
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val())
},
cache: false,
async: false,
success: function(result) {
var msg = $('#msg_mb_id');
switch(result) {
case '110' : msg.html('영문자, 숫자, _ 만 입력하세요.').css('color', 'red'); break;
case '120' : msg.html('최소 3자이상 입력하세요.').css('color', 'red'); break;
case '130' : msg.html('이미 사용중인 아이디 입니다.').css('color', 'red'); break;
case '140' : msg.html('예약어로 사용할 수 없는 아이디 입니다.').css('color', 'red'); break;
case '000' : msg.html('사용하셔도 좋은 아이디 입니다.').css('color', 'blue'); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('#mb_id_enabled').val(result);
success: function(data) {
result = data;
}
});
return result;
}
var reg_mb_nick_check = function() {
$.ajax({
type: 'POST',
url: member_skin_path+'/ajax_mb_nick_check.php',
data: {
'reg_mb_nick': ($('#reg_mb_nick').val())
},
cache: false,
async: false,
success: function(result) {
var msg = $('#msg_mb_nick');
switch(result) {
case '110' : msg.html('별명은 공백없이 한글, 영문, 숫자만 입력 가능합니다.').css('color', 'red'); break;
case '120' : msg.html('한글 2글자, 영문 4글자 이상 입력 가능합니다.').css('color', 'red'); break;
case '130' : msg.html('이미 존재하는 별명입니다.').css('color', 'red'); break;
case '000' : msg.html('사용하셔도 좋은 별명 입니다.').css('color', 'blue'); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('#mb_nick_enabled').val(result);
}
});
}
var reg_mb_email_check = function() {
var result = "";
$.ajax({
type: 'POST',
url: member_skin_path+'/ajax_mb_email_check.php',
url: member_skin_url+'/ajax_mb_email_check.php',
data: {
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val()),
'reg_mb_email': $('#reg_mb_email').val()
'reg_mb_email': $('#reg_mb_email').val(),
'reg_mb_id': encodeURIComponent($('#reg_mb_id').val())
},
cache: false,
async: false,
success: function(result) {
var msg = $('#msg_mb_email');
switch(result) {
case '110' : msg.html('E-mail 주소를 입력하십시오.').css('color', 'red'); break;
case '120' : msg.html('E-mail 주소가 형식에 맞지 않습니다.').css('color', 'red'); break;
case '130' : msg.html('이미 존재하는 E-mail 주소입니다.').css('color', 'red'); break;
case '000' : msg.html('사용하셔도 좋은 E-mail 주소입니다.').css('color', 'blue'); break;
default : alert( '잘못된 접근입니다.\n\n' + result ); break;
}
$('#mb_email_enabled').val(result);
success: function(data) {
result = data;
}
});
return result;
}

View File

@ -1,133 +1,73 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<div id="formmail" class="new_win">
<h1><?=$name?>님께 메일보내기</h1>
<form name="fformmail" method="post" action="./formmail_send.php" onsubmit="return fformmail_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type="hidden" name="to" value="<?=$email?>">
<input type="hidden" name="attach" value="2">
<input type="hidden" name="token" value="<?=$token?>">
<? if ($is_member) { // 회원이면 ?>
<input type="hidden" name="fnick" value="<?=$member['mb_nick']?>">
<input type="hidden" name="fmail" value="<?=$member['mb_email']?>">
<? } ?>
<table class="frm_tbl">
<caption>메일쓰기</caption>
<tbody>
<? if (!$is_member) { ?>
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB"><table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="75" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="490" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
<th scope="row"><label for="fnick">이름<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="fnick" name="fnick" class="frm_input required" required></td>
</tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="20" colspan="4"></td>
<tr>
<th scope="row"><label for="fmail">E-mail<strong class="sound_only">필수</strong></label></th>
<td><input type="text" id="fmail" name="fmail" class="frm_input required" required></td>
</tr>
<tr>
<td width="30" height="24"></td>
<td width="20" align="center" valign="middle" bgcolor="#EFEFEF"><img src="<?=$member_skin_path?>/img/arrow_01.gif" width="7" height="5"></td>
<td width="520" align="left" valign="middle" bgcolor="#EFEFEF"><b><?=$name?></b>님께 메일보내기</td>
<td width="30" height="24"></td>
<? } ?>
<tr>
<th scope="row"><label for="subject">제목<strong class="sound_only">필수</strong></label></th>
<td><input type=text id="subject" name="subject" class="frm_input required" required></td>
</tr>
</table>
<tr>
<th scope="row">형식</th>
<td>
<input type="radio" id="type_text" name="type" value="0" checked> <label for="type_text">TEXT</label>
<input type="radio" id="type_html" name="type" value="1" > <label for="type_html">HTML</label>
<input type="radio" id="type_both" name="type" value="2" > <label for="type_both">TEXT+HTML</label>
</td>
</tr>
<tr>
<th scope="row"><label for="content">내용<strong class="sound_only">필수</strong></label></th>
<td><textarea id="content" name="content" class="required" required></textarea></td>
</tr>
<tr>
<th scope="row"><label for="file1">첨부 1</label></th>
<td><input type="file" id="file1" name="file1" class="frm_input"></td>
</tr>
<tr>
<th scope="row"><label for="file2">첨부 2</label></th>
<td><input type="file" id="file2" name="file2" class="frm_input"></td>
</tr>
<tr>
<th scope="row">자동등록방지</th>
<td><?=captcha_html();?></td>
</tr>
</tbody>
</table>
<form name="fformmail" method="post" onsubmit="return fformmail_submit(this);" enctype="multipart/form-data" style="margin:0px;">
<input type="hidden" name="to" value="<?=$email?>">
<input type="hidden" name="attach" value="2">
<input type="hidden" name="token" value="<?=$token?>">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="330" align="center" valign="top"><table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"></td>
</tr>
<tr>
<td height="2" bgcolor="#808080"></td>
</tr>
<tr>
<td width="540" height="2" align="center" valign="top" bgcolor="#FFFFFF">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<colgroup width="130">
<colgroup width="10">
<colgroup width="400">
<? if ($is_member) { // 회원이면 ?>
<input type='hidden' name='fnick' value='<?=$member[mb_nick]?>'>
<input type='hidden' name='fmail' value='<?=$member[mb_email]?>'>
<? } else { ?>
<tr>
<td height="27" align="center"><b>이름</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=text style='width:90%;' name='fnick' required minlength=2 itemname='이름'></td>
</tr>
<tr>
<td height="27" align="center"><b>E-mail</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=text style='width:90%;' name='fmail' required email itemname='E-mail'></td>
</tr>
<? } ?>
<div class="btn_win">
<input type="submit" id="btn_submit" class="btn_submit" value="메일발송">
<a href="javascript:window.close();">창닫기</a>
</div>
<tr>
<td height="27" align="center"><b>제목</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=text style='width:90%;' name='subject' required itemname='제목'></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="28" align="center"><b>선택</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type='radio' name='type' value='0' checked> TEXT <input type='radio' name='type' value='1' > HTML <input type='radio' name='type' value='2' > TEXT+HTML</td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="150" align="center"><b>내용</b></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><textarea name="content" style='width:90%;' rows='9' required itemname='내용'></textarea></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="27" align="center">첨부파일 #1</td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=file style='width:90%;' name='file1'></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="27" align="center">첨부파일 #2</td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input type=file style='width:90%;' name='file2'></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td height="27" align="center"><img id='kcaptcha_image' /></td>
<td valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td><input class='ed' type=input size=10 name=wr_key itemname="자동등록방지" required>&nbsp;&nbsp;왼쪽의 글자를 입력하세요.</td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><input id=btn_submit type=image src="<?=$member_skin_path?>/img/btn_mail_send.gif" border=0>&nbsp;&nbsp;<a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</table>
</form>
</form>
</div>
<script type="text/javascript" src="<?="$g4[path]/js/md5.js"?>"></script>
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
<script src="<?="$g4[path]/js/md5.js"?>"></script>
<script src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script>
with (document.fformmail) {
if (typeof fname != "undefined")
fname.focus();
@ -137,9 +77,7 @@ with (document.fformmail) {
function fformmail_submit(f)
{
if (!check_kcaptcha(f.wr_key)) {
return false;
}
<? echo chk_captcha_js(); ?>
if (f.file1.value || f.file2.value) {
// 4.00.11
@ -149,7 +87,6 @@ function fformmail_submit(f)
document.getElementById('btn_submit').disabled = true;
f.action = "./formmail_send.php";
return true;
}
</script>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 783 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 567 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 406 B

View File

@ -1,126 +1,54 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($g4['https_url']) {
$login_url = $_GET['url'];
if ($login_url) {
if (preg_match("/^\.\.\//", $url)) {
$login_url = urlencode($g4[url]."/".preg_replace("/^\.\.\//", "", $login_url));
}
else {
$purl = parse_url($g4[url]);
if ($purl[path]) {
$path = urlencode($purl[path]);
$urlencode = preg_replace("/".$path."/", "", $urlencode);
}
$login_url = $g4[url].$urlencode;
}
}
else {
$login_url = $g4[url];
}
}
else {
$login_url = $urlencode;
}
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
<div id="mb_login">
<h1><?=$g4['title']?></h1>
<form name="flogin" method="post" onsubmit="return flogin_submit(this);" autocomplete="off">
<input type="hidden" name="url" value='<?=$login_url?>'>
<form name="flogin" method="post" action="<?=$login_action_url?>" onsubmit="return flogin_submit(this);">
<input type="hidden" name="url" value='<?=$login_url?>'>
<table width="668" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="26"></td>
<td width="628"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="2"></td>
<td width="628" bgcolor="#8F8F8F"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="48"></td>
<td width="628" align="right" background="<?=$member_skin_path?>/img/login_table_bg_top.gif"><img src="<?=$member_skin_path?>/img/login_img.gif" width="344" height="48"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="223"></td>
<td width="628" align="center" background="<?=$member_skin_path?>/img/login_table_bg.gif">
<table width="460" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="460" height="223" align="center" bgcolor="#FFFFFF">
<table width="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="250">
<table width="250" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td width="90" height="26"><b>아이디</b></td>
<td width="150"><INPUT type=text class=ed maxLength=20 size=15 name=mb_id itemname="아이디" required minlength="2"></td>
</tr>
<tr>
<td><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td height="26"><b>패스워드</b></td>
<td><INPUT type=password class=ed maxLength=20 size=15 name=mb_password id="login_mb_password" itemname="패스워드" required onkeypress="check_capslock(event, 'login_mb_password');"></td>
</tr>
<tr>
<td><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td height="26"><b>자동로그인</b></td>
<td><INPUT onclick="if (this.checked) { if (confirm('자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n\공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?')) { this.checked = true; } else { this.checked = false;} }" type=checkbox name=auto_login>
<b>사용</b></td>
</tr>
</table>
</td>
<td width="100" valign="top"><INPUT type=image width="65" height="52" src="<?=$member_skin_path?>/img/btn_login.gif" border=0></td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td height="1" background="<?=$member_skin_path?>/img/dot_line.gif" colspan="2"></td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td height="26" colspan="2"><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"> 아직 회원이 아니십니까?&nbsp;&nbsp;&nbsp;&nbsp;<a href="./register.php"><img width="72" height="20" src="<?=$member_skin_path?>/img/btn_register.gif" border=0 align="absmiddle"></a></td>
</tr>
<tr>
<!-- <td height="26" colspan="2"><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"> 아이디/패스워드를 잊으셨습니까?&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" onclick="win_password_forget('./password_forget.php');"><img src="<?=$member_skin_path?>/img/btn_password_forget.gif" width="108" height="20" border=0 align="absmiddle"></td> -->
<td height="26" colspan="2"><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"> 아이디/패스워드를 잊으셨습니까?&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" onclick="win_password_lost();"><img src="<?=$member_skin_path?>/img/btn_password_forget.gif" width="108" height="20" border=0 align="absmiddle"></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="1"></td>
<td width="628" bgcolor="#F0F0F0"></td>
<td width="20"></td>
</tr>
<tr>
<td height="20" colspan="3"></td>
</tr>
</table>
<fieldset class="cbg">
<label for="login_id" class="login_id">회원아이디<strong class="sound_only">필수</strong></label>
<input type="text" id="login_id" name="mb_id" class="fs_input" maxLength="20" size="20" required>
<label for="login_pw" class="login_pw">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" id="login_pw" class="fs_input" name="mb_password" maxLength="20" size="20" required>
<input type="submit" class="btn_submit" value="로그인">
<input type="checkbox" id="login_auto_login" name="auto_login">
<label for="login_auto_login">자동로그인</label>
</fieldset>
</form>
<section>
<h2>회원로그인 안내</h2>
<p>
회원아이디 및 패스워드가 기억 안나실 때는 아이디/패스워드 찾기를 이용하십시오.<br>
아직 회원이 아니시라면 회원으로 가입 후 이용해 주십시오.
</p>
<div>
<a href="<?=$g4['bbs_url']?>/password_lost.php" id="login_password_lost" class="btn03" target="win_password_lost">아이디 패스워드 찾기</a>
<a href="./register.php" class="btn01">회원 가입</a>
</div>
</section>
<script type='text/javascript'>
document.flogin.mb_id.focus();
<div class="btn_confirm">
<a href="<?=G4_URL?>/">메인으로 돌아가기</a>
</div>
</form>
</div>
<script>
$(function(){
$("#login_auto_login").click(function(){
if (this.checked) {
this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?");
}
});
});
function flogin_submit(f)
{
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/login_check.php';";
else
echo "f.action = '$g4[bbs_path]/login_check.php';";
?>
return true;
}
</script>

View File

@ -2,85 +2,36 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
<div id="mb_confirm">
<h1><?=$g4['title']?></h1>
<br>
<br>
<p>
<strong>패스워드를 한번 더 입력해주세요.</strong>
회원님의 정보를 안전하게 보호하기 위해 패스워드를 한번 더 확인합니다.
</p>
<form name=fmemberconfirm method=post onsubmit="return fmemberconfirm_submit(this);">
<input type=hidden name=mb_id value='<?=$member[mb_id]?>'>
<input type=hidden name=w value='u'>
<form name="fmemberconfirm" method="post" onsubmit="return fmemberconfirm_submit(this);">
<input type=hidden name="mb_id" value="<?=$member[mb_id]?>">
<input type=hidden name="w" value="u">
<table width="668" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="26"></td>
<td width="628"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="2"></td>
<td width="628" bgcolor="#8F8F8F"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="48"></td>
<td width="628" align="right" background="<?=$member_skin_path?>/img/modify_table_bg_top.gif"><img src="<?=$member_skin_path?>/img/modify_img.gif" width="344" height="48"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="223"></td>
<td width="628" align="center" background="<?=$member_skin_path?>/img/modify_table_bg.gif">
<table width="460" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="460" height="223" align="center" bgcolor="#FFFFFF">
<table width="350" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="250">
<table width="250" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td width="90" height="26"><b>회원아이디</b></td>
<td width="150"><b><?=$member[mb_id]?></b></td>
</tr>
<tr>
<td><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td height="26"><b>패스워드</b></td>
<td><INPUT type=password maxLength=20 size=15 name="mb_password" id="confirm_mb_password" itemname="패스워드" required onkeypress="check_capslock('confirm_mb_password');"></td>
</tr>
</table>
</td>
<td width="100" valign="top"><INPUT name="image" type=image src="<?=$member_skin_path?>/img/ok_button.gif" width="65" height="52" border=0 id="btn_submit"></td>
</tr>
<tr>
<td height="20" colspan="2"></td>
</tr>
<tr>
<td height="1" background="<?=$member_skin_path?>/img/dot_line.gif" colspan="2"></td>
</tr>
</table>
<fieldset>
회원아이디
<span id="mb_confirm_id"><?=$member[mb_id]?></span>
<table>
<tr align="center">
<td height="80" colspan="2">외부로부터 회원님의 정보를 안전하게 보호하기 위해<br>패스워드를 확인하셔야 합니다.</td>
</tr>
</table></td>
</tr>
</table></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="1"></td>
<td width="628" bgcolor="#F0F0F0"></td>
<td width="20"></td>
</tr>
<tr>
<td height="20" colspan="3"></td>
</tr>
</table>
<label for="confirm_mb_password">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" id="confirm_mb_password" name="mb_password" class="fs_input" maxLength="20" size="15" required>
<input type="submit" id="btn_submit" class="fs_submit" value="확인">
</fieldset>
</form>
</form>
<script type='text/javascript'>
<div class="btn_confirm">
<a href="<?=G4_URL?>">메인으로 돌아가기</a>
</div>
</div>
<script>
document.onload = document.fmemberconfirm.mb_password.focus();
function fmemberconfirm_submit(f)

View File

@ -1,84 +1,44 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB">
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="65" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="500" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<div id="memo_list" class="new_win">
<h1><?=$g4['title']?></h1>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="20" colspan="14"></td>
</tr>
<tr>
<td width="30" height="24"></td>
<td width="99" align="center" valign="middle"><a href="./memo.php?kind=recv"><img src="<?=$member_skin_path?>/img/btn_recv_paper_<?=$recv_img?>.gif" width="99" height="24" border="0"></a></td>
<td width="2" align="center" valign="middle">&nbsp;</td>
<td width="99" align="center" valign="middle"><a href="./memo.php?kind=send"><img src="<?=$member_skin_path?>/img/btn_send_paper_<?=$send_img?>.gif" width="99" height="24" border="0"></a></td>
<td width="2" align="center" valign="middle">&nbsp;</td>
<td width="99" align="center" valign="middle"><a href="./memo_form.php"><img src="<?=$member_skin_path?>/img/btn_write_paper_off.gif" width="99" height="24" border="0"></a></td>
<td width="2" align="center" valign="middle">&nbsp;</td>
<td width="60" valign="middle" bgcolor="#EFEFEF">&nbsp;</td>
<td width="4" align="center" valign="middle"><img src="<?=$member_skin_path?>/img/left_img.gif" width="4" height="24"></td>
<td width="18" align="center" valign="middle" background="<?=$member_skin_path?>/img/bar_bg_img.gif"><img src="<?=$member_skin_path?>/img/arrow_01.gif" width="7" height="5"></td>
<td width="148" align="left" valign="middle" background="<?=$member_skin_path?>/img/bar_bg_img.gif">전체 <?=$kind_title?> 쪽지 [ <B><?=$total_count?></B> ]통</td>
<td width="4"><img src="<?=$member_skin_path?>/img/right_img.gif" width="4" height="24"></td>
<td width="3" bgcolor="#EFEFEF"></td>
<td width="30" height="24"></td>
</tr>
</table>
<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 width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="200" align="center" valign="top">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30">* 쪽지 보관일수는 최장 <?=$config[cf_memo_del]?>일 입니다.</td>
</tr>
<tr>
<td height="2" bgcolor="#808080"></td>
</tr>
<tr>
<td width="540" bgcolor="#FFFFFF">
<table width=100% cellpadding=1 cellspacing=1 border=0>
<tr bgcolor=#E1E1E1 align=center>
<td width="30%" height="24"><b><?= ($kind == "recv") ? "보낸사람" : "받는사람"; ?></b></td>
<td width=25%><b>보낸시간</b></td>
<td width=25%><b>읽은시간</b></td>
<td width=20%><b>쪽지삭제</b></td>
</tr>
<table class="basic_tbl">
<caption>
전체 <?=$kind_title?>쪽지 <?=$total_count?>통<br>
</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="<?=$list[$i]['del_href']?>" onclick="del(this.href); return false;">삭제</a></td>
</tr>
<? } ?>
<? if ($i==0) { echo "<tr><td colspan=\"4\" class=\"empty_table\">자료가 없습니다.</td></tr>"; } ?>
</tbody>
</table>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height=25 bgcolor=#F6F6F6 align=center>
<td width="30%"><?=$list[$i][name]?></td>
<td width="25%"><a href="<?=$list[$i][view_href]?>"><?=$list[$i][send_datetime]?></font></td>
<td width="25%"><a href="<?=$list[$i][view_href]?>"><?=$list[$i][read_datetime]?></font></td>
<td width="20%"><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 height=100 align=center colspan=4>자료가 없습니다.</td></tr>"; } ?>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a><br><br></td>
</tr>
</table>
<p class="new_win_desc">
쪽지 보관일수는 최장 <strong><?=$config['cf_memo_del']?></strong>일 입니다.
</p>
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
</div>

View File

@ -1,117 +1,52 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB">
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="75" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="490" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<div id="memo_write" class="new_win">
<h1>쪽지보내기</h1>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="20" colspan="14"></td>
</tr>
<tr>
<td width="30" height="24"></td>
<td width="99" align="center" valign="middle"><a href="./memo.php?kind=recv"><img src="<?=$member_skin_path?>/img/btn_recv_paper_off.gif" width="99" height="24" border="0"></a></td>
<td width="2" align="center" valign="middle">&nbsp;</td>
<td width="99" align="center" valign="middle"><a href="./memo.php?kind=send"><img src="<?=$member_skin_path?>/img/btn_send_paper_off.gif" width="99" height="24" border="0"></a></td>
<td width="2" align="center" valign="middle">&nbsp;</td>
<td width="99" align="center" valign="middle"><a href="./memo_form.php"><img src="<?=$member_skin_path?>/img/btn_write_paper_on.gif" width="99" height="24" border="0"></a></td>
<td width="2" valign="middle">&nbsp;</td>
<td width="60" bgcolor="#EFEFEF">&nbsp;</td>
<td width="4" bgcolor="#EFEFEF"">&nbsp;</td>
<td width="18" bgcolor="#EFEFEF">&nbsp;</td>
<td width="148" bgcolor="#EFEFEF">&nbsp;</td>
<td width="4" bgcolor="#EFEFEF">&nbsp;</td>
<td width="3" bgcolor="#EFEFEF"></td>
<td width="30" height="24"></td>
</tr>
</table>
<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 width="600" border="0" cellspacing="0" cellpadding="0">
<form name=fmemoform method=post onsubmit="return fmemoform_submit(this);" autocomplete="off">
<tr>
<td height="300" align="center" valign="top">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"></td>
</tr>
<tr>
<td height="2" bgcolor="#808080"></td>
</tr>
<tr>
<td width="540" height="2" align="center" valign="top" bgcolor="#FFFFFF">
<table width=100% cellpadding=1 cellspacing=1 border=0>
<tr bgcolor=#E1E1E1 align=center>
<td width="30%" height="24" rowspan="2"><b>받는 회원아이디</b></td>
<td width="70%" align="center"><input type=text name="me_recv_mb_id" required itemname="받는 회원아이디" value="<?=$me_recv_mb_id?>" style="width:95%;"></td>
</tr>
<tr bgcolor=#E1E1E1 align=center>
<td>※ 여러 회원에게 보낼때는 컴마(,)로 구분하세요.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="180" align="center" valign="middle" bgcolor="#F6F6F6">
<textarea name=me_memo rows=10 style='width:95%;' required itemname='내용'><?=$content?></textarea></td>
</tr>
<tr>
<td>
<table width=100% cellpadding=1 cellspacing=1 border=0>
<tr align=center>
<td width="30%" height="24" rowspan="2"><img id='kcaptcha_image' /></td>
<td width="70%" align="left">
<input type=input size=10 name=wr_key itemname="자동등록방지" required>&nbsp;&nbsp;왼쪽의 글자를 입력하세요.
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom">
<input id=btn_submit type=image src="<?=$member_skin_path?>/img/btn_paper_send.gif" border=0>&nbsp;&nbsp;
<a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</form>
</table>
<form name="fmemoform" method="post" action="./memo_form_update.php" onsubmit="return fmemoform_submit(this);" autocomplete="off">
<table class="frm_tbl">
<caption>쪽지쓰기</caption>
<tbody>
<tr>
<th scope="row"><label for="me_recv_mb_id">받는 회원아이디<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" id="me_recv_mb_id" name="me_recv_mb_id" class="frm_input required" size="47" required value="<?=$me_recv_mb_id?>">
<span class="frm_info">여러 회원에게 보낼때는 컴마(,)로 구분하세요.</span>
</td>
</tr>
<tr>
<th scope="row"><label for="me_memo">내용</label></th>
<td><textarea id="me_memo" name="me_memo" required><?=$content?></textarea></td>
</tr>
<tr>
<th scope="row">자동등록방지</th>
<td>
<?=captcha_html();?>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript" src="<?=$g4[path]?>/js/md5.js"></script>
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
with (document.fmemoform) {
if (me_recv_mb_id.value == "")
me_recv_mb_id.focus();
else
me_memo.focus();
}
<div class="btn_win">
<input type="submit" id="btn_submit" class="btn_submit" value="보내기">
<a href="javascript:;" onclick="window.close();">창닫기</a>
</div>
</form>
</div>
<script>
function fmemoform_submit(f)
{
if (!check_kcaptcha(f.wr_key)) {
return false;
}
<? echo chk_captcha_js(); ?>
document.getElementById("btn_submit").disabled = true;
f.action = "./memo_form_update.php";
return true;
}
</script>

View File

@ -1,77 +1,48 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$nick = get_sideview($mb['mb_id'], $mb['mb_nick'], $mb['mb_email'], $mb['mb_homepage']);
if($kind == "recv") {
$kind_str = "보낸";
$kind_date = "받은";
}
else {
$kind_str = "받는";
$kind_date = "보낸";
}
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB">
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="500" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="65" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="600" height="20" colspan="4"></td>
</tr>
<tr>
<td width="30" height="24"></td>
<td width="530" align="right" bgcolor="#EFEFEF">
<?
//$nick = cut_str($mb[mb_nick], $config[cf_cut_name]);
$nick = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email], $mb[mb_homepage]);
if ($kind == "recv")
echo "<b>$nick</b> 님께서 {$memo[me_send_datetime]}에 보내온 쪽지의 내용입니다.";
if ($kind == "send")
echo "<b>$nick</b> 님께 {$memo[me_send_datetime]}에 보낸 쪽지의 내용입니다.";
?>
</td>
<td width="10" align="center" valign="middle" bgcolor="#EFEFEF">&nbsp;</td>
<td width="30" height="24"></td>
</tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="200" align="center" valign="top">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40" align=right>
<?
echo "<a href=\"$prev_link\"><img src='$member_skin_path/img/btn_memo_prev.gif' border='0'></a>&nbsp;&nbsp;";
echo "<a href=\"$next_link\"><img src='$member_skin_path/img/btn_memo_next.gif' border='0'></a>";
?>
</td>
</tr>
<tr>
<td height="2" bgcolor="#808080"></td>
</tr>
<tr>
<td width="540" height="150" align="center" valign="middle" bgcolor="#F6F6F6"><table width="500" height="110" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style='padding-top:10px; padding-bottom:10px;' class=lh><?=conv_content($memo[me_memo], 0)?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom">
<? if ($kind == "recv") echo "<a href='./memo_form.php?me_recv_mb_id=$mb[mb_id]&me_id=$memo[me_id]'><img src='$g4[bbs_img_path]/btn_reply.gif' border='0'></a>&nbsp;&nbsp;"; ?>
<a href="./memo.php?kind=<?=$kind?>"><img src="<?=$member_skin_path?>/img/btn_list_view.gif" width="62" height="20" border="0"></a>&nbsp;&nbsp;
<a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</table>
<br>
<div id="memo_view" class="new_win">
<h1><?=$g4['title']?></h1>
<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>
<section>
<h2>쪽지 내용</h2>
<ul id="memo_view_ul">
<li class="memo_view_li">
<span class="memo_view_subj"><?=$kind_str?>사람</span>
<strong><?=$nick?></strong>
</li>
<li class="memo_view_li">
<span class="memo_view_subj"><?=$kind_date?>시간</span>
<strong><?=$memo['me_send_datetime']?></strong>
</li>
</ul>
<p>
<?=conv_content($memo['me_memo'], 0)?>
</p>
</section>
<div class="btn_win">
<? if($prev_link) { ?>
<a href="<?=$prev_link?>">이전쪽지</a>
<? } ?>
<? if($next_link) { ?>
<a href="<?=$next_link?>">다음쪽지</a>
<? } ?>
<? if ($kind == 'recv') { ?><a href="./memo_form.php?me_recv_mb_id=<?=$mb['mb_id']?>&amp;me_id=<?=$memo['me_id']?>" class="btn01">답장</a><? } ?>
<a href="./memo.php?kind=<?=$kind?>">목록보기</a>
<a href="javascript:;" onclick="window.close();">창닫기</a>
</div>
</div>

View File

@ -1,76 +1,36 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script>
<div id="pw_confirm">
<h1><?=$g4['title']?></h1>
<p>
<strong>비밀글 기능으로 보호된 글입니다.</strong>
작성자와 관리자만 열람하실 수 있습니다. 본인이라면 패스워드를 입력하세요.
</p>
<form name="fboardpassword" method=post onsubmit="return fboardpassword_submit(this);">
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=wr_id value="<?=$wr_id?>">
<input type=hidden name=comment_id value="<?=$comment_id?>">
<input type=hidden name=sfl value="<?=$sfl?>">
<input type=hidden name=stx value="<?=$stx?>">
<input type=hidden name=page value="<?=$page?>">
<form name="fboardpassword" method="post" action="<? echo $action; ?>">
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="comment_id" value="<?=$comment_id?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
<table width="668" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" height="26"></td>
<td width="628"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="2"></td>
<td width="628" bgcolor="#8F8F8F"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="48"></td>
<td width="628" align="right" background="<?=$member_skin_path?>/img/secrecy_table_bg_top.gif"><img src="<?=$member_skin_path?>/img/secrecy_img.gif" width="344" height="48"></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="223"></td>
<td width="628" align="center" background="<?=$member_skin_path?>/img/secrecy_table_bg.gif">
<table width="460" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="460" height="223" align="center" bgcolor="#FFFFFF">
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30" align="center"><img src="<?=$member_skin_path?>/img/icon.gif" width="3" height="3"></td>
<td width="70" align="left"><b>패스워드</b></td>
<td width="150"><INPUT type=password maxLength=20 size=15 name="wr_password" id="password_wr_password" itemname="패스워드" required onkeypress="check_capslock(event, 'password_wr_password');"></td>
<td width="100" height="100" valign="middle"><INPUT name="image" type=image src="<?=$member_skin_path?>/img/btn_confirm.gif" width="65" height="52" border=0></td>
</tr>
<tr align="center">
<td height="1" colspan="4" background="<?=$member_skin_path?>/img/dot_line.gif"></td>
</tr>
<tr align="center">
<td height="60" colspan="4">이 게시물의 패스워드를 입력하십시오.</td>
</tr>
</table></td>
</tr>
</table></td>
<td width="20"></td>
</tr>
<tr>
<td width="20" height="1"></td>
<td width="628" bgcolor="#F0F0F0"></td>
<td width="20"></td>
</tr>
<tr>
<td height="20" colspan="3"></td>
</tr>
</table>
<fieldset>
<label for="password_wr_password">패스워드<strong class="sound_only">필수</strong></label>
<input type="password" id="password_wr_password" name="wr_password" class="fs_input required" maxLength="20" size="15" required>
<input type="submit" class="fs_submit" value="확인">
</fieldset>
</form>
</form>
<div class="btn_confirm">
<a href="<?=$_SERVER['HTTP_REFERER']?>">돌아가기</a>
</div>
<script type='text/javascript'>
</div>
<script>
document.fboardpassword.wr_password.focus();
function fboardpassword_submit(f)
{
f.action = "<?=$action?>";
return true;
}
</script>

View File

@ -2,72 +2,30 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="50" align="center" valign="middle" bgcolor="#EBEBEB"><table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="175" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="390" align="right" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<div id="find_info" class="new_win">
<h1>아이디/패스워드 찾기</h1>
<form name="fpasswordlost" method="post" onsubmit="return fpasswordlost_submit(this);" autocomplete="off">
<table width="540" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="30"></td>
</tr>
<tr>
<td height="170" align="center" valign="middle" background="<?=$member_skin_path?>/img/gray_bg_img.gif" bgcolor="#FFFFFF">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="130" height="14"><b>이메일주소</b></td>
<td width="" height="14">
<input type="text" name="mb_email" class="ed" required email itemname="이메일주소" size="45" />
<br />회원가입시 등록하신 이메일주소 입력
</td>
</tr>
<tr>
<td height="20" colspan="2"></td>
</tr>
<tr>
<td><img id='kcaptcha_image' /></td>
<td>
<input type=text name='wr_key' class="ed" size=10 required itemname='자동등록방지'>
<br />왼쪽의 숫자를 입력하세요.
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><input type="image" src="<?=$member_skin_path?>/img/btn_next_01.gif">&nbsp;&nbsp;<a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</table>
</form>
<form name="fpasswordlost" method="post" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" autocomplete="off">
<fieldset id="find_info_fs">
<p>
회원가입 시 등록하신 이메일 주소를 입력해 주세요.<br>
해당 이메일로 아이디와 패스워드 정보를 보내드립니다.
</p>
<label for="mb_email">E-mail 주소<strong class="sound_only">필수</strong></label>
<input type="text" id="mb_email" name="mb_email" class="fs_input email" required size="30">
</fieldset>
<?=captcha_html(); ?>
<div class="btn_win">
<input type="submit" class="btn_submit" value="확인">
<a href="javascript:window.close();" class="btn_cancel">창닫기</a>
</div>
</form>
</div>
<script type="text/javascript" src="<?="$g4[path]/js/md5.js"?>"></script>
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
<script>
function fpasswordlost_submit(f)
{
if (!check_kcaptcha(f.wr_key)) {
return false;
}
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/password_lost2.php';";
else
echo "f.action = './password_lost2.php';";
?>
<? echo chk_captcha_js(); ?>
return true;
}

View File

@ -1,106 +1,43 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB">
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="75" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b>자기소개</b></font></td>
<td width="490" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<div id="profile" class="new_win">
<h1><?=$mb_nick?>님의 프로필</h1>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" colspan="3"></td>
</tr>
<tr>
<td width="174" height="149" align="center" valign="middle" background="<?=$member_skin_path?>/img/self_intro_bg.gif">
<table width="170" height="130" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><?=$mb_nick?></td>
</tr>
</table></td>
<td width="15" height="149"></td>
<td width="351" height="149" align="center" valign="middle" background="<?=$member_skin_path?>/img/self_intro_bg_1.gif">
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30" height="25" align="center"><img src="<?=$member_skin_path?>/img/arrow_01.gif" width="7" height="5"></td>
<td width="270">회원권한 : <?=$mb[mb_level]?></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="30" height="25" align="center"><img src="<?=$member_skin_path?>/img/arrow_01.gif" width="7" height="5"></td>
<td width="270">포인트 : <?=number_format($mb[mb_point])?> 점</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#FFFFFF"></td>
</tr>
<table class="frm_tbl">
<tbody>
<tr>
<th scope="row">회원권한</th>
<td><?=$mb['mb_level']?></td>
</tr>
<tr>
<th scope="row">포인트</th>
<td><?=number_format($mb['mb_point'])?></td>
</tr>
<? if ($mb_homepage) { ?>
<tr>
<th scope="row">홈페이지</th>
<td><a href="<?=$mb_homepage?>" target="_blank"><?=$mb_homepage?></a></td>
</tr>
<? } ?>
<tr>
<th scope="row">회원가입일</th>
<td><?=($member['mb_level'] >= $mb['mb_level']) ? substr($mb['mb_datetime'],0,10) ." (".number_format($mb_reg_after)." 일)" : "알 수 없음"; ?></td>
</tr>
<tr>
<th scope="row">최종접속일</th>
<td><?=($member['mb_level'] >= $mb['mb_level']) ? $mb['mb_today_login'] : "알 수 없음";?></td>
</tr>
</tbody>
</table>
<? if ($mb_homepage) { ?>
<tr>
<td width="30" height="25" align="center"><img src="<?=$member_skin_path?>/img/arrow_01.gif" width="7" height="5"></td>
<td width="270">홈페이지 : <a href="<?=$mb_homepage?>" target="<?=$config[cf_link_target]?>"><?=$mb_homepage?></a></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#FFFFFF"></td>
</tr>
<? } ?>
<section>
<h2>인사말</h2>
<p><?=$mb_profile?></p>
</section>
<tr>
<td width="30" height="25" align="center"><img src="<?=$member_skin_path?>/img/arrow_01.gif" width="7" height="5"></td>
<td width="270">회원가입일 : <?=($member[mb_level] >= $mb[mb_level]) ? substr($mb[mb_datetime],0,10) ." (".$mb_reg_after." 일)" : "알 수 없음"; ?></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="30" height="25" align="center"><img src="<?=$member_skin_path?>/img/arrow_01.gif" width="7" height="5"></td>
<td width="270">최종접속일 : <?=($member[mb_level] >= $mb[mb_level]) ? $mb[mb_today_login] : "알 수 없음";?></td>
</tr>
</table></td>
</tr>
<tr>
<td width="540" height="15" colspan="3" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="15" colspan="3" bgcolor="#FFFFFF"><img src="<?=$member_skin_path?>/img/top_line.gif" width="540" height="15"></td>
</tr>
<tr align="center" valign="top">
<td colspan="3" background="<?=$member_skin_path?>/img/mid_line.gif" bgcolor="#FFFFFF"><table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" valign="top"><img src="<?=$member_skin_path?>/img/self_intro_icon_01.gif" width="81" height="24"></td>
</tr>
<tr>
<td height="100" valign="top"><?=$mb_profile?></td>
</tr>
</table></td>
</tr>
<tr>
<td height="15" colspan="3" bgcolor="#FFFFFF"><img src="<?=$member_skin_path?>/img/down_line.gif" width="540" height="15"></td>
</tr>
<tr>
<td height="50" colspan="3" bgcolor="#FFFFFF"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</table>
<div class="btn_win">
<a href="javascript:window.close();">창닫기</a>
</div>
</div>

View File

@ -2,101 +2,48 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<form name="fregister" method="POST" onsubmit="return fregister_submit(this);" autocomplete="off">
<form id="fregister" name="fregister" method="POST" action="<?=$register_action_url?>" onsubmit="return fregister_submit(this);" autocomplete="off">
<table width=600 cellspacing=0 cellspacing=0 align=center><tr><td align=center>
<section id="fregister_term">
<h2>회원가입약관</h2>
<textarea readonly><?=get_text($config['cf_stipulation'])?></textarea>
<fieldset class="fregister_agree">
<label for="agree11">회원가입약관의 내용에 동의합니다.</label>
<input type="checkbox" id="agree11" name="agree" value="1">
</fieldset>
</section>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align=center><img src="<?=$member_skin_path?>/img/join_title.gif" width="624" height="72"></td>
</tr>
</table>
<section id="fregister_private">
<h2>개인정보수집이용안내</h2>
<textarea readonly><?=get_text($config['cf_privacy'])?></textarea>
<fieldset class="fregister_agree">
<label for="agree21">개인정보수집이용안내의 내용에 동의합니다.</label>
<input type="checkbox" id="agree21" name="agree2" value="1">
</fieldset>
</section>
<? if ($config[cf_use_jumin]) { // 주민등록번호를 사용한다면 ?>
<!-- 2012년 8월 부터 주민등록번호 수집과 이용이 제한됨 (사실상 수집 금지)
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=25></td>
</tr>
<tr>
<td bgcolor="#cccccc">
<table cellspacing=1 cellpadding=0 width=100% border=0>
<tr bgcolor="#ffffff">
<td width="140" height=30>&nbsp;&nbsp;&nbsp;<b>이름</b></td>
<td width="">&nbsp;&nbsp;&nbsp;<input name=mb_name itemname="이름" required minlength="2" nospace hangul class=ed></td>
</tr>
<tr bgcolor="#ffffff">
<td height=30>&nbsp;&nbsp;&nbsp;<b>주민등록번호</b></td>
<td>&nbsp;&nbsp;&nbsp;<input name=mb_jumin itemname="주민등록번호" required jumin minlength="13" maxlength=13 class=ed><font style="font-family:돋움; font-size:9pt; color:#66a2c8">&nbsp;&nbsp;※ 숫자 13자리 중간에 - 없이 입력하세요.</font></td>
</tr>
</table></td>
</tr>
</table> -->
<? } ?>
<br>
<table width="100%" cellpadding="4" cellspacing="0" bgcolor=#EEEEEE>
<tr>
<td height=40>&nbsp; <b>회원가입약관</b></td>
</tr>
<tr>
<td align="center" valign="top"><textarea style="width: 98%" rows=10 readonly class=ed><?=get_text($config[cf_stipulation])?></textarea></td>
</tr>
<tr>
<td height=40>
&nbsp; <input type=radio value=1 name=agree id=agree11>&nbsp;<label for=agree11>동의합니다.</label>
&nbsp; <input type=radio value=0 name=agree id=agree10>&nbsp;<label for=agree10>동의하지 않습니다.</label>
</td>
</tr>
</table>
<br>
<table width="100%" cellpadding="4" cellspacing="0" bgcolor=#EEEEEE>
<tr>
<td height=40>&nbsp; <b>개인정보취급방침</b></td>
</tr>
<tr>
<td align="center" valign="top"><textarea style="width: 98%" rows=10 readonly class=ed><?=get_text($config[cf_privacy])?></textarea></td>
</tr>
<tr>
<td height=40>
&nbsp; <input type=radio value=1 name=agree2 id=agree21>&nbsp;<label for=agree21>동의합니다.</label>
&nbsp; <input type=radio value=0 name=agree2 id=agree20>&nbsp;<label for=agree20>동의하지 않습니다.</label>
</td>
</tr>
</table>
</td></tr></table>
<br>
<div align=center>
<input type=image width="66" height="20" src="<?=$member_skin_path?>/img/join_ok_btn.gif" border=0>
<div class="btn_confirm">
<p>회원가입약관 및 개인정보수집이용안내의 내용에 동의하셔야 회원가입 하실 수 있습니다.</p>
<input type="submit" class="btn_submit" value="회원가입">
</div>
</form>
<script type="text/javascript">
<script>
function fregister_submit(f)
{
var agree1 = document.getElementsByName("agree");
if (!agree1[0].checked) {
if (!f.agree.checked) {
alert("회원가입약관의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
agree1[0].focus();
f.agree.focus();
return false;
}
var agree2 = document.getElementsByName("agree2");
if (!agree2[0].checked) {
alert("개인정보취급방침의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
agree2[0].focus();
if (!f.agree2.checked) {
alert("개인정보수집이용안내의 내용에 동의하셔야 회원가입 하실 수 있습니다.");
f.agree2.focus();
return false;
}
f.action = "./register_form.php";
return true;
}
if (typeof(document.fregister.mb_name) != "undefined")
document.fregister.mb_name.focus();
</script>

View File

@ -1,409 +1,232 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
//==============================================================================
// jquery date picker
//------------------------------------------------------------------------------
// 참고) ie 에서는 년, 월 select box 를 두번씩 클릭해야 하는 오류가 있습니다.
//------------------------------------------------------------------------------
// jquery-ui.css 의 테마를 변경해서 사용할 수 있습니다.
// base, black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks, humanity, le-frog, mint-choc, overcast, pepper-grinder, redmond, smoothness, south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader
// 아래 css 는 date picker 의 화면을 맞추는 코드입니다.
?>
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/base/jquery-ui.css" rel="stylesheet" />
<style type="text/css">
<!--
.ui-datepicker { font:12px dotum; }
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year { width: 70px;}
.ui-datepicker-trigger { margin:0 0 -5px 2px; }
-->
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
<script type="text/javascript">
/* Korean initialisation for the jQuery calendar extension. */
/* Written by DaeKwon Kang (ncrash.dk@gmail.com). */
jQuery(function($){
$.datepicker.regional['ko'] = {
closeText: '닫기',
prevText: '이전달',
nextText: '다음달',
currentText: '오늘',
monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)',
'7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'],
monthNamesShort: ['1월','2월','3월','4월','5월','6월',
'7월','8월','9월','10월','11월','12월'],
dayNames: ['일','월','화','수','목','금','토'],
dayNamesShort: ['일','월','화','수','목','금','토'],
dayNamesMin: ['일','월','화','수','목','금','토'],
weekHeader: 'Wk',
dateFormat: 'yymmdd',
firstDay: 0,
isRTL: false,
showMonthAfterYear: true,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['ko']);
$('#mb_birth').datepicker({
showOn: 'button',
buttonImage: '<?=$g4[path]?>/img/calendar.gif',
buttonImageOnly: true,
buttonText: "달력",
changeMonth: true,
changeYear: true,
showButtonPanel: true,
yearRange: 'c-99:c+99',
maxDate: '+0d'
});
});
</script>
<?
//==============================================================================
?>
<style type="text/css">
<!--
.m_title { BACKGROUND-COLOR: #F7F7F7; PADDING-LEFT: 15px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
.m_padding { PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.m_padding2 { PADDING-LEFT: 0px; PADDING-top: 5px; PADDING-BOTTOM: 0px; }
.m_padding3 { PADDING-LEFT: 0px; PADDING-top: 5px; PADDING-BOTTOM: 5px; }
-->
</style>
<script>
var member_skin_path = "<?=$member_skin_path?>";
var member_skin_url = "<?=$member_skin_url?>";
</script>
<script type="text/javascript" src="<?=$member_skin_path?>/ajax_register_form.jquery.js"></script>
<script src="<?=$member_skin_url?>/ajax_register_form.jquery.js"></script>
<form id="fregisterform" name=fregisterform method=post onsubmit="return fregisterform_submit(this);" enctype="multipart/form-data" autocomplete="off">
<input type=hidden name=w value="<?=$w?>">
<input type=hidden name=url value="<?=$urlencode?>">
<input type=hidden name=mb_jumin value="<?=$jumin?>">
<input type=hidden name=mb_id_enabled value="" id="mb_id_enabled">
<input type=hidden name=mb_nick_enabled value="" id="mb_nick_enabled">
<input type=hidden name=mb_email_enabled value="" id="mb_email_enabled">
<!-- <input type=hidden name=token value="<?=$token?>"> -->
<form id="fregisterform" name="fregisterform" method="post" action="<?=$register_action_url?>" onsubmit="return fregisterform_submit(this);" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="url" value="<?=$urlencode?>">
<input type="hidden" name="agree" value="<?=$agree?>">
<input type="hidden" name="agree2" value="<?=$agree2?>">
<? 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))) { // 별명수정일이 지나지 않았다면 ?>
<input type="hidden" name="mb_nick_default" value="<?=$member['mb_nick']?>">
<input type="hidden" name="mb_nick" value="<?=$member['mb_nick']?>">
<? } ?>
<table width=100% cellspacing=0 align=center>
<table class="frm_tbl">
<caption>사이트 이용정보 입력</caption>
<tr>
<td><img src="<?=$member_skin_path?>/img/join_form_title.gif" width="624" height="72">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC">
<TABLE cellSpacing=1 cellPadding=0 width=100%>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>아이디</TD>
<TD class=m_padding>
<input class=ed maxlength=20 size=20 id='reg_mb_id' name="mb_id" value="<?=$member[mb_id]?>" <? if ($w=='u') { echo "readonly style='background-color:#dddddd;'"; } ?>
<? if ($w=='') { echo "onblur='reg_mb_id_check();'"; } ?>>
<span id='msg_mb_id'></span>
<table height=25 cellspacing=0 cellpadding=0 border=0>
<tr><td><font color="#66a2c8">※ 영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</font></td></tr>
</table>
</TD>
</TR>
<TR bgcolor="#FFFFFF">
<TD class=m_title>패스워드</TD>
<TD class=m_padding><INPUT class=ed type=password name="mb_password" size=20 maxlength=20 <?=($w=="")?"required":"";?> itemname="패스워드"></TD>
</TR>
<TR bgcolor="#FFFFFF">
<TD class=m_title>패스워드 확인</TD>
<TD class=m_padding><INPUT class=ed type=password name="mb_password_re" size=20 maxlength=20 <?=($w=="")?"required":"";?> itemname="패스워드 확인"></TD>
</TR>
<!-- <TR bgcolor="#FFFFFF">
<TD class=m_title>패스워드 분실시 질문</TD>
<TD class=m_padding>
<select name=mb_password_q_select onchange="this.form.mb_password_q.value=this.value;">
<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="자신의 보물 제1호는?">자신의 보물 제1호는?</option>
<option value="받았던 선물 중 기억에 남는 독특한 선물은?">받았던 선물 중 기억에 남는 독특한 선물은?</option>
<option value="자신이 두번째로 존경하는 인물은?">자신이 두번째로 존경하는 인물은?</option>
<option value="아버지의 성함은?">아버지의 성함은?</option>
<option value="어머니의 성함은?">어머니의 성함은?</option>
</select>
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class=m_padding2><input class=ed type=text name="mb_password_q" size=55 required itemname="패스워드 분실시 질문" value="<?=$member[mb_password_q]?>"></td>
</tr>
</table>
</TD>
</TR>
<TR bgcolor="#FFFFFF">
<TD class=m_title>패스워드 분실시 답변</TD>
<TD class=m_padding><input class=ed type=text name='mb_password_a' size=38 required itemname='패스워드 분실시 답변' value='<?=$member[mb_password_a]?>'></TD>
</TR> -->
</TABLE>
<th scope="row"><label for="reg_mb_id">아이디<strong class="sound_only">필수</strong></label></th>
<td>
<input type="text" id="reg_mb_id" name="mb_id" class="frm_input minlength_3 <?=$required?> <?=$readonly?>" value="<?=$member['mb_id']?>" maxlength="20" <?=$required?> <?=$readonly?>>
<span id="msg_mb_id"></span>
<span class="frm_info">영문자, 숫자, _ 만 입력 가능. 최소 3자이상 입력하세요.</span>
</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="#ffffff"></td>
<th scope="row"><label for="reg_mb_password">패스워드<strong class="sound_only">필수</strong></label></th>
<td><input type="password" id="reg_mb_password" name="mb_password" class="frm_input minlength_3 <?=$required?>" maxlength="20" <?=$required?>></td>
</tr>
<tr>
<th scope="row"><label for="reg_mb_password_re">패스워드 확인<strong class="sound_only">필수</strong></label></th>
<td><input type="password" id="reg_mb_password_re" name="mb_password_re" class="frm_input minlength_3 <?=$required?>" maxlength="20" <?=$required?>></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
<table class="frm_tbl">
<caption>개인정보 입력</caption>
<tr>
<td bgcolor="#CCCCCC">
<TABLE cellSpacing=1 cellPadding=0 width=100%>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>이름</TD>
<TD class=m_padding>
<input name=mb_name itemname="이름" value="<?=$member[mb_name]?>" <?=$member[mb_name]?"readonly class=ed2":"class=ed";?>>
<? if ($w=='') { echo "(공백없이 한글만 입력 가능)"; } ?>
</TD>
</TR>
<? if ($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]?>'>
<TR bgcolor="#FFFFFF">
<TD class=m_title>별명</TD>
<TD class='m_padding lh'>
<input class=ed type=text id='reg_mb_nick' name='mb_nick' maxlength=20 value='<?=$member[mb_nick]?>'
onblur="reg_mb_nick_check();">
<span id='msg_mb_nick'></span>
<br>공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)
<br>별명을 바꾸시면 앞으로 <?=(int)$config[cf_nick_modify]?>일 이내에는 변경 할 수 없습니다.
</TD>
</TR>
<? } else { ?>
<input type=hidden name="mb_nick_default" value='<?=$member[mb_nick]?>'>
<input type=hidden name="mb_nick" value="<?=$member[mb_nick]?>">
<? } ?>
<input type=hidden name='old_email' value='<?=$member[mb_email]?>'>
<TR bgcolor="#FFFFFF">
<TD class=m_title>E-mail</TD>
<TD class='m_padding lh'>
<input class=ed type=text id='reg_mb_email' name='mb_email' size=38 maxlength=100 value='<?=$member[mb_email]?>'
onblur="reg_mb_email_check()">
<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 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
<? } ?>
</TD>
</TR>
<? if ($w=="") { ?>
<TR bgcolor="#FFFFFF">
<TD class=m_title>생년월일</TD>
<TD class=m_padding><input class=ed type=text id=mb_birth name='mb_birth' size=8 maxlength=8 minlength=8 required numeric itemname='생년월일' value='<?=$member[mb_birth]?>' readonly title='옆의 달력 아이콘을 클릭하여 날짜를 입력하세요.'></TD>
</TR>
<? } ?>
<? if ($member[mb_sex]) { ?>
<input type=hidden name=mb_sex value='<?=$member[mb_sex]?>'>
<? } else { ?>
<TR bgcolor="#FFFFFF">
<TD class=m_title>성별</TD>
<TD class=m_padding>
<select id=mb_sex name=mb_sex required itemname='성별'>
<option value=''>선택하세요
<option value='F'>여자
<option value='M'>남자
</select>
<script type="text/javascript">//document.getElementById('mb_sex').value='<?=$member[mb_sex]?>';</script>
</td>
</TR>
<? } ?>
<? if ($config[cf_use_homepage]) { ?>
<TR bgcolor="#FFFFFF">
<TD class=m_title>홈페이지</TD>
<TD class=m_padding><input class=ed type=text name='mb_homepage' size=38 maxlength=255 <?=$config[cf_req_homepage]?'required':'';?> itemname='홈페이지' value='<?=$member[mb_homepage]?>'></TD>
</TR>
<? } ?>
<? if ($config[cf_use_tel]) { ?>
<TR bgcolor="#FFFFFF">
<TD class=m_title>전화번호</TD>
<TD class=m_padding><input class=ed type=text name='mb_tel' size=21 maxlength=20 <?=$config[cf_req_tel]?'required':'';?> itemname='전화번호' value='<?=$member[mb_tel]?>'></TD>
</TR>
<? } ?>
<? if ($config[cf_use_hp]) { ?>
<TR bgcolor="#FFFFFF">
<TD class=m_title>핸드폰번호</TD>
<TD class=m_padding><input class=ed type=text name='mb_hp' size=21 maxlength=20 <?=$config[cf_req_hp]?'required':'';?> itemname='핸드폰번호' value='<?=$member[mb_hp]?>'></TD>
</TR>
<? } ?>
<? if ($config[cf_use_addr]) { ?>
<TR bgcolor="#FFFFFF">
<TD class=m_title>주소</TD>
<TD valign="middle" class=m_padding>
<table width="330" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"><input class=ed type=text name='mb_zip1' size=4 maxlength=3 readonly <?=$config[cf_req_addr]?'required':'';?> itemname='우편번호 앞자리' value='<?=$member[mb_zip1]?>'>
-
<input class=ed type=text name='mb_zip2' size=4 maxlength=3 readonly <?=$config[cf_req_addr]?'required':'';?> itemname='우편번호 뒷자리' value='<?=$member[mb_zip2]?>'>
&nbsp;<a href="javascript:;" onclick="win_zip('fregisterform', 'mb_zip1', 'mb_zip2', 'mb_addr1', 'mb_addr2');"><img width="91" height="20" src="<?=$member_skin_path?>/img/post_search_btn.gif" border=0 align=absmiddle></a></td>
</tr>
<tr>
<td height="25" colspan="2"><input class=ed type=text name='mb_addr1' size=60 readonly <?=$config[cf_req_addr]?'required':'';?> itemname='주소' value='<?=$member[mb_addr1]?>'></td>
</tr>
<tr>
<td height="25" colspan="2"><input class=ed type=text name='mb_addr2' size=60 <?=$config[cf_req_addr]?'required':'';?> itemname='상세주소' value='<?=$member[mb_addr2]?>'></td>
</tr>
</table>
</TD>
</TR>
<? } ?>
</TABLE>
<th scope="row"><label for="reg_mb_name">이름<strong class="sound_only">필수</strong></label></th>
<td>
<input id="reg_mb_name" name="mb_name" class="frm_input hangul nospace <?=$required?> <?=$readonly?>" value="<?=$member['mb_name']?>" size="10" <?=$required?> <?=$readonly?>>
<? if ($w=='') { echo "<span class=\"frm_info\">공백없이 한글만 입력하세요.</span>"; } ?>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? if ($req_nick) { ?>
<tr>
<td height="1" bgcolor="#ffffff"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC">
<TABLE cellSpacing=1 cellPadding=0 width=100%>
<? if ($config[cf_use_signature]) { ?>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>서명</TD>
<TD class=m_padding><textarea name=mb_signature class=tx rows=3 style='width:95%;' <?=$config[cf_req_signature]?'required':'';?> itemname='서명'><?=$member[mb_signature]?></textarea></TD>
</TR>
<? } ?>
<? if ($config[cf_use_profile]) { ?>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>자기소개</TD>
<TD class=m_padding><textarea name=mb_profile class=tx rows=3 style='width:95%;' <?=$config[cf_req_profile]?'required':'';?> itemname='자기 소개'><?=$member[mb_profile]?></textarea></TD>
</TR>
<? } ?>
<? if ($member[mb_level] >= $config[cf_icon_level]) { ?>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>회원아이콘</TD>
<TD class=m_padding><INPUT class=ed type=file name='mb_icon' size=30>
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class=m_padding3>* 이미지 크기는 가로(<?=$config[cf_member_icon_width]?>픽셀)x세로(<?=$config[cf_member_icon_height]?>픽셀) 이하로 해주세요.<br>&nbsp;&nbsp;(gif만 가능 / 용량:<?=number_format($config[cf_member_icon_size])?>바이트 이하만 등록됩니다.)
<? if ($w == "u" && file_exists($mb_icon)) { ?>
<br><img src='<?=$mb_icon?>' align=absmiddle> <input type=checkbox name='del_mb_icon' value='1'>삭제
<? } ?>
</td>
</tr>
</table></TD>
</TR>
<? } ?>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>메일링서비스</TD>
<TD class=m_padding><input type=checkbox name=mb_mailling value='1' <?=($w=='' || $member[mb_mailling])?'checked':'';?>>정보 메일을 받겠습니다.</TD>
</TR>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>SMS 수신여부</TD>
<TD class=m_padding><input type=checkbox name=mb_sms value='1' <?=($w=='' || $member[mb_sms])?'checked':'';?>>핸드폰 문자메세지를 받겠습니다.</TD>
</TR>
<? if ($member[mb_open_date] <= date("Y-m-d", $g4[server_time] - ($config[cf_open_modify] * 86400))) { // 정보공개 수정일이 지났다면 수정가능 ?>
<input type=hidden name=mb_open_default value='<?=$member[mb_open]?>'>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>정보공개</TD>
<TD class=m_padding><input type=checkbox name=mb_open value='1' <?=($w=='' || $member[mb_open])?'checked':'';?>>다른분들이 나의 정보를 볼 수 있도록 합니다.
<br>&nbsp;&nbsp;&nbsp;&nbsp; 정보공개를 바꾸시면 앞으로 <?=(int)$config[cf_open_modify]?>일 이내에는 변경이 안됩니다.</td>
</TR>
<? } else { ?>
<input type=hidden name="mb_open" value="<?=$member[mb_open]?>">
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>정보공개</TD>
<TD class=m_padding>
정보공개는 수정후 <?=(int)$config[cf_open_modify]?>일 이내, <?=date("Y년 m월 j일", strtotime("$member[mb_open_date] 00:00:00") + ($config[cf_open_modify] * 86400))?> 까지는 변경이 안됩니다.<br>
이렇게 하는 이유는 잦은 정보공개 수정으로 인하여 쪽지를 보낸 후 받지 않는 경우를 막기 위해서 입니다.
</td>
</tr>
<? } ?>
<? if ($w == "" && $config[cf_use_recommend]) { ?>
<TR bgcolor="#FFFFFF">
<TD width="160" class=m_title>추천인아이디</TD>
<TD class=m_padding><input type=text name=mb_recommend class=ed></TD>
</TR>
<? } ?>
</TABLE>
<th scope="row"><label for="reg_mb_nick">별명<strong class="sound_only">필수</strong></label></th>
<td>
<input type="hidden" name="mb_nick_default" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>">
<input type="text" id="reg_mb_nick" name="mb_nick" class="frm_input required nospace" maxlength="20" size="10" value="<?=isset($member['mb_nick'])?$member['mb_nick']:'';?>" required>
<span id="msg_mb_nick"></span>
<span class="frm_info">
공백없이 한글,영문,숫자만 입력 가능 (한글2자, 영문4자 이상)<br>
별명을 바꾸시면 앞으로 <?=(int)$config['cf_nick_modify']?>일 이내에는 변경 할 수 없습니다.
</span>
</td>
</tr>
</table>
<? } ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="#ffffff"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC">
<TABLE cellSpacing=1 cellPadding=0 width=100%>
<TR bgcolor="#FFFFFF">
<td width="160" height="28" class=m_title>
<img id='kcaptcha_image' />
</td>
<td class=m_padding>
<input type=input class=ed size=10 name=wr_key itemname="자동등록방지" required>&nbsp;&nbsp;왼쪽의 글자를 입력하세요.
</td>
</tr>
</table>
<th scope="row"><label for="reg_mb_email">E-mail<? if ($config['cf_use_email_certify']) {?><strong class="sound_only">필수</strong><?}?></label></th>
<td>
<input type="hidden" name="old_email" value="<?=$member['mb_email']?>">
<input type="text" id="reg_mb_email" name="mb_email" class="frm_input email <?=$config['cf_use_email_certify']?"required":"";?>" maxlength="100" size="50" value='<?=isset($member['mb_email'])?$member['mb_email']:'';?>' <?=$config['cf_use_email_certify']?"required":"";?>>
<? if ($config['cf_use_email_certify']) { ?>
<span class="frm_info">
<? if ($w=='') { echo "E-mail 로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다."; } ?>
<? if ($w=='u') { echo "E-mail 주소를 변경하시면 다시 인증하셔야 합니다."; } ?>
</span>
<? } ?>
</td>
</tr>
<? if ($config['cf_use_homepage']) { ?>
<tr>
<th scope="row"><label for="reg_mb_homepage">홈페이지<? if ($config['cf_req_homepage']){?><strong class="sound_only">필수</strong><?}?></label></th>
<td><input type="text" id="reg_mb_homepage" name="mb_homepage" class="frm_input <?=$config['cf_req_homepage']?"required":"";?>" maxlength="255" size="50" <?=$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">전화번호<? if ($config['cf_req_tel']) {?><strong class="sound_only">필수</strong><?}?></label></th>
<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">핸드폰번호<? if ($config['cf_req_hp']) {?><strong class="sound_only">필수</strong><?}?></label></th>
<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>
<? } ?>
<? if ($config['cf_use_addr']) {
$zip_href = G4_BBS_URL.'/zip.php?frm_name=fregisterform&amp;frm_zip1=mb_zip1&amp;frm_zip2=mb_zip2&amp;frm_addr1=mb_addr1&amp;frm_addr2=mb_addr2';
?>
<tr>
<th scope="row">
주소
<? if ($config['cf_req_addr']) {?><strong class="sound_only">필수</strong><? } ?>
</th>
<td>
<input type="text" id="reg_mb_zip1" name="mb_zip1" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" size="2" maxlength="3" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_zip1']?>" title="우편번호 앞자리">
-
<input type="text" id="reg_mb_zip2" name="mb_zip2" class="frm_input <?=$config['cf_req_addr']?"required":"";?>" size="2" maxlength="3" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_zip2']?>" title="우편번호 뒷자리">
<a href="<? echo $zip_href; ?>" id="reg_zip_find" class="btn_frmline win_zip_find" target="_blank">주소찾기</a>
<input type="text" id="reg_mb_addr1" name="mb_addr1" class="frm_input frm_address <?=$config['cf_req_addr']?"required":"";?>" size="50" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_addr1']?>" title="행정구역주소">
<input type="text" id="reg_mb_addr2" name="mb_addr2" class="frm_input frm_address <?=$config['cf_req_addr']?"required":"";?>" size="50" <?=$config['cf_req_addr']?"required":"";?> value="<?=$member['mb_addr2']?>" title="상세주소">
</td>
</tr>
<? } ?>
</table>
<p align=center>
<INPUT type=image width="66" height="20" src="<?=$member_skin_path?>/img/join_ok_btn.gif" border=0 accesskey='s'>
<table class="frm_tbl">
<caption>기타 개인설정</caption>
<? if ($config['cf_use_signature']) { ?>
<tr>
<th scope="row"><label for="reg_mb_signature">서명<? if ($config['cf_req_signature']){?><strong class="sound_only">필수</strong><?}?></label></th>
<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>
<? } ?>
</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" class="<?=$config['cf_req_profile']?"required":"";?>" <?=$config['cf_req_profile']?"required":"";?>><?=$member['mb_profile']?></textarea></td>
</tr>
<? } ?>
<? if ($member['mb_level'] >= $config['cf_icon_level']) { ?>
<tr>
<th scope="row"><label for="reg_mb_icon">회원아이콘</label></th>
<td>
<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">
<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>
</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>
</tr>
<? } ?>
<? if (isset($member['mb_open_date']) && $member['mb_open_date'] <= date("Y-m-d", $g4['server_time'] - ($config['cf_open_modify'] * 86400)) || empty($member['mb_open_date'])) { // 정보공개 수정일이 지났다면 수정가능 ?>
<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':'';?>>
다른분들이 나의 정보를 볼 수 있도록 합니다.
<span class="frm_info">
정보공개를 바꾸시면 앞으로 <?=(int)$config['cf_open_modify']?>일 이내에는 변경이 안됩니다.
</span>
</td>
</tr>
<? } else { ?>
<tr>
<th scope="row">정보공개</th>
<td>
<input type="hidden" name="mb_open" value="<?=$member['mb_open']?>">
<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>
<? } ?>
<? if ($w == "" && $config['cf_use_recommend']) { ?>
<tr>
<th scope="row"><label for="reg_mb_recommend">추천인아이디</label></th>
<td><input type="text" id="reg_mb_recommend" name="mb_recommend" class="frm_input"></td>
</tr>
<? } ?>
<tr>
<th scope="row">자동등록방지</th>
<td><?=$captcha_html?></td>
</tr>
</table>
<div class="btn_confirm">
<input type="submit" class="btn_submit" value="<?=$w==''?'회원가입':'정보수정';?>" accesskey="s">
<a href="<?=$g4['path']?>/" class="btn_cancel">취소</a>
</div>
</form>
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
<script type="text/javascript">
<script>
$(function() {
// 폼의 첫번째 입력박스에 포커스 주기
$("#fregisterform :input[type=text]:visible:enabled:first").focus();
$("#reg_zip_find").css("display", "inline-block");
$("#reg_mb_zip1, #reg_mb_zip2, #reg_mb_addr1").attr("readonly", true);
});
// submit 최종 폼체크
function fregisterform_submit(f)
function fregisterform_submit(f)
{
// 회원아이디 검사
if (f.w.value == "") {
reg_mb_id_check();
if (document.getElementById('mb_id_enabled').value!='000') {
alert('회원아이디를 입력하지 않았거나 입력에 오류가 있습니다.');
document.getElementById('reg_mb_id').select();
var msg = reg_mb_id_check();
if (msg) {
alert(msg);
f.mb_id.select();
return false;
}
}
@ -430,20 +253,6 @@ function fregisterform_submit(f)
}
}
/*
if (f.mb_password_q.value.length < 1) {
alert('패스워드 분실시 질문을 선택하거나 입력하십시오.');
f.mb_password_q.focus();
return false;
}
if (f.mb_password_a.value.length < 1) {
alert('패스워드 분실시 답변을 입력하십시오.');
f.mb_password_a.focus();
return false;
}
*/
// 이름 검사
if (f.w.value=='') {
if (f.mb_name.value.length < 1) {
@ -452,69 +261,30 @@ function fregisterform_submit(f)
return false;
}
var pattern = /([^가-힣\x20])/i;
var pattern = /([^가-힣\x20])/i;
if (pattern.test(f.mb_name.value)) {
alert('이름은 한글로 입력하십시오.');
f.mb_name.focus();
f.mb_name.select();
return false;
}
}
// 별명 검사
if ((f.w.value == "") ||
(f.w.value == "u" && f.mb_nick.defaultValue != f.mb_nick.value)) {
reg_mb_nick_check();
if (document.getElementById('mb_nick_enabled').value!='000') {
alert('별명을 입력하지 않았거나 입력에 오류가 있습니다.');
document.getElementById('reg_mb_nick').select();
if ((f.w.value == "") || (f.w.value == "u" && f.mb_nick.defaultValue != f.mb_nick.value)) {
var msg = reg_mb_nick_check();
if (msg) {
alert(msg);
f.reg_mb_nick.select();
return false;
}
}
// E-mail 검사
if ((f.w.value == "") ||
(f.w.value == "u" && f.mb_email.defaultValue != f.mb_email.value)) {
reg_mb_email_check();
if (document.getElementById('mb_email_enabled').value!='000') {
alert('E-mail을 입력하지 않았거나 입력에 오류가 있습니다.');
document.getElementById('reg_mb_email').select();
return false;
}
// 사용할 수 없는 E-mail 도메인
var domain = prohibit_email_check(f.mb_email.value);
if (domain) {
alert("'"+domain+"'은(는) 사용하실 수 없는 메일입니다.");
document.getElementById('reg_mb_email').focus();
return false;
}
}
if (typeof(f.mb_birth) != 'undefined') {
if (f.mb_birth.value.length < 1) {
alert('달력 버튼을 클릭하여 생일을 입력하여 주십시오.');
//f.mb_birth.focus();
return false;
}
var todays = <?=date("Ymd", $g4['server_time']);?>;
// 오늘날짜에서 생일을 빼고 거기서 140000 을 뺀다.
// 결과가 0 이상의 양수이면 만 14세가 지난것임
var n = todays - parseInt(f.mb_birth.value) - 140000;
if (n < 0) {
alert("만 14세가 지나지 않은 어린이는 정보통신망 이용촉진 및 정보보호 등에 관한 법률\n\n제 31조 1항의 규정에 의하여 법정대리인의 동의를 얻어야 하므로\n\n법정대리인의 이름과 연락처를 '자기소개'란에 별도로 입력하시기 바랍니다.");
return false;
}
}
if (typeof(f.mb_sex) != 'undefined') {
if (f.mb_sex.value == '') {
alert('성별을 선택하여 주십시오.');
f.mb_sex.focus();
if ((f.w.value == "") || (f.w.value == "u" && f.mb_email.defaultValue != f.mb_email.value)) {
var msg = reg_mb_email_check();
if (msg) {
alert(msg);
f.reg_mb_email.select();
return false;
}
}
@ -537,37 +307,8 @@ function fregisterform_submit(f)
}
}
if (!check_kcaptcha(f.wr_key)) {
return false;
}
<?
if ($g4[https_url])
echo "f.action = '$g4[https_url]/$g4[bbs]/register_form_update.php';";
else
echo "f.action = './register_form_update.php';";
?>
// 보안인증관련 코드로 반드시 포함되어야 합니다.
//set_cookie("<?=md5($token)?>", "<?=base64_encode($token)?>", 1, "<?=$g4['cookie_domain']?>");
<? echo chk_captcha_js(); ?>
return true;
}
// 금지 메일 도메인 검사
function prohibit_email_check(email)
{
email = email.toLowerCase();
var prohibit_email = "<?=trim(strtolower(preg_replace("/(\r\n|\r|\n)/", ",", $config[cf_prohibit_email])));?>";
var s = prohibit_email.split(",");
var tmp = email.split("@");
var domain = tmp[tmp.length - 1]; // 메일 도메인만 얻는다
for (i=0; i<s.length; i++) {
if (s[i] == domain)
return domain;
}
return "";
}
</script>

View File

@ -1,53 +1,43 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="668" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" align="center"><img src="<?=$member_skin_path?>/img/join_result_title.gif" width="624" height="72"></td>
</tr>
<tr>
<td width="59" height="50"></td>
<td width="550" valign="middle"><img src="<?=$member_skin_path?>/img/s_title_1.gif" width="550" height="20"></td>
<td width="59"></td>
</tr>
<tr>
<td width="59" height="3"></td>
<td width="550" bgcolor="#CFCFCF"></td>
<td width="59"></td>
</tr>
<tr>
<td width="59" height="300"></td>
<td width="550" align="center" valign="top" background="<?=$member_skin_path?>/img/back_bg_1.gif" bgcolor="#F8F5F8"><table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="40"></td>
</tr>
<tr>
<td><b><?=$mb[mb_name]?></b>님의 회원가입을 진심으로 축하합니다.
<p>회원님의 아이디는 <b><?=$mb[mb_id]?></b> 입니다.
<p>회원님의 패스워드는 아무도 알 수 없는 암호화 코드로 저장되므로 안심하셔도 좋습니다.
<p>아이디, 패스워드 분실시에는 회원가입시 입력하신 패스워드 분실시 질문, 답변을 이용하여 찾을 수 있습니다.
<? if ($config[cf_use_email_certify]) { ?>
<p>E-mail(<?=$mb[mb_email]?>)로 발송된 내용을 확인한 후 인증하셔야 회원가입이 완료됩니다.
<? } ?>
<div id="reg_result">
<p>회원의 탈퇴는 언제든지 가능하며 탈퇴 후 일정기간이 지난 후, 회원님의 모든 소중한 정보는 삭제하고 있습니다.<p>감사합니다.</td>
</tr>
</table></td>
<td width="59"></td>
</tr>
<tr>
<td width="59" height="1" rowspan="2"></td>
<td width="550" height="20"></td>
<td width="59" rowspan="2"></td>
</tr>
<tr>
<td height="1" bgcolor="#F1F1F1"></td>
</tr>
<tr align="center" valign="bottom">
<td width="59" height="3"></td>
<td width="550" height="60" align="right"><a href="<?=$g4[url]?>/"><img src="<?=$member_skin_path?>/img/btn_go_home.gif" width="119" height="29" border=0></a></td>
<td width="59"></td>
</tr>
</table>
<div id="reg_result_logo"><img src="<?=$member_skin_url?>/img/reg_result_logo.jpg" alt=""></div>
<p>
<strong><?=$mb['mb_name']?></strong>님의 회원가입을 진심으로 축하합니다.<br>
</p>
<? if ($config['cf_use_email_certify']) { ?>
<p>
회원 가입 시 입력하신 이메일 주소로 인증메일이 발송되었습니다.<br>
발송된 인증메일을 확인하신 후 인증처리를 하시면 사이트를 원활하게 이용하실 수 있습니다.
</p>
<div id="reg_result_email">
<span>아이디</span>
<strong><?=$mb['mb_id']?></strong><br>
<span>이메일 주소</span>
<strong><?=$mb['mb_email']?></strong>
</div>
<p>
이메일 주소를 잘못 입력하셨다면, 사이트 관리자에게 문의해주시기 바랍니다.
</p>
<? } ?>
<p>
회원님의 패스워드는 아무도 알 수 없는 암호화 코드로 저장되므로 안심하셔도 좋습니다.<br>
아이디, 패스워드 분실시에는 회원가입시 입력하신 패스워드 분실시 질문, 답변을 이용하여 찾을 수 있습니다.
</p>
<p>
회원 탈퇴는 언제든지 가능하며 일정기간이 지난 후, 회원님의 정보는 삭제하고 있습니다.<br>
감사합니다.
</p>
</div>
<div class="btn_confirm">
<a href="<?=G4_URL?>/" class="btn01">메인으로</a>
</div>

View File

@ -1,67 +1,37 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB">
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="75" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b>스크랩</b></font></td>
<td width="490" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<div id="scrap" class="new_win">
<h1><?=$g4['title']?></h1>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="200" align="center" valign="top">
<table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"></td>
</tr>
<tr>
<td height="2" bgcolor="#808080"></td>
</tr>
<tr>
<td width="540" bgcolor="#FFFFFF">
<table width=100% cellpadding=1 cellspacing=1 border=0>
<tr bgcolor=#E1E1E1 align=center>
<td width="10%" height="24"><b>번호</b></td>
<td width="12%"><b>게시판</b></td>
<td width="38%"><b>제목</b></td>
<td width="25%"><b>보관일시</b></td>
<td width="10%"><b>삭제</b></td>
</tr>
<table class="basic_tbl">
<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 class="td_num"><?=$list[$i]['num']?></td>
<td class="td_board"><a href="<?=$list[$i]['opener_href']?>" target="_blank" onclick="opener.document.location.href='<?=$list[$i]['opener_href']?>'; return false;"><?=$list[$i]['bo_subject']?></a></td>
<td><a href="<?=$list[$i]['opener_href_wr_id']?>" target="_blank" onclick="opener.document.location.href='<?=$list[$i]['opener_href_wr_id']?>'; return false;"><?=$list[$i]['subject']?></a></td>
<td class="td_datetime"><?=$list[$i]['ms_datetime']?></td>
<td class="td_mng"><a href="<? echo $list[$i]['del_href']; ?>" onclick="del(this.href); return false;">삭제</a></td>
</tr>
<? } ?>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr height=25 bgcolor="#F6F6F6" align="center">
<td height="24"><?=$list[$i][num]?></td>
<td><a href="javascript:;" onclick="opener.document.location.href='<?=$list[$i][opener_href]?>';"><?=$list[$i][bo_subject]?></a></td>
<td align="left" style='word-break:break-all;'>&nbsp;<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]?>');"><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=\"5\" class=\"empty_table\">자료가 없습니다.</td></tr>"; ?>
</tbody>
</table>
<? if ($i == 0) echo "<tr><td colspan=5 align=center height=100>자료가 없습니다.</td></tr>"; ?>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" align="center"><?=get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&page=");?></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
</tr>
</table>
<br>
<?=get_paging($config['cf_write_pages'], $page, $total_page, "?$qstr&amp;page=");?>
<div class="btn_win"><a href="javascript:;" onclick="window.close();">창닫기</a></div>
</div>

View File

@ -1,62 +1,34 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB">
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
<td width="75" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b>스크랩하기</b></font></td>
<td width="490" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table>
<div id="scrap_do" class="new_win">
<h1>스크랩하기</h1>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<form name=f_scrap_popin method=post action="./scrap_popin_update.php">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<tr>
<td height="200" align="center" valign="top"><table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20"></td>
</tr>
<tr>
<td height="2" bgcolor="#808080"></td>
</tr>
<tr>
<td width="540" height="2" align="center" valign="top" bgcolor="#FFFFFF"><table width="540" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80" height="27" align="center"><b>제목</b></td>
<td width="10" valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td width="450" style='word-break:break-all;'><?=get_text(cut_str($write[wr_subject], 255))?></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
<tr>
<td width="80" height="200" align="center"><b>코멘트</b></td>
<td width="10" valign="bottom"><img src="<?=$member_skin_path?>/img/l.gif" width="1" height="8"></td>
<td width="450"><textarea name="wr_content" rows="10" style="width:90%;"></textarea></td>
</tr>
<tr>
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
</tr>
<tr>
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
</tr>
<tr>
<td height="40" align="center" valign="bottom"><INPUT type=image width="40" height="20" src="<?=$member_skin_path?>/img/ok_btn.gif" border=0></td>
</tr>
</form>
</table>
<form name="f_scrap_popin" method="post" action="./scrap_popin_update.php">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<table class="frm_tbl">
<caption>제목 확인 및 댓글 쓰기</caption>
<tbody>
<tr>
<th scope="row">제목</th>
<td><?=get_text(cut_str($write['wr_subject'], 255))?></td>
</tr>
<tr>
<th scope="row"><label for="wr_content">댓글</label></th>
<td><textarea id="wr_content" name="wr_content"></textarea></td>
</tr>
</tbody>
</table>
<p>
스크랩을 하시면서 감사 혹은 격려의 댓글을 남기실 수 있습니다.
</p>
<div class="btn_win">
<input type="submit" class="btn_submit" value="스크랩">
</div>
</form>
</div>

View File

@ -2,90 +2,61 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<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?>'>
<tr>
<td colspan="2">
<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" bgcolor="#EBEBEB">
<table width="98%" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" align="center" bgcolor="#FFFFFF" ><img src="<?=$g4[bbs_img_path]?>/icon_01.gif" width="5" height="5"></td>
<td width="35%" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
<td width="60%" bgcolor="#FFFFFF" ></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="70" colspan="2" valign="bottom"><img src="<?=$g4[bbs_img_path]?>/zip_img_01.gif" width="273" height="40"></td>
</tr>
<tr>
<td height="20" colspan="2"></td>
</tr>
<tr>
<td width=130><img src="<?=$g4[bbs_img_path]?>/zip_img_02.gif" width="125" height="14"></td>
<td><input type=text name=addr1 value='<?=$addr1?>' required minlength=2 itemname='동(읍/면/리)' size=35> <input type=image src='<?=$g4[bbs_img_path]?>/btn_post_search.gif' border=0 align=absmiddle></td>
</tr>
<tr>
<td height="20" colspan="2"></td>
</tr>
</table>
<!-- 검색결과 여기서부터 -->
<div id="post_code" class="new_win">
<h1><?=$g4['title']?></h1>
<script type='text/javascript'>
document.fzip.addr1.focus();
</script>
<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>
<label for="addr1">동/읍/면/리 검색</label>
<input type="text" id="addr1" name="addr1" class="fs_input" value="<?=$addr1?>" required minlength=2>
<input type="submit" class="fs_submit" value="검색">
</fieldset>
<!-- 검색결과 여기서부터 -->
<script>
document.fzip.addr1.focus();
</script>
<? if ($search_count > 0) { ?>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" colspan="2" background="<?=$g4[bbs_img_path]?>/post_dot_bg.gif"></td>
</tr>
<tr>
<td height="50" colspan="2"><img src="<?=$g4[bbs_img_path]?>/zip_img_03.gif" width="99" height="13"></td>
</tr>
<tr>
<td width="10%"></td>
<td width="90%">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td height=23 valign=top>총 <?=$search_count?>건 가나다순</td>
</tr>
<?
for ($i=0; $i<count($list); $i++)
{
echo "<tr><td height=19><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></td></tr>\n";
}
?>
<tr>
<td height=23>[끝]</td>
</tr>
</table>
</tr>
</table>
<? 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]?>');"><span class="post_code"><?=$list[$i][zip1]?>-<?=$list[$i][zip2]?></span> <?=$list[$i][addr]?> <?=$list[$i][bunji]?></a></li>
<? } ?>
</ul>
</dd>
</dl>
<script type="text/javascript">
function find_zip(zip1, zip2, addr1)
{
var of = opener.document.<?=$frm_name?>;
<p>검색결과가 끝났습니다.</p>
of.<?=$frm_zip1?>.value = zip1;
of.<?=$frm_zip2?>.value = zip2;
<div class="btn_win">
<a href="javascript:window.close();">창닫기</a>
</div>
of.<?=$frm_addr1?>.value = addr1;
<script>
function find_zip(zip1, zip2, addr1)
{
var of = opener.document.<?=$frm_name?>;
of.<?=$frm_addr2?>.focus();
window.close();
return false;
}
</script>
<? } ?>
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>