<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#Include File="../include/connect.asp"-->
<!--#Include File="../include/md5code.asp"-->
<%
Username=Request.Form("Username")
Password=md5(Request.Form("Password"))
Set Rs = Server.CreateObject("ADODB.Recordset")
sql="select * from Show5_ALLUser where Username='"&Username&"' and Password='"&Password&"'"
rs.open sql,cn,1,1
if rs.bof or rs.eof then
	Response.write("<script>alert('用户名或密码错误！请返回重新输入');window.location.replace('userlogin.asp');</script>")
	Response.End()
else
Session.Timeout = 30
session("Username")=Rs("Username")
session("Userpic")=rs("Userpic")
session("Admin")=rs("Isadmin")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../CSS/Hompy/hompy.css" type=text/css rel=stylesheet>
<title></title>
</head>

<body leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<table width="288" height="122" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="279" class="orange2_b" style="PADDING-LEFT: 10px; HEIGHT: 24px;BORDER-TOP: #cecfce 1px solid; BORDER-BOTTOM: #cecfce 1px dotted; BACKGROUND-COLOR: #f7f7f7"> 
      用户登录</td>
  </tr>
  <tr> 
    <td height="92" align="center">登录成功！<a href="#" onClick="window.opener.location.reload(); window.close();"><img src="../Images/Hompy/btn_confirm.gif" width="39" height="18" border="0" align="absmiddle"></a></td>
  </tr>
  <tr> 
    <td style="HEIGHT: 4px; BORDER-TOP: #cecfce 1px dotted; BORDER-BOTTOM: #cecfce 1px solid; BACKGROUND-COLOR: #f7f7f7"><img src="" width="4" height="4" alt=""></td>
  </tr>
</table>
</body>
</html>
<%
end if
%>