columns_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. <%
  4. String channelID = request.getParameter("channelid");
  5. ChannelService channelService = new ChannelService();
  6. StringBuffer sb = channelService.getTreeString(
  7. "columns_main.jsp?columnid=", Long.valueOf(channelID));
  8. %>
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  10. <html>
  11. <head>
  12. <link href="../css/common.css" rel="stylesheet" type="text/css">
  13. <title>JavaScript Navigation Tree</title>
  14. <style>
  15. /* Style for tree item text */
  16. .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">
  31. </head>
  32. <body leftmargin="0" topmargin="0" marginwidth="15" marginheight="2"
  33. CLASS="TA">
  34. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  35. <tr>
  36. <td>
  37. <table width="80%" border="0" align="center" cellpadding="0"
  38. cellspacing="0">
  39. <tr>
  40. <td>
  41. <font size="2">栏目管理</font>
  42. </td>
  43. <td>
  44. <font size="2"><a
  45. href="columnnews_left.jsp?channelid=<%=channelID%>">栏目新闻管理<a>
  46. </font>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>
  51. <script language="JavaScript" src="../js/tree.js"></script>
  52. <script language="JavaScript">
  53. var TREE_ITEMS = [
  54.  
  55. <%=sb.toString()%>
  56. ];
  57. </script>
  58. <script language="JavaScript" src="../js/tree_tpl.js"></script>
  59. <script language="JavaScript">
  60. new tree (TREE_ITEMS, tree_tpl);
  61. </script>
  62. </td>
  63. </tr>
  64. </table>
  65. </td>
  66. </tr>
  67. <form name="form1"
  68. action="<%=request.getContextPath()%>/servlet/AddColumn">
  69. <input name="parentcolumn" type='hidden' value="0">
  70. <input name="channelid" type='hidden' value="<%=channelID%>">
  71. <tr>
  72. <td>
  73. 栏目名称
  74. <input name="columnname" type='text'>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td>
  79. 栏目顺序
  80. <input name="columnorder" type='text'>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>
  85. <input type='button' class="input-button" value='添加根栏目'
  86. onclick="form1.submit()">
  87. </td>
  88. </tr>
  89. </body>
  90. </html>