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

📄 orderinfo.jsp

📁 j2ee框架下的mvc模式的一个网上销售系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="com.qrsx.buyflowers.beans.*,java.util.*"%>
<jsp:useBean id="goods" class="com.qrsx.buyflowers.beans.GoodsBean"
	scope="session" />
<jsp:useBean id="cart" class="com.qrsx.buyflowers.beans.CartBean"
	scope="session">
</jsp:useBean>
<%
    String goodsName=request.getParameter("goodsName");
    String goodsCount=request.getParameter("size");
	System.out.println("@@@@@@@@@@1@@@@1@1");
	String  ordersId;
	String totalPrice;

	totalPrice = request.getParameter("totalPrice");
	OrdersClass orders = cart.genOrder((String) session
			.getAttribute("name"), Float.parseFloat(totalPrice));
    Collection c=cart.getItems();
    Iterator it=c.iterator();
	ordersId =orders.getOrdersId();
	cart.genOrderDetail(ordersId,goodsName,totalPrice,goodsCount);
%>
<HTML>
	<HEAD>
		<TITLE>cart</TITLE>
		<META http-equiv=Content-Type content="text/html; charset=gb2312">
		<LINK
			href="/cartImage.files/css.css"
			type=text/css rel=stylesheet>
		<STYLE>TD {
	FONT-SIZE: 9pt; COLOR: #353535; LINE-HEIGHT: 120%
}
BODY {
	FONT-SIZE: 9pt; LINE-HEIGHT: 120%
}
A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A:active {
	COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
	RIGHT: 0px; COLOR: #336699; POSITION: relative; TOP: 1px; TEXT-DECORATION: none
}
.white1 {
	FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #ffffff
}
.blue1 {
	FONT-WEIGHT: bold; COLOR: #00addf
}
.blue2 {
	FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #00addf
}
</STYLE>

		<SCRIPT language=JavaScript type=text/JavaScript>
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</SCRIPT>

		<STYLE type=text/css>A:link {
	FONT-SIZE: 9pt; TEXT-DECORATION: none
}
UNKNOWN {
	FONT-SIZE: 9pt; COLOR: #f51424
}
UNKNOWN {
	COLOR: #000000
}
UNKNOWN {
	FONT-SIZE: 9pt; COLOR: #000000
}
UNKNOWN {
	FONT-FAMILY: Arial, Helvetica, sans-serif
}
</STYLE>

		<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</SCRIPT>

		<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
	</HEAD>



	<BODY>
		<TABLE cellSpacing=0 cellPadding=0 width=812 align=center
			bgColor=#ffffff border=0>
			<TBODY>
				<TR>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=38 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=63 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=59 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=56 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=62 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=16 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=44 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=77 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=82 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=77 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=80 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=72 border=0>
					</TD>
					<TD>
						<IMG height=1 alt=""
							src="/cartImage.files/spacer.gif"
							width=34 border=0>
					</TD>
				</TR>
				<TR>
					<TD colSpan=6 rowSpan=2>
						<IMG height=79 alt=""
							src="cartImage.files/title_r1_c1.gif"
							width=294 border=0 name=title_r1_c1>
					</TD>
					<TD bgColor=#ffffff colSpan=7>
						<DIV align=right>
							<A name=top></A><A
								href="/cart.jsp"><IMG
									height=20
									src="cartImage.files/top_cart.gif"
									width=76 border=0> </A>
							<A onfocus=this.blur()
								href="checkMyInfo.jsp"><IMG
									height=20
									src="cartImage.files/top_my.gif"
									width=76 border=0> </A>
							<A onfocus=this.blur()
								href="../tourist/help.jsp"><IMG
									height=20
									src="cartImage.files/top_faq.gif"
									width=76 border=0> </A>
							<A onfocus=this.blur()
								href="buyFlowers1/index.jsp?exit=yes"><IMG
									height=20
									src="cartImage.files/top_wh.gif"
									width=76 border=0> </A>
						</DIV>
					</TD>
				</TR>
				<TR>
					<TD bgColor=#ffffff colSpan=7>
						<TABLE height=44 cellSpacing=0 cellPadding=0 width="61%"
							align=right border=0>
							<TBODY>
								<TR>
									<TD>
										<DIV align=left>
											订花热线:0532-12345678
										</DIV>
									</TD>
								</TR>
								<TR>
									<TD>
										<DIV align=left>
											订花 Q&nbsp;Q:12345678
										</DIV>
									</TD>
								</TR>
							</TBODY>
						</TABLE>
					</TD>
				</TR>
				<TR>
					<TD>
						<IMG height=27 alt=""
							src="cartImage.files/title_r2_c1.gif"
							width=38 border=0 name=title_r2_c1>
					</TD>
					<TD>
						<A href="../index.jsp"><IMG
								height=27 alt=""
								src="cartImage.files/title_r2_c2.gif"
								width=63 border=0 name=title_r2_c2> </A>
					</TD>
					<TD colspan="11">
						<A
							href="../tourist/produceInfo.jsp"><IMG
								height=27 alt=""
								src="cartImage.files/title_r2_c10.gif"
								width=77 border=0 name=title_r2_c10> </A><A
							href="..1/tourist/language.jsp"><IMG
								height=27 alt=""
								src="cartImage.files/title_r2_c11.gif"
								width=80 border=0 name=title_r2_c11> </A><A
							href="../tourist/flowersLanguage.jsp"><IMG
								height=27 alt=""
								src="cartImage.files/title_r2_c12.gif"
								width=72 border=0 name=title_r2_c12> </A>
						<IMG height=27 alt=""
							src="cartImage.files/title_r2_c13.gif"
							width=476 border=0 name=title_r2_c13>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<DIV align=left>
			<BR>
		</DIV>
		<TABLE cellSpacing=1 cellPadding=2 width=812 align=center border=0>
			<TBODY>
				<TR>
					<TD width=397 height=40>
						<DIV class=blue2 align=center>
							<DIV align=left>
								订单生成成功!
							</DIV>
						</DIV>
					</TD>
					<TD width=352>
						<DIV align=center>
							<IMG height=60
								src="cartImage.files/liucheng1.gif"
								width=235>
						</DIV>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE cellSpacing=1 cellPadding=1 width=812 align=center
			bgColor=#00addf border=0>
			<FORM
				action="/cart.jsp"
				method=get>
			<TBODY>
				<TR bgColor=#00addf>
					<TD width="22%" bgColor=#00addf height=22>
						<DIV class=white1 align=center>
							订单号
						</DIV>
					</TD>
					<TD width="26%" height=22>
						<DIV class=white1 align=center>
							用户名
						</DIV>
					</TD>
					<TD width="23%" height=22>
						<DIV class=white1 align=center>
							总价
						</DIV>
					</TD>
					<TD class=white1 width="29%" height=22>
						<DIV align=center>
							日期
						</DIV>
					</TD>
				</TR>
				<tr bgcolor="#FFFFFF">
					<td>
						<div align="center">
							<%=1%>
						</div>
					</td>
					<td>
						<div align="center">
							<%=session.getAttribute("name")%>
						</div>
					</td>
					<td>
						<div align="center">
							<%=totalPrice%>
						</div>
					</td>
					<td>
						<div align="center">
							<%=new java.util.Date().toLocaleString()%>
						</div>
					</td>
				</tr>

				<%--<%
					GoodsBean gb = new GoodsBean();
					Collection cart_item = cart.getItems();
					Iterator itc = cart_item.iterator();

					while (itc.hasNext()) {

						String goodsId = (String) itc.next();

						Collection coll = gb.getGoods(goodsId);
						Iterator i = coll.iterator();
						GoodsClass goodsClass = null;
						if (i.hasNext()) {
							goodsClass = (GoodsClass) i.next();
						}
					}
				%>--%>
				
				<TR bgColor=#ffffff><FORM name=form1 method=post>
					<TD colSpan=6 height=25>
						&nbsp;
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

						<DIV align=center>

							<input onFocus=this.blur()
								onClick="this.form.action='../index.jsp';this.form.submit()"
								type=image height=43 width=93
								src="cartImage.files/cart01.gif"
								border=0 name=imageField>
						</DIV>
					</TD>
				</TR>
				<INPUT type=hidden name=h_price>
				<TR bgColor=#ebf9fd>
					<TD colSpan=6 height=36>
						<DIV align=center></DIV>
					</TD></FORM>
				</TR>


			</TBODY>
			
		</TABLE>
		<BR>


		<TABLE cellSpacing=0 cellPadding=0 width=812 align=center
			bgColor=#e0e0e0 border=0>
			<TBODY>
				<TR>
					<TD>
						&nbsp;
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<table width=812 height="48" border=0 align=center cellpadding=0
			cellspacing=0>
			<tbody>
				<tr>
					<td height="16" bgcolor=#f5f5f5>
						<div align="center">
							<SPAN class=cfont><FONT color=#7f7f7f><B><A
										href="../admin/CheckLogin.jsp">管理员登陆</A>
								</B> </FONT> </SPAN>
						</div>
					</td>
				</tr>
				<tr>
					<td height="31" bgcolor=#f5f5f5>
						<div align="center">
							Copyright &copy; All Rights Reserved
						</div>
					</td>
				</tr>
			</tbody>
		</table>
		<p>
			&nbsp;
		</p>
	</BODY>
</HTML>

⌨️ 快捷键说明

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