order.jsp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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><!--t_order:create_time-->
  31. <%-- <td>商品名</td><!--t_order_item:name-->--%>
  32. <td>金额</td><!--t_order:price-->
  33. <td>状态</td><!--t_order:satus-->
  34. <%-- <td>详情</td>--%>
  35. <td>订单号</td><!--t_order:order_id-->
  36. </tr>
  37. <%-- <tr>--%>
  38. <c:forEach items="${sessionScope.orderList}" var="orderList">
  39. <tr>
  40. <td>${orderList.create_time}</td>
  41. <td>${orderList.price}</td>
  42. <td>
  43. ${orderList.status}
  44. </td>
  45. <td>${orderList.order_id}</td>
  46. </tr>
  47. <%--<tr>
  48. <td></td>
  49. <td></td>
  50. <td></td>
  51. <td></td>
  52. </tr>--%>
  53. </c:forEach>
  54. <%-- 原始的订单显示页面--%>
  55. <%--<td>
  56. <c:if test="${not empty sessionScope.cartItem}">
  57. ${sessionScope.year}.${sessionScope.month}.${sessionScope.day}
  58. </c:if>
  59. </td>
  60. <td>
  61. <c:if test="${empty sessionScope.orderId}">
  62. </c:if>
  63. <c:if test="${not empty sessionScope.orderId}">
  64. ${sessionScope.cartItem.name}
  65. </c:if>
  66. </td>
  67. <td>
  68. <c:if test="${empty sessionScope.orderId}">
  69. 0.00
  70. </c:if>
  71. <c:if test="${not empty sessionScope.orderId}">
  72. ${sessionScope.cartItem.totalPrice}
  73. </c:if>
  74. </td>
  75. <td>
  76. &lt;%&ndash;&lt;%&ndash; 未发货&ndash;%&gt;&ndash;%&gt;
  77. &lt;%&ndash; <c:if test="${empty sessionScope.orderId}">&ndash;%&gt;
  78. &lt;%&ndash; 未下单&ndash;%&gt;
  79. &lt;%&ndash; </c:if>&ndash;%&gt;
  80. &lt;%&ndash; <c:if test="${not empty sessionScope.orderId}">&ndash;%&gt;
  81. &lt;%&ndash; 已下单&ndash;%&gt;
  82. &lt;%&ndash; </c:if>&ndash;%&gt;
  83. <c:if test="${sessionScope.order_status.status}==0">
  84. 未发货
  85. </c:if>
  86. </td>
  87. <td>
  88. <c:if test="${not empty sessionScope.orderId}">
  89. ${sessionScope.orderId}
  90. </c:if>
  91. </td>
  92. &lt;%&ndash; <c:forEach items="${sessionScope.cartItem}" var="cartItem">&ndash;%&gt;
  93. &lt;%&ndash; &ndash;%&gt;
  94. &lt;%&ndash; </c:forEach>&ndash;%&gt;
  95. --%>
  96. <%-- </tr>--%>
  97. </table>
  98. </div>
  99. <%--静态包含:页脚--%>
  100. <%@include file="/pages/common/footer.jsp"%>
  101. </body>
  102. </html>