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

📄 shopcar.jsp

📁 Struts网上商城(图书)功能只有基本的 需要完整版 请联系我QQ27612285 或在我的网站留言:www.98202.com
💻 JSP
字号:
<%--
Struts网上商城使用版本 BY GTON  WEB:www.98202.com  QQ:27612285

需要完整版请联系本人

--%>
<%@page contentType="text/html; charset=GBK"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<jsp:include flush="false" page="checkuser.jsp"/>
<html>
<head>
<title>图书商城--我的购物车</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">window.open('http://www.98202.com');</script>
<link href="/shop/img/css.css" rel="stylesheet" type="text/css">
${requestScope.message}
<style type="">
  <!--
    .skin0 {
    position:absolute;
    text-align:left;
    width:180px;
    border:1px solid black;
    background-color:menu;
    font-family:Verdana;
    line-height:20px;
    cursor:default;
    visibility:hidden;
    }
    .skin1 {
    cursor:default;
    font:menutext;
    position:absolute;
    text-align:left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    width:180px;
    background-color:menu;
    border:1 solid buttonface;
    visibility:hidden;
    border:1 outset buttonhighlight;
    }
    .menuitems {
    padding-top:5px;
    padding-left:15px;
    padding-right:10px;
    }
    .menuitems2{
    padding-top:5px;
    padding-left:15px;
    padding-right:10px;
    }
  -->
</style>
<script language="javascript" type="">
            function updateshoppingcart()
            {
               document.shopcar.action = "shopCarAction.do?action=countChenge";
               document.shopcar.submit();
           }
          function  delall()
          {
            document.shopcar.action = "shopCarAction.do?action=delall";
            document.shopcar.submit();
          }
      </script>
</head>
<body>
<table align="center" border="0" cellpadding="2" cellspacing="2" width="96%">
  <tr>
    <td align="center" valign="baseline">我的购物车</td>
  </tr>
</table>
<form name="shopcar" method="post" action="/shop/jsp/orderInsertAction.do">
<table align="center" bgcolor="#ffcc00" border="0" cellpadding="1" cellspacing="1" width="96%">

  <tr bgcolor="#ffe2a6">
    <td height="22" width="25%">
      <div align="center">
        <font color="#666666">商品名称</font>
      </div>
    </td>
    <td height="22" width="15%">
      <div align="center">
        <font color="#666666">单价 (会员)</font>
      </div>
    </td>
    <td bgcolor="#ffe2a6" height="22" width="15%">
      <div align="center">
        <font color="#666666">数量</font>
      </div>
    </td>
    <td height="22" width="15%">
      <div align="center">
        <font color="#666666">总价</font>
      </div>
    </td>
    <td height="22" width="10%">
      <div align="center">
        <font color="#666666">删除</font>
      </div>
    </td>
  </tr>
  <c:forEach var="i" items="${sessionScope.list}">
    <tr bgcolor="#fff9ec">
      <td style="padding-left: 5px;" height="22" width="25%">
        <div align="left">
          <a href="jsp/bookinf.jsp?bookID=${i.bookId}" target="_blank">${i.bookName}          </a>
          <input name="bookId" value="${i.bookId}" type="hidden">
        </div>
      </td>
      <td height="22" width="15%">
        <div align="center">${i.bookPrice}        </div>
      </td>
      <td height="22" width="15%">
        <div align="center">
          <font color="#dd6600">
            <input type="text" name="${i.bookId}" value="${i.bookCount}" size="6" class="form">
          </font>
        </div>
      </td>
      <td height="22" width="15%">
        <div align="center">
          <font color="#ff3300">${i.bookAllPrice}</font>
        </div>
      </td>
      <td height="22" width="10%">
        <div align="center">
          <a href="/shop/shopCarAction.do?action=del&bookId=${i.bookId}">
            <img src="/shop/img/trash.gif" border="0" height="17" width="15" alt="">
          </a>
        </div>
      </td>
    </tr>
  </c:forEach>
  <tr bgcolor="#ffffff">
    <td colspan="6" height="25">
      <div align="center">
        <a onclick="javascript:window.close();">
          <img alt="" src="/shop/img/cart01.gif" border=0/>
        </a>
        <a onclick="updateshoppingcart()">
          <img alt="" src="/shop/img/cart03.gif" border=0/>
        </a>
        <a  onclick="delall()">
          <img alt="" src="/shop/img/cart02.gif" border=0/>
        </a>
        <a  onclick="javascript:document.shopcar.submit();">
          <img alt="" src="/shop/img/cart04.gif" border=0/>
        </a>
        <%--
          <input name="imageField" src="/shop/img/cart01.gif" onfocus="this.blur()" onclick="javascript:window.close()" type="image">
          <input name="imageField2" src="/shop/img/cart03.gif" onfocus="this.blur()" onclick="this.form.action='shopcart_inc.asp';this.form.submit()" type="image">
          <input name="imageField22" src="/shop/img/cart02.gif" onfocus="this.blur()"  onclick="this.form.action='ClearShopcart.asp';this.form.submit()" type="image">
          <input name="imageField222" src="/shop/img/cart04.gif" onfocus="this.blur()" onclick="javascript:window.open('payment.asp','jszx','width=650,height=500,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');window.close()" type="image">
        --%>
      </div>
    </td>
  </tr>
  <tr bgcolor="#fff9ec">
    <td colspan="6" height="36">
      <div align="center">        购物车里有商品:${sessionScope.shangpin}件 总数:${sessionScope.zongshu}件 共计:${sessionScope.gongji}元 您有预存款:0元
        <br>
      </div>
    </td>
  </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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