| 9338b563  孙向锦
 
添加报表 | 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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <html>
  <head>
  <base href="<%=basePath%>">
  
 | 
| 4d39642d  孙向锦
 
添加学生报表 | 17 |   <title>试卷成绩报表</title>
 | 
| 9338b563  孙向锦
 
添加报表 | 18
19
20 |   <base href="<%=basePath%>">
  <!-- 下拉框 -->
  <link rel="stylesheet" href="static/ace/css/chosen.css" />
 | 
| d3d7b2ca  孙向锦
 
修改表格固定 | 21 |     <link type="text/css" href="static/css/tablescroller.css" rel="stylesheet" />
 | 
| 9338b563  孙向锦
 
添加报表 | 22
23
24
25 |   <!-- jsp文件头和头部 -->
  <%@ include file="../../system/index/top.jsp"%>
  <!-- 日期框 -->
  <link rel="stylesheet" href="static/ace/css/datepicker.css" />
 | 
| d3d7b2ca  孙向锦
 
修改表格固定 | 26
27
28 |   <style>
  .table{padding-bottom:0 !important;}
  </style>
 | 
| 9338b563  孙向锦
 
添加报表 | 29
30 |   </head>
  
 | 
| 3a163205  孙向锦
 
报表优化 | 31 |   <body style="background:#fff;/* overflow-y:hidden; */">
 | 
| d3d7b2ca  孙向锦
 
修改表格固定 | 32 |   	<div style="padding:20px 20px;">
 | 
| 6429ab88  孙向锦
 
remove | 33 |   
 | 
| 9338b563  孙向锦
 
添加报表 | 34
35
36 |   		<form action="report/report_test.do" method="post" name="Form" id="Form">
  			<input type="hidden" name="CLASSID" id="CLASSID" value="${info.CLASS_ID}" />
  			<table style="margin-top:5px;">
 | 
| 6429ab88  孙向锦
 
remove | 37 |   				<tr style="height: 30px">
 | 
| 705eb8ca  孙向锦
 
报表添加教师名称及科目信息 | 38 |   					<td>测验名称: ${testpaperInfo.NAME}</td>  
 | 
| 3a163205  孙向锦
 
报表优化 | 39 |   					<c:if test="${display}">
 | 
| 705eb8ca  孙向锦
 
报表添加教师名称及科目信息 | 40
41
42
43 |   					<td>                </td>
  					<td>教师: ${teacherPd.NAME}</td> 
  					<td>                </td>
  					<td>科目名称: ${subjectPd.CNAME}</td>
 | 
| 3a163205  孙向锦
 
报表优化 | 44 |   					</c:if>
 | 
| 9338b563  孙向锦
 
添加报表 | 45 |   				</tr>
 | 
| 6429ab88  孙向锦
 
remove | 46 |   				<tr style="height: 30px">
 | 
| 066f7673  孙向锦
 
修复bug | 47 |   					<td>收卷时间: ${testpaperInfo.END_DATE}</td>
 | 
| 9338b563  孙向锦
 
添加报表 | 48 |   				</tr>
 | 
| 6429ab88  孙向锦
 
remove | 49 |   				<tr style="height: 30px">
 | 
| 066f7673  孙向锦
 
修复bug | 50 |   					<td>班级名册:${classInfo.CLASS_NAME}</td>
 | 
| 4d39642d  孙向锦
 
添加学生报表 | 51 |   					<td>                </td>
 | 
| 066f7673  孙向锦
 
修复bug | 52 |   					<td><span>学生人数: ${classInfo.studentNum}</span></td>
 | 
| 4d39642d  孙向锦
 
添加学生报表 | 53 |   					
 | 
| 9338b563  孙向锦
 
添加报表 | 54
55
56
57 |   				</tr>
  			</table>
  			<table id="simple-table"
  				class="table table-striped table-bordered table-hover"
 | 
| d3d7b2ca  孙向锦
 
修改表格固定 | 58 |   				style="margin-top:0px;margin-bottom:0;">
 | 
| 9338b563  孙向锦
 
添加报表 | 59
60 |   				<thead>
  					<tr>
 | 
| ce70231e  孙向锦
 
增加接口 | 61 |   						<th class="center"><div style="width:109px;">键盘</div></th>
 | 
| 6429ab88  孙向锦
 
remove | 62
63
64 |   						<th class="center"><div style="width:80px;">学号</div></th>
  						<th class="center"><div style="width:80px;">姓名</div></th>
  						<th class="center"><div style="width:80px;">得分</div></th>
 | 
| 3371dbc6  孙向锦
 
0720 版本 | 65 |   						<!-- <th class="center"><div style="width:80px;">正确率</div></th> -->
 | 
| 6429ab88  孙向锦
 
remove | 66 |   						<th class="center"><div style="width:80px;">排名</div></th>
 | 
| 066f7673  孙向锦
 
修复bug | 67 |   						<c:forEach items="${questionInfo}" var="var" varStatus="vs">
 | 
| ce70231e  孙向锦
 
增加接口 | 68 |   							<th class="center"><div style="width:80px;margin:0 auto;">题目${vs.index+1}</div></th>
 | 
| 9338b563  孙向锦
 
添加报表 | 69 |   						</c:forEach>
 | 
| 3371dbc6  孙向锦
 
0720 版本 | 70 |   						<!-- <th class="center"><div style="width:150px;">非选择题得分</div></th> -->
 | 
| ce70231e  孙向锦
 
增加接口 | 71 |   						<th class="center"><div style="width:80px;margin:0 auto;">总分</div></th>
 | 
| 9338b563  孙向锦
 
添加报表 | 72
73
74
75 |   					</tr>
  				</thead>
  				<tbody>
  					<tr>
 | 
| ce70231e  孙向锦
 
增加接口 | 76
77
78
79 |   						<td class="center"><div style="width:109px;">--</div></td>
  						<td class="center"><div style="width:80px;">--</div></td>
  						<td class="center"><div style="width:80px;">--</div></td>
  						<td class="center"><div style="width:80px;">--</div></td>
 | 
| 3371dbc6  孙向锦
 
0720 版本 | 80 |   						<!-- <td class="center"></td> -->
 | 
| ce70231e  孙向锦
 
增加接口 | 81 |   						<td class="center"><div style="width:80px;">--</div></td>
 | 
| 066f7673  孙向锦
 
修复bug | 82 |   						<c:forEach items="${questionInfo}" var="var" varStatus="vs">
 | 
| 3a163205  孙向锦
 
报表优化 | 83
84 |   							<td class="center"><div style="width:80px;margin:0 auto;"><c:set var="key"><c:out value="${vs.index+1}" /></c:set><fmt:formatNumber type="number"
  									value="${(questionInfo[key] / classInfo.studentNum * 100)}"
 | 
| ce70231e  孙向锦
 
增加接口 | 85 |   									maxFractionDigits="1" />%</div></td>
 | 
| 9338b563  孙向锦
 
添加报表 | 86 |   						</c:forEach>
 | 
| 3371dbc6  孙向锦
 
0720 版本 | 87 |   						<!-- <td class="center"></td> -->
 | 
| ce70231e  孙向锦
 
增加接口 | 88 |   						<td class="center"><div style="width:80px;margin:0 auto;"></div></td>
 | 
| 9338b563  孙向锦
 
添加报表 | 89
90
91 |   					</tr>
  
  					<c:choose>
 | 
| 066f7673  孙向锦
 
修复bug | 92
93 |   						<c:when test="${not empty studentInfo}">
  							<c:forEach items="${studentInfo}" var="var" varStatus="vs">
 | 
| 9338b563  孙向锦
 
添加报表 | 94 |   								<tr>
 | 
| ce70231e  孙向锦
 
增加接口 | 95
96
97
98 |   									<td class="center"><div style="width:109px;">${var.KEYPAD_ID}</div></td>
  									<td class="center"><div style="width:80px;">${var.NUMBER}</div></td>
  									<td class="center"><div style="width:80px;">${var.NAME}</div></td>
  									<td class="center"><div style="width:80px;">${var.GETSCORE}</div></td>
 | 
| 3371dbc6  孙向锦
 
0720 版本 | 99 |   									<%-- <td class="center">${var.RIGHT}</td> --%>
 | 
| f5451f32  孙向锦
 
分数相同,名词也相同 | 100 |   									<td class="center"><div style="width:80px;">${var.RANK_NUM}</div></td>
 | 
| 066f7673  孙向锦
 
修复bug | 101 |   									<c:forEach items="${questionInfo}" var="var1" varStatus="vs1">
 | 
| eca4feb5  孙向锦
 
管理员功能完善 | 102 |   										<td class="center" <c:if test="${var.detail[vs1.index].RIGHT== '1'}">style="background:#0bb8b9"</c:if>div style="width:80px;margin:0 auto;">${var.detail[vs1.index].ANSWER}</div></td>
 | 
| 9338b563  孙向锦
 
添加报表 | 103 |   									</c:forEach>
 | 
| 3371dbc6  孙向锦
 
0720 版本 | 104 |   									<%-- <td class="center">${var.OTHER_SCORE}</td> --%>
 | 
| ce70231e  孙向锦
 
增加接口 | 105 |   									<td class="center"><div style="width:80px;margin:0 auto;">${var.GETSCORE}</div></td>
 | 
| 9338b563  孙向锦
 
添加报表 | 106
107
108
109
110
111 |   								</tr>
  							</c:forEach>
  						</c:when>
  					</c:choose>
  				</tbody>
  			</table>
 | 
| d3d7b2ca  孙向锦
 
修改表格固定 | 112 |   			<div id="scrollableTable"></div>
 | 
| 9338b563  孙向锦
 
添加报表 | 113
114
115
116
117
118
119
120
121
122
123
124
125 |   		</form>
  	</div>
  
  	<%@ include file="../../system/index/foot.jsp"%>
  	<script src="static/ace/js/bootbox.js"></script>
  	<!-- ace scripts -->
  	<script src="static/ace/js/ace/ace.js"></script>
  	<!-- 下拉框 -->
  	<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>
 | 
| d3d7b2ca  孙向锦
 
修改表格固定 | 126
127
128
129 |   	
  		<script language="javascript" src="static/js/tablescroller.js"></script>
      <script language="javascript" src="static/js/tablescroller.jquery.js"></script>
      
 | 
| 9338b563  孙向锦
 
添加报表 | 130
131 |   
  	<script type="text/javascript">
 | 
| 3371dbc6  孙向锦
 
0720 版本 | 132
133 |   		$(document).ready(function(){
  			window.top.loading.remove();
 | 
| d3d7b2ca  孙向锦
 
修改表格固定 | 134
135
136
137
138
139
140
141
142
143
144
145
146 |   			
  			var _heigh = $('#mainFrame', parent.document).height()-120;
  			//console.log(_heigh);
  			
  			var options = {
              width: '100%',
              height: _heigh,
              pinnedRows: 2,
              pinnedCols: 5,
              container: "#scrollableTable",
              removeOriginal: true
          	};
  
 | 
| 3a163205  孙向锦
 
报表优化 | 147 |   //       		$("#simple-table").tablescroller(options);
 | 
| 3371dbc6  孙向锦
 
0720 版本 | 148 |   		});
 | 
| 9338b563  孙向锦
 
添加报表 | 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
216
217
218
219
220
221
222
223
224
225
226 |   		$(function() {
  
  			//日期框
  			$('.date-picker').datepicker({
  				autoclose : true,
  				todayHighlight : true
  			});
  
  			//下拉框
  			if (!ace.vars['touch']) {
  				$('.chosen-select').chosen({
  					allow_single_deselect : true
  				});
  				$(window).off('resize.chosen').on('resize.chosen', function() {
  					$('.chosen-select').each(function() {
  						var $this = $(this);
  						$this.next().css({
  							'width' : $this.parent().width()
  						});
  					});
  				}).trigger('resize.chosen');
  				$(document).on('settings.ace.chosen',
  						function(e, event_name, event_val) {
  							if (event_name != 'sidebar_collapsed')
  								return;
  							$('.chosen-select').each(function() {
  								var $this = $(this);
  								$this.next().css({
  									'width' : $this.parent().width()
  								});
  							});
  						});
  				$('#chosen-multiple-style .btn').on(
  						'click',
  						function(e) {
  							var target = $(this).find('input[type=radio]');
  							var which = parseInt(target.val());
  							if (which == 2)
  								$('#form-field-select-4').addClass(
  										'tag-input-style');
  							else
  								$('#form-field-select-4').removeClass(
  										'tag-input-style');
  						});
  			}
  
  			//复选框全选控制
  			var active_class = 'active';
  			$('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on(
  					'click',
  					function() {
  						var th_checked = this.checked;//checkbox inside "TH" table header
  						$(this).closest('table').find('tbody > tr').each(
  								function() {
  									var row = this;
  									if (th_checked)
  										$(row).addClass(active_class).find(
  												'input[type=checkbox]').eq(0)
  												.prop('checked', true);
  									else
  										$(row).removeClass(active_class).find(
  												'input[type=checkbox]').eq(0)
  												.prop('checked', false);
  								});
  					});
  		});
  		
  		
  		function precent(avg,total){
  			if(total == 0){
  				return "0%"
  			}
  			return Math.round(avg / total * 100)/100 + '%' ;
  		}
  	</script>
  
  </body>
  </html>
 |