columnnews_left.jsp
上传用户:junmaots
上传日期:2022-07-09
资源大小:2450k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@page contentType="text/html; charset=GBK" language="java" %>
  2. <%@page import="com.mycompany.news.service.*" %>
  3. <%@page import="com.mycompany.news.dto.*" %>
  4. <%@page import="java.util.List"%>
  5. <%
  6. String channelID = request.getParameter("channelid");
  7. ChannelService channelService = new ChannelService();
  8. StringBuffer sb = channelService.getTreeString("newsmanage.jsp?columnid=",Long.valueOf(channelID));
  9. %>
  10. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  11. <html>
  12. <head>
  13. <link href="../css/common.css" rel="stylesheet" type="text/css">
  14. <title>JavaScript Navigation Tree</title>
  15. <style>
  16. /* Style for tree item text */ .t0i {
  17. font-family: Tahoma, Verdana, Geneva, Arial, Helvetica, sans-serif,宋体;
  18. font-size: 11px;
  19. color: #000000;
  20. background-color:none;
  21. text-decoration: none;
  22. }
  23. /* Style for tree item image */
  24. .t0im {
  25. border: 0px;
  26. width: 19px;
  27. height: 16px;
  28. }
  29. </style>
  30. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
  31. <body  leftmargin="0" topmargin="0" marginwidth="15" marginheight="2" CLASS="TA">
  32. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  33.   <tr> 
  34.     <td> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
  35.      <tr>
  36.      <td><font size="2"><a href="columns_left.jsp?channelid=<%=channelID%>">栏目管理<a></font></td>
  37.      <td><font size="2">栏目新闻管理</font></td>
  38.      </tr>
  39.         <tr>
  40.           <td> <script language="JavaScript" src="../js/tree.js"></script> <script language="JavaScript">
  41. var TREE_ITEMS = [   <%=sb.toString()%>
  42. ];
  43. </script> <script language="JavaScript" src="../js/tree_tpl.js"></script> <script language="JavaScript">
  44. new tree (TREE_ITEMS, tree_tpl);
  45. </script> </td>
  46.         </tr>
  47.       </table>
  48.       
  49.     </td>
  50.   </tr>
  51. </table>
  52. </body>
  53. </html>