📄 bookinf.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> <c:if test="${empty param.bookID}"> <td align="center"> <br/> <br/> <font size="4" color="red">您提交了非法数据!</font> </td> </c:if> <c:if test="${not empty param.bookID}"> <form action="/bookInfAction.do" method="POST"> <sql:setDataSource driver="com.microsoft.jdbc.sqlserver.SQLServerDriver" url="jdbc:microsoft:sqlserver://127.0.0.1:1433;databasename=MyShop" user="sa" password="" var="db" scope="request"/> <sql:query var="query" dataSource="${requestScope.db}" sql="select * from information where bookId=?"> <sql:param value="${param.bookID}"/> </sql:query> <c:forEach var="row" items="${query.rows}"> <td valign="top" bordercolor="#ffffff" width="410" bgcolor="#ffffff"> <div align="center"> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td background="/shop/img/bj_x.gif" height="1"> </td> </tr> <tr> <td background="/shop/img/bj_x.gif" height="1"> </td> </tr> </table> <table cellspacing="0" cellpadding="4" width="100%" align="center" border="0"> <tr> <td align="middle" colspan="4"> <font color="#ff0000"> <b>商品信息</b> </font> </td> </tr> <tr> <td background="/shop/img/bj_x1.gif" colspan="4" height="1"> </td> </tr> </table> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td valign="top" width="160"> <table cellspacing="0" cellpadding="2" width="100%" border="0"> <tr> <td> <div align="center"> <a href="${row.bookImage}" target="_blank"> <img height="130" alt="点击浏览商品大图" src="${row.bookImage}" width="130" border="0"> </a> </div> </td> </tr> <tr> <td> <div align="center"> <a href="${row.bookImage}" target="_blank"> <img height="36" src="/shop/img/view2.gif" width="115" border="0"> </a> </div> </td> </tr> <tr> <td align="middle"> 会员价:${row.BookPrice} 元 </td> </tr> <tr> <td align="middle"> VIP价: <font color="#ff9999">更优惠</font> </td> </tr> </table> </td> <td valign="top"> <table cellspacing="0" cellpadding="2" width="100%" border="0"> <br> <tr> <td height="30"> <font color="#990000" size="2"> <strong>${row.BookName} <br /> <br /> </strong> </font> </td> </tr> <tr> <td>【图书作者】 ${row.bookPenster} </td> </tr> <tr> <td> 【出版社】 ${row.bookCompany} </td> </tr> <tr> <td> 【商品库存】${row.BookStorage} 本 </td> </tr> <tr> <td> 【所属类别】 <sql:query var="Type" dataSource="${requestScope.db}" sql="select * from Type where TypeId=${row.BookType}"/> <c:forEach var="e" items="${Type.rows}"> <a href="/shop/pagerAction.do?TypeId=${e.TypeId}&bookStep=0" targer="_blank">${e.Display} </a> </c:forEach> </td> </tr> <tr> <td> 【图书等级】 <sql:query var="BookStep" dataSource="${requestScope.db}" sql="select * from BookStep where BookStepId=${row.BookStep}"/> <c:forEach var="step" items="${BookStep.rows}"> <a href="/shop/pagerAction.do?TypeId=0&bookStep=${step.BookStepId}" targer="_blank">${step.Display} </a> </c:forEach> </td> </tr> <tr> <td> 有0位网友评论</td> </tr> </table> <table height="80"> <tr> <td valign="bottom" align="middle" width="221"> <a onclick="javascript:window.open('/shop/bookInfAction.do?bookId=${row.BookId}','gouwu','width=450,height=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');" href="javascript:;"> <img height="36" src="/shop/img/shopcart2.gif" width="100" border="0" alt=""> </a> </td> </tr> </table> </td> </tr> </table> <br> <table cellspacing="0" cellpadding="0" width="100%" border="0"> <tr> <td background="/shop/img/bj_x1.gif" height="1"> </td> </tr> <tr> <td> <table height="37" cellspacing="0" cellpadding="0" width="95%" align="center" border="0"> <tr> <td background="/shop/img/view0.gif"> </td> </tr> </table> <table cellspacing="0" cellpadding="0" width="95%" align="center" border="0"> <tr> <td> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td align="center">${row.BookSynopsis} </td> </tr> <tr> <td background="/shop/img/bj_x1.gif" height="1"> </td> </tr> <tr> <td background="/shop/img/review.gif" height="37"> </td> </tr> <tr> <td background="/shop/img/bj_x.gif" height="1"> </td> </tr> <tr> <td align="middle" height="38"> <a onclick="javascript:window.open('info_recommend.asp?id=361','pingluntj','width=325,height=200,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no')" href="javascript:;"> <img height="19" src="/shop/img/tj.gif" width="60" border="0"> </a> <a onclick="javascript:window.open('review.asp?id=361','pinglun','width=295,height=325,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no');" href="javascript:;"> <img height="19" src="/shop/img/pl.gif" width="60" border="0"> </a> </td> </tr> </table> </div> </td> </c:forEach> </form> </c:if> <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 + -