日期:2014-05-16 浏览次数:20883 次
<%
If Session("Passed")=false or Session("UserName")="" or Session("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='"&session("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
%>