left.jsp
来自「信息发布 发布系统 动态的菜单 和 信息统计」· JSP 代码 · 共 61 行
JSP
61 行
<%@ page language="java" pageEncoding="GBK"%>
<%@ include file="/jsp/_plugin/taglib.jsp"%>
<%
%>
<html>
<head>
<title>left</title>
<xt:style />
<xt:meta />
<base target="mainFrame">
<script language="javascript">
function showMenu(n) {
if (document.all("table_" + n).style.display == "none") {
document.all("table_" + n).style.display = "";
} else {
document.all("table_" + n).style.display = "none";
}
}
</script>
</head>
<body style="overflow-y:scroll;">
<br>
<%
String path = request.getContextPath();
//MainMenuBean[] mainMenuList = (MainMenuBean[]) request.getAttribute("frame.left.menu");
//SubMenuBean[] subMenuList;
for (int i = 0; i < mainMenuList.length; i++) {
if (mainMenuList[i] == null) {
continue;
}
subMenuList = mainMenuList[i].getSubMenus();
%>
<table border="0" cellspacing="1" cellpadding="5" width="95%" align="center" class="menu_table">
<tr onclick="showMenu(<%=i%>);">
<th style="cursor:hand;"><%=mainMenuList[i].getName()%></th>
</tr>
<tr>
<td id="table_<%=i%>" style="display:none;">
<%
for (int j = 0; j < subMenuList.length; j++) {
if (subMenuList[j] == null) {
continue;
}
%>
<li><a href="<%=path%><%=subMenuList[j].getUrl()%>"><%=subMenuList[j].getName()%></a></li>
<%
}
%>
</td>
</tr>
</table>
<br>
<%
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?