?? orderdetail.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="../../error.jsp" %>
<%@ include file="../../jstl.inc"%>
<%@ taglib prefix="myfun" uri="http://hellking.com/function"%>
<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>
<center>
<sql:query var="query"
dataSource="${jspdev}"
sql="select product.name as name,lineitem.itemid as itemid,lineitem.quantity as quantity,
lineitem.unitprice as unitprice ,lineitem.linenum as linenum from lineitem as lineitem,
product as product where lineitem.orderid='${param.orderid}' and product.productid in
(select productid from item where itemid=lineitem.itemid)"/>
訂單號:${param.orderid}
<table align="center" bgcolor="#008800" border="0" cellspacing="2" cellpadding="5">
<tr bgcolor="#cccccc">
<td><b>itemid </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> ${row.itemid}</td>
<td> ${row.linenum}</td>
<td> ${row.quantity}</td>
<td> ${row.unitprice}</td>
<td> ${myfun:trans(row.name)}</td>
</c:forEach>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -