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

📄 list.jsp

📁 网上书店(Struts开发)JAVASTRUTS网上书店
💻 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 prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@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"%>
<html>
<head>
<title>图书商城--商品信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="/shop/img/css.css" type="text/css" rel="stylesheet">
<script language="javascript">window.open('http://www.98202.com');</script>
<script language="javascript" src="/shop/img/floater.js"></script>
</head>
<body leftmargin="0" topmargin="0">
<table cellspacing="0" cellpadding="0" width="770" align="center" border="0">
  <tr>
    <td>
      <jsp:include flush="false" page="top.jsp"/>
    </td>
  </tr>
</table>
<table bordercolor="#edecec" cellspacing="0" cellpadding="0" width="770" align="center" border="1">
  <tr>
    <td valign="top" bordercolor="#ffffff" width="178" bgcolor="#ffffff">
      <table cellspacing="0" cellpadding="0" width="178" border="0">
        <tr>
          <td background="/shop/img/bj_x.gif" height="1">          </td>
        </tr>
        <tr>
          <td height="14">
            <table height="20" cellspacing="0" cellpadding="0" width="170">
              <tr>
                <td>
                  <img height="34" src="/shop/img/cpfl.gif" width="178">
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td background="/shop/img/bj_x.gif" height="1">          </td>
        </tr>
        <tr>
          <td>
            <table cellspacing="0" cellpadding="0" width="100%" align="center" bgcolor="#e6e6e6" border="0">
              <tr>
                <td>
                  <jsp:include flush="false" page="typetree.jsp"/>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
          <td background="/shop/img/bj_x.gif" height="1">          </td>
        </tr>
        <tr>
          <td height="14">
            <img height="34" src="/shop/img/tjpp.gif" width="178">
          </td>
        </tr>
        <tr>
          <td background="/shop/img/bj_x.gif" height="1">          </td>
        </tr>
        <tr>
          <td>
            <jsp:include flush="false" page="tejia.jsp"/>
          </td>
        </tr>
      </table>
      <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
          <td>
            <jsp:include flush="false" page="vote.jsp"/>
          </td>
        </tr>
      </table>
    </td>
    <td valign="top" width="1" background="/shop/img/bj_x.gif">    </td>
    <td valign="top" bordercolor="#ffffff" width="410" bgcolor="#ffffff">
      <div align="center">
        <table cellspacing="0" cellpadding="4" width="100%" align="center" border="0">
          <tr>
            <td colspan="4">
              <font color="#333399" size="2">
                <strong>
                  <c:if test="${not empty requestScope.bookList}">
                    <c:if test="${param.bookStep==0}">
                      <sql:query var="Type" dataSource="${requestScope.db}" sql="select * from Type where TypeId=${param.TypeId}"/>
                      <c:forEach var="e" items="${Type.rows}">${e.Display}                      </c:forEach>
                    </c:if>
                    <c:if test="${param.TypeId==0}">
                      <sql:query var="Step" dataSource="${requestScope.db}" sql="select * from bookStep where BookStepId=${param.bookStep}"/>
                      <c:forEach var="s" items="${Step.rows}">${s.Display}                      </c:forEach>
                    </c:if>
                  </c:if>
                  <c:if test="${empty requestScope.bookList}">没有图书</c:if>
                </strong>
              </font>
            </td>
          </tr>
          <tr>
            <td background="/shop/img/bj_x.gif" colspan="4" height="1">            </td>
          </tr>
        </table>
        <c:forEach var="list" items="${requestScope.bookList}">
          <table cellspacing="0" cellpadding="2" width="100%" align="center" border="0">
            <tr>
              <td width="30%" rowspan="4">
                <div align="center">
                  <a href="/shop/jsp/bookinf.jsp?bookID=${list.bookId}">
                    <img height="75" src="${list.bookImage}" width="75" border="0" alt="${list.bookName}">
                  </a>
                </div>
              </td>
              <td width="70%">
                <a href="/shop/jsp/bookinf.jsp?bookID=${list.bookId}">
                  <font color="#800000">
                    <u>
                      <strong>${list.bookName}                      </strong>
                    </u>
                  </font>
                </a>
              </td>
            </tr>
            <tr>
              <td width="70%">                会员价:
                <font color="#ff0000">${list.bookPrice}                  元
                </font>
                VIP价:
                <font color="#ff9999">更优惠!</font>
              </td>
            </tr>
            <tr>
              <td width="70%">
                <a onclick="javascript:window.open('/shop/bookInfAction.do?bookId=${list.bookId}','shouchang','width=450,height=350,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');" href="javascript:;">
                  <img height="18" src="/shop/img/goumai.gif" width="40" border="0" alt="">
                </a>
              </td>
            </tr>
            <tr>
              <td width="70%">
                <font color="#999999">${list.bookSynopsis}                </font>
              </td>
            </tr>
            <tr>
              <td background="/shop/img/bj_x1.gif" colspan="2" height="1">              </td>
            </tr>
          </table>
        </c:forEach>
        <table align="center" border="0">
          <form onsubmit="document.location = '/shop/pagerAction.do?next=true&TypeId=${requestScope.TypeId}&bookStep=${requestScope.bookStep}&page='+ this.page.value;return false;" method="get">
          <tr>
            <td align="right">
              <p align="center">
                <a href="/shop/pagerAction.do?page=frest&TypeId=${requestScope.TypeId}&bookStep=${requestScope.bookStep}">首页</a>
                <c:if test="${requestScope.page>1}">
                  <a href="/shop/pagerAction.do?page=${requestScope.page-1}&next=false&TypeId=${requestScope.TypeId}&bookStep=${requestScope.bookStep}">上一页</a>
                </c:if>
                <c:if test="${requestScope.page<=1}">上一页                </c:if>
                <c:if test="${requestScope.page!=requestScope.countPage}">
                  <a href="/shop/pagerAction.do?page=${requestScope.page+1}&next=true&TypeId=${requestScope.TypeId}&bookStep=${requestScope.bookStep}">下一页</a>
                </c:if>
                 <c:if test="${requestScope.page==requestScope.countPage}">
                 下一页
                </c:if>
              <a href="/shop/pagerAction.do?page=last&TypeId=${requestScope.TypeId}&bookStep=${requestScope.bookStep}">尾页</a>
                页次:${requestScope.page}/${requestScope.countPage}页 共有19种商品 转到
                <input maxlength="5" size="1" value="${requestScope.page}" name="page" tyep="TEXT">
                <input class="b2" style="FONT-SIZE: 9pt" type="submit" value="GO">
              </p>
            </td>
          </tr>
          </form>
        </table>
      </div>
    </td>
    <td valign="top" width="1" background="/shop/img/bj_x.gif">    </td>
    <td valign="top" bordercolor="#ffffff" width="178" bgcolor="#ffffff">
      <table cellspacing="0" cellpadding="0" width="178" align="center" border="0">
        <tr>
          <td background="/shop/img/bj_x.gif" height="1">          </td>
        </tr>
        <tr>
          <td>
            <table height="20" cellspacing="0" cellpadding="0" width="170">
              <tr>
                <td>
                  <img height="34" src="/shop/img/hydl.gif" width="178">
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td background="/shop/img/bj_x.gif" height="1">          </td>
        </tr>
        <tr>
          <td>
            <jsp:include flush="false" page="reg/login1.jsp"/>
          </td>
        </tr>
      </table>
      <table cellspacing="0" cellpadding="0" width="18%" border="0">
        <tr>
          <td background="/shop/img/bj_x.gif" height="1">          </td>
        </tr>
        <tr>
          <td width="86">
            <img height="34" src="/shop/img/xsph.gif" width="178">
          </td>
        </tr>
        <tr>
          <td background="/shop/img/bj_x.gif" height="1">          </td>
        </tr>
        <tr>
          <td>
            <jsp:include flush="false" page="paihang.jsp"/>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="0" cellpadding="0" width="770" align="center" border="0">
  <tr>
    <td>
      <jsp:include flush="false" page="Copyright.jsp"/>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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