-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBooklist_member.jsp
69 lines (66 loc) · 1.85 KB
/
Booklist_member.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
58
59
60
61
62
63
64
65
66
67
68
69
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR" import="java.util.*, book.*" errorPage="books_error.jsp"%>
<% request.setCharacterEncoding("euc-kr"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script language=JavaScript>
function checkS(status) {
if(status==1){
alert("대출 중입니다");
document.form1.action.value="list";
document.form1.submit();
}
else
{document.form1.action.value="lent";
document.form1.submit();}
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>도서 대여</title>
</head>
<body>
<jsp:useBean id="books" class="book.Books"/>
<jsp:useBean id="bb" class="book.BookBean"/>
<jsp:setProperty name="books" property="*"/>
<center>
<h2>도서 선택</h2>
<hr>
<%
int s= books.getStatus();
Books book = bb.getBook(books.getCode());
String code= book.getCode();
session.setAttribute("code",code);
%>
[<a href=Bookscontrol_admin.jsp?action=mlist>도서목록으로</a>]
<form name=form1 method=post action=lent_control.jsp>
<input type=hidden name="action" value="lent">
<table cellpadding=5 cellspacing=0 border="1">
<tr>
<td bgcolor="#99CC00">책제목</td>
<td ><%=book.getTitle()%></td>
</tr>
<tr>
<td bgcolor="#99CC00">저자</td>
<td ><%=book.getWriter()%></td>
</tr>
<tr>
<td bgcolor="#99CC00">출판사</td>
<td ><%=book.getPublisher()%></td>
</tr>
<tr>
<td bgcolor="#99CC00">도서코드</td>
<td ><%=book.getCode()%></td>
</tr>
<tr>
<td bgcolor="#99CC00">비고</td>
<td><%=book.getContents()%></td>
</tr>
<tr>
<td colspan=2 align=center><input type="button" value="대출" onClick="checkS('<%=book.getStatus()%>')"></td>
</tr>
</table>
</form>
</center>
</body>
</html>