<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
'强制浏览器重新访问服务器下载页面，而不是从缓存读取页面
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
'主要是使随机出现的图片数字随机
If Request.Cookies("adminname")<>"" Then
   Response.Redirect("admin_index.asp")
End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>后台登陆</title>
<link href="images/css/login.css" rel="stylesheet" type="text/css">
<script language=javascript>
function CheckForm()
{
  if (document.login.adminname.value=="" || document.login.adminname.value=="请填写用户名")
  {
	document.login.adminname.value="请填写用户名";
	document.login.adminname.focus();
	return false;
  }
  if (document.login.adminpsd.value=="")
  {
	pass.innerHTML="<font color=red>请输入密码</font>";
	document.login.adminpsd.focus();
	return false;
  }
  if (document.login.verycode.value=="" || document.login.verycode.value=="请输入验证码")
  {
	document.login.verycode.value="请输入验证码";
	document.login.verycode.focus();
	return false;
  }
}
</script>
</head>
<body bgcolor="#b5bcc7">
<br>
<P>&nbsp;</P>
<P>&nbsp;</P>
<table border="0" align="center" cellpadding="1" cellspacing="0" class="log_tb">
        <tr>
                <td height="252">
<table width="605" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
                <td colspan="3"><img src="images/login_1.jpg" width="605" height="17"></td>
                </tr>
        <tr>
                <td width="23"><img src="images/login_2.jpg" width="23" height="212"></td>
                <td width="494" bgcolor="#F5FEFA"><img src="images/login_0.jpg" width="494" height="101">
				<table width="100%" border="0" cellpadding="0" cellspacing="5">
  <form action="admin_loginchk.asp" method="post" name="login" onSubmit="return CheckForm();">
  <tr>
    <td width="127" rowspan="4" align="center"><img src="images/kw.gif" width="65" height="65"></td>
    <td width="352">用户名：
            <input name="adminname" onClick="if(this.value=='请填写用户名'){this.value=''}" type="text" id="adminname" onMouseOver="this.style.background='#FFFFFF';" onFocus="this.select();" onMouseOut="this.style.background='#F8F8F8'" size=28></td>
  </tr>
  <tr>
    <td>密 &nbsp; 码：
            <input name="adminpsd" type="password" id="adminpsd" onMouseOver="this.style.background='#FFFFFF';" onFocus="this.select();"onmouseout="this.style.background='#F8F8F8'" size=22> <span id="pass"><font color="#FF0000"><%= Trim(Request.QueryString("msg")) %></font></span></td>
  </tr>
  <tr>
    <td>验证码：
            <input name="verycode" onClick="if(this.value=='请输入验证码'){this.value=''}" type="text" id="verycode"  onMouseOver="this.style.background='#FFFFFF';" onFocus="this.select();" onMouseOut="this.style.background='#F8F8F8'" maxLength=5 size=10>
            &nbsp;
    <img src="../inc/getcode.asp" width="55" onclick="window.location.reload()" alt="图片看不清？点击重新得到验证码" style="cursor:hand;">
    </td>
  </tr>
  <tr>
    <td><INPUT class=button onclick=window.location.reload() type=button value=刷新本页 name=Submit4> 
           &nbsp;     <INPUT class=button type=submit value=管理登陆 name=Submit>
           &nbsp; 
           <input type="reset" name="reset" value="清空重写" class="Button"><iframe id="nocode" frameborder="no" height="0" width="0" src="../inc/nocode.asp"></iframe></td>
  </tr>
  </form>
</table></td>
                <td width="88" align="right"><img src="images/login_3.jpg" width="88" height="212"></td>
        </tr>
        <tr>
                <td height="21" colspan="3" valign="top"><img src="images/login_4.jpg" width="605" height="21"></td>
                </tr>
</table>
</td>
        </tr>
</table>
</body>
</html>
