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

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.BOOK_SHOPCART_KEY);
  6. ShopCart  shopCart = null;
  7. %>
  8. <HTML><HEAD><TITLE></TITLE>
  9. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  10. href="images/style.css" type="text/css" rel=stylesheet>
  11. </HEAD>
  12. <BODY bgColor=#ffffff leftMargin=0 topMargin=0>
  13. <div align="center">
  14.   <center>
  15. <TABLE cellSpacing=0 cellPadding=0 width=763 bgColor=#336699 
  16. border=0 height="27" style="border-collapse: collapse" bordercolor="#111111">
  17.   <TBODY>
  18.   <TR>
  19.     <TD height="27">
  20.        </TD></TR>
  21.   </TBODY></TABLE>
  22.   </center>
  23. </div>
  24. <TABLE cellSpacing=0 cellPadding=0 width=763 align=center border=0>
  25.   <TBODY>
  26.   <TR>
  27.     <TD width="85%">
  28.       <FORM name=BasketForm action="updateShopCart.do"  method=post>
  29.       <TABLE cellSpacing=0 cellPadding=8 width="100%" align=center 
  30.         border=0>
  31.         <TBODY>
  32.         <TR>
  33.           <TD>
  34.             <TABLE cellSpacing=0 cellPadding=0 border=0>
  35.               <TBODY>
  36.               <TR>
  37.                 <TD>
  38.                 <IMG src="images/book_002.gif" width="161" height="97"></TD>
  39.                 <TD align=middle width=400 
  40.                 background=images/book_004.gif>
  41.                 <IMG 
  42.                   src="images/spacer(1).gif" width="1" height="1"> </TD>
  43.                 <TD>
  44.                 <IMG src="images/book_003.gif" width="142" height="97"> 
  45.             </TD></TR></TBODY></TABLE></TD></TR>
  46.         <TR>
  47.           <TD>
  48.             <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  49.               <TBODY>
  50.               <TR>
  51.                 <TD class=small vAlign=top align=left><FONT                   color=#000000>若想改变购买图书数量,请改变数量标题下的数字,然后点击“更新订单”按钮;若想去掉购买的图书,请在“删除”标题下打上勾,然后点击“更新订单”按钮。</FONT> 
  52.                 </TD></TR>
  53.               <TR>
  54.                 <TD>
  55.                   <TABLE cellSpacing=0 cellPadding=2 width="747" 
  56.                   bgColor=#336699 border=0 valign="top" style="border-collapse: collapse" bordercolor="#111111">
  57.                     <TBODY>
  58.                     <TR bgColor=#dcf0d5 height=15>
  59.                       <TD class=normal bgcolor="#336699" width="358" align="center">
  60.                       <b><font color="#FFFFFF">书 名</font></b></TD>
  61.                       <TD class=normal width=124 bgcolor="#336699" align="center">
  62.                       <b><font color="#FFFFFF">数量</font></b></TD>
  63.                       <TD class=normal width="87" bgcolor="#336699" align="center">
  64.                       <b><font color="#FFFFFF">单价(元)</font></b></TD>
  65.                       <TD class=normal width="87" bgcolor="#336699" align="center">
  66.                       <b><font color="#FFFFFF">小计(元)</font></b></TD>
  67.                       <TD class=normal width=71 bgcolor="#336699" align="center">
  68.                       <b><font color="#FFFFFF">删除此项</font></b></TD></TR>
  69.                       
  70.                   
  71.      <%if(shopCartList != null ){
  72.        for(int i = 0;i < shopCartList.size();i++)
  73.        {  
  74.         shopCart = (ShopCart)shopCartList.get(i);
  75.        %>
  76.                  
  77.                       
  78.                     <TR vAlign=center align=middle bgColor=#ffffff>
  79.                       <TD class=x13 align=left width="358">&nbsp;<FONT color=#666666><%=shopCart.getName()%> </FONT>
  80.                       <INPUT 
  81.                         type=hidden value=白色在白色之上 name=prdname> </TD>
  82.                       <TD width="124">
  83.                       
  84.                        <INPUT maxLength=3 size=3 value=<%=shopCart.getCount()%> 
  85.                         name=count> </TD>
  86.                       <TD width="87"><FONT color=#666666><%=shopCart.getSalePrice()%></FONT> </TD>
  87.                       <TD class=basketDescription width="87"><FONT 
  88.                         color=#666666><%=shopCart.getSalePrice()*shopCart.getCount()%></FONT> </TD>
  89.                       <TD width="71">
  90.                       <INPUT type=checkbox value=<%=shopCart.getId()%> name=del> </TD>
  91.                       </TR>
  92.                      
  93.            <%
  94.          }
  95.       }
  96.       %>
  97.                       
  98.                       
  99.                     <TR align=middle bgColor=#ffffff>
  100.                       <TD class=small align=left width="358"><FONT 
  101.                         color=#000000>单击“更新订单”按钮可以改变购买数量或删除购买记录。</FONT></TD>
  102.                       <TD align=middle width="124"><input type="image" src="images/book_005.gif"></A></TD>
  103.                       <TD align=right colSpan=2 width="178"><B></B></TD>
  104.                       <TD align=middle width="71"><B></B></TD></TR>
  105.                     </TBODY></TABLE>
  106.                   <TABLE cellSpacing=0 cellPadding=0 width="100%" 
  107.                   bgColor=#ffffff border=0>
  108.                     <TBODY>
  109.                     <TR>
  110.                       <TD><A 
  111.                         href="bookSearch.do" >
  112.                       <IMG alt=继续购书 
  113.                         src="images/book_007.gif" border=0 width="69" height="25"></A> 
  114.                         &nbsp;&nbsp;&nbsp;&nbsp; <A href="clearShopCart.do">
  115.                       <IMG alt=清空购物车 
  116.                         src="images/book_006.gif" border=0 width="69" height="25"></A> </TD></TR>
  117.                     <TR>
  118.                       <TD class=small align=right><FONT 
  119.                         color=#000000>点击“</FONT><A 
  120.                         href="userLogin.jsp"><FONT 
  121.                         color=#ff0000>结算付款</FONT></A><FONT 
  122.                         color=#000000>”,本站购物向导将陪您轻松完成网上订购!</FONT> </TD></TR>
  123.                     <TR>
  124.                       <TD align=right><A id=next 
  125.                         href="userLogin.jsp" >
  126.                       <IMG alt=结算付款 
  127.                         src="images/book_008.gif" align=right 
  128.                         border=0 width="69" height="25"></A> 
  129.         </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM></TD></TR></TBODY></TABLE></TD></TR></TABLE></TD></TR></TABLE><BR>
  130. <TABLE width=763 align=center border=0>
  131.   <TBODY>
  132.   <TR>
  133.     <TD>
  134.       <HR width="90%" SIZE=1>
  135.     </TD></TR>
  136.   <TR>
  137.     <TD height=20>
  138.       <DIV align=center>Study Online<span lang="zh-cn"> 版权所有</span></DIV></TD></TR>
  139.   </TBODY></TABLE></BODY></HTML>