news_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("newslist.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="178" 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> <script language="JavaScript" src="./js/tree.js"></script> <script language="JavaScript">
  37. var TREE_ITEMS = [   <%=sb.toString()%>
  38. ];
  39. </script> <script language="JavaScript" src="./js/tree_tpl.js"></script> <script language="JavaScript">
  40. new tree (TREE_ITEMS, tree_tpl);
  41. </script> </td>
  42.         </tr>
  43.       </table>
  44.       
  45.     </td>  
  46. </table>
  47. </body>
  48. </html>