📄 detailinform.jsp
字号:
<%@ page language="java" import="java.util.*" contentType="text/html; charset=gb2312;" pageEncoding="gb2312"%>
<%@ page import="conn.*,bean.*"%>
<jsp:useBean id="GoodsDao" class="bean.GoodsDao" scope="page"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
//从数据库中去出结果集
String goodID = request.getParameter("goodID");
String sql = "select * from goods where bookid = '" + goodID+"'";
ArrayList<Goods> result =GoodsDao.goodsSelect(sql);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="temp.files/books.css" rel="stylesheet" type="text/css">
<title>图书详细信息</title>
</head>
<body>
<DIV style="FLOAT: center; WIDTH: 500px">
<UL style="MARGIN-TOP: 10px; BORDER-BOTTOM: #a9b9d1 1px solid"></UL>
<UL class=this-title>
<H1><%=result.get(0).getBookname() %></H1></UL>
<DIV class=this-pic>
<IMG src="<%=result.get(0).getImageurl()%>" border=1>
<BR>
<UL> </UL>
<UL>
<A href="Buy.jsp?goodID= <%=request.getParameter("goodID")%>&action=add" target=_self>
<IMG src="temp.files/order1.gif" border=0></A>
</UL>
<UL> </UL>
<UL>
<A href="Buy.jsp" target=_self>
<IMG src="temp.files/addfavorites1.jpg" border=0></A>
</UL>
</DIV><!--图书基本情况-->
<DIV style="FLOAT: left; WIDTH: 270px">
<TABLE width="100%">
<TBODY>
<TR>
<TH>作 者:</TH>
<TD colSpan=6><%=result.get(0).getAuthor() %></TD></TR>
<TR>
<TH>I S B N:</TH>
<TD colSpan=6><%=result.get(0).getIsbn() %></TD></TR>
<TR>
<TH>类 别:</TH>
<TD colSpan=6><%=result.get(0).getSort() %></TD></TR>
<TR>
<TH>页 数:</TH>
<TD colSpan=6><%=result.get(0).getPages() %></TD></TR>
<TR>
<TH>封面形式:</TH>
<TD colSpan=6><%=result.get(0).getPack() %></TD></TR>
<TR>
<TH>出 版 社:</TH>
<TD colSpan=6><%=result.get(0).getPublish() %></TD></TR>
<TR>
<TH>定 价:</TH>
<TD colSpan=6><%=result.get(0).getPrice() %></TD></TR>
</TBODY></TABLE></DIV>
<DIV style="FLOAT: left; WIDTH: 230px">
<DIV class=br> </DIV>
<DIV style="FLOAT: left; ">内容简介:<br><%=result.get(0).getContent()%></DIV>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -