⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vieworders.jsp

📁 网上购物系统struts+spring+hibernate实现
💻 JSP
字号:
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><html>	<head>		<title>查看购物车</title>	</head>	<body>		<center>		<c:if test="${orders != null}">		<h2>您所有的订单如下</h2>	<table width="90%" cellpadding="1" cellspacing="1" bgcolor="blue">				<tr bgcolor="#FFDD66" align="center">					<th>订单号</th>					<th>下单时间</th>					<th>状态</th>					<th>总价</th>					<th colspan="2">操作</th>				</tr>				<c:forEach var="order" items="${orders }"  varStatus="ind">					<tr bgcolor="#FFDD66" align="center">						<td>${order.id}</td>						<td>${order.createTime }</td>						<td>							<c:choose>								<c:when test="${order.status == 0}">									未发货								</c:when>								<c:when test="${order.status == 1}">									已发货								</c:when>								<c:when test="${order.status == 2}">									已确认								</c:when>								<c:otherwise>									已过期								</c:otherwise>							</c:choose>						</td>						<td>&yen;${order.totalPrice }</td>							<td colspan="2">								<input type="button"  value="查看明细"									onClick="javascript:window.location='${pageContext.request.contextPath }/user/showDetails.do?orderid=${order.id}'" >								<input type="button"  value="确认收货" ${order.status != 1 ? "disabled" : "" }									onClick="javascript:window.location='${pageContext.request.contextPath }/user/submitOrder.do?orderid=${order.id}&status=2'" >							</td>						</tr>				</c:forEach>			<c:if test="${empty orders}">				<tr bgcolor="#F2F2F2" align="center">					<td colspan="7">还没有购买任何商品</td>				</tr>			</c:if>		</table>	</c:if>	</center>	</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -