<%

if session("ewsname")="" then
    response.write"<Script>alert('与服务器的连接已断开或还未登录1！');location.href='login.asp';</Script>"
end if
%>
<!--#include file="user_rights_check.asp"-->
<%
set right_conn=server.createobject("adodb.connection")
	DBPath_right = Server.MapPath("../#einfodata/#einfo$webdata.mdb")
	right_conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath_right

set right_rs=server.createobject("adodb.recordset")
    right_sql="select * from Manage_User where UserName='"&session("ewsName")&"'"
    right_rs.open right_sql,right_conn,1,1

    unit_right=right_rs("rights")

right_rs.close
set right_rs=nothing

right_conn.close
set right_conn=nothing
%>
