📄 order.jsp
字号:
<%@page contentType="text/html;charset=GB2312"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="java.util.*,feng.shoppingcart.biz.*,feng.shoppingcart.entity.*"%>
<html>
<body>
<center><hr/>
<table border="0" width="100%" bgcolor="#879097"><tr><td>
</td></tr></table><hr/>
<center>
<table border="0" width="90%" ><tr>
<td><input name="image" type="image" src="image/tonight.jpg"/></td>
<td>
<center><h1><bean:message key="order_title"/></h1></center>
</td>
<td><html:image src="image/tonight.jpg" align="right"/>
</td>
</tr></table>
</center><hr/>
<table border="0" width="100%" bgcolor="#879097"><tr><td>
</td></tr></table><hr/><p></p>
<table border="2" width="60%" bgcolor="#879097">
<tr>
<td width="25%" style="font-size:16pt"><center><bean:message key="cart_row2_name"/></center></td>
<td width="20%" style="font-size:16pt"><center><bean:message key="cart_row3_price"/></center></td>
<td width="18%" style="font-size:16pt"><center><bean:message key="cart_row4_number"/></center></td>
<td width="27%" style="font-size:16pt"><center><bean:message key="cart_row5_cost"/></center></td>
</tr>
<c:set var="cart" value="${sessionScope.cart}"/>
<c:forEach items="${cart.items}" var="item" >
<tr>
<td style="font-size:14pt"><center>${item.value.product.name}</center></td>
<td style="font-size:14pt"><center>${item.value.product.price}</center></td>
<td style="font-size:14pt"><center>${item.value.number}</center></td>
<td style="font-size:14pt"><center>${item.value.cost}</center></td>
</tr>
</c:forEach>
<tr>
<td colSpan="5" style="font-size:16pt"><center>
<bean:message key="cart_last_cloumn"/>
<c:out value="${cart.cost}"/></center></td>
</tr>
</table>
<input onclick="javascript:location.href='<%=request.getContextPath()%>/jsp/cart.jsp'" style="font-size:16pt"
type="button" value="<bean:message key='order_modify'/>" name="Submit42">
<input onclick="javascript:location.href='<%=request.getContextPath()%>/jsp/productsView.jsp'" style="font-size:16pt"
type="button" value="<bean:message key='order_continue'/>" name="Submit42">
<br><br>
<c:set var="user" value="${sessionScope.user}"/>
<html:form action="/jsp/order.do" method="post">
<html:errors />
<table style="font-size:16pt">
<tr>
<td colSpan="5"><center><h3>
<bean:message key='order_true'/></h3></center>
</td>
</tr>
<tr>
<td>username:</td>
<td>${user.name}</td>
</tr>
<tr>
<td>address:</td>
<td><input type="text" name="address" value="${user.address}"></td>
</tr>
<tr>
<td>postCode:</td>
<td><input type="text" name="postCode" value="${user.postCode}"></td>
</tr>
<tr>
<td>email:</td>
<td><input type="text" name="email" value="${user.email}"></td>
</tr>
<tr>
<td>homePhone:</td>
<td><input type="text" name="homePhone" value="${user.homePhone}"></td>
</tr>
<tr>
<td>cellPhone:</td>
<td><input type="text" name="cellPhone" value="${user.cellPhone}"></td>
</tr>
<tr>
<td>officePhone:</td>
<td><input type="text" name="officePhone" value="${user.officePhone}"></td>
</tr>
</table>
<input style="font-size:16pt" type="submit" value="<bean:message key='order_ok'/>" name="Submit42">
</html:form>
<p> </p>
</center></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -