order.jsp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>我的订单</title>
  8. <%--静态包含:base标签,css样式,js脚本--%>
  9. <%@ include file="/pages/common/head.jsp"%>
  10. <style type="text/css">
  11. h1 {
  12. text-align: center;
  13. margin-top: 200px;
  14. }
  15. #main table tr td a{
  16. text-decoration: none;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <div id="header">
  22. <img class="logo_img" alt="" src="" >
  23. <span class="wel_word">我的订单</span>
  24. <%--静态包含,登录成功后的菜单--%>
  25. <%@ include file="/pages/common/login_success_menu.jsp"%>
  26. </div>
  27. <div id="main">
  28. <table>
  29. <tr>
  30. <td>日期</td>
  31. <td>商品名</td>
  32. <td>金额</td>
  33. <td>状态</td>
  34. <%-- <td>详情</td>--%>
  35. <td>订单号</td>
  36. </tr>
  37. <tr>
  38. <c:forEach items="">
  39. </c:forEach>
  40. <td>
  41. <c:if test="${not empty sessionScope.cartItem}">
  42. ${sessionScope.year}.${sessionScope.month}.${sessionScope.day}
  43. </c:if>
  44. </td>
  45. <td>
  46. <c:if test="${empty sessionScope.orderId}">
  47. </c:if>
  48. <c:if test="${not empty sessionScope.orderId}">
  49. ${sessionScope.cartItem.name}
  50. </c:if>
  51. </td>
  52. <td>
  53. <c:if test="${empty sessionScope.orderId}">
  54. 0.00
  55. </c:if>
  56. <c:if test="${not empty sessionScope.orderId}">
  57. ${sessionScope.cartItem.totalPrice}
  58. </c:if>
  59. </td>
  60. <td>
  61. <%-- 未发货--%>
  62. <c:if test="${empty sessionScope.orderId}">
  63. 未下单
  64. </c:if>
  65. <c:if test="${not empty sessionScope.orderId}">
  66. 已下单
  67. </c:if>
  68. </td>
  69. <td>
  70. <c:if test="${not empty sessionScope.orderId}">
  71. ${sessionScope.orderId}
  72. </c:if>
  73. </td>
  74. <%-- <c:forEach items="${sessionScope.cartItem}" var="cartItem">--%>
  75. <%-- --%>
  76. <%-- </c:forEach>--%>
  77. </tr>
  78. </table>
  79. </div>
  80. <%--静态包含:页脚--%>
  81. <%@include file="/pages/common/footer.jsp"%>
  82. </body>
  83. </html>