?? book.jsp
字號:
<%@ page language="java" import="java.sql.*" pageEncoding="gb2312"%>
<%
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>
<base href="<%=basePath%>">
<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">
-->
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<jsp:include page="inc/head.html"/>
<body>
<%
try
{
String type1=(String)session.getValue("type");
int t=Integer.parseInt(type1);
if (t<1) response.sendRedirect("Login.jsp");
}
catch(Exception e)
{
response.sendRedirect("Login.jsp");
}
%>
<jsp:useBean id="book" class="Beans.BookBean">
</jsp:useBean>
<table width="100%" height="100%">
<tr>
<td width="25%"> </td>
<td width="75%">
<%
ResultSet rs=null;
try
{
String id=(String)session.getValue("id");
rs=book.getrs(id);
}
catch(Exception e)
{
response.sendRedirect("Login.jsp");
}
out.print("<TABLE class=datagridstyle id=DataGrid1 style='WIDTH: 100%; BORDER-COLLAPSE: collapse' cellSpacing=0 cellPadding=3 border=0><tr><td><b>書名</b><td><b>價格</b><td><b>出版社</b><td><b>借書時間</b><td><b>還書時間</b>");
while(rs.next())
{
//out.print("<tr class=datagrid1212><td><input type=radio name=delete value="+rs.getString("Users_ID")+">");
out.print("<tr class=datagrid1212><td>"+rs.getString("Book_Name")+"</td>");
out.print("<td>"+rs.getString("Book_Price")+"</td>");
out.print("<td>"+rs.getString("Publish_House")+"</td>");
out.print("<td>"+rs.getString("Loan_Date")+"</td>");
out.print("<td>"+rs.getString("Due_Date")+"</td></tr>");
}
out.print("</table>");
%>
</td>
</tr>
</table>
<br>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -