list.jsp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <%@ page language="java" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <HTML>
  4. <HEAD>
  5. <meta http-equiv="Content-Language" content="zh-cn">
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <link href="${pageContext.request.contextPath}/css/Style1.css" rel="stylesheet" type="text/css" />
  8. <script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
  9. <script type="text/javascript">
  10. function addCategory(){
  11. window.location.href = "${pageContext.request.contextPath}/";
  12. }
  13. </script>
  14. </HEAD>
  15. <body>
  16. <br>
  17. <table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
  18. <TBODY>
  19. <tr>
  20. <td class="ta_01" align="center" bgColor="#afd1f3">
  21. <strong>分类列表</strong>
  22. </TD>
  23. </tr>
  24. <tr>
  25. <td class="ta_01" align="right">
  26. <button type="button" id="add" name="add" value="添加" class="button_add" onclick="addCategory()">
  27. &#28155;&#21152;
  28. </button>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td class="ta_01" align="center" bgColor="#f5fafe">
  33. <table cellspacing="0" cellpadding="1" rules="all"
  34. bordercolor="gray" border="1" id="DataGrid1"
  35. style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
  36. <tr
  37. style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
  38. <td align="center" width="18%">
  39. 序号
  40. </td>
  41. <td align="center" width="17%">
  42. 分类名称
  43. </td>
  44. <td width="7%" align="center">
  45. 编辑
  46. </td>
  47. <td width="7%" align="center">
  48. 删除
  49. </td>
  50. </tr>
  51. <c:forEach var="c" items="${ list }" varStatus="vs">
  52. <tr onmouseover="this.style.backgroundColor = 'white'"
  53. onmouseout="this.style.backgroundColor = '#F5FAFE';">
  54. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  55. width="18%">
  56. ${vs.count }
  57. </td>
  58. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  59. width="17%">
  60. ${c.cname }
  61. </td>
  62. <td align="center" style="HEIGHT: 22px">
  63. <a href="${ pageContext.request.contextPath }/adminCategory">
  64. <img src="${pageContext.request.contextPath}/images/i_edit.gif" border="0" style="CURSOR: hand">
  65. </a>
  66. </td>
  67. <td align="center" style="HEIGHT: 22px">
  68. <a href="${ pageContext.request.contextPath }/adminCategory">
  69. <img src="${pageContext.request.contextPath}/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
  70. </a>
  71. </td>
  72. </tr>
  73. </c:forEach>
  74. </table>
  75. </td>
  76. </tr>
  77. </TBODY>
  78. </table>
  79. </body>
  80. </HTML>