forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookBorrowSort.jsp
More file actions
93 lines (93 loc) · 3.15 KB
/
bookBorrowSort.jsp
File metadata and controls
93 lines (93 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.dao.BorrowDAO" %>
<%@ page import="com.actionForm.BorrowForm" %>
<%@ page import="java.util.*"%>
<html>
<%
Collection coll=(Collection)request.getAttribute("bookBorrowSort");
%>
<head>
<title>图书馆管理系统</title>
<link href="CSS/style.css" rel="stylesheet">
</head>
<body onLoad="clockon(bgclock)">
<%@include file="banner.jsp"%>
<%@include file="navigation.jsp"%>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top" bgcolor="#FFFFFF"><table width="99%" height="510" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
<tr>
<td height="510" valign="top" style="padding:5px;"><table width="98%" height="487" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="22" valign="top" class="word_orange">当前位置:图书借阅排行榜 >>></td>
</tr>
<tr>
<td align="center" valign="top"><%
if(coll==null || coll.isEmpty()){
%>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="36" align="center">暂无图书借阅信息!</td>
</tr>
</table>
<%
}else{
//通过迭代方式显示数据
Iterator it=coll.iterator();
int degree=0;
String bookname="";
String typename="";
String barcode_book="";
String bookcase="";
String pub="";
String author="";
String translator="";
Float price=new Float(0);
%>
<table width="98%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#F6B83B" bordercolorlight="#FFFFFF">
<tr align="center" bgcolor="#e3F4F7">
<td width="8%" bgcolor="#F9D16B">借阅次数</td>
<td width="11%" bgcolor="#F9D16B">图书条形码</td>
<td width="17%" bgcolor="#F9D16B">图书名称</td>
<td width="15%" bgcolor="#F9D16B">图书类型</td>
<td width="16%" bgcolor="#F9D16B">书架</td>
<td width="14%" bgcolor="#F9D16B">出版社</td>
<td width="11%" bgcolor="#F9D16B">作者</td>
<td colspan="2" bgcolor="#F9D16B">定价(元)</td>
</tr>
<%
while(it.hasNext()){
BorrowForm borrowForm=(BorrowForm)it.next();
bookname=borrowForm.getBookName();
barcode_book=borrowForm.getBookBarcode();
typename=borrowForm.getBookType();
degree=borrowForm.getDegree();
bookcase=borrowForm.getBookcaseName();
pub=borrowForm.getPubName();
author=borrowForm.getAuthor();
price=borrowForm.getPrice();
%>
<tr>
<td align="center"> <%=degree%></td>
<td style="padding:5px;"> <%=barcode_book%></td>
<td style="padding:5px;"><%=bookname%></td>
<td style="padding:5px;"><%=typename%></td>
<td align="center"> <%=bookcase%></td>
<td align="center"> <%=pub%></td>
<td width="11%" align="center"><%=author%></td>
<td width="8%" align="center"><%=price%></td>
</tr>
<%
}
}
%>
</table></td>
</tr>
</table>
</td>
</tr>
</table><%@ include file="copyright.jsp"%></td>
</tr>
</table>
</body>
</html>