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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="cn.js.fan.module.cms.*"%>
  3. <%@ page import="java.util.Iterator"%>
  4. <%@ page import="cn.js.fan.util.*"%>
  5. <LINK href="images/default.css" type=text/css rel=stylesheet>
  6. <STYLE type=text/css>.ttl {
  7. CURSOR: hand; COLOR: #ffffff; PADDING-TOP: 4px
  8. }
  9. </STYLE>
  10. <BR>
  11. <%
  12. String rootpath = request.getContextPath();
  13. %>
  14. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  15.   <TBODY>
  16.   <TR>
  17.     <TD width=23><IMG height=25 
  18.       src="images/box_topleft.gif" width=23></TD>
  19.     <TD class=ttl onclick=showHide(this) width=129 
  20.     background="images/box_topbg.gif">CMS 快速通道</TD>
  21.     <TD width=7><IMG height=25 
  22.       src="images/box_topright.gif" width=7></TD></TR>
  23.   <TR>
  24.     <TD 
  25.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  26.     background="images/box_bg.gif" colSpan=3>
  27.       <TABLE width="100%">
  28.         <TBODY>
  29.         <TR>
  30.           <TD><img height=7 hspace=5 
  31.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  32.             href="../../cms/dir_frame.jsp" 
  33.             target=mainFrame>栏目管理</a></TD>
  34.         </TR>
  35.         <TR>
  36.           <TD><img height=7 hspace=5 
  37.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  38.             href="../../cms/document_list_m.jsp" 
  39.             target=mainFrame>审核文章</a></TD>
  40.         </TR>
  41.         <TR>
  42.           <TD><IMG height=7 hspace=5 
  43.             src="images/arrow.gif" width=5 align=absMiddle> <a href="../../cms/nav_m.jsp" target=mainFrame>导航条</a></TD>
  44.         </TR>
  45.         <TR>
  46.           <TD><img height=7 hspace=5 
  47.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  48.             href="../../cms/dir_frame.jsp?root_code=template" 
  49.             target=mainFrame>模板管理</a></TD>
  50.         </TR>
  51.         <TR>
  52.           <TD><img height=7 hspace=5 
  53.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  54.             href="../../email_m.jsp" 
  55.             target=mainFrame>群发Email</a></TD>
  56.         </TR>
  57.         </TBODY></TABLE></TD></TR></TR>
  58.   <TR>
  59.     <TD colSpan=3><IMG height=10 
  60.       src="images/box_bottom.gif" 
  61. width=159></TD></TR></TBODY></TABLE>
  62. <%
  63. Directory dir = new Directory();
  64. Menu menu = dir.getMenu("root");
  65. Iterator ir = menu.Iterator();
  66. while (ir.hasNext()) {
  67. MenuItem mi = (MenuItem)ir.next();
  68. %>
  69. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  70.   <TBODY>
  71.   <TR>
  72.     <TD width=23><IMG height=25 
  73.       src="images/box_topleft.gif" width=23></TD>
  74.     <TD class=ttl onclick=showHide(this) width=129 
  75.     background="images/box_topbg.gif">
  76. CMS
  77. <%
  78. Leaf headLeaf = mi.getHeadLeaf();
  79. out.print(headLeaf.getName());
  80. %>
  81. </TD>
  82.     <TD width=7><IMG height=25 
  83.       src="images/box_topright.gif" width=7></TD></TR>
  84.   <TR style="DISPLAY: none">
  85.     <TD 
  86.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  87.     background="images/box_bg.gif" colSpan=3>
  88.       <TABLE width="100%">
  89.         <TBODY>
  90. <%
  91. Iterator childir = mi.getChildLeaves();
  92. while (childir.hasNext()) {
  93. Leaf childLeaf = (Leaf) childir.next();
  94. %>
  95.         <TR>
  96.           <TD><IMG height=7 hspace=5 
  97.             src="images/arrow.gif" width=5 align=absMiddle> 
  98.             <A 
  99.             href="../../cms/dir_frame.jsp?root_code=<%=StrUtil.UrlEncode(childLeaf.getCode())%>" 
  100.             target=mainFrame><%=childLeaf.getName()%></A></TD></TR>
  101. <%
  102. }
  103. %>
  104.         </TBODY></TABLE>
  105.   </TD></TR></TR>
  106.   <TR>
  107.     <TD colSpan=3><IMG height=10 
  108.       src="images/box_bottom.gif" 
  109. width=159></TD></TR></TBODY></TABLE>
  110. <%
  111. }
  112. %>
  113. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  114.   <TBODY>
  115.   <TR>
  116.     <TD width=23><IMG height=25 
  117.       src="images/box_topleft.gif" width=23></TD>
  118.     <TD class=ttl onclick=showHide(this) width=129 
  119.     background="images/box_topbg.gif">CMS会员及会员组</TD>
  120.     <TD width=7><IMG height=25 
  121.       src="images/box_topright.gif" width=7></TD></TR>
  122.   <TR style="DISPLAY: none">
  123.     <TD 
  124.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  125.     background="images/box_bg.gif" colSpan=3>
  126.       <TABLE width="100%">
  127.         <TBODY>
  128.         <TR>
  129.           <TD><IMG height=7 hspace=5 
  130.             src="images/arrow.gif" width=5 align=absMiddle> <A 
  131.             href="../../cms/user_m.jsp"
  132.             target=mainFrame>用户管理</A></TD>
  133.         </TR>
  134.         <TR>
  135.           <TD><IMG height=7 hspace=5 
  136.             src="images/arrow.gif" width=5 align=absMiddle> <A 
  137.             href="../../cms/user_group_m.jsp"
  138.             target=mainFrame>用户组管理</A></TD>
  139.         </TR>
  140.         <TR>
  141.           <TD><IMG height=7 hspace=5 
  142.             src="images/arrow.gif" width=5 align=absMiddle> 
  143.             <A 
  144.             href="user_m.jsp" 
  145.             target=mainFrame>会员帐号管理</A></TD></TR>
  146.         <TR>
  147.           <TD><IMG height=7 hspace=5 
  148.             src="images/arrow.gif" width=5 align=absMiddle> 
  149.             <A 
  150.             href="priv_m.jsp" 
  151.             target=mainFrame>权限管理</A></TD>
  152.         </TR>
  153.         <TR>
  154.           <TD><IMG height=7 hspace=5 
  155.             src="images/arrow.gif" width=5 align=absMiddle> 
  156.             <A 
  157.             href="../log/redmoon.log" 
  158.             target=mainFrame>查看管理员日志</A></TD></TR></TBODY></TABLE></TD></TR></TR>
  159.   <TR>
  160.     <TD colSpan=3><IMG height=10 
  161.       src="images/box_bottom.gif" 
  162. width=159></TD></TR></TBODY></TABLE>
  163. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  164.   <TBODY>
  165.   <TR>
  166.     <TD width=23><IMG height=25 
  167.       src="images/box_topleft.gif" width=23></TD>
  168.     <TD class=ttl onclick=showHide(this) width=129 
  169.     background="images/box_topbg.gif">CMS附件</TD>
  170.     <TD width=7><IMG height=25 
  171.       src="images/box_topright.gif" width=7></TD></TR>
  172.   <TR style="DISPLAY: none">
  173.     <TD 
  174.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  175.     background="images/box_bg.gif" colSpan=3>
  176.       <TABLE width="100%">
  177.         <TBODY>
  178.         <TR>
  179.           <TD><IMG height=7 hspace=5 
  180.             src="images/arrow.gif" width=5 align=absMiddle> 
  181.             <A href="counter/showcount.jsp" 
  182.             target=mainFrame>访问统计</A></TD></TR>
  183.         </TBODY></TABLE></TD></TR></TR>
  184.   <TR>
  185.     <TD colSpan=3><IMG height=10 
  186.       src="images/box_bottom.gif" 
  187. width=159></TD></TR></TBODY></TABLE>