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

📄 cash.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;
	double total=0;
%>
<head>
<link href=images/css.css rel=STYLESHEET type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>收银台</title></head> 
<body topmargin="0">
<font color="#000000"></FONT> 
<br>
<table width="400" border="0" cellspacing="0" cellpadding="0" align="center" height="50">
  <tr> 
    <td align="center">
    <images border="0" src="images/promo_list_top.gif" width="100%" height="4"></td>
  </tr>
  <tr> 
    <td height="18" bgcolor="#DBC2B0" align="center">收银台</td>
  </tr>
  <tr> 
    <td height="25" valign="top">
    <form method="POST" action="cashOK.jsp">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" >
          <tr> 
            <td valign="top"> 
            <table border="0" width="416" cellspacing="0" height="34" cellpadding="0">
                <tr> 
                  <td width="378" height="120" valign="bottom" bgcolor="#F5EFE7"><p><br>
                    您订购的书籍如下:</p>
                    <div align="center">
                      <center>
                    <table width="90%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
                      <tr background="images/tile_bg.gif"> 
                        <td width="195" height="25"><div align="center">书名</div></td>
                        <td width="60" height="25"><div align="center">单价</div></td>
                        <td width="60" height="25"><div align="center">数量</div></td>
                        <td width="80" height="25"><div align="center">合计</div></td>
                      </tr>
                      

	   <%if(shopCartList != null ){

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

                      <tr> 
                        <td width="195" height="25"><div align="center"><font color=red><%=shopCart.getBook().getName()%></font></div></td>
                        <td width="60" height="25"><div align="center"><%=shopCart.getPrice()%>元</div></td>
                        <td width="60" height="25"><div align="center"><%=shopCart.getCount()%></div></td>
                        <td width="80" height="25"><div align="center"><%=shopCart.getPrice()*shopCart.getCount()%>元
                          </div></td>
                      </tr>
       <%
         }
      }	%>

                      <tr> 
                        <td height="25"><div align="center"><b class="dz1">总计:<font color=red><%=total%>元</b></div></td>
                        <td height="25" colspan="3"><div align="center"><b class="dz1"> 
                            <input  align=absMiddle alt="??? 确认" name="B1"   src="images/ok.gif" type=image  width="45" height="20">
                            </b></div></td>
                      </tr>
                    </table>
                      </center>
                  </div>
                    <br> <table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td valign="middle"><div align="center"><images src="images/seperator.gif" width="359" height="1"></div></td>
                      </tr>
                    </table></td></tr>
              </table>              
            </td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>

⌨️ 快捷键说明

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