<%@language="vbscript" codepage="936" %>
<%
option explicit
'强制浏览器重新访问服务器下载页面，而不是从缓存读取页面
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache" 
if request("logout")="logout" then 
session("adminuser")=""
session("password")=""
session("aleave")=""
session("userkey")=""
Session.Abandon()
response.redirect "index.asp"
end if
if session("adminuser")="" and session("password")="" and session("login")<>true then
Function GetCode()
	Dim TestObj
	On Error Resume Next
	Set TestObj = Server.CreateObject("Adodb.Stream")
	Set TestObj = Nothing
	If Err Then
		Dim TempNum
		Randomize timer
		TempNum = cint(8999*Rnd+1000)
		Session("GetCode") = TempNum
		GetCode = Session("GetCode")		
	Else
		GetCode = "<img src=""../include/GetCode.asp"">"		
	End If
End Function
%>
<script language=javascript><!-- 
  if (top.location != self.location)top.location=self.location;
// -->
</script>

<html>
<head>
<link href="/css.css" type=text/css rel=stylesheet>
<title>电子报刊发布管理系统</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<style type="text/css">

body {
	background-image: url(admin/bg.gif);
	margin: 0px;
	background-repeat: repeat-x;
}
table,td{
font-family:"宋体";
font-size:12px;
}
.inputtext{
border-left:1px solid balck;
border-right:1px solid balck;
border-top:1px solid balck;
border-bottom:1px solid balck;
}
.loginbg {
font-size: 12px;
width: 59px;
height: 26px;
background-image: url(admin/login_bg.gif);
border: none;
padding-top: 3px;
color:white;
}
</style>
</head>
<body>
 <form method=post action="CHKLOGIN.ASP">
<table width="100%" height="98" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="50%" align="center" height="34" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="admin/admin_02.gif" width="291" height="34"></td>
  </tr>
</table>
<table width="100%" height="30" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="50%" height="261" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="457" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="3"><img src="admin/admin_05.gif" width="457" height="40" border="0" usemap="#map"></td>
      </tr>
      <tr>
        <td width="142" rowspan="3"><img src="admin/admin_07.gif" width="142" height="221"></td>
        <td width="240" valign="top"><img src="admin/admin_08.gif" width="240" height="42"></td>
        <td width="75" rowspan="3"><img src="admin/admin_09.gif" width="75" height="221"></td>
      </tr>
      <tr>
        <td height="107" valign="top" background="admin/admin_10.gif">
		<table width="75%"  align="center" height="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" height="30">用&nbsp;&nbsp;户:</td>
                    <td width="76%" height="30"><input name="admin" type="text" class="inputtext" id="admin" size="15"></td>
                  </tr>
                  <tr>
                    <td height="25">密&nbsp;&nbsp;码:</td>
                    <td height="25"><input name="password" type="password" class="inputtext" id="password" size="15"></td>
				 </tr>
				 <tr>
                    <td height="25">验证码:</td>
                    <td height="25"><input name="code" type="text" class="inputtext" size="8" maxlength="4"> 
                    <% = GetCode() %></td>
                  </tr>                  
                  <tr>
                    <td height="25" colspan="2"><p align="center"><input name="submit" type="submit" class="loginbg" id="submit" value="登 陆">
                    &nbsp;&nbsp;<input name="submit2" type="reset" class="loginbg" id="submit2" value="取 消"></td>
                    </tr>
                </table></td>
      </tr>
      <tr>
        <td valign="bottom"><img src="admin/admin_11.gif" width="240" height="72"></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
<map name="map"><area shape="rect" coords="348,1,436,39" href="../"></map>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><font color="#ffffff">程序设计&copy;武斌</font></td> 
  </tr>
</table>
</body>
</html>
<%else
response.Redirect "manage.asp"
end if
%>

                                                              
                                                              
                                                              