-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreturn_ok.jsp
57 lines (56 loc) · 1.67 KB
/
return_ok.jsp
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
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR" import="java.util.*, book.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>반납 완료</title>
</head>
<body>
<jsp:useBean id="login" class="book.LoginBean" scope="session" />
<jsp:useBean id="lb" class="book.LentBean" scope="session" />
<jsp:useBean id="bb" class="book.BookBean" scope="session" />
<jsp:useBean id="books" class="book.Books" scope="session" />
<%
String code= (String)session.getAttribute("code");
Books book = bb.getBook(code);
%>
<center>
<h2>반납 완료</h2>
<hr>
<%=login.getUserid() %>님, 반납이 완료되었습니다.
<br>감사합니다 :)
<br><br>
[<a href="menu.jsp">메인 화면으로</a>]
[<a href="Bookslist_member.jsp">도서 목록으로</a>]
<%;
MemberBean mb= new MemberBean();
Member memebr= mb.getDB((String)session.getAttribute("userid"));
String userid=(String)session.getAttribute("userid");
ArrayList<Lent> datas1= lb.getUserLentList(userid);
ArrayList<Lent> datas=lb.getLentOkList();
%>
<br><br>
<TABLE border='1' cellspacing=1 cellpadding=2 width='600'>
<TR bgcolor="#99CC00">
<TD align='center' width='100'>대출 ID</TD>
<TD align='center' width='250'>도서 명</TD>
<TD align='center' width='200'>대여 일자</TD>
<TD align='center' width='200'>반납 일자</TD>
</TR>
<%
for(Lent lent:datas ){
%>
<tr>
<td><%=lent.getLent_id()%></td>
<td><%=book.getTitle()%></td>
<td><%=lent.getLent_date()%></td>
<td><%=lent.getRet_date()%></td>
</tr>
<%
}
%>
</TABLE>
</center>
</body>
</html>