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

📄 basketok.jsp

📁 网上书店后台管理源码基于struts1.2+oracle数据库
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" language="java" %>
<%@ page import = "com.dongfang.po.*" %>
<%@ page import="com.dongfang.vo.*" %>
<%@ page import = "java.util.*" %>	

<%
	List shopCartList = (List)session.getAttribute(Contants.SHOPCART_KEY);
	ShopCart shopCart = null;
%>

<html>
<head>
<link href=images/css.css rel=STYLESHEET type=text/css>
<title></title></head>
<body><font color="#000000"><b>
<table border="0" width="400" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="center" bgcolor="#DBC2B0"><font color="#000000"><b>
    <images border="0" src="images/promo_list_top.gif" width="100%" height="4"></td></tr>
  <tr> 
    <td height="18" align="center" bgcolor="#DBC2B0">所选购的书</td></tr><tr> 
    <td height="16"> <form method="POST" action="cash.htm">
        <table border="0" width="100%" cellspacing="0" height="34" cellpadding="0">
          <tr bgcolor="#FFFFFF"> 
            <td width="398" bgcolor="#F5EFE7">
            <div align="center">
              <center>
              <table width="90%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
                <tr>
                  <font color="#000000"><b>

                <td width="155" height="25"> <div align="center">书名</div></td>
                <td width="80"> <div align="center">单价</div></td>
                <td width="80"> <div align="center">数量</div></td>
                <td width="100"> <div align="center">总价</div></td>
                  </b></font>
                </tr>

	   <%if(shopCartList != null ){

       for(int i = 0;i < shopCartList.size();i++)
       {  
       		shopCart = (ShopCart)shopCartList.get(i);
      %>


                <tr>
                <font color="#000000"><b>
                <td width="155" height="25"> <div align="center"><%=shopCart.getBook().getName()%> </div></td>
                <td width="80"> <div align="center"><%=shopCart.getPrice()%></div></td>
                <td width="80"> <div align="center"><%=shopCart.getCount()%></div></td>
                <td width="100"> <div align="center"><%=shopCart.getCount()*shopCart.getPrice()%></div></td>
                </tr>
        <%
         }
      }	%>

               
              </table>
              </center>
            </div></tr>
        </table>
      </form></td>
  </tr>
  <tr> 
    <td height="30" valign="top" bgcolor="#F5EFE7"><table width="83%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="33%"><a href="clearShopCart.do"><img border="0" src="images/relbcar.gif" width="100" height="20"></a></td>
          <td width="33%"><a href="cash.jsp"><img border="0" src="images/gobuy.gif" width="100" height="20"></a></td>
        </tr>
      </table></td>
  </tr>
</table>

⌨️ 快捷键说明

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