-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathstudentAdd.jsp
122 lines (110 loc) · 2.94 KB
/
studentAdd.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
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
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'addUser.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="js/stadd.js"></script>
<style type="text/css">
span {
color: red;
}
body {
margin: 0;
padding: 0;
background-color: #f5f5f5;
}
.form-signin {
max-width: 550px;
padding: 19px 29px 29px;
margin: 0 auto;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
table { /* max-width: 100%; */
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
}
.table {
width: 40%;
margin-bottom: 20px;
}
.form-signin .form-signin-heading,.form-signin .checkbox {
margin-bottom: 10px;
}
.form-signin input[type="text"],.form-signin input[type="password"] {
font-size: 16px;
height: auto;
margin-bottom: 15px;
padding: 7px 9px;
}
.labelError {
line-height: 9px;
font-size: 10pt;
color: #f40000;
border: 1px #ffb8b8 solid;
padding: 8px 8px 8px 35px;
background: url(/Shopping/image/error.png) no-repeat;
background-color: #fef2f2;
}
</style>
</head>
<body>
<form class="form-signin" action="stadd" method="post"
onSubmit="return checkstId() && checkstName() && checkstAge() && checkstSex() && checkstTel() && checkstDept() && checkstAddress()">
<table >
<tr>
<td>
学号:
</td>
<td>
<input class="input" type="text" name="stId" onblur="checkstId()"
onFocus="clearstId()">
<span id="stId1"></span>
</td>
</tr>
<tr>
<td>
姓名:
</td>
<td>
<input class="input" type="text" name="stName" onblur="checkstName()"
onFocus="clearstName()">
<span id="stName1"></span>
</td>
</tr>
<tr>
<td>
系别:
</td>
<td>
<input class="input" type="text" name="stDept" onblur="checkstDept()"
onFocus="clearstDept()">
<span id="stDept1"></span>
</td>
</tr>
</table>
<input type="submit" value="提交" class="btn btn-primary">
<input type="button" onclick="window.location.href='main.jsp'"
value="返回" class="btn btn-success">
</form>
</body>
</html>