<?
if (!defined("_GNUBOARD_")) exit;
?>
<link rel="stylesheet" href="<?=$member_skin_path?>/zm.style.css" type="text/css">
<style type="text/css">
#zmb_id_find_box	{ border:1px solid #828282; background:#FBFBFB; width:600px; height:150px; margin:auto; padding:10px; }
#zmb_id_find_box .sbj	{ font-weight:bold; text-align:right; width:100px; line-height:200%; padding:10px; }
input.ed	{ border:1px solid #B3B3B3; border-radius:3px; padding:8px 10px 10px 10px; font-size:13px; }
.line	{ clear:both; border-bottom:1px solid #FBFBFB; }
.bttns		{ text-align:center; padding:20px; }
</style>

<div style="text-align:center;"><img src="<?=$member_skin_path?>/img/title_id_find.gif"></div>
<form id="fregisterform" name=fregisterform method=post onsubmit="return fregisterform_submit(this);" enctype="multipart/form-data" autocomplete="off">
<div style="text-align:center;">
	<div style="width:600px; margin:auto; text-align:left; padding:10px; color:#616161;">찾고자 하는 회원의 이름과 이메일을 입력해 주세요. 비밀번호 찾기는 <a href="<?=$g4[bbs_path]?>/zm.userinfo.php?pcd=pwfind">여기</a>입니다.</div>
	<div id="zmb_id_find_box">
	<input type=hidden name=mode value="idfind">
	<div style="clear:both;">
		<div style="float:left;" class="sbj">이름</div>
		<div style="float:left; padding:10px;"><INPUT class=ed name="mb_name" size=20 maxlength=20 required itemname="이름"></div>
	</div>
	<div class="line"></div>
	<div style="clear:both;">
		<div style="float:left;" class="sbj">이메일</div>
		<div style="float:left; padding:10px;"><INPUT class=ed name="mb_email" size=50 maxlength=80 required itemname="이메일"></div>
	</div>
	</div>
</div>

<?
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>
</form>

<script type="text/javascript">
function fregisterform_submit(f) 
{
    <?
    if ($g4[https_url])
        echo "f.action = '$g4[https_url]/$g4[bbs]/zm.userinfo.php';";
    else
        echo "f.action = './zm.userinfo.php';";
    ?>

    // 보안인증관련 코드로 반드시 포함되어야 합니다.
    set_cookie("<?=md5($token)?>", "<?=base64_encode($token)?>", 1, "<?=$g4['cookie_domain']?>");

    return true;
}
</script>