⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 left.jsp

📁 信息发布 发布系统 动态的菜单 和 信息统计
💻 JSP
字号:
<%@ 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -