4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
1
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
338594c8
孙向锦
添加教师端页面
|
2
3
4
5
6
7
8
9
10
11
|
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"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html>
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
12
|
<html lang="zh-CN">
|
338594c8
孙向锦
添加教师端页面
|
13
|
<head>
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
14
15
16
|
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
|
1f1e41d5
jack
去除中天(sunvote)等字样
|
17
|
<title>教育管理系统</title>
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
18
19
|
<!-- Bootstrap -->
|
21804155
jack
1、修改jq和bootstrap路径
|
20
|
<link href="../static/css/bootstrap.min.css" rel="stylesheet">
|
6429ab88
孙向锦
remove
|
21
22
|
<link href="../static/css/teach.css?a=1" rel="stylesheet">
<link href="../static/css/mb_style.css" rel="stylesheet">
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
23
24
25
26
27
28
29
|
<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
|
338594c8
孙向锦
添加教师端页面
|
30
|
</head>
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
31
32
33
34
35
36
37
38
|
<body>
<div class="header">
<div class="logo">
<img src="../static/images/logo.png" />
</div>
<div class="out">
<a href="../logout"><img src="../static/images/close.png" />退出登录</a>
</div>
|
7a1343ba
jack
1.修改优化交互
|
39
|
<div class="out" style="margin-right:20px;cursor: pointer;">
|
d6f1304c
jack
1.添加个人设置
|
40
41
|
<a onclick="editInfo()"><img src="../static/images/psw_edit.png" />个人设置</a>
</div>
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
42
43
44
45
46
47
48
|
<div class="clear"></div>
</div>
<div class="content">
<div class="content_l">
<div class="info_tab">
<div class="head_pic">
<img src="../static/images/head_defult.png" />
|
338594c8
孙向锦
添加教师端页面
|
49
|
</div>
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
50
51
|
<div class="name">
<p>欢迎!</p>
|
8246d00c
孙向锦
修复bug
|
52
53
|
<p id="name">${pd.TEACHER.TNAME }</p>
<p id="school">${pd.TEACHER.SNAME }</p>
|
338594c8
孙向锦
添加教师端页面
|
54
|
</div>
|
21804155
jack
1、修改jq和bootstrap路径
|
55
|
<br /> <br /> <br />
|
338594c8
孙向锦
添加教师端页面
|
56
|
</div>
|
21804155
jack
1、修改jq和bootstrap路径
|
57
58
59
60
61
|
<div class="testpaper tab1">
<p>
轻松考<span class="right jiao"></span>
</p>
|
c617106f
孙向锦
添加即时测功能
|
62
|
<ul class="menu_1">
|
21804155
jack
1、修改jq和bootstrap路径
|
63
|
<li>
|
8246d00c
孙向锦
修复bug
|
64
|
<p id="qingsongkao_paper">试卷管理</p>
|
c617106f
孙向锦
添加即时测功能
|
65
|
</li>
|
21804155
jack
1、修改jq和bootstrap路径
|
66
|
<li>
|
8246d00c
孙向锦
修复bug
|
67
68
|
<p>测验分析</p>
<ul class="menu_2">
|
21804155
jack
1、修改jq和bootstrap路径
|
69
|
<c:forEach items="${pd.CLASSINFO}" var="var" varStatus="vs">
|
f7e4dd61
孙向锦
根据客户UI的需求进行修改
|
70
|
<li onclick="event.stopPropagation();report('${var.CLASS_ID}')"><p title="${var.CLASS_NAME}${var.CNAME}">${var.CLASS_NAME}${var.CNAME}
|
21804155
jack
1、修改jq和bootstrap路径
|
71
72
|
成绩</p></li>
</c:forEach>
|
8246d00c
孙向锦
修复bug
|
73
|
</ul>
|
c617106f
孙向锦
添加即时测功能
|
74
75
|
</li>
</ul>
|
21804155
jack
1、修改jq和bootstrap路径
|
76
77
|
</div>
|
3e7c9ece
jack
1.隐藏即时测,课后练
|
78
|
<%--<div class="analyse tab1">
|
21804155
jack
1、修改jq和bootstrap路径
|
79
80
81
82
83
|
<p>
即时测<span class="right jiao"></span>
</p>
<ul class="menu_1">
|
8246d00c
孙向锦
修复bug
|
84
85
|
<li>
<p id="jishice_paper">试卷管理</p>
|
c617106f
孙向锦
添加即时测功能
|
86
|
</li>
|
21804155
jack
1、修改jq和bootstrap路径
|
87
|
|
c617106f
孙向锦
添加即时测功能
|
88
|
<li>
|
8246d00c
孙向锦
修复bug
|
89
|
<p>测验分析</p>
|
c617106f
孙向锦
添加即时测功能
|
90
|
<ul class="menu_2">
|
21804155
jack
1、修改jq和bootstrap路径
|
91
|
<c:forEach items="${pd.CLASSINFO}" var="var" varStatus="vs">
|
f7e4dd61
孙向锦
根据客户UI的需求进行修改
|
92
|
<li onclick="event.stopPropagation();report2('${var.CLASS_ID}')"><p title="${var.CLASS_NAME}${var.CNAME}成绩">${var.CLASS_NAME}${var.CNAME} 成绩</p></li>
|
21804155
jack
1、修改jq和bootstrap路径
|
93
|
</c:forEach>
|
c617106f
孙向锦
添加即时测功能
|
94
95
96
|
</ul>
</li>
</ul>
|
21804155
jack
1、修改jq和bootstrap路径
|
97
98
99
100
101
102
103
|
</div>
<div class="analyse tab1">
<p>
课后练<span class="right jiao"></span>
</p>
<ul class="menu_1">
|
8246d00c
孙向锦
修复bug
|
104
|
<li>
|
21804155
jack
1、修改jq和bootstrap路径
|
105
106
|
<p id="practice_manage"
onclick="event.stopPropagation();homeWorkList('${pd.TEACHER.SCHOOL_ID}')">练习列表</p>
|
8246d00c
孙向锦
修复bug
|
107
|
</li>
|
f4117436
jack
1.bug修复
|
108
|
<c:if test="${pd.TEACHER.SCHOOL_ID !='7' }">
|
e9e81463
jack
1.添加金太阳id(id=7)识别
|
109
|
<li>
|
21804155
jack
1、修改jq和bootstrap路径
|
110
111
|
<p id="practice_do"
onclick="event.stopPropagation();homeWork('${pd.TEACHER.SCHOOL_ID}')">布置练习</p>
|
8246d00c
孙向锦
修复bug
|
112
113
|
</li>
<li>
|
21804155
jack
1、修改jq和bootstrap路径
|
114
115
|
<p id="practice_report"
onclick="event.stopPropagation();homeReport()">练习报表</p>
|
e9e81463
jack
1.添加金太阳id(id=7)识别
|
116
117
|
</li>
</c:if>
|
8246d00c
孙向锦
修复bug
|
118
|
</ul>
|
3e7c9ece
jack
1.隐藏即时测,课后练
|
119
120
|
</div>--%>
</div>
|
21804155
jack
1、修改jq和bootstrap路径
|
121
122
123
|
<div class="content_r">
<iframe name="mainFrame" id="mainFrame" frameborder="0" width="100%"
height="100%"></iframe>
|
338594c8
孙向锦
添加教师端页面
|
124
|
|
21804155
jack
1、修改jq和bootstrap路径
|
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
|
</div>
<div class="modal fade title_time" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document" style="z-index:1400">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">新建试卷</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="enter_title" class="col-sm-4 control-label">测验标题</label>
<div class="col-sm-6">
<input type="text" class="form-control" id="enter_title"
placeholder="输入测验标题(不能超过100个字符)" maxlength="100" minlength="1">
</div>
<div class="clearfix"></div>
</div>
<div class="form-group">
<label for="enter_time" class="col-sm-4 control-label">测验时长(分钟)</label>
<div class="col-sm-6">
<input type="number" class="form-control" id="enter_time"
placeholder="输入测验时长(单位:分钟)" maxlength="3"
oninput="if(value.length>3) value=value.slice(0,3)">
</div>
<div class="clearfix"></div>
</div>
<div class="form-group">
<label for="enter_time" class="col-sm-4 control-label">模板</label>
<div class="col-sm-6">
<select class="chosen-select form-control" name="TEMPLATE_ID"
id="TEMPLATE_ID" data-placeholder="">
<option value="">自定义</option>
<c:forEach items="${templateInfos}" var="var" varStatus="vs">
<option value="${var.PAGETEMPLATE_ID}">${var.NAME}</option>
</c:forEach>
</select>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="time_submit">确定</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
</div>
</div>
<!-- /.modal-content -->
|
83b5ddeb
孙向锦
模板添加
|
177
|
</div>
|
21804155
jack
1、修改jq和bootstrap路径
|
178
179
180
181
182
183
184
185
186
187
188
189
|
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/bootstrap.min.js"></script>
<script src="../static/js/model.js"></script>
<script src="../static/js/loading.js"></script>
<script src="../static/js/remove.js?a=2"></script>
<script src="../static/js/dailog.js"></script>
<script type="text/javascript">
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
190
191
|
function chooseClass(classID,termID){
var path = "../student/listcs.do?class_id=" + classID + "&term_id=" + termID ;
|
6429ab88
孙向锦
remove
|
192
|
//$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
|
3371dbc6
孙向锦
0720 版本
|
193
194
195
196
|
if($("#mainFrame").attr('src') != (path)){
$("#mainFrame").attr('src',path);
window.top.loading.show();
}
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
197
|
}
|
3b178498
=
1、完成布置练习保存数据的拼接
|
198
|
function homeWorkList(schoolId){
|
8fb81e72
=
1.增加练习列表页和布置练习页面
|
199
200
|
//var path = "../school/goEdit2.do?ID=" + schoolId ;
|
e9e81463
jack
1.添加金太阳id(id=7)识别
|
201
|
var path = '<%=basePath%>homework/list.do?schoolId='+schoolId+'&teacher_id=${pd.TEACHER.ID}' ;
|
8fb81e72
=
1.增加练习列表页和布置练习页面
|
202
203
|
$("#mainFrame").attr('src',path);
|
3b178498
=
1、完成布置练习保存数据的拼接
|
204
205
206
207
208
|
window.top.loading.show();
}
function homeWork(schoolId){
//var path = "../school/goEdit2.do?ID=" + schoolId ;
|
85ea5817
孙向锦
布置练习更新
|
209
|
var path = '<%=basePath%>homework/goAdd2.do?teacher_id=${pd.TEACHER.ID}&ID=' + schoolId ;
|
3b178498
=
1、完成布置练习保存数据的拼接
|
210
211
|
$("#mainFrame").attr('src',path);
|
8fb81e72
=
1.增加练习列表页和布置练习页面
|
212
213
|
window.top.loading.show();
}
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
214
|
|
cf481ef3
jack
1.修复小bug
|
215
|
function homeReport(){
|
ec3fd70c
jack
1、修改练习报表(5)
|
216
|
var path = '<%=basePath%>homework/report.do?';
|
892c3766
=
1、增加练习报表页面
|
217
218
219
220
221
|
$("#mainFrame").attr('src',path);
window.top.loading.show();
}
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
222
|
function report(classId){
|
6429ab88
孙向锦
remove
|
223
|
//window.open('<%=basePath%>report/report.do?classid=' + classId);
|
3371dbc6
孙向锦
0720 版本
|
224
225
226
227
|
//if($("#mainFrame").attr('src') != ('<%=basePath%>report/report.do?classid=' + classId)){
$("#mainFrame").attr('src','<%=basePath%>report/report.do?classid=' + classId);
window.top.loading.show();
//}
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
228
|
}
|
757dfed6
孙向锦
样例报表
|
229
230
231
232
233
234
235
|
function report2(classId){
//window.open('<%=basePath%>report/report.do?classid=' + classId);
//if($("#mainFrame").attr('src') != ('<%=basePath%>report/report.do?classid=' + classId)){
$("#mainFrame").attr('src','<%=basePath%>teacher/test_list.do?classid=' + classId);
window.top.loading.show();
//}
}
|
4f32cbf7
孙向锦
更新新东方服务界面维护文档
|
236
|
|
d6f1304c
jack
1.添加个人设置
|
237
238
239
240
241
|
function editInfo(){
window.top.modal.init({
'title':'个人设置',
'url':'<%=basePath%>teacher/goEdit3.do?teacher_id=${pd.TEACHER.ID}',
func:function() {
|
52213f1e
jack
1.修改密码
|
242
|
//parent.location.reload();
|
d6f1304c
jack
1.添加个人设置
|
243
244
245
246
247
|
}
});
window.top.modal.show();
}
|
338594c8
孙向锦
添加教师端页面
|
248
|
$("#time_submit").click(function(){
|
338594c8
孙向锦
添加教师端页面
|
249
250
|
var name = $("#enter_title").val();
var time = $("#enter_time").val();
|
83b5ddeb
孙向锦
模板添加
|
251
|
var TEMPLATE_ID = $("#TEMPLATE_ID").val();
|
ee61a3f0
孙向锦
增强判断
|
252
|
if(name != null&& name != '' && time != null && time != ''){
|
67dfaf5c
孙向锦
提交代码
|
253
254
|
var itime = parseInt(time);
if(itime > 0 && itime <= 300){
|
21804155
jack
1、修改jq和bootstrap路径
|
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
|
self.location.href = encodeURI("<%=basePath%>"
+ "paper/npaper.do?" + "name=" + name
+ "&time=" + time + "&TEMPLATE_ID="
+ TEMPLATE_ID);
$(".title_time").modal("hide");
} else {
alert("请输入正确的时间,时间不能超过300分钟");
}
}
});
$("#qingsongkao_paper").click(function() {
var path = "../paper/list2.do?";
//$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
if ($("#mainFrame").attr('src') != (path)) {
$("#mainFrame").attr('src', path);
window.top.loading.show();
|
67dfaf5c
孙向锦
提交代码
|
272
|
}
|
21804155
jack
1、修改jq和bootstrap路径
|
273
274
275
276
277
278
|
});
$("#jishice_paper").click(function() {
var path = "../teacher/teach_paper.do?";
//if($("#mainFrame").attr('src') != (path)){
$("#mainFrame").attr('src', path);
|
3371dbc6
孙向锦
0720 版本
|
279
|
window.top.loading.show();
|
21804155
jack
1、修改jq和bootstrap路径
|
280
281
282
283
284
285
|
//}
});
var defaultUrl = '${pd.DEFAULTURL}';
if (defaultUrl != '' && defaultUrl != '') {
$("#mainFrame").attr('src', defaultUrl);
|
3371dbc6
孙向锦
0720 版本
|
286
|
}
|
21804155
jack
1、修改jq和bootstrap路径
|
287
|
</script>
|
338594c8
孙向锦
添加教师端页面
|
288
289
|
</body>
</html>
|