<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 

$url = '';
if ($g4['https_url']) {
    if (preg_match("/^\./", $urlencode))
        $url = $g4[url];
    else
        $url = $g4[url].$urlencode;
} else {
    $url = $urlencode;
}
?>

<script type="text/javascript" src="<?=$g4[path]?>/js/capslock.js"></script><style type="text/css">

</style>

<form name="flogin" method="post" onsubmit="return flogin_submit(this);" autocomplete="off">
<input type="hidden" name="url" value='<?=$url?>'>


<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center">
<table width="628" border="0" cellspacing="0" cellpadding="0" background="<?=$member_skin_path?>/img/bg.gif" >

<tr>
	<td width=200 align=right>
		<TABLE  cellspacing="0" cellpadding="0" >
		
		<TR>
			<TD height=50 valign=top><img src="<?=$member_skin_path?>/img/login_text.gif" width="151" height="74"></TD>
		</TR>
	</TABLE></td>
    <td width="428" align="center">
        <table width="428" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="428" height="274" align="center" valign="top">
                <table width="350" border="0" cellpadding="0" cellspacing="0">
				<tr><td height=74></td></tr>
                <tr>
                    <td width="250">
                        <table width="250" border="0" cellpadding="0" cellspacing="0">
                        <tr> 
                            <td width="100" height="26">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="<?=$member_skin_path?>/img/etc_login_text_id.gif"></td>
                            <td width="150"><INPUT type=text class=ed maxLength=30 size=30 name=mb_id itemname="아이디" required minlength="2"></td>
                        </tr>
                        <tr>
                            <td width="100" height="26">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="<?=$member_skin_path?>/img/etc_login_text_pass.gif"></td>
                            <td width="150"><INPUT type=password class=ed maxLength=30 size=30 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 align=left>&nbsp;&nbsp;<INPUT type=image src="<?=$member_skin_path?>/img/btn_login.gif" border=0></td>
                </tr>
                <tr>
                    <td height="5" colspan="2"></td>
                </tr>
                <tr>
                    <td height="1" colspan="2"></td>
                </tr>
                <tr>
                    <td height="25" 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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="./register.php"><img  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" border=0 align="absmiddle"></td>
                </tr>
                </table></td>
        </tr>
        </table></td>
   
</tr>
</table></td>
  </tr>
</table>


</form>

<script language='Javascript'>
document.flogin.mb_id.focus();

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>
