CategoryList.jsp
上传用户:lsj999sz
上传日期:2022-06-15
资源大小:4717k
文件大小:5k
源码类别:

ICQ/即时通讯

开发平台:

Java

  1. <%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
  2. <%@ page import="com.bjsxt.shopping.category.*"%>
  3. <%
  4. List<Category> categories = CategoryService.getInstance().getCategories();
  5. %>
  6. <html>
  7. <head>
  8. <title>类别列表</title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  10. <meta name="keywords"
  11. content="Discuz!,Board,Comsenz,forums,bulletin board,">
  12. <meta name="description" content="金尚商城会员列表">
  13. <meta name="generator" content="Discuz! 4.0.0RC4 with Templates 4.0.0">
  14. <meta name="MSSmartTagsPreventParsing" content="TRUE">
  15. <meta http-equiv="MSThemeCompatible" content="Yes">
  16. <style type="text/css"><!--
  17. a { text-decoration: none; color: #000000 }
  18. a:hover { text-decoration: underline }
  19. body { scrollbar-base-color: #F3F6FA; scrollbar-arrow-color: #4D76B3; font-size: 12px; background-color: #ffffff }
  20. table { font: 12px Verdana,Tahoma; color: #000000 }
  21. input,select,textarea { font: 11px Verdana,Tahoma; color: #000000; font-weight: normal; background-color: #F3F6FA }
  22. select { font: 11px Verdana,Tahoma; color: #000000; font-weight: normal; background-color: #F3F6FA }
  23. .nav { font: 12px Verdana,Tahoma; color: #000000; font-weight: bold }
  24. .nav a { color: #000000 }
  25. .header { font: 11px Verdana,Tahoma; color: #000000; font-weight: bold; background-image: url("images/green/bg01.gif") }
  26. .header a { color: #FFFFFF }
  27. .category { font: 11px Verdana,Tahoma; color: #000000; background-color: #EFEFEF }
  28. .tableborder { background: #4D76B3; border: 0px solid #4D76B3 } 
  29. .singleborder { font-size: 0px; line-height: 0px; padding: 0px; background-color: #F3F6FA }
  30. .smalltxt { font: 11px Verdana,Tahoma }
  31. .outertxt { font: 12px Verdana,Tahoma; color: #000000 }
  32. .outertxt a { color: #000000 }
  33. .bold { font-weight: bold }
  34. .altbg1 { background: #F3F6FA }
  35. .altbg2 { background: #FFFFFF }
  36. --></style>
  37. <script language="JavaScript" src="images/common.js"></script>
  38. <style type="text/css" id="defaultPopStyle">.cPopText { font-family: Tahoma, Verdana; background-color: #FFFFCC; border: 1px #000000 solid; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=80)}</style>
  39. </head>
  40. <body leftmargin="0" rightmargin="0" topmargin="0"
  41. onkeydown="if(event.keyCode==27) return false;">
  42. <div id="popLayer" style="position: absolute; z-index: 1000;"
  43. class="cPopText"></div>
  44. <table style="table-layout: fixed;" align="center" border="0"
  45. cellpadding="0" cellspacing="0" width="97%">
  46. <tbody>
  47. <tr>
  48. <td class="nav" align="left" nowrap="nowrap" width="90%">
  49. &nbsp;类别管理 &#187; 类别列表
  50. </td>
  51. <td align="right" width="10%">
  52. &nbsp;
  53. <a href="#bottom"><img src="../images/arrow_dw.gif"
  54. align="absmiddle" border="0">
  55. </a>
  56. </td>
  57. </tr>
  58. </tbody>
  59. </table>
  60. <br>
  61. <center><a href="CategoryAdd.jsp">添加根类别</a></center>
  62. <table class="tableborder" align="center" cellpadding="4"
  63. cellspacing="1" width="97%">
  64. <tbody>
  65. <tr class="header">
  66. <td align="center" width="5%">
  67. 类别编号
  68. </td>
  69. <td align="center" width="40%">
  70. 类别名称
  71. </td>
  72. <td align="right" width="16%">
  73. 类别描述
  74. </td>
  75. <td align="center" width="5%">
  76. PID
  77. </td>
  78. <td align="center" width="10%">
  79. 代表字串
  80. </td>
  81. <td align="center" width="5%">
  82. 级别
  83. </td>
  84. <td align="center">
  85. 处理
  86. </td>
  87. </tr>
  88. <%
  89. for (int i = 0; i < categories.size(); i++) {
  90. Category c = categories.get(i);
  91. String preStr = "";
  92. for(int j=1; j<c.getGrade(); j++) {
  93. preStr += "----";
  94. }
  95. %>
  96. <tr>
  97. <td class="altbg1" align="center" nowrap="nowrap">
  98. <%=c.getId()%>
  99. </td>
  100. <td class="altbg2" align="left">
  101. <%=preStr + c.getName()%>
  102. </td>
  103. <td class="altbg1" align="center">
  104. <%=c.getDescr()%>
  105. </td>
  106. <td class="altbg1" align="center">
  107. <%=c.getPid()%>
  108. </td>
  109. <td class="altbg1" align="center">
  110. <%=c.getCno()%>
  111. </td>
  112. <td class="altbg1" align="right">
  113. <%=c.getGrade() %>
  114. </td>
  115. <td class="altbg2" align="right">
  116. <a target="detail" href="CategoryModify.jsp?id=<%=c.getId()%>">修改类别</a>
  117. <% if(c.getGrade()<Category.MAX_GRADE) { %>
  118. <a href="CategoryAddChild.jsp?pid=<%=c.getId()%>&grade=<%=c.getGrade()%>">添加子类别</a>
  119. <% } %>
  120. </td>
  121. </tr>
  122. <%
  123. }
  124. %>
  125. </tbody>
  126. </table>
  127. <a name="bottom" />
  128. </body>
  129. </html>