?? updateform.jsp
字號(hào):
<%@ page language="java" errorPage="orderErr.jsp"
import=
"java.sql.*,
java.util.*,
order.javabean.*,
order.common.*"
contentType="text/html; charset=Big5" %>
<jsp:useBean id="OrderList" scope="session" class="order.javabean.OrderForm"/>
<jsp:useBean id="ProductTbl" scope="session" class="order.javabean.OrderForm"/>
<html>
<head>
<title>order</title>
<meta http-equiv="Content-Type"
content="text/html; charset=big5">
</head>
<body bgcolor="#FFFFFF">
<form method="post" action="UpdateOrder.jsp">
<p align="center">
<font size="6"><b>變更訂購(gòu)</b></font></p>
<p align="center"> </p>
<p align="center">
訂購(gòu)者帳號(hào) : <%=OrderList.getUser_id()%>
訂單編號(hào) : <%=OrderList.getOrder_id()%></p>
<table align="center">
<tr bgcolor="#CCCCCC">
<td nowrap>產(chǎn)品名稱</td>
<td nowrap>價(jià) 格</td>
<td nowrap>訂購(gòu)數(shù)量</td>
<td nowrap>金額</td>
</tr>
<%
Collection c=(Collection)OrderList.getOrderList();
Iterator oItr=c.iterator();
while(oItr.hasNext()){
OrderItem oItem=(OrderItem)oItr.next();
%>
<tr bgcolor="#99FFFF">
<td nowrap>
<%=oItem.getName()%> </td>
<td nowrap>
<%=oItem.getPrice()%> </td>
<td nowrap>
<%=oItem.getQuantity()%> </td>
<td nowrap>
<%=oItem.getTotalprice()%> </td>
</tr>
<%
}
%>
</table>
<p align="center">
總價(jià) : <%=OrderList.getTotalprice()%></p>
<p align="center">
<b><font size="4">< 新訂單 ></font></b></p>
<table align="center">
<tr bgcolor="#CCCCCC">
<td nowrap>訂購(gòu)</td>
<td nowrap>產(chǎn)品名稱</td>
<td nowrap>價(jià) 格</td>
<td nowrap>訂購(gòu)數(shù)量</td>
</tr>
<%
Vector pVector=ProductTbl.getProductList();
Enumeration pEnu=pVector.elements();
int num = 0;
while(pEnu.hasMoreElements()){
ProductItem p=(ProductItem)pEnu.nextElement();
%>
<tr bgcolor="#99FFFF">
<td nowrap>
<div align="center">
<input type="checkbox" name="itemNum"
value='<%=num++%>'>
<input type="hidden" name="product_id"
value='<%=p.getProduct_id()%>'>
<input type="hidden" name="name"
value='<%=p.getName()%>'>
<input type="hidden" name="price"
value='<%=p.getPrice()%>'>
</div>
</td>
<td nowrap> <%=p.getName()%> </td>
<td nowrap> <%=p.getPrice()%> </td>
<td nowrap>
<input type="text" name="quantity" maxlength="4">
</td>
</tr>
<%
}
%>
</table>
<p align="center">
<input type="submit" name="Submit" value="確定">
<input type="reset" name="Reset" value="重填">
<a href="index.html">回首頁(yè)</a>
</form>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -