📄 orderstatus.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="../error.jsp" %>
<%@ include file="../jstl.inc"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../hellking.css" type=text/css rel=stylesheet>
</head>
<body>
<sql:query var="query" dataSource="${jspdev}" sql="select DISTINCT orders.orderid as orderid,orders.orderdate as orderdate,orders.totalprice as totalprice,orderstatus.status as status from orderstatus as orderstatus,orders as orders where orders.userid='${sessionScope.id}' and orderstatus.orderid=orders.orderid">
</sql:query>
<table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="5">
<tr bgcolor="#cccccc">
<td><b>orderid </b></td>
<td><b>状态 </b></td>
<td><b>时间 </b></td>
<td><b>总金额 </b></td>
<td><b>取消 </b></td>
</tr>
<c:forEach var="row" items="${query.rows}">
<tr bgcolor="#FFFF88">
<td> <c:if test="${row.status eq 0}"><a href=orderdetail.jsp?orderid=${row.orderid}></c:if>${row.orderid}</a></td>
<td> <c:if test="${row.status eq 0}">未处理</c:if><c:if test="${row.status eq 1}">完成</c:if></td>
<td> ${row.orderdate}</td>
<td> ${row.totalprice}</td>
<td>
<c:if test="${row.status eq '0'}"> <a href="cancelOrder_do.jsp?orderid=${row.orderid}">取消</a></c:if>
</td>
</tr>
</c:forEach>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -