8942b440
孙向锦
提交code
|
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
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
|
<%@ 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;
}
</style>
</head>
<body>
<form action="<%=basePath %>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="学生姓名" />
</div>
</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 href="#" onclick="save();">保存</a>
</div>
</div>
<div id="zhongxin2" class="center" style="display:none">
<img src="static/images/jiazai.gif" /><br />
<h4 class="lighter block green">提交中...</h4>
</div>
</form>
<!-- 页面底部js¨ -->
<%@ include file="../../system/index/foot.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 : '请输入学生姓名',
bg : '#AE81FF',
time : 2
});
$("#NAME").focus();
return false;
}
$("#Form").submit(function(e){
alert(1);
});
$("#zhongxin").hide();
$("#zhongxin2").show();
}
$(function() {
//日期框
$('.date-picker').datepicker({
autoclose : true,
todayHighlight : true
});
});
</script>
</body>
</html>
|