forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookReturn.jsp
More file actions
153 lines (152 loc) · 4.2 KB
/
Copy pathbookReturn.jsp
File metadata and controls
153 lines (152 loc) · 4.2 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<html>
<head>
<title>图书归还</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet">
<script language="javascript" src="js/checkform.js"></script>
</head>
<body>
<table width="90%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
class="tableBorder_LTR">
<tr>
<td height="30" align="center">
<div align="center">
<p>
<span class="word_grey"></span>
</p>
</div>
</td>
</tr>
</table>
<form action="returnBookOperation.htm" method="post" name="form1">
<table width="84%" border="0" align="center" cellpadding="0"
cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="14%" height="27">
学 号:
</td>
<td height="41">
<input name="stu_id" type="text" id="bookID2"
value="${info.stu.stuId }"
onchange="if(stu_id.value==''||isNaN(stu_id.value))alert('请以数字格式输入学号!');else window.location.href='returnBookOperation.htm?stu_id='+stu_id.value+'&book_id='+book_id.value">
</td>
<td height="27">
学生姓名:
</td>
<td height="27">
<input name="stu_name" type="text" id="bookname2"
value="${info.stu.name }" readonly="yes">
</td>
</tr>
<tr>
<td width="14%" height="27">
书 号:
</td>
<td height="41">
<input name="book_id" type="text" id="bookID2"
value="${info.borrow.bookReginster.bookId }"
onblur="if(book_id.value=='')alert('请输入书号!');else window.location.href='returnBookOperation.htm?stu_id='+stu_id.value+'&book_id='+book_id.value">
</td>
<td height="27">
书 名:
</td>
<td height="27">
<input name="book_name" type="text" id="book_name"
readonly="yes" value="${info.borrow.bookName }">
</td>
</tr>
<tr>
<td height="41">
借阅日期:
</td>
<td height="41">
<input name="borrow_date" type="text" id="borrow_date"
value="${info.borrow.borrowDate }" readonly="yes">
</td>
</tr>
<tr>
<td height="38" colspan="4" align="center">
<input name="return" type="submit" value="归还" onclick="return checkBorrow(form1)">
<input name="reset" type="reset" value="重置">
</td>
</tr>
</table>
<hr>
<table width="90%" border="1" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td>
<div align="center">
学号
</div>
</td>
<td>
<div align="center">
姓名
</div>
</td>
<td>
<div align="center">
书号
</div>
</td>
<td>
<div align="center">
书名
</div>
</td>
<td>
<div align="center">
借阅日期
</div>
</td>
</tr>
<c:forEach var="list" items="${info['list']}">
<tr>
<td>
<div align="center">
${list.docuStuInfo.stuId}
</div>
</td>
<td>
<div align="center">
${info.stu.name }
</div>
</td>
<td>
<div align="center">
${list.bookReginster.bookId }
</div>
</td>
<td>
<div align="center">
${list.bookName }
</div>
</td>
<td>
<div align="center">
${list.borrowDate }
</div>
</td>
</tr>
</c:forEach>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>