efdefb1b
孙向锦
添加语言English
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<%@ 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"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<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>Education Management System</title>
|
efdefb1b
孙向锦
添加语言English
|
18
19
|
<!-- Bootstrap -->
|
b638e17a
jack
1.英文翻译(三)
|
20
|
<!-- <link
|
efdefb1b
孙向锦
添加语言English
|
21
|
href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
|
b638e17a
jack
1.英文翻译(三)
|
22
23
|
rel="stylesheet"> -->
<link rel="stylesheet" href="../static/css/bootstrap.min.css" />
|
efdefb1b
孙向锦
添加语言English
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<link href="../static/css/teach.css?a=1" rel="stylesheet">
<link href="../static/css/mb_style.css" rel="stylesheet">
<!-- 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]-->
</head>
<body>
<div class="header">
<div class="logo">
<img src="../static/images/en_logo.png" />
</div>
<div class="out">
<a href="../logout"><img src="../static/images/close.png" />Log out</a>
</div>
<div class="clear"></div>
</div>
<div class="content">
|
f19da108
孙向锦
添加英语对应的修改
|
45
|
<div class="content_l" style="min-width:300px">
|
efdefb1b
孙向锦
添加语言English
|
46
47
48
49
50
51
|
<div class="info_tab">
<div class="head_pic">
<img src="../static/images/head_defult.png" />
</div>
<div class="name">
<p>Welcome!</p>
|
a764d288
孙向锦
修改课后练bug
|
52
53
|
<p id="name">${pd.TEACHER.TNAME }</p>
<p id="school">${pd.TEACHER.SNAME }</p>
|
efdefb1b
孙向锦
添加语言English
|
54
55
|
</div>
</div>
|
a764d288
孙向锦
修改课后练bug
|
56
57
58
|
<br /> <br /> <br />
<%-- <div class="class tab1">
|
efdefb1b
孙向锦
添加语言English
|
59
|
<p>
|
f19da108
孙向锦
添加英语对应的修改
|
60
|
Classes<span class="right jiao"></span>
|
efdefb1b
孙向锦
添加语言English
|
61
62
63
|
</p>
<ul class="menu_1">
<c:forEach items="${pd.TEACHER}" var="var" varStatus="vs">
|
f19da108
孙向锦
添加英语对应的修改
|
64
65
|
<li onclick="event.stopPropagation();chooseClass('${var.CLASS_ID}','${var.TERM_ID}')"><p>${var.CLASS_NAME}
<span>${var.SUBJECT_ENAME}</span></p>
|
efdefb1b
孙向锦
添加语言English
|
66
|
</li>
|
a764d288
孙向锦
修改课后练bug
|
67
|
</c:forEach>
|
efdefb1b
孙向锦
添加语言English
|
68
69
|
</ul>
|
a764d288
孙向锦
修改课后练bug
|
70
|
</div> --%>
|
efdefb1b
孙向锦
添加语言English
|
71
|
<div class="testpaper tab1">
|
a764d288
孙向锦
修改课后练bug
|
72
|
<p>E-Test<span class="right jiao"></span></p>
|
efdefb1b
孙向锦
添加语言English
|
73
74
|
<ul class="menu_1">
<li >
|
a764d288
孙向锦
修改课后练bug
|
75
|
<p id="qingsongkao_paper">Papers</p>
|
efdefb1b
孙向锦
添加语言English
|
76
77
78
79
80
|
<!-- <ul class="menu_2">
<li><p>高一数学 202班</p></li>
<li><p>高一数学 203班</p></li>
</ul> -->
</li>
|
a764d288
孙向锦
修改课后练bug
|
81
82
83
84
85
86
87
88
|
<li >
<p>Tests</p>
<ul class="menu_2">
<c:forEach items="${pd.CLASSINFO}" var="var" varStatus="vs">
<li onclick="event.stopPropagation();report('${var.CLASS_ID}')"><p>Result of ${var.CLASS_NAME}
</p></li>
</c:forEach>
</ul>
|
efdefb1b
孙向锦
添加语言English
|
89
|
</li>
|
a764d288
孙向锦
修改课后练bug
|
90
|
|
efdefb1b
孙向锦
添加语言English
|
91
92
93
94
95
|
</ul>
</div>
<div class="analyse tab1">
<p>
|
a764d288
孙向锦
修改课后练bug
|
96
|
E-class<span class="right jiao"></span>
|
efdefb1b
孙向锦
添加语言English
|
97
98
99
|
</p>
<ul class="menu_1">
|
a764d288
孙向锦
修改课后练bug
|
100
101
102
103
104
105
106
|
<li>
<p id="jishice_paper">Papers</p>
<!-- <ul class="menu_2">
<li><p>高一数学 202班</p></li>
<li><p>高一数学 203班</p></li>
</ul> -->
|
efdefb1b
孙向锦
添加语言English
|
107
108
|
</li>
<li>
|
a764d288
孙向锦
修改课后练bug
|
109
|
<p>Tests</p>
|
efdefb1b
孙向锦
添加语言English
|
110
|
<ul class="menu_2">
|
a764d288
孙向锦
修改课后练bug
|
111
|
<c:forEach items="${pd.CLASSINFO}" var="var" varStatus="vs">
|
0e4da37e
孙向锦
学校管理员界面
|
112
|
<li onclick="event.stopPropagation();report2('${var.CLASS_ID}')"><p>Result of ${var.CLASS_NAME}</p></li>
|
efdefb1b
孙向锦
添加语言English
|
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
|
</c:forEach>
</ul>
</li>
</ul>
<%-- <ul class="menu_1">
<c:forEach items="${pd.TEACHER}" var="var" varStatus="vs">
<li onclick="event.stopPropagation();report('${var.CLASS_ID}')"><p>${var.CLASS_NAME} 成绩</p></li>
</c:forEach>
</ul> --%>
</div>
</div>
<div class="content_r">
<iframe name="mainFrame" id="mainFrame" frameborder="0" width="100%" height="100%"></iframe>
</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">New Exam Paper</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="enter_title" class="col-sm-4 control-label">Exam Title</label>
<div class="col-sm-6">
<input type="text" class="form-control" id="enter_title" placeholder="Input test title(not more than 100 characters)" maxlength="100" minlength="1">
</div>
<div class="clearfix"></div>
</div>
<div class="form-group">
<label for="enter_time" class="col-sm-4 control-label">Exam Time(Min)</label>
<div class="col-sm-6">
<input type="number" class="form-control" id="enter_time" placeholder="Input exam time(Min)" 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">Template</label>
<div class="col-sm-6">
<select class="chosen-select form-control" name="TEMPLATE_ID" id="TEMPLATE_ID" data-placeholder="">
<option value="">User define</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">Ok</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
|
b638e17a
jack
1.英文翻译(三)
|
174
|
<script src="../static/js/jquery.min.js"></script>
|
efdefb1b
孙向锦
添加语言English
|
175
|
<script
|
b638e17a
jack
1.英文翻译(三)
|
176
|
src="../static/js/bootstrap.min.js"></script>
|
efdefb1b
孙向锦
添加语言English
|
177
178
|
<script src="../static/js/model.js"></script>
<script src="../static/js/loading.js"></script>
|
b638e17a
jack
1.英文翻译(三)
|
179
|
<script src="../static/js/en_remove.js?a=2"></script>
|
efdefb1b
孙向锦
添加语言English
|
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
<script src="../static/js/dailog.js"></script>
<script type="text/javascript">
function chooseClass(classID,termID){
var path = "../student/listcs.do?class_id=" + classID + "&term_id=" + termID ;
//$(".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();
}
}
function report(classId){
//window.open('<%=basePath%>report/report.do?classid=' + classId);
//if($("#mainFrame").attr('src') != ('<%=basePath%>report/report.do?classid=' + classId)){
$("#mainFrame").attr('src','<%=basePath%>report/report.do?classid=' + classId);
window.top.loading.show();
//}
}
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();
//}
}
$("#time_submit").click(function(){
var name = $("#enter_title").val();
var time = $("#enter_time").val();
var TEMPLATE_ID = $("#TEMPLATE_ID").val();
if(name != null&& name != '' && time != null && time != ''){
var itime = parseInt(time);
if(itime > 0 && itime <= 300){
self.location.href = encodeURI("<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time +"&TEMPLATE_ID=" + TEMPLATE_ID);
$(".title_time").modal("hide");
}else{
alert("Please input correct time, time cannot exceed 300 minutes");
}
}
});
$("#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();
}
});
$("#jishice_paper").click(function (){
var path = "../teacher/teach_paper.do?" ;
//if($("#mainFrame").attr('src') != (path)){
$("#mainFrame").attr('src',path);
window.top.loading.show();
//}
});
var defaultUrl = '${pd.DEFAULTURL}' ;
if(defaultUrl != '' && defaultUrl != ''){
$("#mainFrame").attr('src',defaultUrl);
}
</script>
</body>
</html>
|