orderConfirm.jsp
上传用户:jishiqi_cj
上传日期:2022-08-08
资源大小:24765k
文件大小:7k
源码类别:

Java编程

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK" language="java" %>
  2. <%@ page import = "BookStore.*" %>
  3. <%@ page import = "java.util.*" %>
  4. <%
  5. Vector shopCartList = (Vector)session.getAttribute(Constants.ORDER_DETAIL_KEY);
  6. ShopCart  shopCart = null;
  7. Order order = (Order)session.getAttribute(Constants.BOOK_ORDER_KEY);
  8. User user = (User)session.getAttribute(Constants.LOGIN_USER_INFO_KEY);
  9. System.out.println(shopCartList.size());
  10. %>
  11. <html>
  12. <head>
  13. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  14. <LINK href="images/style.css" type="text/css" rel=stylesheet>
  15. </HEAD>
  16. <BODY bgColor=#ffffff leftMargin=0 topMargin=0>
  17. <TABLE cellSpacing=0 cellPadding=0 width=763 align=center bgColor=#10777b 
  18. border=0>
  19.   <TBODY>
  20.   <TR>
  21.     <TD><IMG height=6 src="images/spacer.gif" width=72> 
  22.     <IMG 
  23.       height=1 src="images/spacer.gif" width=62> </TD></TR>
  24.   </TBODY></TABLE>
  25. <TABLE cellSpacing=0 cellPadding=0 width=763 align=center border=0>
  26.   <TBODY>
  27.   <TR>
  28.     <TD vAlign=top align=middle width="15%">
  29.       <TABLE cellSpacing=0 cellPadding=0 width=64 border=0>
  30.         <TBODY>
  31.         <TR>
  32.           <TD></TD></TR></TBODY></TABLE></TD>
  33.     <TD vAlign=top><!-- Outer Table--><BR>
  34.       <TABLE cellSpacing=0 cellPadding=0 width="90%" align=left border=0 height="483">
  35.         <TBODY>
  36.         <TR>
  37.           <TD height="95">
  38.             <TABLE cellSpacing=0 cellPadding=0 border=0>
  39.               <TBODY>
  40.               <TR>
  41.                 <TD><IMG src="images/book_040.gif" width="136" height="93"> </TD>
  42.                 <TD width=400 background=images/book_041.gif>
  43.                 <IMG 
  44.                   src="C:Documents and Settingsteacher桌面bookstore订单收据.filesspacer(1).gif" width="1" height="1"></TD>
  45.                 <TD><IMG src="images/book_042.gif" width="135" height="93"> 
  46. </TD></TR></TBODY></TABLE></TD>
  47.         <TR>
  48.           <TD align=right width="90%" height="124">
  49.             <TABLE cellSpacing=0 cellPadding=0 width="100%" align=right 
  50. border=0 height="58">
  51.               <TBODY>
  52.               <TR>
  53.                 <TD align=left colSpan=2 height=28><FONT class=large 
  54.                   color=#0d7999>您的注册信息:</FONT></TD>
  55.                 </TR>
  56.               <TR>
  57.                 <TD class=p9 vAlign=top align=right 
  58.                   width="15%" height="1"><B>姓名:&nbsp;</B></TD>
  59.                 <TD class=p9 width="35%" height="1"><%=user.getName()%></TD>
  60.                 </TR>
  61.               <TR>
  62.                 <TD class=p9 vAlign=top align=right 
  63.                   width="15%" height="17"><B>联系地址:&nbsp;</B></TD>
  64.                 <TD class=p9 width="35%" height="17"><%=user.getAddress()%></TD>
  65.                 </TR>
  66.               <TR>
  67.                 <TD class=p9 vAlign=top align=right 
  68.                   width="15%" height="21"><B>电话:&nbsp;</B></TD>
  69.                 <TD class=p9 width="35%" height="21"><%=user.getTel()%></TD>
  70.                 </TR></TBODY></TABLE></TD></TR>
  71.         <TR>
  72.           <TD height=5></TD></TR>
  73.         <TR>
  74.           <TD width=600 bgColor=#dcf0d5 height="22">
  75.             <TABLE cellSpacing=1 cellPadding=1 width=600 border=0>
  76.               <TBODY>
  77.               <TR bgColor=#dcf0d5>
  78.                 <TD align=middle width=290><B><FONT class=p9 
  79.                   color=#005574>&nbsp;书 名 </FONT></B></TD>
  80.                 <TD align=middle width=90><B><FONT class=p9 color=#005574>数 
  81.                   量&nbsp;</FONT></B></TD>
  82.                 <TD align=right width=110><B><FONT class=p9 color=#005574>单 
  83.                   价&nbsp;</FONT></B></TD>
  84.                 <TD align=right width=110><B><FONT class=p9 color=#005574>小 
  85.                   计&nbsp;</FONT></B></TD></TR></TBODY></TABLE></TD></TR>
  86.         <TR>
  87.           <TD width=600 height="22">
  88.             <TABLE cellSpacing=1 cellPadding=1 border=0>
  89.               <TBODY>
  90.     <%if(shopCartList != null ){
  91.        for(int i = 0;i < shopCartList.size();i++)
  92.        {  
  93.         shopCart = (ShopCart)shopCartList.get(i);
  94.        %>
  95.                  
  96.               <TR>
  97.                 <TD align=left width=290><FONT class=p9><%=shopCart.getName()%> 
  98.                 </FONT></TD>
  99.                 <TD align=middle width=80><FONT class=p9><%=shopCart.getCount()%></FONT></TD>
  100.                 <TD align=right width=110><B><FONT class=p9><%=shopCart.getSalePrice()%> 
  101.                 元</FONT></B></TD>
  102.                 <TD align=right width=110><B><FONT class=p9><%=shopCart.getSalePrice()*shopCart.getCount()%> 
  103.                 元</FONT></B></TD></TR>
  104.                 
  105.            <%
  106.          }
  107.       }
  108.       %>
  109.                 
  110.          </TBODY></TABLE></TD></TR>       
  111.         <TR>
  112.           <TD height=14>&nbsp;</TD></TR>
  113.         <TR>
  114.           <TD width=600 height="127">
  115.             <HR color=#dcf0d5 SIZE=1>
  116.             <TABLE cellSpacing=1 cellPadding=0 width=210 align=right border=0>
  117.               <TBODY>
  118.               <TR>
  119.                 <TD><B><FONT class=p9 color=#0d7999>合 计:</FONT></B></TD>
  120.                 <TD align=right><B><FONT class=p9><%=order.getTotal()%>元</FONT></B></TD></TR>
  121.               <TR>
  122.                 <TD colSpan=2>
  123.                   <HR color=#dcf0d5 SIZE=1>
  124.                 </TD></TR>
  125.               <TR>
  126.                 <TD><B><FONT class=p9 color=#0d7999>送货方式:</FONT></B></TD>
  127.                 <TD align=right><B><FONT class=p9><%=order.getDelivery()%></FONT></B></TD></TR>
  128.               <TR>
  129.                 <TD><B><FONT class=p9 color=#0d7999>付款方式:</FONT></B></TD>
  130.                 <TD align=right><B><FONT 
  131.             class=p9><%=order.getPayment()%></FONT></B></TD></TR></TBODY></TABLE></TD></TR>
  132.         <TR>
  133.           <TD height="1"></TD></TR>
  134.         <TR>
  135.           <TD width=600 bgColor=#dcf0d5 height="20">
  136.             <TABLE width=600 align=right bgColor=#dcf0d5>
  137.               <TBODY>
  138.               <TR>
  139.                 <TD width=80></TD>
  140.                 <TD class=Large align=middle><FONT 
  141.                   color=#0d7999><B>您的订单号码是:</B></FONT> </TD>
  142.                 <TD class=p8 align=left width=170><FONT 
  143.                   color=#000000><B><%=order.getId()%></FONT> </B></TD></TR>
  144.               </TBODY></TABLE></TD></TR>
  145.         <TR>
  146.           <TD height="15">
  147.             <HR color=#dcf0d5 SIZE=1>
  148.           </TD></TR>
  149.         <TR>
  150.           <TD align=middle width=600 height="39">
  151.             <TABLE>
  152.               <TBODY>
  153.               <TR>
  154.                 <TD align=middle width=290><A id=next 
  155.                   href="bookSearch.do">
  156.                 <IMG alt=继续购书 
  157.                   src="images/book_007.gif" border=0 width="69" height="25"></A> </TD>
  158.                 <TD align=middle width=300><A 
  159.                   href="orderHistory.do">
  160.                 <IMG 
  161.                   alt=查看订单 src="images/book_043.gif" border=0 width="76" height="31"></A> 
  162.               </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!--********begin***********
  163.     编写者:xuxl 
  164.     功能:前台尾部文件
  165.     ********end*************-->
  166. <TABLE width=763 align=center border=0>
  167.   <TBODY>
  168.   <TR>
  169.     <TD>
  170.       <HR width="90%" SIZE=1>
  171.     </TD></TR>
  172.   <TR>
  173.     <TD>
  174.     <p align="center"> </TD></TR></TBODY></TABLE></BODY></HTML>