📄 bookcity.jsp
字号:
<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312" import="java.sql.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<jsp:useBean id="data" class="com.hua.book.struts.datebase.Database" scope="session"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>海龙图书</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<table width="780" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td colspan="3" align="center" bgcolor="#FFFFFF"><img src="images/2284008.gif" width="760" height="90"></td>
</tr>
<tr>
<td colspan="2" background="images/titlemu_2.gif" bgcolor="#FFFFFF"><div align="center">
<%@ include file="top.jsp"%>
</div></td>
</tr>
<tr>
<td colspan="2" background="images/titlemu_2.gif" bgcolor="#FFFFFF"><div align="center">
<%@ include file="serach.jsp"%>
</div></td>
</tr>
<tr>
<td width="200" align="center" valign="top" bgcolor="#FFFFFF">
<%@ include file="left.jsp"%>
</td>
<td align="left" valign="top" bgcolor="#FFFFFF">
<table width="580" border="0" align="center" bgcolor="#FF99CC" cellpadding="1" cellspacing="1">
<tr>
<td colspan="4" bgcolor="#FFFFFF">最新图书排行</td>
</tr>
<%
ResultSet rs=(ResultSet)data.getbookinfo();
while(rs.next())
{
%>
<tr>
<td width="100" rowspan="6" bgcolor="#FFFFFF" align="center"><img src="load/<%=rs.getString(11)%>" width="90" height="90" target="_blank"><br>
进馆时间:<%=rs.getString("bookintime")%>
</td>
<td bgcolor="#FFFFFF" align="center">书名:<%=rs.getString("bookname") %></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="center">作者:<%=rs.getString("bookauthor")%></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="center">图书类型:<%=rs.getString("bookbiglocation")%><br><%=rs.getString("booksmalllocation")%> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="center">出版社:<%=rs.getString("bookchubanshe")%></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="center">说明:<%=rs.getString("bookshuoming") %></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="center"><label>
<div align="center"> <a href="xiangxiinfo.jsp?bookid=<%=rs.getString("bookid")%>&bookname=<%=rs.getString("bookname")%>&bookauthor=<%=rs.getString("bookauthor")%>&bookbiglocation=<%=rs.getString("bookbiglocation")%>&booksmalllocation=<%=rs.getString("booksmalllocation")%>&bookshuliang=<%=rs.getString("bookshuliang")%>&bookchubanshe=<%=rs.getString("bookchubanshe")%>&bookinprice=<%=rs.getString("bookinprice")%>&bookshuoming=<%=rs.getString("bookshuoming")%>&bookimage=<%=rs.getString("bookimage")%>&bookintime=<%=rs.getString("bookintime")%>&bookborrowprice=<%=rs.getString("bookborrowprice")%>"><img src="images/na-122.gif" width="80" height="19" border="0"></a> <a href="order.jsp?bookid=<%=rs.getString("bookid")%>&bookname=<%=rs.getString("bookname")%>&bookauthor=<%=rs.getString("bookauthor")%>&bookbiglocation=<%=rs.getString("bookbiglocation")%>&booksmalllocation=<%=rs.getString("booksmalllocation")%>&bookshuliang=<%=rs.getString("bookshuliang")%>&bookchubanshe=<%=rs.getString("bookchubanshe")%>&bookinprice=<%=rs.getString("bookinprice")%>&bookshuoming=<%=rs.getString("bookshuoming")%>&bookimage=<%=rs.getString("bookimage")%>&bookintime=<%=rs.getString("bookintime")%>&bookborrowprice=<%=rs.getString("bookborrowprice")%>"><img src="images/na-121.gif" width="81" height="19" border="0"></a></div>
</label></td>
</tr>
<%
}
%>
</table></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"> <div align="center">
<%@ include file="last.jsp"%>
</div></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -