<!--#include file="conn.asp"-->
<%
action = request.form("action")
name = request.form("username")
password = request.form("password")
if action = "admin" then
password = Request.form("password")
sql = "select * from admin where name='"&name&"'"
set rs = server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if password <> rs("password") then
else
session("adminname") = rs("name")
session("adminpassword") = rs("password")
session("dengji") = rs("dengji")
rs.close
set rs = nothing
conn.close
set conn = nothing
response.redirect "admincenter.asp"
end if
end if
%>
<html>
<head><title>激情电影网管理登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="images/site.css">
</head>
<body topmargin=0 leftmargin=0 bgcolor=#5BBFFF>  
<table border=0 width=100% align=center cellpadding=0 cellspacing=0><tr><td>
	<table width=450 border=0 cellspacing=0 cellpadding=0 align=center height=306 background=images/bg.gif>
    <tr>
    <td valign=top>
      <table width=100% border=0 cellspacing=0 cellpadding=0 height=61>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width=100% border=0 cellspacing=0 cellpadding=0>
     <form method="post" action="admin.asp" name="admin">
       <input type="hidden" name="action" value="admin">
        <tr> 
          <td width=15%>&nbsp;</td>
          <td width=38%>【管理员请先登录】</td>
          <td width=47%>&nbsp;</td>
        </tr>
        <tr>
          <td width=15%>&nbsp;</td>
          <td width=38%>用户名：   
            <input type=text name=username maxLength=20 size=12 class=inp>  
            <br>  
            密　码：   
            <input type=password name=password maxLength=20 size=12 class=inp>  
            <br><br>  
            <input type=image src=images/login.gif align=absMiddle border=0>   
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
	    <a href=reg.asp><img src=images/reg.gif align=absMiddle border=0></a>  
            </td>  
          <td width=47%>&nbsp;</td>  
        </tr>  
        </form>  
      </table>  
    </td>  
  </tr>  
</table>  
	</td></tr></table>     
</body>  
</html>                        