<!--#include file="inc/sx_conn.asp"-->>
<title>¹ÜÀíÔ±µÇÂ½</title>
<link rel="stylesheet" type="text/css" href="style.css">
<%
function err(strin)                             'err("¡Á¡¡ÇëÌîÐ´...")
Response.Write("<script language=javascript>")
Response.Write("alert('")
Response.Write(strin)
Response.Write("');")
Response.Write("window.location='lxzd.asp';")
'Response.Write("history.go(-1);")
Response.Write("</script>")
Response.End()
end function
%>

<%


if request("sxname")="" then
	err("¡Á¡¡ÇëÊäÈëµÇÂ¼ÕÊºÅUsername...")
elseif request("sxpwd")="" then
	err("¡Á¡¡ÇëÊäÈëÕÊºÅÃÜÂëPassword...")
end if

sql="select * from user where username='"&request("sxname")&"' and Password='"&request("sxpwd")&"'"
rs.open sql,conn,3,3
if rs.eof and rs.bof then
		err("¡Á¡¡ÕÊºÅORÃÜÂë´íÎó...")
	else
		
		session("adminsxzd")=rs("username")
		session("stucount")=rs("count")+1
		rs("count")=rs("count")+1
		rs.update
		'rs.refresh
		response.redirect ("lxzd.asp")

end If

rs.close


%>
<!--ÍË³ö-->
