81,092
社区成员
发帖
与我相关
我的任务
分享
<%@ page contentType="text/html; charset=gb2312" language="java" pageEncoding="GB2312"%>
<%@ page import="com.dao.BorrowDAO"%>
<%@ page import="com.actionForm.BorrowForm"%>
<%@ page import="java.util.*"%>
<%
%>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<head>
<title>图书馆管理系统</title>
<link href="css/style.css" rel="stylesheet">
</head>
<body onLoad="clockon(bgclock)">
<%@include file="banner.jsp"%>
<%@include file="navigation.jsp"%>
<%
BorrowDAO borrowDAO = new BorrowDAO();
Collection coll_book = (Collection) borrowDAO.bookBorrowSort();
%>
<table width="778" height="510" border="0" align="center"
cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
class="tableBorder_gray">
<tr>
<td align="center" valign="top" style="padding:5px;"><table
width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" align="right" valign="middle" class="word_orange">当前位置:首页
>>> </td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td height="57" background="images/main_booksort.gif"> </td>
</tr>
<tr>
<td height="72" valign="top"><table width="100%"
height="63" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="2%" rowspan="2"> </td>
<td width="96%" align="center" valign="top"><table
width="100%" border="1" cellpadding="0" cellspacing="0"
bordercolor="#FFFFFF" bordercolordark="#B7B6B6"
bordercolorlight="#FFFFFF">
<tr align="center">
<td width="5%" height="25">排名</td>
<td width="10%">图书条形码</td>
<td width="24%">图书名称</td>
<td width="10%">图书类型</td>
<td width="10%">书架</td>
<td width="14%">出版社</td>
<td width="11%">作者</td>
<td>价钱</td>
<td>借阅次数</td>
</tr>
<%
if (coll_book != null && !coll_book.isEmpty()) {
Iterator it_book = coll_book.iterator();
int i = 1;
int degree = 0;
String bookname = "";
String typename = "";
String barcode_book = "";
String bookcase = "";
String pub = "";
String author = "";
String translator = "";
Float price = new Float(0);
while (it_book.hasNext() && i < 6) {
BorrowForm borrowForm = (BorrowForm) it_book.next();
bookname = chStr.toChinese(borrowForm.getBookName());
barcode_book = borrowForm.getBookBarcode();
typename = chStr.toChinese(borrowForm.getBookType());
degree = borrowForm.getDegree();
bookcase = chStr.toChinese(borrowForm.getBookcaseName());
pub = chStr.toChinese(borrowForm.getPubName());
author = chStr.toChinese(borrowForm.getAuthor());
price = borrowForm.getPrice();
%>
<tr>
<td height="25" align="center"><%=i%></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>
<td width="8%" align="center"><%=degree%></td>
</tr>
<%
i++;
}
}
%>
</table>
</td>
<td width="2%" rowspan="2"> </td>
</tr>
<tr>
<td height="30" align="right" valign="middle"><a
href=borrow.do?action=bookBorrowSort><img
src="images/more.GIF" width="50" height="20" border="0"> </a>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%@ include file="copyright.jsp"%>
</body>
</html>