日期:2014-05-16 浏览次数:21012 次
'验证用户是否登录,如果有用户登录,则根据上个程序可知用户名用
If request.Cookies("Passed")=false or request.Cookies("UserName")="" or request.Cookies("GongSiNo")="" then
response.write("<script language=javascript>window.top.location.href='../index.htm';</script>")
else
set user_rs=server.createobject("adodb.recordset")
sql="select top 1 caozuoyuan_xm from user_caozuoyuan where caozuoyuan_xm='"&request.Cookies("UserName")&"'"
set user_rs = conn.execute(sql)
'user_rs.open sql,conn,1,1
if user_rs.eof and user_rs.bof then
response.write "<script language=JavaScript>" & chr(13) & "alert('对不起,没有这个用户!');" & "history.back()" & "</script>"
response.end
end if
End If