list.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <%@ page language="java" pageEncoding="UTF-8"%>
  2. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  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 addProduct(){
  11. window.location.href = "${pageContext.request.contextPath}/adminProduct_addPage.action";
  12. }
  13. </script>
  14. </HEAD>
  15. <body>
  16. <br>
  17. <form id="Form1" name="Form1" action="${pageContext.request.contextPath}/user/list.jsp" method="post">
  18. <table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
  19. <TBODY>
  20. <tr>
  21. <td class="ta_01" align="center" bgColor="#afd1f3">
  22. <strong>商品列表</strong>
  23. </TD>
  24. </tr>
  25. <tr>
  26. <td class="ta_01" align="right">
  27. <button type="button" id="add" name="add" value="添加" class="button_add" onclick="addProduct()">
  28. &#28155;&#21152;
  29. </button>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td class="ta_01" align="center" bgColor="#f5fafe">
  34. <table cellspacing="0" cellpadding="1" rules="all"
  35. bordercolor="gray" border="1" id="DataGrid1"
  36. 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">
  37. <tr
  38. style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
  39. <td align="center" width="18%">
  40. 序号
  41. </td>
  42. <td align="center" width="17%">
  43. 商品图片
  44. </td>
  45. <td align="center" width="17%">
  46. 商品名称
  47. </td>
  48. <td align="center" width="17%">
  49. 商品价格
  50. </td>
  51. <td align="center" width="17%">
  52. 是否热门
  53. </td>
  54. <td width="7%" align="center">
  55. 编辑
  56. </td>
  57. <td width="7%" align="center">
  58. 删除
  59. </td>
  60. </tr>
  61. <c:forEach items="${list }" var="p" varStatus="vs">
  62. <tr onmouseover="this.style.backgroundColor = 'white'"
  63. onmouseout="this.style.backgroundColor = '#F5FAFE';">
  64. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  65. width="18%">
  66. ${vs.count }
  67. </td>
  68. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  69. width="17%">
  70. <img width="40" height="45" src="${ pageContext.request.contextPath }/${p.pimage}">
  71. </td>
  72. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  73. width="17%">
  74. ${p.market_price }
  75. </td>
  76. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  77. width="17%">
  78. ${p.shop_price }
  79. </td>
  80. <td style="CURSOR: hand; HEIGHT: 22px" align="center"
  81. width="17%">
  82. <c:if test="${p.is_hot==1 }">是</c:if>
  83. <c:if test="${p.is_hot!=1 }">否</c:if>
  84. </td>
  85. <td align="center" style="HEIGHT: 22px">
  86. <a href="${ pageContext.request.contextPath }/adminProduct_edit.action?pid=">
  87. <img src="${pageContext.request.contextPath}/images/i_edit.gif" border="0" style="CURSOR: hand">
  88. </a>
  89. </td>
  90. <td align="center" style="HEIGHT: 22px">
  91. <a href="${ pageContext.request.contextPath }/adminProduct_delete.action?pid=">
  92. <img src="${pageContext.request.contextPath}/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
  93. </a>
  94. </td>
  95. </tr>
  96. </c:forEach>
  97. </table>
  98. </td>
  99. </tr>
  100. </TBODY>
  101. </table>
  102. </form>
  103. </body>
  104. </HTML>