📄 showbook.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="data.LoginData"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/html">
<!--
.STYLE1 {font-size: 9px}
-->
</style>
<style type="text/css">
<!--
.STYLE9 {font-size: 24px; font-weight: bold; color: #3399FF; }
.STYLE10 {
color: #FFFFFF;
font-weight: bold;
font-size: 14px;
}
-->
</style>
</head>
<body>
<jsp:useBean id="show" class="Bean.MachSearch" scope="page">
</jsp:useBean>
<jsp:useBean id="connDbBean" scope="page" class="db.dbConn"/>
<%
Connection conn=null;
Statement stmt=null;
ResultSet rs=null;
String strSql="";
String str =(String)request.getParameter("id");
byte b[]=str.getBytes("ISO-8859-1");
str=new String(b);
try{
LoginData loginData = new LoginData();
conn = loginData.getConn();
stmt=conn.createStatement(
ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
strSql="SELECT * FROM Bnominate where Bnname='"+str+"'";
rs = stmt.executeQuery(strSql);
if(rs.next()){
}
else{
response.sendRedirect("tushu/error.jsp");
}
}catch(SQLException e){
System.out.println(e.getMessage());
}
%>
<table width="975" border="0" cellpadding="0" cellspacing="0" bordercolor="#333399">
<!--DWLayoutTable-->
<tr>
<td height="76" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="171" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="171" height="76" valign="middle"><img src="image/tushu2.bmp" /></td>
</tr>
</table> </td>
<td width="75" height="28"> </td>
<td width="100"> </td>
<td width="18"> </td>
<td width="101"> </td>
<td width="26"> </td>
<td width="100"> </td>
<td width="30"> </td>
<td width="100"> </td>
<td width="49"> </td>
<td width="100"> </td>
<td width="105"> </td>
</tr>
<tr>
<td height="48"> </td>
<td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100" height="48" align="center" valign="bottom" bgcolor="#F5F5F5"><a href="Search.jsp" class="STYLE9">图书检索</a></td>
</tr>
</table></td>
<td> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100" height="48" align="center" valign="bottom" bgcolor="#F5F5F5"><a href="Mylibary.jsp" class="STYLE9"><strong>我的图书</strong></a></td>
</tr>
</table></td>
<td> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100" height="48" align="center" valign="bottom" bgcolor="#F5F5F5"><a href="studentIndex.jsp" class="STYLE9">新书通报</a></td>
</tr>
</table></td>
<td> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100" height="48" align="center" valign="bottom" bgcolor="#F5F5F5" class="STYLE9"><a href="ShowInfor.jsp" class="STYLE9">信息发布</a></td>
</tr>
</table></td>
<td> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100" height="48" align="center" valign="bottom"><!--DWLayoutEmptyCell--> </td>
</tr>
</table></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="975" height="30" bgcolor="#3366CC"> </td>
</tr>
</table> </td>
</tr>
<tr>
<td width="261" height="20"> </td>
<td width="479"> </td>
<td width="235"> </td>
</tr>
<tr>
<td height="256"> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="124" height="28" valign="top"><table width="100%" border="2" cellpadding="0" cellspacing="0" bordercolor="#3366CC">
<!--DWLayoutTable-->
<tr>
<td width="124" height="28" align="left" valign="bottom" bgcolor="#3366CC"><span class="STYLE10">图书信息</span></td>
</tr>
</table> </td>
<td width="355"> </td>
</tr>
<tr>
<td height="228" colspan="2" valign="top"><table width="100%" border="2" cellpadding="0" cellspacing="0" bordercolor="#3366CC">
<!--DWLayoutTable-->
<tr>
<td width="479" height="228" align="center" valign="middle"><table width="100%" border="0">
<tr>
<td height="28" align="center" valign="bottom">
<%
out.print("推荐图书名: ");
out.print(rs.getString("Bnname"));
%>
</td>
</tr>
<tr>
<td height="28" align="center" valign="bottom">
<%
out.print("推荐人 : ");
out.print(rs.getString("Bnreader"));
%>
</td>
</tr>
<tr>
<td height="28" align="center" valign="bottom">
<%
out.print("出版社 : ");
out.print(rs.getString("Bnconcern"));
%>
</td>
</tr>
<tr>
<td height="28" align="center" valign="bottom">
<%
out.print("出版日期: ");
out.print(rs.getString("Bnpdate"));
%>
</td>
</tr>
<tr>
<td height="30" align="center" valign="bottom">
<%
out.print("推荐日期: ");
out.print(rs.getString("Bndate"));
%>
</td>
</tr>
<tr>
<td height="27" align="center" valign="bottom"> </td>
</tr>
<tr>
<td height="29" align="center" valign="bottom"> </td>
</tr>
<tr>
<td height="31" align="center" valign="bottom"> </td>
</tr>
<tr>
<td height="44" align="center" valign="bottom">
<%
stmt.close();
conn.close();
%>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -