Blame view

WebRoot/WEB-INF/jsp/sunvote/student/student_edit2.jsp 5.48 KB
3371dbc6   孙向锦   0720 版本
1
2
  <%@ page language="java" contentType="text/html; charset=UTF-8"
  	pageEncoding="UTF-8"%>
7d60b75e   孙向锦   添加班级-1
3
4
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
3371dbc6   孙向锦   0720 版本
5
  <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
7d60b75e   孙向锦   添加班级-1
6
7
  <%
  	String path = request.getContextPath();
3371dbc6   孙向锦   0720 版本
8
9
10
  	String basePath = request.getScheme() + "://"
  			+ request.getServerName() + ":" + request.getServerPort()
  			+ path + "/";
7d60b75e   孙向锦   添加班级-1
11
12
13
  %>
  <!DOCTYPE html>
  <html lang="en">
3371dbc6   孙向锦   0720 版本
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
  <head>
  <base href="<%=basePath%>">
  <!-- 日期框 -->
  <link rel="stylesheet" href="../static/ace/css/datepicker.css" />
  <style type="text/css">
  li {
  	list-style: none;
  	margin-top: 10px;
  	clear: right;
  	clear: both;
  }
  
  li p {
  	width: 5em;
  	text-align: right;
  	margin: 0;
  	margin-right: 0.5em;
  	float: left;
  	line-height: 30px;
  }
  
  li .li_r {
  	margin-left: 6em;
  	margin-right: 1em;
  	clear: right;
  }
  
  li .li_r select {
  	height: 30px;
  	line-height: 30px;
  	background: #f5f5f5;
  	border: 1px solid #ccc;
  	outline-style: none;
  	width: 100%;
  }
  
  li input {
  	height: 30px;
  	line-height: 30px;
  	background: #f5f5f5;
  	border: 1px solid #ccc;
  	outline-style: none;
  	width: 100%;
  }
  
  .btn {
8942b440   孙向锦   提交code
60
61
62
63
64
65
66
  	width: 80%;
  	height: 40px;
  	margin: 0 auto;
  	background: #3bc2d6;
  	margin-top: 5%;
  }
  
3371dbc6   孙向锦   0720 版本
67
  .btn a {
8942b440   孙向锦   提交code
68
69
70
71
72
73
74
75
76
  	display: block;
  	width: 100%;
  	height: 100%;
  	color: #fff;
  	text-decoration: none;
  	text-align: center;
  	line-height: 40px;
  	font-size: 20px;
  }
3371dbc6   孙向锦   0720 版本
77
78
79
80
81
82
  
  input[type="text"],select {
  	padding-left: 6px;
  }
  </style>
  
7d60b75e   孙向锦   添加班级-1
83
  </head>
3371dbc6   孙向锦   0720 版本
84
85
86
87
88
89
90
91
92
93
94
95
  <body>
  	<form action="../student/${msg }.do" name="Form" id="Form"
  		method="post">
  		<input type="hidden" name="ID" id="ID" value="${pd.ID}" /> <input
  			type="hidden" name="CLASS_ID" id="CLASS_ID" value="${pd.CLASS_ID}" />
  		<input type="hidden" name="TERM_ID" id="TERM_ID" value="${pd.TERM_ID}" />
  		<div id="zhongxin">
  			<li>
  				<p>学生姓名:</p>
  				<div class="li_r">
  					<input type="text" name="NAME" id="NAME" value="${pd.NAME}"
  						maxlength="255" placeholder="这里输入学生姓名" title="学生姓名" />
7d60b75e   孙向锦   添加班级-1
96
  				</div>
3371dbc6   孙向锦   0720 版本
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
  			</li>
  			<li>
  				<p>学籍号:</p>
  				<div class="li_r">
  					<input type="text" name="SNO" id="SNO" value="${pd.SNO}"
  						maxlength="255" placeholder="这里输入学籍号" title="学籍号" />
  				</div>
  			</li>
  			<li>
  				<p>学号:</p>
  				<div class="li_r">
  					<input type="text" name="NUMBER" id="NUMBER" value="${pd.NUMBER}"
  						maxlength="255" placeholder="这里输入学号" title="学号" />
  				</div>
  			</li>
  			<li>
  				<p>性别:</p>
  				<div class="li_r">
  					<select class="chosen-select form-control" name="SEX" id="SEX"
  						data-placeholder="这里输入班级类型">
  						<option value="1" <c:if test="${pd.SEX==1}">selected="true"</c:if>>男</option>
  						<option value="0" <c:if test="${pd.SEX==0}">selected="true"</c:if>>女</option>
  					</select>
  				</div>
  			</li>
  			<li>
  				<p>组号:</p>
  				<div class="li_r">
  					<input type="text" name="GROUPID" id="GROUPID"
  						value="${pd.GROUPID}" maxlength="255" placeholder="这里输入组号"
  						title="组号" />
  				</div>
  			</li>
  			<li>
  				<p>签到码:</p>
  				<div class="li_r">
  					<input type="text" name="SIGN_NO" id="SIGN_NO"
  						value="${pd.SIGN_NO}" maxlength="255" placeholder="这里输入签到码"
  						title="签到码" />
  				</div>
  			</li>
  			<li>
  				<p>家长姓名:</p>
  				<div class="li_r">
  					<input type="text" name="PARENT_NAME" id="PARENT_NAME"
  						value="${pd.PARENT_NAME}" maxlength="255" placeholder="这里输入家长姓名"
  						title="家长姓名" />
  				</div>
  			</li>
  			<li>
  				<p>家长手机:</p>
  				<div class="li_r">
  					<input type="text" name="PARENT_PHONE" id="PARENT_PHONE"
  						value="${pd.PARENT_PHONE}" maxlength="255" placeholder="这里输入家长手机号"
  						title="家长手机号" />
  				</div>
  			</li>
  			<li>
  				<p>键盘ID:</p>
  				<div class="li_r">
  					<input type="text" name="KEYPAD_ID" id="KEYPAD_ID"
  						value="${pd.KEYPAD_ID}" maxlength="255" placeholder="这里输入键盘ID"
  						title="键盘ID" />
  				</div>
  			</li>
  			<li>
  				<p>备注:</p>
  				<div class="li_r">
  					<input type="text" name="REMARK" id="REMARK" value="${pd.REMARK}"
  						maxlength="255" placeholder="这里输入备注" title="备注" />
  				</div>
  			</li>
  
  			<div class="btn">
  				<a onclick="save();">保存</a>
7d60b75e   孙向锦   添加班级-1
172
  			</div>
7d60b75e   孙向锦   添加班级-1
173
  		</div>
3371dbc6   孙向锦   0720 版本
174
175
176
177
178
179
180
  		<div id="zhongxin2" class="center" style="display:none">
  
  			<img src="../static/images/jiazai.gif" /><br />
  			<h4 class="lighter block green">提交中...</h4>
  		</div>
  	</form>
  
7d60b75e   孙向锦   添加班级-1
181
182
183
  
  
  	<!-- 页面底部js¨ -->
3371dbc6   孙向锦   0720 版本
184
  	<%@ include file="../../system/index/foot2.jsp"%>
7d60b75e   孙向锦   添加班级-1
185
  	<!-- 下拉框 -->
3371dbc6   孙向锦   0720 版本
186
  	<script src="../static/ace/js/chosen.jquery.js"></script>
7d60b75e   孙向锦   添加班级-1
187
  	<!-- 日期框 -->
3371dbc6   孙向锦   0720 版本
188
  	<script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script>
7d60b75e   孙向锦   添加班级-1
189
  	<!--提示框-->
3371dbc6   孙向锦   0720 版本
190
191
  	<script type="text/javascript" src="../static/js/jquery.tips.js"></script>
  	<script type="text/javascript">
7d60b75e   孙向锦   添加班级-1
192
  		//保存
3371dbc6   孙向锦   0720 版本
193
194
  		function save() {
  			if ($("#NAME").val() == "") {
7d60b75e   孙向锦   添加班级-1
195
  				$("#NAME").tips({
3371dbc6   孙向锦   0720 版本
196
197
198
199
200
  					side : 3,
  					msg : '请输入学生姓名',
  					bg : '#AE81FF',
  					time : 2
  				});
7d60b75e   孙向锦   添加班级-1
201
  				$("#NAME").focus();
3371dbc6   孙向锦   0720 版本
202
  				return false;
7d60b75e   孙向锦   添加班级-1
203
  			}
3371dbc6   孙向锦   0720 版本
204
205
206
207
208
209
210
211
212
213
214
215
216
  
  			if ($("#KEYPAD_ID").val() == ""
  					|| $("#KEYPAD_ID").val().length != 10) {
  				$("#KEYPAD_ID").tips({
  					side : 3,
  					msg : '输入十位有效编号',
  					bg : '#AE81FF',
  					time : 2
  				});
  				$("#KEYPAD_ID").focus();
  				return false;
  			}
  
7d60b75e   孙向锦   添加班级-1
217
218
219
220
  			$("#Form").submit();
  			$("#zhongxin").hide();
  			$("#zhongxin2").show();
  		}
3371dbc6   孙向锦   0720 版本
221
  
7d60b75e   孙向锦   添加班级-1
222
223
  		$(function() {
  			//日期框
3371dbc6   孙向锦   0720 版本
224
225
226
227
  			$('.date-picker').datepicker({
  				autoclose : true,
  				todayHighlight : true
  			});
7d60b75e   孙向锦   添加班级-1
228
  		});
3371dbc6   孙向锦   0720 版本
229
  	</script>
7d60b75e   孙向锦   添加班级-1
230
231
  </body>
  </html>