📄 shopingcarinformation.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<style>
<!--
.wr{font-size: 12pt; line-height: 22px}
.wr1 { FONT-SIZE: 12px; LINE-HEIGHT: 200%}
.wr2 { FONT-SIZE: 14px; LINE-HEIGHT: 150%}
.wr3 { FONT-SIZE: 12px}
.wr4 { FONT-SIZE: 12px; LINE-HEIGHT: 150%}
// -->
</style>
<script type="text/javascript">
function refer(name)
{
if(name=="")
{
alert("请您先登录然后在结账!");
return false;
}
return true;
}
function jump(bookNum,bookId)
{
if(isNaN(bookNum))
{
alert("请输入数字!");
return;
}
window.location.href="${pageContext.request.contextPath}/editNum.do?bookId=" +bookId+ "&bookNum=" +bookNum;
}
</script>
<title>购物车详细信息 - 清韵网上书店</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="770" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td rowspan="2" width="152"><a href="http://www.qybook.com"><img src="images/logo.gif" width="152" height="84" alt="清韵网上书店" border="0"></a></td>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="53" width="62"><img src="images/dd00-h.gif" width="62" height="53"></td>
<td height="53"><img src="images/daodu34.gif" width="281" height="44" alt="广告区"></td>
<td valign="bottom" height="53" width="50">
<div align="center"> <img src="images/daodu03.gif" width="27" height="25" alt="购物车"><br>
<span class="wr1"><a href="${pageContext.request.contextPath }/proscenium/ShopingCarinformation.jsp">购物车</a> </span></div>
</td>
<td valign="bottom" height="53" width="65">
<div align="center"><img src="images/daodu02.gif" width="28" height="25" alt="订单查询"><br>
<c:choose>
<c:when test="${sessionScope.memberInfo==null }"><span class="wr1">订单查询</span></c:when>
<c:otherwise>
<span class="wr1"><a href="${pageContext.request.contextPath }/tp.do?userId=${sessionScope.memberInfo.userId }"> 订单查询</a></span>
</c:otherwise>
</c:choose>
</div>
</td>
<td valign="bottom" height="53" width="65">
<div align="center"><img src="images/daodu04.gif" width="26" height="25" alt="我的书架"><br>
<c:choose>
<c:when test="${sessionScope.memberInfo==null }"><span class="wr1">我的空间</span></c:when>
<c:otherwise>
<span class="wr1"><a href="${pageContext.request.contextPath }/space.do?userId=${sessionScope.memberInfo.userId }"> 我的空间</a></span>
</c:otherwise>
</c:choose>
</div>
</td>
<td valign="bottom" height="53" width="65">
<div align="center"><img src="images/dd-10.gif" width="27" height="25" alt="我的帐户"><br>
<span class="wr1"><a href="${pageContext.request.contextPath }/userLogin.do">主页</a></span></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="bottom" nowrap><a href="http://www.qybook.com"><img src="images/daodu05.gif" width="116" height="31" alt="首页" border="0"></a><a href="changxiao.htm"><img src="images/daodu06.gif" width="86" height="31" alt="畅销" border="0"></a><a href="wenxue.htm"><img src="images/daodu07.gif" width="63" height="31" alt="文学" border="0"></a><a href="qysx.htm"><img src="images/daodu08.gif" width="95" height="31" alt="清韵书系" border="0"></a><a href="wenhua.htm"><img src="images/daodu09.gif" width="81" height="31" alt="文化" border="0"></a><a href="jingguan.htm"><img src="images/daodu10.gif" width="77" height="31" alt="经管" border="0"></a><a href="child.htm"><img src="images/daodu11.gif" width="76" height="31" alt="少儿" border="0"></a></td>
</tr>
</table>
<table width="770" border="0" cellpadding="0" cellspacing="0" align="center" height="28">
<tr>
<td background="images/daodu12.gif" class="wr1" width="147">
<div align="center"><font color="#FFFFFF" face="Arial, Helvetica, sans-serif"><img src="images/dd-mm.gif" width="137" height="16" alt="www.qybook.com"></font></div>
</td>
<td background="images/daodu12.gif" valign="bottom" class="wr1" width="415">
<div align="right"><font color="#FFFFFF"><b>今日上架 | 专题特区 | 排行榜 | 书店平台 | 购书演示</b></font></div>
</td>
<td background="images/daodu12.gif" valign="bottom" width="42"> </td>
<td background="images/daodu12.gif" valign="bottom" width="162"
class="wr1">
<font color="#FFFFFF"><b><a href="${pageContext.request.contextPath }/proscenium/qybook_main.jsp">登录</a> |
<a href="${pageContext.request.contextPath }/proscenium/enrol.jsp"> 注册 </a>|
<c:choose>
<c:when test="${sessionScope.memberInfo==null }">
</c:when>
<c:otherwise>
<a href="${pageContext.request.contextPath }/userExit.do"> 退出登录</a>
</c:otherwise>
</c:choose>
</b> </font>
</td>
</tr>
</table>
<table width="662" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
<tr>
<td>
<div align="center" class="wr4"><b><font color="#BA6119">您的购物车详细信息</font></b></div>
</td>
</tr>
<tr>
<td><img src="images/hb10.gif" width="662" height="41"></td>
</tr>
<tr>
<td background="images/hb01.gif" bgcolor="#FEFFEF">
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
</table>
<table width="600" border="0" cellspacing="1" cellpadding="5" align="center" bgcolor="#000000">
<tr align="center" bgcolor="#FEFFEF">
<td class="wr4" width="145">书名</td>
<td class="wr4" width="70">数量</td>
<td class="wr4" width="80">原价</td>
<td class="wr4" width="80">清韵价</td>
<td class="wr4" width="80">小计</td>
<td class="wr4" width="80">节省</td>
<td class="wr4" width="35">删除</td>
</tr>
<c:set var="total" scope="page" value="0"></c:set>
<c:set var="pinch" value="0" scope="page"></c:set>
<c:forEach items="${sessionScope.orderCar.list}" var="car">
<c:set var="total" value="${total+car.count*car.bookDiscount*car.bookPrice}" scope="page"></c:set>
<c:set var="pinch" value="${pinch+(car.bookPrice-car.bookDiscount*car.bookPrice)*car.count}" scope="page"></c:set>
<tr bgcolor="#FEFFEF" align="center">
<td class="wr4" width="145">${car.bookName }</td>
<td class="wr4" width="70">
<input size="1" maxlength="5" name="txt" value="${car.count }" onblur="jump(this.value,'${car.bookId }')" />
</td>
<td class="wr4" width="80">
<fmt:formatNumber maxFractionDigits="2" value="${car.bookPrice }"></fmt:formatNumber>
</td>
<td class="wr4" width="80">
<fmt:formatNumber maxFractionDigits="2" value="${car.bookDiscount*car.bookPrice }"></fmt:formatNumber>
</td>
<td class="wr4" width="80">
<fmt:formatNumber maxFractionDigits="2" value="${car.count*car.bookDiscount*car.bookPrice }"></fmt:formatNumber>
</td>
<td class="wr4" width="80">
<fmt:formatNumber maxFractionDigits="2" value="${(car.bookPrice-car.bookDiscount*car.bookPrice)*car.count }"></fmt:formatNumber>
</td>
<td class="wr4" width="35"><a href="${pageContext.request.contextPath }/remove.do?bookId=${car.bookId }"> 删除</a></td>
</tr>
</c:forEach>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td class="wr4">
<p>清韵价总计:<font color="#FF0000"><fmt:formatNumber maxFractionDigits="2" value="${pageScope.total }"></fmt:formatNumber></font> 元
总计节省了:<font color="#FF0000"><fmt:formatNumber maxFractionDigits="2" value="${pageScope.pinch }"></fmt:formatNumber></font>
元</p>
</td>
</tr>
<tr>
<td class="wr4">
<hr width="100%" size="1" noshade>
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="1" align="center" height="21" width="163">
<tr>
<td background="images/h08.gif" class="wr4" width="74">
<div align="center"><a href="javascript:history.go(-1)"> 继续购买</a></div>
</td>
<td class="wr4" width="15"> </td>
<td background="images/h08.gif" class="wr4" width="74">
<div align="center"><a href="${pageContext.request.contextPath }/proscenium/orderForm.jsp" onclick="return refer('${sessionScope.memberInfo.userName }');"> 结帐</a></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="images/hb05.gif" width="662" height="10"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<div align="center">
<p><img src="images/daodu36.gif" width="593" height="58" alt="广告区"></p>
<p class="wr1">淘书秀 | 寻书登记 | 好书快讯 | 文化沙龙 | 书店平台<br>
关于书店 | 意见箱 | 联系我们</p>
</div>
</td>
</tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="22" background="images/dd-m09.gif"> </td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
<td class="wr1" width="10"> </td>
<td class="wr1"> </td>
</tr>
<tr>
<td><a href="http://www.qybook.com"><img src="images/dd-009.gif" width="36" height="40" alt="logo" border="0"></a></td>
<td class="wr4" width="10"> </td>
<td class="wr4"> 版权所有:<a href="http://www.qingyun.com" target="_blank">西安清韵科技文化图书有限责任公司</a><br>
地址:西安市高新一路25号创新大厦一楼 服务电话:029-8326696</td>
</tr>
</table>
</body>
</html>
<script ></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -