67,513
社区成员
发帖
与我相关
我的任务
分享
Map<String, List<Map<String, String>>> myMenu = operatorDao.getMyMenus(user);
Map<String, String> menuMap = new HashMap<String, String>();
menuMap.put("1","客户账号管理");
menuMap.put("2","查询统计");
menuMap.put("3","资金管理");
menuMap.put("4","代理商管理");
menuMap.put("5","操作员管理");
menuMap.put("6","任务管理");
menuMap.put("7","菜单管理");
req.setAttribute("menuMap", menuMap);
req.setAttribute("myMenu", myMenu);
<c:forEach var="map" items="${menuMap}" varStatus="status">
<table cellpadding=0 cellspacing=0 width="96%" align=center>
<tr>
<td height=25 class=menu_title id=menuTitle1 onclick="showsubmenu(${status.count})"> ${map.value}</td>
</tr>
<tr>
<td style="display:none" id='submenu${status.count}'>
<table cellpadding=0 cellspacing=0 width="100%" bgcolor="#C2E0EC" class=sec_menu>
<tr>
<td height=10></td>
</tr>
<c:forEach var="childMap" items="${myMenu['status.count']}">
<tr>
<td height=20>
<img src=<%=request.getContextPath()%>/images/bullet.gif border=0><a href="<%=request.getContextPath()%>${childMap['url']}">${childMap['show_name']}</a>
</td>
</tr>
</c:forEach>
</table>
</td>
</tr>
</table>
</c:forEach>
<c:forEach var="map" items="${menuMap}" varStatus="status">
<table cellpadding=0 cellspacing=0 width="96%" align=center>
<tr>
<td height=25 class=menu_title id=menuTitle1 onclick="showsubmenu(${status.count})"> ${map.value}</td>
</tr>
<tr>
<td style="display:none" id='submenu${status.count}'>
<table cellpadding=0 cellspacing=0 width="100%" bgcolor="#C2E0EC" class=sec_menu>
<tr>
<td height=10></td>
</tr>
<c:forEach var="mk" items="${myMenu}">
<c:if test="${mk.key == status.count}">
<c:forEach var="childMap" items="${mk.value}">
<tr>
<td height=20>
<img src=${pageContext.request.contextPath}/images/bullet.gif border=0><a href="${pageContext.request.contextPath}${childMap['url']}">${childMap['show_name']}</a>
</td>
</tr>
</c:forEach>
</c:if>
</c:forEach>
</table>
</td>
</tr>
</table>
</c:forEach>