📄 menuitemmis.asp
字号:
<%option explicit%>
<!-- #include virtual="include/DataEnvi.asp" -->
<!-- #include virtual="include/String.asp" -->
<%
Dim C,ObjDB,ObjRS,i,StrSQL
Dim ID
Dim StrRows,StrFrames
Dim StrRoleIDs
ID = Request.QueryString("ID")
Set C = Server.CreateObject("CMS2003.DBHandle")
Set ObjDB = Server.CreateObject("Adodb.Connection")
OpenDB ObjDB
C.Init(ObjDB)
StrSQL = "Select RoleIDs From t_OA_SYS_Account Where ID = " & Session("AccountID")
Set ObjRS = ObjDB.Execute(StrSQL)
StrRoleIDs = ObjRS("RoleIDs")
If IsNull(StrRoleIDs) Then StrRoleIDs = ""
If StrRoleIDs = "" Then StrRoleIDs = "0"
StrSQL = "Select DISTINCT MenuName,Icon,BasicPath,EnterPath,OrderID From v_Base_Menu_Role_Permission Where RoleID In (" & StrRoleIDs & ") And MenuParentID = " & ID & " Order By OrderID"
'Response.Write strsql
Set ObjRS = ObjDB.Execute (StrSQL)
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>相关工作文件</title>
<style>
<!--
td { font-size: 12px }
.tdOn{background-color: #b5bed6; border: 1 solid #000000}
.tdOff{background-color: #FFFFFF; border: 1 solid #FFFFFF}
-->
</style>
</head>
<body leftMargin=0 topMargin=0 onmouseover="parent.ShowMenuItemMis(<%=Request.QueryString("Item")%>)" onmouseout="parent.HideMenuItemMis()">
<div align="center">
<center>
<table border="0" width="100%" height="100%" style="border: 1 solid #000000" cellspacing="1" cellpadding="3">
<%
Dim StrEnterPath
While Not ObjRS.Eof
StrEnterPath = ObjRS("EnterPath")
If IsNull(StrEnterPath) Then StrEnterPath = ObjRS("BasicPath")
%>
<tr>
<td style="cursor:hand" onclick="parent.IframeMain.location='../../<%=StrEnterPath%>/';parent.HideMenuItemMis()" class=tdOff onmouseover="this.className='tdOn'" onmouseout="this.className='tdOff'"><%=ObjRS("MenuName")%></td>
</tr>
<%
ObjRS.MoveNext
Wend
%>
</table>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -