⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 borrowing.jsp

📁  一个用JSP写的基于了B/S的图书馆管理系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page import="java.util.Vector" %>
<%@ page import="lms.BorrowRecord" %>
<jsp:useBean id="borrowrecords" scope="page" class="web.BorrowTableOperation">
</jsp:useBean>

<%
 String UserID = (String)session.getAttribute("UserID");
 if (UserID == null || UserID.equals("") ){
   response.sendRedirect("logon.jsp?message=nologon");
}
%>

<html>
<link rel="stylesheet" href="style.css" type="text/css">
<head>
<title>在借图书</title>
<style type="">a{TEXT-DECORATION:none}</style>
<style type="text/css">
<!--
.style1 { border-color: #009900 }
-->
</style>
</head>
<body bgcolor="#ffffff">
<jsp:include flush="true" page="head_.jsp"></jsp:include>
<hr width="62%"/>

<p align="center"><font size="+3" color="RED">在 借 图 书</font></p>

<table align="center" cellspacing="0" cellpadding="1" width="60%" border="1">
<tr align="center">
  <td align="center"><font color="008000">序号</font></td>
  <td align="center"><font color="008000">图书名</font></td>
  <td align="center"><font color="008000">索书号</font></td>
  <td align="center"><font color="008000">摘要</font></td>
  <td align="center"><font color="008000">借书日期</font></td>
  <td align="center"><font color="008000">应书日期</font></td>
</tr>
<%
borrowrecords.setUserID(UserID);
//System.out.println(UserID);
//System.out.println(borrowrecords.getUserID());
Vector v = borrowrecords.getBorrowingBook();
for (int i=0;i<v.size();i++)
{
BorrowRecord br = (BorrowRecord)v.elementAt(i);
%>
<tr align="center">
<td align="center"><%=i+1 %></td>
<td align="center"><%=br.getBookName() %></td>
<td align="center"><%=br.getBookIndex() %></td>
<td align="center"><%=br.getSummary() %></td>
<td align="center"><%=br.getOutDay() %></td>
<td align="center"><%=br.getBackDay() %></td>
</tr>
<%
}
%>
</table>

<hr width="62%"/>
<jsp:include flush="true" page="bottom.jsp"></jsp:include>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -