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

📄 bookcarlist.jsp~144~

📁 网上购书系统
💻 JSP~144~
字号:
<%@page contentType="text/html; charset=GBK"%>
<%@page import="datamanage.dao.DaoBook,java.util.*,datamanage.po.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>BookCarList</title>
<SCRIPT LANGUAGE="JavaScript">
function mysubmit(obj){
  //alert(obj.form.name );
  obj.form.submit();
}
function changeto(highlightcolor){
  source=event.srcElement
  if (source.tagName=="TR"||source.tagName=="TABLE")
  return
  while(source.tagName!="TR")
  source=source.parentElement
  if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
  source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
  if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
  return
  if (event.toElement!=source)
  source.style.backgroundColor=originalcolor
}
</SCRIPT>
</head>
<body bgcolor="#ccffcc">
<h1 align="center">购物车列表</h1>
<hr width="85%" size="2" noshade="noshade" color="#FF0000">
  <table width="100%">
    <tr>
      <td>
      </td>
      <td>图书名称</td>
      <td>图书作者</td>
      <td>出版社</td>
      <td>出版日期</td>
      <td>图书价格</td>
      <td>数量</td>
      <td align="right">删除</td>
    </tr>
    <c:forEach items="${list}" var="book">
      <form name='bcl' action='bookcarmodify' method='post'>
      <tr onMouseOver="changeto('lightgreen')" onMouseOut="changeback('#ccffcc')">
        <td>
          <input name="imageField" type="image" src="${book.bookPath}" width="84" height="112" border="0">
        </td>
        <input type='hidden' name='BookId' value='${book.bookId}'>
        <input type='hidden' name='BookName' value='${book.bookName}'>
        <input type='hidden' name='BookAuthor' value='${book.bookAuthor}'>
        <input type='hidden' name='BookPublish' value='${book.bookPublish}'>
        <input type='hidden' name='BookPubDate' value='${book.bookPubDate}'>
        <input type='hidden' name='BookPrice' value='${book.bookPrice}'>
        <input type='hidden' name='BookNum' value='${book.bookNum}'>

        <td>${book.bookName}    </td>
        <td>${book.bookAuthor}   </td>
        <td>${book.bookPublish}    </td>
        <td>${book.bookPubDate}    </td>
        <td>${book.bookPrice}&nbsp;元</td>
        <td>
          <input size="2" maxlength="4" type='text' name='SelectNum' value='${book.selectNum}'>
          <a href="#" onclick="mysubmit(SelectNum);">修改</a>
        </td>
        <td align="right">
          <a href="bookcardelete?BookId=${book.bookId}">删除</a>
        </td>
      </tr>
      </form>
    </c:forEach>
    <tr>
    </tr>
  </table>
  <table width="100%">
    <tr>
      <td width="34%">&nbsp;</td>
      <td width="50%" align="right"><font face="隶书" style="font-size:.5cm">总计${totalprice}:元</font></td>
      <td width="16%" align="right"><font face="华文行楷" style="font-size:.5cm"><a href='bookcarclear'>清空购物车</a></font></td>
    </tr>
    <tr>
      <td height="40" colspan="3"><hr width="85%" size="2" noshade="noshade" color="#FF0000"></td>
    </tr>
    <tr>
      <td><font color="#FFFF00" face="华文行楷" style="font-size:.5cm"><a href='SelectBooks.jsp'>继续添加</a> </font></td>
      <td colspan="2" align="right"><font color="#FF0000" face="华文行楷" style="font-size:.5cm"><a href='Buy.jsp'>下一步</a></font></td>
    </tr>
  </table>
</body>
</html>

⌨️ 快捷键说明

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