📄 basket.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="updateShopCart.do">
<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 height=15>
<td width="155" height="30"> <div align="center"><b>书名</b></div></td>
<td width="155" height="30"> <div align="center"><b>数量</b></div></td>
<td width="155" height="30"> <div align="center"><b>单价</b></div></td>
<td width="155" height="30"> <div align="center"><b>总价</b></div></td>
<td width="155" height="30"> <div align="center"><b>清除</b></div></td>
</TR>
<%if(shopCartList != null ){
for(int i = 0;i < shopCartList.size();i++)
{
shopCart = (ShopCart)shopCartList.get(i);
%>
<TR vAlign=center align=middle>
<TD class=x13 align=left width="358"> <FONT color=#666666><%=shopCart.getBook().getName()%> </FONT>
</TD>
<TD width="124">
<INPUT maxLength=3 size=3 value=<%=shopCart.getCount()%>
name=count> </TD>
<TD width="87"><FONT color=#666666><%=shopCart.getPrice()%> </FONT> </TD>
<TD class=basketDescription width="87"><FONT
color=#666666><%=shopCart.getCount()*shopCart.getPrice()%></FONT> </TD>
<TD width="71">
<INPUT type=checkbox value=<%=shopCart.getBook().getId()%> name=del> </TD>
</TR>
<%
}
} %>
<TR vAlign=center align=middle>
<td height="30" colspan=5 align="center"> <div align="center">
单击"更新订单确认"按钮可以改变购买数量或删除购买记录
</div></td>
</TR>
<TR vAlign=center align=middle>
<td height="30" colspan=5 align="center"> <div align="center">
<input name=B1 type=image id="B1" src="images/ok.gif" align=absMiddle width="45" height="20">
</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>
<tr>
<td align="center">o<images border="0" src="images/promo_list_top.gif" width="100%" height="4"></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -