navmenu.tag

来自「一个网上购物商城系统」· TAG 代码 · 共 34 行

TAG
34
字号
<%-- 菜单显示 --%>
<%@ tag pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div id="NavMenuDiv">

	<div id="NavMenu">
		<div>
			<a href="javascript:expandAll();">全部展开</a>&nbsp;&nbsp;|&nbsp;&nbsp;
			<a href="javascript:collapseAll();">全部收缩</a>
		</div>
		<ul>
			<c:choose>
				<c:when test="${not empty requestScope.ocategorys}">
					<c:forEach items="${requestScope.ocategorys}" var="oc">
						<li><h2>${oc.secondCategory.name }</h2>
                    	<ul id='nav${oc.secondCategory.id }'>
                    	<c:forEach items="${oc.thirdCategorys}" var="tc" varStatus="s">
                    		<li <c:if test="${s.last}">class='lastchild'</c:if> ><a href='category.htm?cid=${tc.id}'>${tc.name}(${tc.productnum})</a></li>
                    	</c:forEach>
                    </ul>
                	</li>
					</c:forEach>
				</c:when>
				<c:otherwise><li><h2>暂无分类<br><br><br><br><br><br><br></h2></li></c:otherwise>
			</c:choose>
		</ul>
	</div>
	<script type="text/javascript">
	var rcactive = document.getElementById('nav${requestScope.scid}');
	if(rcactive)
	    rcactive.className = "Expand";
	</script>
</div>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?