<!--#include file=articleconn.asp-->
<%
dim sql
dim rs
dim seekerrs
dim founduser
dim username
dim companyid
dim password
dim errmsg
dim founderr
founderr=false
FoundUser=false
	username=trim(request("username"))
	password=cstr(Request("password"))

set rs=server.createobject("adodb.recordset")
sql="select * from admin where id=1"
rs.open sql,conn,1,1
 if not(rs.bof and rs.eof) then
 if password=rs("password") and username=rs("username") then
   response.cookies("adminok")=true
   response.redirect "manage.asp"
 else
           response.write "<link rel='stylesheet' type='text/css' href='style.css'>"
      response.write "<body bgcolor='#ffffef'>" 
      response.write "Sorry,请输入正确的管理员名字和密码"
 end if

end if
rs.close
conn.close
set rs=nothing
set conn=nothing

%>
