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

📄 merchandiseinformationlist.jsp

📁 java开发购物车+网上书城
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<style>
<!--
.wr{font-size: 12pt; line-height: 22px}
.wr1 {	FONT-SIZE: 12px; LINE-HEIGHT: 200%}
.wr2 {	FONT-SIZE: 14px; LINE-HEIGHT: 200%}
.wr3 {	FONT-SIZE: 12px}
.wr4 {	FONT-SIZE: 12px; LINE-HEIGHT: 150%}
// -->
</style>
<title>清韵网上书店后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script type="text/javascript">
	function getshelfName(shelfName,shelfId)
	{
		var disp=document.getElementById("disp");
		disp.innerText=shelfName;
		var sid=document.getElementById("sid");
		sid.value=shelfId;
	}
</script>
</head>

<body bgcolor="#FFFFDB" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="700" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="200" class="wr4"> 
      <div align="center"><b>图书分类目录</b></div>
    </td>
    <td width="1"><img src="images/point.gif" width="1" height="1"></td>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr> 
    <td width="200" height="30" class="wr4">&nbsp;</td>
    <td width="1" height="30" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>
    <td height="30"> 
      <div class="wr4"> 
        <div align="center">你选中的类别是: <font color="#FF0000"><i><span id="disp">${shelf.shelfName }</span></i></font></div>
      </div>
    </td>
    <td height="30" class="wr4"> 
      <div align="center"><a href="${pageContext.request.contextPath }/selectTwo.do">增加新书</a></div>
    </td>
  </tr>
  <tr valign="top"> 
    <td width="200"> 
      <table border="0" cellspacing="0" cellpadding="2" align="center">
						<c:forEach items="${requestScope.oneBookContent}" var="one">
							<tr>
								<td class="wr4">
									&nbsp;
								</td>
								<td class="wr4">
									<img src="images/x1.gif" width="4" height="4">
									<a
										href="${pageContext.request.contextPath }/twoBookContent.do?shelfId=${one.shelfId }">
										${one.shelfName }</a>

								</td>
								<td class="wr4">
									&nbsp;
								</td>
								<c:forEach items="${requestScope.twoBookContent}" var="two">
									<c:if test="${one.shelfId==two.parentShelfId }">
										<tr>
											<td class="wr4">
												&nbsp;
											</td>
											<td class="wr4">
												&nbsp;
											</td>
											<td class="wr4">
												<img src="images/x1.gif" width="4" height="4">
												<!-- 阻止链接的两种方式
													onclick=“javascript:void(null)”
													onclick="方法名();return false;"
												 -->
												<a href="#"
													onclick="getshelfName('${two.shelfName }','${two.shelfId }');return false;">
													${two.shelfName }</a>
											</td>
										</tr>
									</c:if>
								</c:forEach>
							</tr>
						</c:forEach>

						<tr>
							<td class="wr4">
								&nbsp;
							</td>
							<td class="wr4">
								&nbsp;
							</td>
							<td class="wr4">
								&nbsp;
							</td>
						</tr>
					</table>
    </td>
    <td width="1" bgcolor="#000000"><img src="images/point.gif" width="1" height="1"></td>
    <td colspan="2"> 
    <form action="${pageContext.request.contextPath }/twoBookshelf.do" name="frm" method="post">
      <table border="0" cellspacing="0" cellpadding="2" align="center">
        <tr> 
          <td> 
            <input type="text" name="bookType" >
          </td>
          <td> 
          	<input type="hidden" id="pid" name="pid" value="${shelf.shelfId }">
            <input type="hidden" id="sid" name="sid">
            <input type="submit" name="search" id="search" value="查找">
          </td>
        </tr>
      </table>
      <table width="460" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#000000">
        <tr bgcolor="#FFFFDB" align="center"> 
          <td class="wr4" width="42">序号</td>
          <td class="wr4" width="94">书名</td>
          <td class="wr4" width="72">作者</td>
          <td class="wr4" width="133">出版社</td>
          <td class="wr4" width="133">价格</td>
          <td class="wr4" width="45" align="center">修改</td>
          <td class="wr4" width="43" align="center">推荐</td>
        </tr>
        <c:forEach items="${requestScope.book_list}" var="book">
        <tr bgcolor="#FFFFDB"> 
          <td class="wr4" width="42">${book.bookId }</td>
          <td class="wr4" width="94"><a href="MerchandiseInformationBrow.jsp" target="_blank">${book.bookName }</a></td>
          <td class="wr4" width="133">${book.bookAuthor }</td>
          <td class="wr4" width="72">${book.bookPublish }</td>
          <td class="wr4" width="72">${book.bookPrice }</td>
          <td class="wr4" width="45" align="center"><a href="${pageContext.request.contextPath }/edit.do?bookId=${book.bookId }">修改</a></td>
          <td class="wr4" width="43" align="center"><a href="${pageContext.request.contextPath }/commend.do?bookId=${book.bookId }" >推荐</a></td>
        </tr>
        </c:forEach>
        <tr bgcolor="#FFFFDB"> 
          <td class="wr4" colspan="7" align="right"> 
          		 01 02 03 04 05 06 07>>>
          </td>
        </tr>
      </table>
      <p>&nbsp;</p>
    </form>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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