menu.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:6k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="com.redmoon.blog.*"%>
  3. <%@ page import="java.util.Iterator"%>
  4. <%@ page import="java.util.Vector"%>
  5. <%@ page import="cn.js.fan.util.*"%>
  6. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  7. <HTML><HEAD><TITLE>menu</TITLE>
  8. <META http-equiv=Content-Type content="text/html; charset=utf-8">
  9. <LINK href="images/default.css" type=text/css rel=stylesheet>
  10. <STYLE type=text/css>.ttl {
  11. CURSOR: hand; COLOR: #ffffff; PADDING-TOP: 4px
  12. }
  13. </STYLE>
  14. <SCRIPT language=javascript>
  15.   function showHide(obj){
  16.     var oStyle = obj.parentElement.parentElement.parentElement.rows[1].style;
  17.     oStyle.display == "none" ? oStyle.display = "block" : oStyle.display = "none";
  18.   }
  19. </SCRIPT>
  20. <META content="MSHTML 6.00.3790.259" name=GENERATOR></HEAD>
  21. <BODY bgColor=#9aadcd leftMargin=0 topMargin=0>
  22. <BR>
  23. <%
  24. String rootpath = request.getContextPath();
  25. %>
  26. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  27.   <TBODY>
  28.   <TR>
  29.     <TD width=23><IMG height=25 
  30.       src="images/box_topleft.gif" width=23></TD>
  31.     <TD class=ttl onclick=showHide(this) width=129 
  32.     background="images/box_topbg.gif"><lt:Label res="res.label.blog.admin.index" key="quick_channel"/></TD>
  33.     <TD width=7><IMG height=25 
  34.       src="images/box_topright.gif" width=7></TD></TR>
  35.   <TR>
  36.     <TD 
  37.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  38.     background="images/box_bg.gif" colSpan=3>
  39.       <TABLE width="100%">
  40.         <TBODY>
  41.         <TR>
  42.           <TD><IMG height=7 hspace=5 
  43.             src="images/arrow.gif" width=5 align=absMiddle> 
  44.             <A href="<%=rootpath%>/blog/index.jsp" 
  45. target=_blank><lt:Label res="res.label.blog.admin.index" key="browse_web"/></A></TD></TR>
  46.         <TR>
  47.           <TD><img height=7 hspace=5 
  48.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  49.             href="dir_frame.jsp" 
  50.             target=mainFrame><lt:Label res="res.label.blog.admin.index" key="list_management"/></a></TD>
  51.         </TR>
  52.         <TR>
  53.           <TD><img height=7 hspace=5 
  54.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  55.             href="../../cms/frame.jsp" 
  56.             target=_top><lt:Label res="res.label.blog.admin.index" key="CMS_management"/></a></TD>
  57.         </TR>
  58.         <TR>
  59.           <TD><img height=7 hspace=5 
  60.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  61.             href="../../forum/admin/frame.jsp" 
  62.             target=_top><lt:Label res="res.label.blog.admin.index" key="forum_management"/></a></TD>
  63.         </TR>
  64.         </TBODY></TABLE></TD></TR></TR>
  65.   <TR>
  66.     <TD colSpan=3><IMG height=10 
  67.       src="images/box_bottom.gif" 
  68. width=159></TD></TR></TBODY></TABLE>
  69. <%
  70. Directory dir = new Directory();
  71. Menu menu = dir.getMenu("root");
  72. Iterator ir = menu.Iterator();
  73. while (ir.hasNext()) {
  74. MenuItem mi = (MenuItem)ir.next();
  75. %>
  76. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  77.   <TBODY>
  78.   <TR>
  79.     <TD width=23><IMG height=25 
  80.       src="images/box_topleft.gif" width=23></TD>
  81.     <TD class=ttl onclick=showHide(this) width=129 
  82.     background="images/box_topbg.gif">
  83. <%
  84. Leaf headLeaf = mi.getHeadLeaf();
  85. out.print(headLeaf.getName());
  86. %>
  87. </TD>
  88.     <TD width=7><IMG height=25 
  89.       src="images/box_topright.gif" width=7></TD></TR>
  90.   <TR style="DISPLAY: none">
  91.     <TD 
  92.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  93.     background="images/box_bg.gif" colSpan=3>
  94.       <TABLE width="100%">
  95.         <TBODY>
  96. <%
  97. Iterator childir = mi.getChildLeaves();
  98. while (childir.hasNext()) {
  99. Leaf childLeaf = (Leaf) childir.next();
  100. %>
  101.         <TR>
  102.           <TD><IMG height=7 hspace=5 
  103.             src="images/arrow.gif" width=5 align=absMiddle> 
  104.             <A 
  105.             href="dir_frame.jsp?root_code=<%=StrUtil.UrlEncode(childLeaf.getCode())%>" 
  106.             target=mainFrame><%=childLeaf.getName()%></A></TD></TR>
  107. <%
  108. }
  109. %>
  110.         </TBODY></TABLE>
  111.   </TD></TR></TR>
  112.   <TR>
  113.     <TD colSpan=3><IMG height=10 
  114.       src="images/box_bottom.gif" 
  115. width=159></TD></TR></TBODY></TABLE>
  116. <%
  117. }
  118. %>
  119. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  120.   <TBODY>
  121.     <TR>
  122.       <TD width=23><IMG height=25 
  123.       src="images/box_topleft.gif" width=23></TD>
  124.       <TD class=ttl onclick=showHide(this) width=129 
  125.     background="images/box_topbg.gif"><lt:Label res="res.label.blog.admin.index" key="blog_management"/></TD>
  126.       <TD width=7><IMG height=25 
  127.       src="images/box_topright.gif" width=7></TD>
  128.     </TR>
  129.     <TR style="DISPLAY: none">
  130.       <TD 
  131.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  132.     background="images/box_bg.gif" colSpan=3><TABLE width="100%">
  133.         <TBODY>
  134.           <TR>
  135.             <TD><IMG height=7 hspace=5 
  136.             src="images/arrow.gif" width=5 align=absMiddle> <A 
  137.             href="blog_list.jsp" 
  138.             target=mainFrame><lt:Label res="res.label.blog.admin.index" key="blog_list"/></A></TD>
  139.           </TR>
  140.           <TR>
  141.             <TD><IMG height=7 hspace=5 
  142.             src="images/arrow.gif" width=5 align=absMiddle> <A 
  143.             href="home.jsp" 
  144.             target=mainFrame><lt:Label res="res.label.blog.admin.index" key="blog_index"/></A></TD>
  145.           </TR>
  146.         </TBODY>
  147.       </TABLE></TD>
  148.     </TR>
  149.     </TR>
  150.     
  151.     <TR>
  152.       <TD colSpan=3><IMG height=10 
  153.       src="images/box_bottom.gif" 
  154. width=159></TD>
  155.     </TR>
  156.   </TBODY>
  157. </TABLE>
  158. </BODY></HTML>