?? 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 + -