📄 flag_purview.asp
字号:
<!--#include file="../INC/Conn.asp"-->
<!--#include file="inc/Check.asp"-->
<!--#include file="inc/public.asp"-->
<%
dim UserNumberID,Makking
Makking = Request.QueryString("Makking")
ID = Request.QueryString("Flag")
IF Makking = "save" then
Purview = Trim(Request.Form("Meun"))
conn.execute("update Flag set Purview='"&Purview&"' where Flag='"& ID &"'")
response.Redirect request.servervariables("http_referer")
end if
sql="select * from Flag where Flag='"& ID &"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.bof and rs.eof then
save_title="没有找到该角色"
call save_err()
else
Purview = trim(rs("Purview"))
Flag = rs("Flag")
end if
rs.close
set rs=nothing
Employee_Flag=Flag
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>亿博尔网站内容管理系统(ECMS)</title>
</head>
<link href="Images/Admin.css" rel="stylesheet" type="text/css">
<body>
<table width="98%" height="40" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D8D8D8">
<tr>
<td height="30" align="left" bgcolor="ffffff"><table width="100%" height="100%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="eeeeee">
<td width="5%" align="center"><img src="Images/1.gif" width="13" height="12"></td>
<td width="78%"><span class="style2">管理中心 >>> 管理会员权限
<%
response.write ">>> 编辑"& Employee_ID &"的权限"
%>
</span></td>
<td width="17%" align="right"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" height="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D8D8D8">
<tr>
<td valign="top" bgcolor="ffffff"><form name="form" method="post" action="Flag_Purview.asp?Makking=save&Flag=<%=ID%>">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" bgcolor="ffffff">
<table width=100% border=0 align='center' cellpadding=3 cellspacing=1 bordercolordark=#ffffff bgcolor="eaeaea">
<tr align="left" bgcolor="ffffff" background="Images/box_bg.gif">
<td height="20" background="Images/box_bg.gif"> </td>
</tr>
<%
sql="select * from MenuClass where Flag='02'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then
do while not RS.eof
%>
<tr align="left" bgcolor="F5F5F5">
<td height="22">
<%
response.write ""& rs("Class") &""
%>
</td>
</tr>
<tr align="left" bgcolor="ffffff">
<td height="20">
<% dim checkedStr,checkedStr_1
sql="select * from Menu where Class="& rs("ID") &" order by ListID"
set rsm=server.createobject("adodb.recordset")
rsm.open sql,conn,1,1
if not(rsm.bof and rsm.eof) then
do while not rsm.eof
'response.write purview
'response.end
checkedStr = ""
checkedStr_1 = ""
if Purview<>"" and not isnull(Purview) then
Purview_1=split(Purview, ",")
for ii = 0 to ubound(Purview_1)
Purview_2=Purview_1(ii)
if Ucase(trim(Purview_2)) =Ucase(trim(rsm("Purview"))) then
checkedStr = "checked"
end if
if Ucase(trim(Purview_2)) ="ALL" then
checkedStr_1 = "checked"
END IF
next
end if
response.write "<input type=checkbox name=Meun value="&trim(rsm("Purview"))&" "&checkedStr&">"&rsm("menu")&" "
rsm.movenext
loop
end if
rsm.close
set rsm=nothing
rs.movenext
loop
end if
rs.close
set rs=nothing
Conn.Close
Set Conn = Nothing
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50" height="24" align="left" valign="middle" background="Images/box_bg_1.gif"><input name="imageField" type="image" src="Images/save.gif" width="36" height="21" border="0"></td>
<td align="left" valign="middle" background="Images/box_bg_1.gif">
<input type="checkbox" name="Meun" value="all" <%=checkedStr_1%>>
全部功能</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="#E2E1E1"></td>
</tr>
</table>
</form></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -