forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookType_add.jsp
More file actions
64 lines (64 loc) · 2.11 KB
/
bookType_add.jsp
File metadata and controls
64 lines (64 loc) · 2.11 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
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<title>添加图书类型信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="CSS/style.css" rel="stylesheet">
</head>
<script language="jscript">
function check(form){
if(form.typeName.value==""){
alert("请输入类型名称!");form.typeName.focus();return false;
}
if(form.days.value==""){
alert("请输入可借天数!");form.days.focus();return false;
}
}
</script>
<body>
<table width="292" height="175" border="0" cellpadding="0" cellspacing="0" background="Images/subBG.jpg">
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="3%" height="31"> </td>
<td width="94%"> </td>
<td width="3%"> </td>
</tr>
<tr>
<td> </td>
<td><table width="100%" height="131" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"> <form name="form1" method="post" action="bookType?action=bookTypeAdd">
<table height="100" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="77" align="center">类型名称:</td>
<td width="198" height="39">
<input name="typeName" type="text" size="30"> </td>
</tr>
<tr>
<td width="77" align="center">可借天数:</td>
<td height="35"><input name="days" type="text" id="days" size="25">
(天)</td>
</tr>
<tr>
<td align="center"> </td>
<td><input name="Submit" type="submit" class="btn_grey" value="保存" onClick="return check(form1)">
<input name="Submit2" type="button" class="btn_grey" value="关闭" onClick="window.close();"></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>