-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBooklist_admin.jsp
68 lines (68 loc) · 2.28 KB
/
Booklist_admin.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
<%--도서 수정, 삭제 페이지--%>
<%@ 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">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<html>
<head>
<script language=JavaScript>
// 삭제 확인을 위한 자바스크립트
function delcheck() {
// 메시지 창을 통해 YES/NO 확인
result = confirm("정말로 삭제하시겠습니까 ?");
if(result == true){
document.form1.action.value="delete";
document.form1.submit();
}
else
return;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>상품 수정, 삭제</title>
</head>
<%
Books book = (Books)request.getAttribute("book");
%>
<body>
<center>
<h2>상품 수정,삭제</h2>
<hr>
[<a href=Bookscontrol_admin.jsp?action=list>도서목록으로</a>]
<form name=form1 method=post action=Bookscontrol_admin.jsp>
<input type=hidden name="num" value="<%=book.getNum()%>">
<input type=hidden name="action" value="update">
<table cellpadding=5 cellspacing=0 border="1">
<tr>
<td bgcolor="#99CC00">책제목</td>
<td ><input type="text" name="title" size="40" value="<%=book.getTitle()%>"></td>
</tr>
<tr>
<td bgcolor="#99CC00">저자</td>
<td ><input type="text" name="writer" size="40" value="<%=book.getWriter()%>"></td>
</tr>
<tr>
<td bgcolor="#99CC00">출판사</td>
<td ><input type="text" name="publisher" size="40" value="<%=book.getPublisher()%>"></td>
</tr>
<tr>
<td bgcolor="#99CC00">도서코드</td>
<td ><input type="text" name="code" size="40" value="<%=book.getCode()%>"></td>
</tr>
<tr>
<td bgcolor="#99CC00">비고</td>
<td><textarea rows="5" name="contents" cols="40" ><%=book.getContents() %></textarea></td>
</tr>
<tr>
<td bgcolor="#99CC00">대출여부</td>
<td ><input type="text" name="status" size="40" value="<%=book.getStatus()%>"></td>
</tr>
<tr>
<td colspan=2 align=center><input type=submit value="저장"><input type=reset value="취소"><input type="button" value="삭제" onClick="delcheck()"></td>
</tr>
</table>
</form>
</center>
</body>
</html>