<?
if (!defined("_GNUBOARD_")) exit;

include_once($member_skin_path."/zm.userinfo_menu.skin.php");
?>

<style type="text/css">
#zmb_find_pswd_box	{ text-align:center; }
#zmb_find_pswd_box table tr	{ background:#FFFFFF; }
#zmb_find_pswd_box table td	{ color:#4D4D4D; font-weight:bold; }
</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="600" cellspacing="1" cellpadding="6" align="center" bgcolor="#EBEBEB">
<tr>
	<td width="140" bgcolor="#F7F7F7">아이디</td>
	<td><INPUT class=ed id="mb_id" name="mb_id" size=20 maxlength=20 required itemname="아이디"></td>
</tr>
<tr>
	<td bgcolor="#F7F7F7">이름</td>
	<td><INPUT class=ed id="mb_name" name="mb_name" size=20 maxlength=20 required itemname="이름"></td>
</tr>
<tr>
	<td bgcolor="#F7F7F7">별명</td>
	<td><INPUT class=ed id="mb_nick" name="mb_nick" size=20 maxlength=20 required itemname="별명"></td>
</tr>
<tr>
	<td bgcolor="#F7F7F7">이메일</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 bgcolor="#F7F7F7">비밀번호 분실 질문</td>
	<td><span id="passwdq" style="font-weight:normal;">(위의 정보를 입력해 주세요.)</span></td>
</tr>
<tr>
	<td bgcolor="#F7F7F7">비밀번호 질문 답변</td>
	<td><INPUT class=ed name="mb_passwda" size=30 maxlength=30 required itemname="비밀번호 분실 질문의 답변" onFocus="checkid()"></td>
</tr>
<? endif; ?>
</table>
<div style="text-align:center; color:#4D4D4D; margin:10px;">※ 처리 결과는 회원가입 시 입력한 이메일로 전송 됩니다.</div>
<INPUT type=image src="<?=$member_skin_path?>/img/join_ok_btn.gif" border=0 accesskey='s'>
</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>