<?
if (!defined("_GNUBOARD_")) exit;
?>
<link rel="stylesheet" href="<?=$member_skin_path?>/zm.style.css" type="text/css">
<style type="text/css">
#zmb_find_pswd_box	{ text-align:center; }
#zmb_find_pswd_box table td	{ font-weight:bold; text-align:left; font-size:13px; }
#zmb_find_pswd_box table td:first-child	{ border-top:1px solid #E3E3E3; BACKGROUND-COLOR:#F9F9F9; PADDING:20px 0 20px 20px; color:#333333; font-weight:bold; }
#zmb_find_pswd_box table td:last-child	{ border-top:1px solid #E3E3E3; PADDING:10px; line-height:180%; }
#zmb_find_pswd_box table td:last-child	input	{ border:1px solid #B3B3B3; border-radius:3px; padding:8px 10px 10px 10px; font-size:13px; }
#zmb_find_pswd_box table tr:last-child td	{ border-bottom:1px solid #E3E3E3; }
.bttns		{ text-align:center; padding:20px; }
</style>

<div style="text-align:center;"><img src="<?=$member_skin_path?>/img/title_passwd_find.gif"></div>
<form id="fregisterform" name=fregisterform method=post onsubmit="return fregisterform_submit(this);" enctype="multipart/form-data" autocomplete="off">
<input type=hidden name=mode value="findpw">
<div id="zmb_find_pswd_box">
<table width="700" cellspacing="0" cellpadding="0" align="center">
<tr>
	<td colspan="2"><div style="color:#4D4D4D; margin:10px; font-weight:normal; font-size:12px;">※ 처리 결과는 회원가입 시 입력한 이메일로 전송 됩니다.</div></td>
</tr>
<tr>
	<td width="160">아이디</td>
	<td><INPUT class=ed id="mb_id" name="mb_id" size=20 maxlength=20 required itemname="아이디"></td>
</tr>
<tr>
	<td>이름</td>
	<td><INPUT class=ed id="mb_name" name="mb_name" size=20 maxlength=20 required itemname="이름"></td>
</tr>
<tr>
	<td>별명</td>
	<td><INPUT class=ed id="mb_nick" name="mb_nick" size=20 maxlength=20 required itemname="별명"></td>
</tr>
<tr>
	<td>이메일</td>
	<td><INPUT class=ed id="mb_email" name="mb_email" size=20 maxlength=20 required itemname="이메일" onBlur="checkid()"></td>
</tr>
<? if($zm_config[usepasswdq]) : ?>
<tr>
	<td>비밀번호 분실 질문</td>
	<td><span id="passwdq" style="font-weight:normal;">(위의 정보를 입력해 주세요.)</span></td>
</tr>
<tr>
	<td>비밀번호 질문 답변</td>
	<td><INPUT class=ed name="mb_passwda" size=30 maxlength=30 required itemname="비밀번호 분실 질문의 답변" onFocus="checkid()"></td>
</tr>
<? endif; ?>
</table>


<?
if($member[mb_id])	$backurl	= $g4[bbs_path] . "/zm.userinfo.php?pcd=home";
else				$backurl	= $g4[url];
?>
<div class="bttns">
	<input type=button value="이전단계" class="btn_pre" onclick="zm_gourl('<?=$backurl?>');">
	<input type=submit value="다음단계" class="btn_next">
</div>
</div>
</form>


<script language="javascript">
function checkid() {
	$.ajax({
        type	: 'POST',
        url		: './zm.userinfo_update.php',
		data	: { 
			'mode'	: 'findidnpswdq', 
			'mb_id'	: $('#mb_id').val(),
			'mb_name'	: $('#mb_name').val(),
			'mb_nick'	: $('#mb_nick').val(),
			'mb_email'	: $('#mb_email').val()
		},
        success	: function(result) {
            $('#passwdq').html(result);
        }
    });
}
</script>