You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookStore/web/pages/order/order.jsp

62 lines
1.8 KiB

3 years ago
<%--
Created by IntelliJ IDEA.
User: jhu
Date: 2020/10/5
Time: 16:30
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>我的订单</title>
<%@include file="/pages/common/header.jsp"%>
</head>
<body>
<div id="header">
<img class="logo_img" alt="" src="static/img/logo.gif" >
<span class="wel_word">我的订单</span>
<!-- 登录成功之后所有相同的菜单 -->
<%@ include file="/pages/common/login_success_menu.jsp" %>
</div>
<div id="main">
<table>
<tr>
<td>日期</td>
<td>金额</td>
<td>状态</td>
<td>详情</td>
</tr>
<c:forEach items="${requestScope.myOrders}" var="order">
<tr>
<td>${ order.createTime }</td>
<td>${ order.price }</td>
<td>
<c:choose>
<c:when test="${ order.status == 0 }">
未发货
</c:when>
<c:when test="${ order.status == 1 }">
<a href="client/orderServlet?action=receivedOrder&orderId=${ order.orderId }">确认收货</a>
</c:when>
<c:when test="${ order.status == 2 }">
已收货
</c:when>
</c:choose>
</td>
<td><a href="client/orderServlet?action=showOrderItem&orderId=${ order.orderId }">查看详情</a></td>
</tr>
</c:forEach>
</table>
</div>
<!-- 这是页脚的引入 -->
<%@ include file="/pages/common/footer.jsp" %>
</body>
</html>