Blame view

WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp 8.05 KB
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
17
18
19
20
21
22
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>中天电子-教育管理系统</title>
  
  <!-- Bootstrap -->
  <link
  	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
  	rel="stylesheet">
6429ab88   孙向锦   remove
23
24
  <link href="../static/css/teach.css?a=1" rel="stylesheet">
  <link href="../static/css/mb_style.css" rel="stylesheet">
4f32cbf7   孙向锦   更新新东方服务界面维护文档
25
26
27
28
29
30
31
  
  <!-- 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   孙向锦   添加教师端页面
32
  </head>
4f32cbf7   孙向锦   更新新东方服务界面维护文档
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  <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>
  		<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   孙向锦   添加教师端页面
48
  				</div>
4f32cbf7   孙向锦   更新新东方服务界面维护文档
49
50
  				<div class="name">
  					<p>欢迎!</p>
8246d00c   孙向锦   修复bug
51
52
  					<p id="name">${pd.TEACHER.TNAME }</p>
  					<p id="school">${pd.TEACHER.SNAME }</p>
338594c8   孙向锦   添加教师端页面
53
  				</div>
8246d00c   孙向锦   修复bug
54
55
56
  					<br/>
  			<br/>
  			<br/>
338594c8   孙向锦   添加教师端页面
57
  			</div>
8246d00c   孙向锦   修复bug
58
  			
4f32cbf7   孙向锦   更新新东方服务界面维护文档
59
  		<div class="testpaper tab1">
8246d00c   孙向锦   修复bug
60
  			<p>轻松考<span class="right jiao"></span></p>
c617106f   孙向锦   添加即时测功能
61
62
  				<ul class="menu_1">
  					<li >
8246d00c   孙向锦   修复bug
63
  						<p id="qingsongkao_paper">试卷管理</p>
c617106f   孙向锦   添加即时测功能
64
  					</li>
8246d00c   孙向锦   修复bug
65
66
67
68
69
70
71
  					<li >
  						<p>测验分析</p>
  						<ul class="menu_2">
  						<c:forEach items="${pd.CLASSINFO}" var="var" varStatus="vs">
  							<li onclick="event.stopPropagation();report('${var.CLASS_ID}')"><p>${var.CLASS_NAME}${var.CNAME} 成绩</p></li>
  						</c:forEach>
  						</ul>
c617106f   孙向锦   添加即时测功能
72
73
74
  					</li>
  				</ul>
  			
4f32cbf7   孙向锦   更新新东方服务界面维护文档
75
76
77
  		</div>
  		<div class="analyse tab1">
  			<p>
8246d00c   孙向锦   修复bug
78
  				即时测<span class="right jiao"></span>
4f32cbf7   孙向锦   更新新东方服务界面维护文档
79
  			</p>
c617106f   孙向锦   添加即时测功能
80
81
  			
  			<ul class="menu_1">
8246d00c   孙向锦   修复bug
82
83
  					<li>
  						<p id="jishice_paper">试卷管理</p>
c617106f   孙向锦   添加即时测功能
84
  					</li>
8246d00c   孙向锦   修复bug
85
  					
c617106f   孙向锦   添加即时测功能
86
  					<li>
8246d00c   孙向锦   修复bug
87
  						<p>测验分析</p>
c617106f   孙向锦   添加即时测功能
88
  						<ul class="menu_2">
8246d00c   孙向锦   修复bug
89
90
  						<c:forEach items="${pd.CLASSINFO}" var="var" varStatus="vs">
  							<li onclick="event.stopPropagation();report2('${var.CLASS_ID}')"><p>${var.CLASS_NAME}${var.CNAME} 成绩</p></li>
c617106f   孙向锦   添加即时测功能
91
92
93
94
  						</c:forEach>
  						</ul>
  					</li>
  				</ul>
8246d00c   孙向锦   修复bug
95
96
97
98
99
  		</div>
  		<div class="analyse tab1">
  			<p>
  				课后练<span class="right jiao"></span>
  			</p>
c617106f   孙向锦   添加即时测功能
100
  			
8246d00c   孙向锦   修复bug
101
102
103
104
105
106
107
108
109
110
111
  			<ul class="menu_1">
  					<li>
  						<p id="practice_do">布置练习</p>
  					</li>
  					<li>
  						<p id="practice_manage">练习管理</p>
  					</li>
  					<li>
  						<p id="practice_report">练习报表</p>
  					</li>
  				</ul>
338594c8   孙向锦   添加教师端页面
112
  		</div>
338594c8   孙向锦   添加教师端页面
113
  	</div>
4f32cbf7   孙向锦   更新新东方服务界面维护文档
114
  	<div class="content_r">
f143f558   孙向锦   修改管理员登录白屏问题
115
  		<iframe name="mainFrame" id="mainFrame" frameborder="0"  width="100%" height="100%"></iframe>
4f32cbf7   孙向锦   更新新东方服务界面维护文档
116
  		
338594c8   孙向锦   添加教师端页面
117
  	</div>
338594c8   孙向锦   添加教师端页面
118
  
338594c8   孙向锦   添加教师端页面
119
120
121
122
123
  	<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">&times;</span></button>
4fd2e08c   孙向锦   修复接口中的bug
124
  	        <h4 class="modal-title">新建试卷</h4>
338594c8   孙向锦   添加教师端页面
125
126
127
128
129
  	      </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">
67dfaf5c   孙向锦   提交代码
130
  			      <input type="text" class="form-control" id="enter_title" placeholder="输入测验标题(不能超过100个字符)"  maxlength="100" minlength="1">
338594c8   孙向锦   添加教师端页面
131
132
133
134
135
136
  			    </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">
67dfaf5c   孙向锦   提交代码
137
  			      <input type="number" class="form-control" id="enter_time" placeholder="输入测验时长(单位:分钟)" maxlength="3" oninput="if(value.length>3) value=value.slice(0,3)">
338594c8   孙向锦   添加教师端页面
138
139
140
141
  			    </div>
  			    <div class="clearfix"></div>
  			</div>
  			
83b5ddeb   孙向锦   模板添加
142
143
144
  			 <div class="form-group">
  			    <label for="enter_time" class="col-sm-4 control-label">模板</label>
  			    <div class="col-sm-6">
fd0087a8   孙向锦   添加英语语言
145
  			      <select class="chosen-select form-control" name="TEMPLATE_ID" id="TEMPLATE_ID" data-placeholder="">
83b5ddeb   孙向锦   模板添加
146
147
148
149
150
151
152
153
154
  			      		<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>
  			
338594c8   孙向锦   添加教师端页面
155
156
157
158
159
160
161
162
  	      </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 -->
  	  </div><!-- /.modal-dialog -->
  	</div><!-- /.modal -->
4f32cbf7   孙向锦   更新新东方服务界面维护文档
163
164
165
166
  	<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
  	<script
  		src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  	<script src="../static/js/model.js"></script>
6429ab88   孙向锦   remove
167
168
169
  	<script src="../static/js/loading.js"></script>
  	<script src="../static/js/remove.js?a=2"></script>
  	<script src="../static/js/dailog.js"></script>
4f32cbf7   孙向锦   更新新东方服务界面维护文档
170
171
172
  	<script type="text/javascript">
  		function chooseClass(classID,termID){
  			var path = "../student/listcs.do?class_id=" + classID + "&term_id=" + termID ;
6429ab88   孙向锦   remove
173
  			//$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
3371dbc6   孙向锦   0720 版本
174
175
176
177
  			if($("#mainFrame").attr('src') != (path)){
  				$("#mainFrame").attr('src',path);
  				window.top.loading.show();
  			}
4f32cbf7   孙向锦   更新新东方服务界面维护文档
178
179
180
  		}
  		
  		function report(classId){
6429ab88   孙向锦   remove
181
  			//window.open('<%=basePath%>report/report.do?classid=' + classId);
3371dbc6   孙向锦   0720 版本
182
183
184
185
  			//if($("#mainFrame").attr('src') != ('<%=basePath%>report/report.do?classid=' + classId)){
  				$("#mainFrame").attr('src','<%=basePath%>report/report.do?classid=' + classId);
  				window.top.loading.show();
  			//}
4f32cbf7   孙向锦   更新新东方服务界面维护文档
186
  		}
757dfed6   孙向锦   样例报表
187
188
189
190
191
192
193
  		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   孙向锦   更新新东方服务界面维护文档
194
  		
338594c8   孙向锦   添加教师端页面
195
  		$("#time_submit").click(function(){
338594c8   孙向锦   添加教师端页面
196
197
  			var name = $("#enter_title").val();
  			var time = $("#enter_time").val();
83b5ddeb   孙向锦   模板添加
198
  			var TEMPLATE_ID = $("#TEMPLATE_ID").val();
ee61a3f0   孙向锦   增强判断
199
  			if(name != null&& name != '' && time != null && time != ''){
67dfaf5c   孙向锦   提交代码
200
201
  				var itime = parseInt(time);
  				if(itime > 0 && itime <= 300){
ffa525ff   孙向锦   修改出卷页面
202
  					self.location.href = encodeURI("<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time +"&TEMPLATE_ID=" + TEMPLATE_ID);
67dfaf5c   孙向锦   提交代码
203
204
205
206
  					$(".title_time").modal("hide");
  				}else{
  					alert("请输入正确的时间,时间不能超过300分钟");
  				}
ee61a3f0   孙向锦   增强判断
207
  			}
338594c8   孙向锦   添加教师端页面
208
  		});
f32d4bb6   孙向锦   首页试卷可点击
209
  		
c617106f   孙向锦   添加即时测功能
210
  		$("#qingsongkao_paper").click(function (){
f32d4bb6   孙向锦   首页试卷可点击
211
  			var path = "../paper/list2.do?" ;
6429ab88   孙向锦   remove
212
  			//$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
3371dbc6   孙向锦   0720 版本
213
214
215
216
  			if($("#mainFrame").attr('src') != (path)){
  				$("#mainFrame").attr('src',path);
  				window.top.loading.show();
  			}
f32d4bb6   孙向锦   首页试卷可点击
217
  		});
c617106f   孙向锦   添加即时测功能
218
219
220
221
222
  		
  		$("#jishice_paper").click(function (){
  			var path = "../teacher/teach_paper.do?" ;
  			//if($("#mainFrame").attr('src') != (path)){
  				$("#mainFrame").attr('src',path);
757dfed6   孙向锦   样例报表
223
  				window.top.loading.show();
c617106f   孙向锦   添加即时测功能
224
225
  			//}
  		});
4b347a15   孙向锦   修改编辑试题后,添加的返回路径
226
227
228
229
230
  		
  		var defaultUrl = '${pd.DEFAULTURL}' ;
  		if(defaultUrl != '' && defaultUrl != ''){
  			$("#mainFrame").attr('src',defaultUrl);
  		}
338594c8   孙向锦   添加教师端页面
231
  	</script>
338594c8   孙向锦   添加教师端页面
232
233
  </body>
  </html>