Blame view

WebRoot/WEB-INF/jsp/sunvote/student/en_student_edit2.jsp 4.3 KB
fd0087a8   孙向锦   添加英语语言
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
  <%@ page language="java" contentType="text/html; charset=UTF-8"
  	pageEncoding="UTF-8"%>
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  <%
  	String path = request.getContextPath();
  	String basePath = request.getScheme() + "://"
  			+ request.getServerName() + ":" + request.getServerPort()
  			+ path + "/";
  %>
  <!DOCTYPE html>
  <html lang="en">
  <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 {
  	width: 80%;
  	height: 40px;
  	margin: 0 auto;
  	background: #3bc2d6;
  	margin-top: 5%;
  }
  
  .btn a {
  	display: block;
  	width: 100%;
  	height: 100%;
  	color: #fff;
  	text-decoration: none;
  	text-align: center;
  	line-height: 40px;
  	font-size: 20px;
  }
  
  input[type="text"],select {
  	padding-left: 6px;
  }
  </style>
  
  </head>
  <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><span style="color:#f00">*</span>Name:</p>
  				<div class="li_r">
  					<input type="text" name="NAME" id="NAME" value="${pd.NAME}"
  						maxlength="255" placeholder="please input student name" title="Name" />
  				</div>
  			</li>
  			<li>
0e4da37e   孙向锦   学校管理员界面
101
  				<p><span style="color:#f00">*</span>Student ID:</p>
fd0087a8   孙向锦   添加英语语言
102
103
  				<div class="li_r">
  					<input type="text" name="NUMBER" id="NUMBER" value="${pd.NUMBER}"
0e4da37e   孙向锦   学校管理员界面
104
  						maxlength="255" placeholder="please input the Student ID" title="Student ID" />
fd0087a8   孙向锦   添加英语语言
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
  				</div>
  			</li>
  			<li>
  				<p><span style="color:#f00">*</span>Keypad ID:</p>
  				<div class="li_r">
  					<input type="text" name="KEYPAD_ID" id="KEYPAD_ID"
  						value="${pd.KEYPAD_ID}" placeholder="please input the keypad id"
  						title="Keypad Id" />
  				</div>
  			</li>
  			
  			<li>
  				<p>Sex:</p>
  				<div class="li_r">
  					<select class="chosen-select form-control" name="SEX" id="SEX"
  						data-placeholder="please choose the sex">
0e4da37e   孙向锦   学校管理员界面
121
122
  						<option value="1" <c:if test="${pd.SEX==1}">selected="true"</c:if>>Male</option>
  						<option value="0" <c:if test="${pd.SEX==0}">selected="true"</c:if>>Female</option>
fd0087a8   孙向锦   添加英语语言
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
  					</select>
  				</div>
  			</li>
  			
  
  			<div class="btn">
  				<a onclick="save();">Save</a>
  			</div>
  		</div>
  		<div id="zhongxin2" class="center" style="display:none">
  
  			<img src="static/images/jiazai.gif" /><br />
  			<h4 class="lighter block green">Submit...</h4>
  		</div>
  	</form>
  
  
  
  	<!-- 页面底部js¨ -->
  	<%@ include file="../../system/index/foot2.jsp"%>
  	<!-- 下拉框 -->
  	<script src="../static/ace/js/chosen.jquery.js"></script>
  	<!-- 日期框 -->
  	<script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script>
  	<!--提示框-->
  	<script type="text/javascript" src="../static/js/jquery.tips.js"></script>
  	<script type="text/javascript">
  		//保存
  		function save() {
  			if ($("#NAME").val() == "") {
  				$("#NAME").tips({
  					side : 3,
  					msg : 'Please input the student name',
  					bg : '#AE81FF',
  					time : 2
  				});
  				$("#NAME").focus();
  				return false;
  			}
  			
  			if ($("#NUMBER").val() == "") {
  				$("#NUMBER").tips({
  					side : 3,
  					msg : 'Please input the student number.',
  					bg : '#AE81FF',
  					time : 2
  				});
  				$("#NUMBER").focus();
  				return false;
  			}
  
  			if ($("#KEYPAD_ID").val() == "") {
  				$("#KEYPAD_ID").tips({
  					side : 3,
  					msg : 'Please input the keypad id',
  					bg : '#AE81FF',
  					time : 2
  				});
  				$("#KEYPAD_ID").focus();
  				return false;
  			}
  
  			$("#Form").submit();
  			$("#zhongxin").hide();
  			$("#zhongxin2").show();
  		}
  
  		$(function() {
  			//日期框
  		
  		});
  	</script>
  </body>
  </html>