⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderinfobody.jsp

📁 一个Struts+Hibernate编写的网上商店.可以用毕业设计.
💻 JSP
字号:
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ page contentType="text/html; charset=gb2312" language="java"
	import="netshop.util.*,netshop.businessobjects.*"%>
<logic:present name="<%=Constants.TEMP_ORDER_KEY %>" scope="request">
	<bean:define id="order" name="<%=Constants.TEMP_ORDER_KEY %>"
		scope="request"></bean:define>
	<bean:define id="items" name="order" property="lineItems"></bean:define>
	<bean:define id="user" name="order" property="user"></bean:define>
	<bean:define id="rec" name="order" property="receiver"></bean:define>
	<table width="736" border="0" style="border-collapse: collapse"
		cellpadding="0" background="<%=request.getContextPath()%>/images/cash2.gif">
		<tr>
			<td height="24" colspan="7" background="<%=request.getContextPath()%>/images/cash1.gif"></td>
		</tr>
		<tr>
			<td height="26" colspan="7" align="center"><b><bean:message
				key="order.generate.success" /><bean:write name="order"
				property="orderNumber" />:</b></td>
		</tr>
		<tr>
			<td height="26" align="center" width="10"></td>
			<td height="26"
				style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE"><bean:message
				key="shopping.cart.item.name" /></td>
			<td height="26"
				style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE"><bean:message
				key="shopping.cart.item.baseprice" /></td>
			<td height="26"
				style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE"><bean:message
				key="shopping.cart.item.quantity" /></td>
			<td height="26"
				style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE"><bean:message
				key="order.item.comment" /></td>
			<td height="26"
				style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE"><bean:message
				key="shopping.cart.item.totalprice" /></td>
			<td height="26" width="20"></td>
		</tr>
		<%double total_price = 0;

				%>
		<logic:iterate id="lineItem" name="items">
			<bean:define id="item" name="lineItem" property="item"></bean:define>
			<tr>
				<td height="26" align="center" width="10"></td>

				<td height="26"
					style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE"><%--<html:link
					page="/detailViewAction.do" paramId="itemId" paramName="item"
						paramProperty="id" target="blank">--%> <bean:write name="item"
					property="name" /> <%--</html:link>--%></td>
				<td height="26"
					style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE">¥<bean:write
					name="lineItem" property="basePrice" /></td>
				<td height="26"
					style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE"><bean:write
					name="lineItem" property="quantity" /></td>
				<td height="26"
					style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE">&nbsp;-</td>
				<td height="26"
					style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #EEEEEE"><bean:write
					name="lineItem" property="totalPrice" /></td>
				<td height="26" width="20"></td>
			</tr>
			<%total_price = total_price
							+ ((LineItem) pageContext.getAttribute("lineItem"))
									.getTotalPrice().doubleValue();

				%>
		</logic:iterate>
		<tr>
			<td height="26" colspan="6" align="right">
			<p style="margin-top:8px; margin-bottom:8px"><bean:message
				key="shopping.cart.totalprice" /><b>¥<%=total_price%></b>&nbsp;&nbsp;&nbsp;










			
			<table border="0" cellpadding="0" cellspacing="0">

				<tr>
				</tr>

			</table>
			</td>
			<td height="26" align="right" width="20"></td>
		</tr>
	</table>
	<table border="0" cellpadding="0" cellspacing="0" width="736"
		background="<%=request.getContextPath()%>/images/cash2.gif">
		<tr>
			<td height="48" colspan="2" background="<%=request.getContextPath()%>/images/cash0.gif"></td>
		</tr>
		<tr>
			<td height="26" align="right"><bean:message key="user.name" /></td>
			<td height="26"><bean:write name="user" property="name" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="share.telephone" /></td>
			<td height="26"><bean:write name="user" property="telephone" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="share.email" /></td>
			<td height="26"><bean:write name="user" property="email" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="share.address" /></td>
			<td height="26"><bean:write name="user" property="address" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="share.postcode" /></td>
			<td height="26"><bean:write name="user" property="postCode" /></td>
		</tr>
		<tr>
			<td height="48" colspan="2" background="<%=request.getContextPath()%>/images/cash3.gif"></td>
		</tr>
	</table>
	<table border="0" cellpadding="0" cellspacing="0" width="736"
		background="<%=request.getContextPath()%>/images/cash4.gif">
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="receiver.name" /></td>
			<td height="26"><bean:write name="rec" property="name" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="share.telephone" /></td>
			<td height="26"><bean:write name="rec" property="telephone" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="share.email" /></td>
			<td height="26"><bean:write name="rec" property="email" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="share.address" /></td>
			<td height="26"><bean:write name="rec" property="address" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="share.postcode" /></td>
			<td height="26"><bean:write name="rec" property="postcode" /></td>
		</tr>
		<%Short reachTime = ((Receiver) pageContext.getAttribute("rec"))
						.getReachTimeMode();
				String reachTimeKey = "";
				switch (reachTime.intValue()) {
				case 1:
					reachTimeKey = "receiver.reach.time.mode.one";
					break;
				case 2:
					reachTimeKey = "receiver.reach.time.mode.two";
					break;
				case 3:
					reachTimeKey = "receiver.reach.time.mode.three";
					break;
				case 4:
					reachTimeKey = "receiver.reach.time.mode.four";
					break;
				case 5:
					reachTimeKey = "receiver.reach.time.mode.five";
					break;
				default:
					reachTimeKey = "receiver.reach.time.mode.one";
				}

				%>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="receiver.reach.time.mode" /></td>
			<td height="26"><bean:message key="<%=reachTimeKey%>" /></td>
		</tr>
		<%Short payType = ((Receiver) pageContext.getAttribute("rec"))
						.getPayType();

				String payTypeKey = "";
				switch (payType.intValue()) {
				case 1:
					payTypeKey = "receiver.paytype.one";
					break;
				case 2:
					payTypeKey = "receiver.paytype.two";
					break;
				default:
					reachTimeKey = "receiver.paytype.one";
				}

				%>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="receiver.paytype" /></td>
			<td height="26"><bean:message key="<%=payTypeKey%>" /></td>
		</tr>

		<%Short deliveType = ((Receiver) pageContext.getAttribute("rec"))
						.getDeliveType();

				String deliveTypeKey = "";
				switch (deliveType.intValue()) {
				case 1:
					deliveTypeKey = "receiver.delivetype.one";
					break;
				case 2:
					deliveTypeKey = "receiver.delivetype.two";
					break;
				case 3:
					deliveTypeKey = "receiver.delivetype.three";
					break;
				default:
					deliveTypeKey = "receiver.delivetype.one";
				}

				%>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="receiver.delivetype" /></td>
			<td height="26"><bean:message key="<%=deliveTypeKey%>" /></td>
		</tr>
		<%boolean stockout = ((Receiver) pageContext.getAttribute("rec"))
						.getStockOut().booleanValue();
				String stockoutKey = "receiver.stockout.one";
				if (stockout) {
					stockoutKey = "receiver.stockout.one";
				} else {
					stockoutKey = "receiver.stockout.two";
				}

				%>

		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="receiver.stockout" /></td>
			<td height="26"><bean:message key="<%=stockoutKey%>" /></td>
		</tr>
		<tr>
			<td height="26" align="right" width="19%"><bean:message
				key="receiver.comment" /></td>
			<td height="26"><bean:write name="rec" property="comment" /></td>
		</tr>
		<tr>
			<td height="36" align="right" colspan="2" background="<%=request.getContextPath()%>/images/cash5.gif">
			</td>
		</tr>
	</table>
</logic:present>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -