left.jsp
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page language="java" pageEncoding="GBK"%>
  2. <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
  3. <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
  4. <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
  5. <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
  6. <link href="<%=request.getContextPath()%>/Css_file/oa.css" rel="stylesheet" type="text/css" />
  7. <style type="text/css">
  8. <!--
  9. body {
  10. margin-left: 0px;
  11. margin-top: 0px;
  12. margin-right: 0px;
  13. margin-bottom: 0px;
  14. background-image: url(../Img_file/back4.jpg);
  15. }
  16. .STYLE3 {
  17. font-size: 18px;
  18. color: #0099FF;
  19. }
  20. -->
  21. </style>
  22. <script language="javascript"> 
  23. function displaymenu(id){
  24.          var menuobject=document.getElementById(id);
  25.          var img = document.getElementById(id+"_img");
  26.          if(menuobject.style.display=="none"){
  27.               menuobject.style.display="block";
  28.               img.src="${pageContext.request.contextPath}/Img_file/close.png";
  29.           }else{
  30.             menuobject.style.display="none";
  31.             img.src="${pageContext.request.contextPath}/Img_file/open.png";
  32.           }
  33. }
  34. </script>
  35. <body>
  36. <div align="left" style="background: ${pageContext.request.contextPath}/Img_file/back3.jpg">
  37. <logic:iterate id="menu" name="pmenu" scope="request">
  38. <div align="left" style="margin-left: 10" onClick="displaymenu(${menu.fid})">
  39. <img src="${pageContext.request.contextPath}/Img_file/open.png" id="${menu.fid}_img">
  40. <logic:equal name="menu" property="fid"  value="33">
  41. <a href="${pageContext.request.contextPath}/${menu.fpath}" target="mainFrame">${menu.fname}</a>
  42. </logic:equal>
  43. <logic:notEqual value="33" name="menu" property="fid">
  44. ${menu.fname}
  45. </logic:notEqual>
  46. </div><br/>
  47. <div align="left" id="${menu.fid}" style="display: none">
  48. <logic:iterate id="xmenu" name="cmenu"  scope="request">
  49. <logic:equal name="xmenu" property="fpid" value="${menu.fid}">
  50. <div align="left" id="${xmenu.fid}" style="margin-left: 30">
  51. <a href="${pageContext.request.contextPath}/${xmenu.fpath}" target="mainFrame">${xmenu.fname}</a>
  52. </div><br/>
  53. </logic:equal>
  54. </logic:iterate>
  55. </div>
  56. </logic:iterate>
  57. </div>
  58. </body>