<!--#include file="conn.asp"-->
<% 
lg=request.Form("lg")
if lg="yes" then
user=request.Form("user")
password=request.Form("pw")
if user="" or password="" then 
response.Redirect("login.asp")
else
exec="select * from admin where id=1"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
if rs("username")=user and rs("password")=password then  
session("isadmin")="yes"
response.Redirect("admin.asp")
else
jmessage=("<center>"&"密码错误!!!"&"<br>"&"<br>"&"Hoho!密码随便是猜不出来的!"&"<br>"&"<br>"&"<a href=""javascript:history.go(-1)"">"&"<img border=""0"" src=""image/goback.gif"">"&"</a>"&"</center>")

end if
rs.close
end if
else 
jmessage="<form action='login.asp' method='post'><table align='center'><th>管理登陆</th>"&_
vbcrlf&"<tr><td><br>帐号:<input type='text' name='user' size='20'></td></tr>"&_
vbcrlf&"<tr><td><br>密码:<input type='password' name='pw' size='20'></td></tr>"&_
vbcrlf&"<tr><td align='center'><BR><input type='submit' class='btn' name='submit' value='提 交'></td></tr>"&_
vbcrlf&"<input type='hidden' name='lg' value='yes'></table></form>"
end if

%>

<p>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>登陆管理</title>
<STYLE type=text/css>BODY {
	COLOR: #000000; FONT-SIZE: 12px
}
TD {
	COLOR: #000000; FONT-SIZE: 12px
}
TH {
	COLOR: #6f1006; FONT-SIZE: 12px
}
A {
	FONT-SIZE: 12px
}
A:link {
	COLOR: blue;TEXT-DECORATION: none;
}
A:visited {
	COLOR: blue;TEXT-DECORATION: none;

}
A:hover {
	COLOR: green;
}
A.top:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A.top:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A.top:hover {
	COLOR: blue; TEXT-DECORATION: underline
}
</STYLE>


</head>

<body topmargin="2" leftmargin="0" bgcolor="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" width="469" align="center">                        
                        <tr>                                                                   
                          <td width="469" bgcolor="#000000">                                                                   
                            <table border="0" cellspacing="1" width="100%" height="35">                                                                   
                              <tr>                                                                   
                                <td width="100%" bgcolor="#00659C" height="31">                                                                   
                                  <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">                                                                   
                                    <tr>                                                                   
                                      <td width="100%" bgcolor="#00659C">                                                                   
                                        <table border="0" cellspacing="1" width="100%" height="287">
                    <tr>                                                                  
                                            
                      <td width="100%" bgcolor="#40BDE8" align="center" height="21"> 
                         管理员登陆</td>                                                                                                                                 
                                          </tr>                                          
                                                                            
                                                                                                                                             
                                                                                        
                                  <tr>                                                                                   
                                            
                      <td width="100%" bgcolor="#ffffff" align="left" height="247" valign="top"> 
                        <table border="0" cellspacing="0" width="96%" cellpadding="0" height="173" align="center">
                                                
                                                <tr>
                                                  <td width="100%" height="201"><br><%=jmessage%> </td>
                                                </tr><tr>
                                                  <td width="100%" height="16">
                                                    <hr style="border-style: dotted" size="1" color="#808080">
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td width="100%" height="17">说明：请输入密码，按提交登陆！</td>
                                                </tr>
                                              </table>
                                    </td>                                                                                                                               
                                          </tr>                                                 
                                                                                        
                                     <tr>                                                                               
                                            
                      <td width="100%" bgcolor="#40BDE8" align="left" height="17"> 
                      </td>                                                                      
                                          </tr>                                                                      
                                                                      
                                        </table>                                                                      
                                      </td>                                                                      
                                    </tr>                                                                      
                                  </table>                                                                      
                                </td>                                                                      
                              </tr>                                                                      
                            </table>                                                                      
                          </td>                                                                      
                        </tr>                                                                      
                      </table>                                                                                                                                    

    
</body>    
    
</html>    
