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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="cn.js.fan.module.cms.*"%>
  3. <%@ page import="cn.js.fan.module.cms.plugin.*"%>
  4. <%@ page import="java.util.Iterator"%>
  5. <%@ page import="java.util.Vector"%>
  6. <%@ page import="cn.js.fan.util.*"%>
  7. <HTML><HEAD><TITLE>标题</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">快速通道</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%>/index.jsp" 
  45. target=_blank>浏览网站</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>栏目管理</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="document_list_m.jsp" 
  56.             target=mainFrame>最近文章</a></TD>
  57.         </TR>
  58.         <TR>
  59.           <TD><IMG height=7 hspace=5 
  60.             src="images/arrow.gif" width=5 align=absMiddle> <a href="nav_m.jsp" target=mainFrame>导航条</a></TD>
  61.         </TR>
  62.         <TR>
  63.           <TD><img height=7 hspace=5 
  64.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  65.             href="dir_frame.jsp?root_code=template" 
  66.             target=mainFrame>模板管理</a></TD>
  67.         </TR>
  68.         <TR>
  69.           <TD><img height=7 hspace=5 
  70.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  71.             href="../email_m.jsp" 
  72.             target=mainFrame>群发Email</a></TD>
  73.         </TR>
  74.         <TR>
  75.           <TD><img height=7 hspace=5 
  76.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  77.             href="../forum/admin/frame.jsp" 
  78.             target=_top>论坛管理</a> </TD>
  79.         </TR>
  80.         <TR>
  81.           <TD><img height=7 hspace=5 
  82.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  83.             href="../help.jsp" 
  84.             target=mainFrame>使用帮助</a></TD>
  85.         </TR>
  86.         <TR>
  87.           <TD><img height=7 hspace=5 
  88.             src="images/arrow.gif" width=5 align=absMiddle> <a 
  89.             href="../blog/admin/frame.jsp" 
  90.             target=_top>博客管理</a></TD>
  91.         </TR>
  92.         </TBODY></TABLE></TD></TR></TR>
  93.   <TR>
  94.     <TD colSpan=3><IMG height=10 
  95.       src="images/box_bottom.gif" 
  96. width=159></TD></TR></TBODY></TABLE>
  97. <%
  98. Directory dir = new Directory();
  99. Menu menu = dir.getMenu("root");
  100. Iterator ir = menu.Iterator();
  101. while (ir.hasNext()) {
  102. MenuItem mi = (MenuItem)ir.next();
  103. %>
  104. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  105.   <TBODY>
  106.   <TR>
  107.     <TD width=23><IMG height=25 
  108.       src="images/box_topleft.gif" width=23></TD>
  109.     <TD class=ttl onclick=showHide(this) width=129 
  110.     background="images/box_topbg.gif">
  111. <%
  112. Leaf headLeaf = mi.getHeadLeaf();
  113. out.print(headLeaf.getName());
  114. %>
  115. </TD>
  116.     <TD width=7><IMG height=25 
  117.       src="images/box_topright.gif" width=7></TD></TR>
  118.   <TR style="DISPLAY: none">
  119.     <TD 
  120.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  121.     background="images/box_bg.gif" colSpan=3>
  122.       <TABLE width="100%">
  123.         <TBODY>
  124. <%
  125. Iterator childir = mi.getChildLeaves();
  126. while (childir.hasNext()) {
  127. Leaf childLeaf = (Leaf) childir.next();
  128. %>
  129.         <TR>
  130.           <TD><IMG height=7 hspace=5 
  131.             src="images/arrow.gif" width=5 align=absMiddle> 
  132.             <A 
  133.             href="dir_frame.jsp?root_code=<%=StrUtil.UrlEncode(childLeaf.getCode())%>" 
  134.             target=mainFrame><%=childLeaf.getName()%></A></TD></TR>
  135. <%
  136. }
  137. %>
  138.         </TBODY></TABLE>
  139.   </TD></TR></TR>
  140.   <TR>
  141.     <TD colSpan=3><IMG height=10 
  142.       src="images/box_bottom.gif" 
  143. width=159></TD></TR></TBODY></TABLE>
  144. <%
  145. }
  146. %>
  147. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  148.   <TBODY>
  149.   <TR>
  150.     <TD width=23><IMG height=25 
  151.       src="images/box_topleft.gif" width=23></TD>
  152.     <TD class=ttl onclick=showHide(this) width=129 
  153.     background="images/box_topbg.gif">会员及会员组</TD>
  154.     <TD width=7><IMG height=25 
  155.       src="images/box_topright.gif" width=7></TD></TR>
  156.   <TR style="DISPLAY: none">
  157.     <TD 
  158.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  159.     background="images/box_bg.gif" colSpan=3>
  160.       <TABLE width="100%">
  161.         <TBODY>
  162.         <TR>
  163.           <TD><IMG height=7 hspace=5 
  164.             src="images/arrow.gif" width=5 align=absMiddle> <A 
  165.             href="user_m.jsp"
  166.             target=mainFrame>用户管理</A></TD>
  167.         </TR>
  168.         <TR>
  169.           <TD><IMG height=7 hspace=5 
  170.             src="images/arrow.gif" width=5 align=absMiddle> <A 
  171.             href="user_group_m.jsp"
  172.             target=mainFrame>用户组管理</A></TD>
  173.         </TR>
  174.         <TR>
  175.           <TD><IMG height=7 hspace=5 
  176.             src="images/arrow.gif" width=5 align=absMiddle> 
  177.             <A 
  178.             href="priv_m.jsp" 
  179.             target=mainFrame>权限管理</A></TD>
  180.         </TR>
  181.         <TR>
  182.           <TD><IMG height=7 hspace=5 
  183.             src="images/arrow.gif" width=5 align=absMiddle> 
  184.             <A 
  185.             href="../log/community.log" 
  186.             target=mainFrame>查看管理员日志</A></TD></TR></TBODY></TABLE></TD></TR></TR>
  187.   <TR>
  188.     <TD colSpan=3><IMG height=10 
  189.       src="images/box_bottom.gif" 
  190. width=159></TD></TR></TBODY></TABLE>
  191. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  192.   <TBODY>
  193.     <TR>
  194.       <TD width=23><IMG height=25 
  195.       src="images/box_topleft.gif" width=23></TD>
  196.       <TD class=ttl onclick=showHide(this) width=129 
  197.     background="images/box_topbg.gif">插件管理</TD>
  198.       <TD width=7><IMG height=25 
  199.       src="images/box_topright.gif" width=7></TD>
  200.     </TR>
  201.     <TR style="DISPLAY: none">
  202.       <TD 
  203.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  204.     background="images/box_bg.gif" colSpan=3><%
  205. PluginMgr pm = new PluginMgr();
  206. Vector v = pm.getAllPlugin();
  207. ir = v.iterator();
  208. while (ir.hasNext()) {
  209. PluginUnit pu = (PluginUnit)ir.next();
  210. // SweetSkin sv = new SweetSkin();
  211. %>
  212.           <TABLE width="100%">
  213.             <TBODY>
  214.               <TR>
  215.                 <TD><IMG height=7 hspace=5 
  216.             src="images/arrow.gif" width=5 align=absMiddle> <A 
  217.             href="<%=pu.getAdminEntrance()%>" 
  218.             target=mainFrame><%=pu.LoadString(request, "adminMenuItem")%></A></TD>
  219.               </TR>
  220.             </TBODY>
  221.           </TABLE>
  222.         <%}%></TD>
  223.     </TR>
  224.     <TR>
  225.       <TD colSpan=3><IMG height=10 
  226.       src="images/box_bottom.gif" 
  227. width=159></TD>
  228.     </TR>
  229.   </TBODY>
  230. </TABLE>
  231. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  232.   <TBODY>
  233.   <TR>
  234.     <TD width=23><IMG height=25 
  235.       src="images/box_topleft.gif" width=23></TD>
  236.     <TD class=ttl onclick=showHide(this) width=129 
  237.     background="images/box_topbg.gif">采集</TD>
  238.     <TD width=7><IMG height=25 
  239.       src="images/box_topright.gif" width=7></TD></TR>
  240.   <TR style="DISPLAY: none">
  241.     <TD 
  242.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  243.     background="images/box_bg.gif" colSpan=3>
  244.       <TABLE width="100%">
  245.         <TBODY>
  246.         <TR>
  247.           <TD><IMG height=7 hspace=5 
  248.             src="images/arrow.gif" width=5 align=absMiddle> 
  249.             <A href="gather_weather.jsp" 
  250.             target=mainFrame>采集天气预报</A></TD>
  251.         </TR>
  252.         </TBODY></TABLE></TD></TR></TR>
  253.   <TR>
  254.     <TD colSpan=3><IMG height=10 
  255.       src="images/box_bottom.gif" 
  256. width=159></TD></TR></TBODY></TABLE>
  257. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  258.   <TBODY>
  259.     <TR>
  260.       <TD width=23><IMG height=25 
  261.       src="images/box_topleft.gif" width=23></TD>
  262.       <TD class=ttl onclick=showHide(this) width=129 
  263.     background="images/box_topbg.gif">数据管理</TD>
  264.       <TD width=7><IMG height=25 
  265.       src="images/box_topright.gif" width=7></TD>
  266.     </TR>
  267.     <TR style="DISPLAY: none">
  268.       <TD 
  269.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  270.     background="images/box_bg.gif" colSpan=3><TABLE width="100%">
  271.         <TBODY>
  272.           <TR>
  273.             <TD><IMG height=7 hspace=5 
  274.             src="images/arrow.gif" width=5 align=absMiddle> <A href="bak_m.jsp" 
  275.             target=mainFrame>备份CMS数据</A></TD>
  276.           </TR>
  277.         </TBODY>
  278.       </TABLE></TD>
  279.     </TR>
  280.     </TR>
  281.     
  282.     <TR>
  283.       <TD colSpan=3><IMG height=10 
  284.       src="images/box_bottom.gif" 
  285. width=159></TD>
  286.     </TR>
  287.   </TBODY>
  288. </TABLE>
  289. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  290.   <TBODY>
  291.   <TR>
  292.     <TD width=23><IMG height=25 
  293.       src="images/box_topleft.gif" width=23></TD>
  294.     <TD class=ttl onclick=showHide(this) width=129 
  295.     background="images/box_topbg.gif">附件</TD>
  296.     <TD width=7><IMG height=25 
  297.       src="images/box_topright.gif" width=7></TD></TR>
  298.   <TR style="DISPLAY: none">
  299.     <TD 
  300.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  301.     background="images/box_bg.gif" colSpan=3>
  302.       <TABLE width="100%">
  303.         <TBODY>
  304.         <TR>
  305.           <TD><IMG height=7 hspace=5 
  306.             src="images/arrow.gif" width=5 align=absMiddle> 
  307.             <A href="counter/showcount.jsp" 
  308.             target=mainFrame>访问统计</A></TD></TR>
  309.         </TBODY></TABLE></TD></TR></TR>
  310.   <TR>
  311.     <TD colSpan=3><IMG height=10 
  312.       src="images/box_bottom.gif" 
  313. width=159></TD></TR></TBODY></TABLE>
  314. <TABLE cellSpacing=0 cellPadding=0 width=159 align=center border=0>
  315.   <TBODY>
  316.     <TR>
  317.       <TD width=23><IMG height=25 
  318.       src="images/box_topleft.gif" width=23></TD>
  319.       <TD class=ttl onclick=showHide(this) width=129 
  320.     background="images/box_topbg.gif">系统设置</TD>
  321.       <TD width=7><IMG height=25 
  322.       src="images/box_topright.gif" width=7></TD>
  323.     </TR>
  324.     <TR style="DISPLAY: none">
  325.       <TD 
  326.     style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px" 
  327.     background="images/box_bg.gif" colSpan=3><TABLE width="100%">
  328.           <TBODY>
  329.             <TR>
  330.               <TD><IMG height=7 hspace=5 
  331.             src="images/arrow.gif" width=5 align=absMiddle> <A 
  332.             href="cache.jsp" 
  333.             target=mainFrame>系统环境信息</A></TD>
  334.             </TR>
  335.           </TBODY>
  336.       </TABLE></TD>
  337.     </TR>
  338.     <TR>
  339.       <TD colSpan=3><IMG height=10 
  340.       src="images/box_bottom.gif" 
  341. width=159></TD>
  342.     </TR>
  343.   </TBODY>
  344. </TABLE>
  345. </BODY></HTML>