<script language="JavaScript">
<!--
	function checklogin()
		{
			if (document.form1.username.value=="")
			{
				alert("请输入用户名!");
				form1.username.focus();
				return false;
			}
                        if (document.form1.password.value=="")
			{
				alert("请输入密码!");
				form1.password.focus();
				return false;
			}
			return true;
		}
//-->
</script>
<% if session("adminlogin") <> "ok" then  %>
<img src="images/hack_r4_c1.gif" width="154" height="30"><br>
      <table width="154" border="0" cellspacing="0" cellpadding="0">
        <form action="checklogin.asp" method=post name="form1" onSubmit="return checklogin()">
          <tr valign="middle"> 
            <td width="58" height="32" align="right" class="font"><font color="#FF6600">用户名：</font></td>
            <td width="96"> 
              <input type="text" name="username" size="10" class="textinput">
            </td>
          </tr>
          <tr valign="middle"> 
            <td width="58" align="right" class="font"><font color="#FF6600">密　码：</font></td>
            <td width="96"> 
              <input type="password" name="password" size="10" class="textinput">
            </td>
          </tr>
          <tr align="center" valign="middle"> 
            
      <td height="46" colspan="2"> 
        <input name="imageField" type="image" src="images/login.gif" width="35" height="18" border="0">
        <a href="reg1.asp"><img src="images/reg.gif" width="62" height="18" border="0"></a> 
      </td>
          </tr>
        </form>
      </table>
<% else %>
<br>
<table width="154" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="14" height="92">&nbsp;</td>
    <td width="124" bgcolor="#FFFFFF" class="xu_kuan" align="left" valign="middle"><span class="font">　您好！<font color=red><%=session("user_name")%></font><br>
      　欢迎来到本站...</span><br>
      &nbsp;&nbsp;<a href="member.asp" class="ffbyfont">[进入控制面板]</a><br>
      &nbsp;&nbsp;&nbsp;&nbsp;<a href="logout.asp" target="_parent"><img src="images/logout.gif" width="62" height="18" border="0"></a> 
    </td>
    <td width="16" class="font">&nbsp;</td>
  </tr>
</table>
<br>
<% end if %>
