<?
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	{ border:1px solid #BCBCBC; }
#zmb_find_pswd_box table tr	{ background:#FFFFFF; height:40px; }
#zmb_find_pswd_box table td	{ font-weight:bold; text-align:left; font-size:13px; border-bottom:1px solid #E5E5E5; }
#zmb_find_pswd_box table td:first-child	{ padding-left:30px; }
</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="10" align="center">
<tr>
	<td colspan="2"><div style="color:#4D4D4D; margin:10px; font-weight:normal; font-size:12px;">※ 처리 결과는 회원가입 시 입력한 이메일로 전송 됩니다.</div></td>
</tr>
<tr>
	<td width="140">아이디</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>
<p><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>