Commit d69f4887481314a277cbcb99fcf58ec864b1064d
1 parent
2e6cd2f3
1.修改学生报表界面(1)
Showing
3 changed files
with
127 additions
and
425 deletions
.settings/org.eclipse.core.resources.prefs
1 | 1 | eclipse.preferences.version=1 |
2 | +encoding//WebRoot/WEB-INF/jsp/sunvote/homework/homework_student_report.jsp=UTF-8 | |
2 | 3 | encoding//WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp=UTF-8 |
3 | 4 | encoding//WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp=UTF-8 |
4 | 5 | encoding//WebRoot/WEB-INF/jsp/sunvote/teacher/en_set_question.jsp=UTF-8 | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp
... | ... | @@ -130,7 +130,7 @@ |
130 | 130 | href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> |
131 | 131 | </td> --%> |
132 | 132 | <td class="center"><div style="width:150px;cursor:hand"><a |
133 | - onclick="student('${info.CLASS_ID}','${var.STUDENT_ID}')">${var.NAME}</a></div> | |
133 | + onclick="student('${pd.CLASS_ID}','${var.STUDENT_ID}')">${var.NAME}</a></div> | |
134 | 134 | </td> |
135 | 135 | <td class="center"><div style="width:150px;"><fmt:formatNumber type="number" |
136 | 136 | value="${var.PAPER_ALL_SCORE == 0 ? 0: (var.STUDENT_ALL_SCORE / var.PAPER_ALL_SCORE * 100)}" |
... | ... | @@ -289,20 +289,17 @@ |
289 | 289 | |
290 | 290 | function student(classid,studentid){ |
291 | 291 | |
292 | - var url = "<%=basePath%>homework/student.do?studentid=" + studentid + "&class_id=" + classid ; | |
292 | + var url = "<%=basePath%>homework/student.do?STUDENT_ID=" + studentid + "&CLASS_ID=" + classid ; | |
293 | 293 | var startDate = $("#lastStart").val(); |
294 | 294 | var endDate = $("#lastEnd").val(); |
295 | - url = url + "&start_date=" + startDate + "&end_date=" + endDate ; | |
296 | - var SUBJECT_ID = $("#SUBJECT_ID").val(); | |
297 | - if(SUBJECT_ID != null && SUBJECT_ID != ''){ | |
298 | - url = url + "&SUBJECT_ID="+ SUBJECT_ID ; | |
299 | - } | |
300 | - window.self.location.href = url; | |
295 | + url = url + "&START_DATE=" + startDate + "&END_DATE=" + endDate ; | |
296 | + | |
297 | + window.location.href = url; | |
301 | 298 | window.top.loading.show(); |
302 | 299 | } |
303 | 300 | |
304 | 301 | function paper(class_id,testpaper_id){ |
305 | - var url = "<%=basePath%>report/test_report?TestID=" + testpaper_id + "&class_id=" + class_id; | |
302 | + var url = "<%=basePath%>homework/homework_report?TestID=" + testpaper_id + "&class_id=" + class_id; | |
306 | 303 | var startDate = $("#lastStart").val(); |
307 | 304 | var endDate = $("#lastEnd").val(); |
308 | 305 | url = url + "&start_date=" + startDate + "&end_date=" + endDate ; | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/homework_student_report.jsp
1 | -<%@ page language="java" contentType="text/html; charset=UTF-8" | |
2 | - pageEncoding="UTF-8"%> | |
3 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
4 | -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | |
5 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
6 | -<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
2 | +<html xmlns="http://www.w3.org/1999/xhtml"> | |
3 | +<head> | |
7 | 4 | <% |
8 | 5 | String path = request.getContextPath(); |
9 | 6 | String basePath = request.getScheme() + "://" |
10 | 7 | + request.getServerName() + ":" + request.getServerPort() |
11 | 8 | + path + "/"; |
12 | 9 | %> |
13 | - | |
14 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
15 | -<html> | |
16 | -<head> | |
17 | -<base href="<%=basePath%>"> | |
18 | - | |
19 | -<title>${info.CLASS_NAME}成绩报表</title> | |
20 | -<base href="<%=basePath%>"> | |
21 | -<!-- 下拉框 --> | |
22 | -<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
23 | - <link type="text/css" href="static/css/tablescroller.css" rel="stylesheet" /> | |
24 | - | |
10 | +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
11 | +<title>班级-测试名单</title> | |
12 | +<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script> | |
13 | +<script | |
14 | + src="http://cdn.staticfile.org/twitter-bootstrap/4.0.0-alpha.2/js/bootstrap.min.js"></script> | |
25 | 15 | <link |
26 | - href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
27 | - rel="stylesheet"> | |
16 | + href="http://cdn.staticfile.org/twitter-bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" | |
17 | + rel="stylesheet" type="text/css" media="all" /> | |
18 | +<link href="../static/css/jquery.circliful.css" rel="stylesheet" | |
19 | + type="text/css" /> | |
20 | +<link href="../static/css/style1.css?t=123" rel="stylesheet" type="text/css" /> | |
28 | 21 | <!-- 日期框 --> |
29 | -<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
30 | -<style> | |
31 | - .font span{ font-size: 12px; | |
32 | - font-weight: initial;color:#000;} | |
33 | - .search_btn{width:30px;} | |
34 | - .btn{margin:0 5px;} | |
35 | - </style> | |
36 | -</head> | |
37 | - | |
38 | -<body style="background:#fff;"> | |
39 | - | |
40 | - | |
41 | -<div style="padding-top:3%;"> | |
22 | +<link rel="stylesheet" href="../static/ace/css/datepicker.css" /> | |
23 | +<script src="../static/laydate/laydate.js"></script> | |
24 | +<!-- 改成你的路径 --> | |
25 | +<script src="../static/js/jquery.circliful.min.js"></script> | |
26 | +<script src="../static/js/echars.js"></script> | |
27 | +<!-- 日期框 --> | |
28 | +<script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
29 | +<!--提示框--> | |
30 | +<script type="text/javascript" src="../static/js/jquery.tips.js"></script> | |
42 | 31 | |
43 | - <!-- Nav tabs --> | |
44 | - <ul class="nav nav-tabs" role="tablist"> | |
45 | - | |
46 | - | |
47 | - <c:forEach items="${pd.CLASSES}" var="var" varStatus="vs"> | |
48 | - <li role="presentation" class="${vs.index==0?'active':''}"><a href="#${var.CLASS_ID}" aria-controls="${var.CLASS_ID}" role="tab" data-toggle="tab">${var.CLASS_NAME}</a></li> | |
49 | - </c:forEach> | |
50 | - | |
51 | - </ul> | |
52 | 32 | |
53 | 33 | |
54 | - <div style="padding:20px 20px;"> | |
55 | - <form action="report/report.do" method="post" name="Form" id="Form" style="margin-bottom:0;"> | |
56 | - <input type="hidden" name="CLASSID" id="CLASSID" value="${var.ID}" /> | |
57 | - <input type="hidden" name="ROLE" id="ROLE" value="${pd.ROLE}" /> | |
58 | - <table style="margin-top:5px;margin-bottom:20px;"> | |
59 | - <tr> | |
60 | - <td><div style="width:150px;text-align:center;">课程统计: ${fn:length(pd.DATA.HOMEWORKS)}</div></td> | |
61 | - <td><div style="width:150px;text-align:center;">班级名册: ${myelfun:findClassName(pd.CLASS_ID)}</div></td> | |
62 | - | |
63 | - <td><div style="width:150px;text-align:center;"><span>学生人数: ${fn:length(pd.DATA.STUDENTS)}</span></div></td> | |
64 | - <td></td> | |
65 | - | |
66 | - | |
67 | - | |
68 | - <td style="padding-left:2px;"> | |
69 | - <input | |
70 | - class="span10 date-picker" name="lastStart" id="lastStart" | |
71 | - value="${pd.START_DATE}" type="text" data-date-format="yyyy-mm-dd" | |
72 | - readonly="readonly" style="width:88px;" placeholder="开始日期" | |
73 | - title="开始日期" /> | |
74 | - </td> | |
75 | - <td style="padding-left:2px;"><input | |
76 | - class="span10 date-picker" name="lastEnd" id="lastEnd" value="${pd.END_DATE}" | |
77 | - type="text" data-date-format="yyyy-mm-dd" readonly="readonly" | |
78 | - style="width:88px;" placeholder="结束日期" title="结束日期" /></td> | |
79 | - <td style="vertical-align:top;padding-left:2px"><a | |
80 | - class="btn btn-light btn-xs" onclick="tosearch();" title="检索"><img src="static/images/search.png" alt="" class="search_btn" /></a></td> | |
81 | - <td><li class="btn btn-default btn-sm">上一周</li></td> | |
82 | - <td><li class="btn btn-primary btn-sm">本周</li></td> | |
83 | - <td><li class="btn btn-default btn-sm">下一周</li></td> | |
84 | - </tr> | |
85 | - </table> | |
86 | - <hr /> | |
87 | - <table id="simple-table" | |
88 | - class="table table-bordered table-hover" | |
89 | - style="margin-top:0px;margin-bottom:0px;"> | |
90 | - <thead> | |
91 | - <tr> | |
92 | - <th class="center th_name"><div style="width:150px;">姓名</div></th> | |
93 | - <th class="center "><div style="width:150px;">课程平均得分率</div></th> | |
94 | - <th class="center"><div style="width:80px;">课程总分</div></th> | |
95 | - <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
96 | - <th class="center kc"><a | |
97 | - onclick="paper('${info.CLASS_ID}','${var.TESTPAPER_ID}');"><div style="width:180px; margin: 0 auto;cursor:hand" class="font">${var_h.NAME}</br><span>${var_h.COMPLETE_DATE}</span></div></a></th> | |
98 | - </c:forEach> | |
99 | - </tr> | |
100 | - </thead> | |
101 | - <tbody> | |
102 | - <tr> | |
103 | - <td class="center"><div style="width:150px;">班级课程总分</div></td> | |
104 | - <td class="center"><div style="width:150px;"></div></td> | |
105 | - <td class="center"><div style="width:80px;"></div></td> | |
106 | - <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
107 | - <td class="center"><div style="width:80px;margin:0 auto;">${var_h.ALL_SCORE}</div></td> | |
108 | - </c:forEach> | |
109 | - </tr> | |
110 | - <tr> | |
111 | - <td class="center"><div style="width:150px;">班级课程平均分</div></td> | |
112 | - <td class="center"><div style="width:150px;"></div></td> | |
113 | - <td class="center"><div style="width:80px;"></div></td> | |
114 | - <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
115 | - <td class="center"><div style="width:80px;margin:0 auto;">${var_h.GET_SCORE}</div></td> | |
116 | - </c:forEach> | |
117 | - </tr> | |
118 | - <tr> | |
119 | - <td class="center"><div style="width:150px;">班级课程平均得分率</div></td> | |
120 | - <td class="center"><div style="width:150px;"></div></td> | |
121 | - <td class="center"><div style="width:80px;"></div></td> | |
122 | - <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
123 | - <td class="center"><div style="width:80px;margin:0 auto;">${var_h.GET_SCORE_PERSENT }</div></td> | |
124 | - </c:forEach> | |
125 | - </tr> | |
126 | 34 | |
127 | - <c:choose> | |
128 | - <c:when test="${not empty pd.DATA.STUDENTS}"> | |
129 | - <c:forEach items="${pd.DATA.STUDENTS}" var="var" varStatus="vs"> | |
130 | - <tr> | |
131 | - <%-- <td class="center"><a | |
132 | - href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> | |
133 | - </td> --%> | |
134 | - <td class="center"><div style="width:150px;cursor:hand"><a | |
135 | - onclick="student('${info.CLASS_ID}','${var.STUDENT_ID}')">${var.NAME}</a></div> | |
136 | - </td> | |
137 | - <td class="center"><div style="width:150px;"><fmt:formatNumber type="number" | |
138 | - value="${var.TOTALSCORE == 0 ? 0: (var.GETSCORE / var.TOTALSCORE * 100)}" | |
139 | - maxFractionDigits="2" />%</div></td> | |
140 | - <td class="center"><div style="width:80px;margin:0 auto;">${var.GET_SCORE_PERSENT }</div></td> | |
141 | - <c:forEach items="${pd.DATA.HOMEWORKS}" var="var1" varStatus="vs1"> | |
142 | - <td class="center"><div style="width:180px;margin:0 auto;"><c:set var="TEST_ID" | |
143 | - value="${var1.HOMEWORK_ID}" /> ${var[TEST_ID] }</div></td> | |
144 | - </c:forEach> | |
145 | - </tr> | |
146 | - </c:forEach> | |
147 | - </c:when> | |
148 | - </c:choose> | |
149 | - </tbody> | |
150 | - </table> | |
151 | - | |
152 | - <div id="scrollableTable"></div> | |
153 | - </form> | |
35 | +<style> | |
36 | +body { | |
37 | + padding-top: 50px; | |
38 | +} | |
39 | + | |
40 | +li { | |
41 | + list-style: none; | |
42 | +} | |
43 | +</style> | |
44 | +</head> | |
45 | +<body> | |
46 | + <div class="header"> | |
47 | + <nav class="navbar navbar-default navbar-fixed-top"> | |
48 | + <div class="container"> | |
49 | + <input type="hidden" name="SUBJECT_ID" id="SUBJECT_ID" value="${pd.SUBJECT_ID}"/> | |
50 | + <input type="text" class="date-picker" placeholder="开始日期" name="starDate" id="starDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${start_date}"/> | |
51 | + <input type="text" class="date-picker" placeholder="结束日期" name="endDate" id="endDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${end_date}"/> | |
52 | + <input type="button" value="查询" id="search" /> | |
53 | + </div> | |
54 | + </nav> | |
154 | 55 | </div> |
155 | - | |
156 | - | |
157 | - | |
158 | - | |
159 | -</div> | |
160 | - | |
161 | - <hr /> | |
162 | - <div style="padding:20px 20px;"> | |
163 | - <form action="report/report.do" method="post" name="Form" id="Form" style="margin-bottom:0;"> | |
164 | - <input type="hidden" name="CLASSID" id="CLASSID" value="${info.CLASS_ID}" /> | |
165 | - <input type="hidden" name="ROLE" id="ROLE" value="${pd.ROLE}" /> | |
166 | - <table style="margin-top:5px;margin-bottom:20px;"> | |
167 | - <tr> | |
168 | - <td><div style="width:150px;text-align:center;">课程统计: ${info.testsize}</div></td> | |
169 | - <td><div style="width:150px;text-align:center;">班级名册: ${info.CLASS_NAME}</div></td> | |
170 | - | |
171 | - <td><div style="width:150px;text-align:center;"><span>学生人数: ${info.STUDENT_NUM}</span></div></td> | |
172 | - <td></td> | |
173 | - | |
174 | - | |
175 | - <c:if test="${not empty subjectInfos}"> | |
176 | - <td> | |
177 | - <select class="chosen-select form-control" name="SUBJECT_ID" id="SUBJECT_ID" data-placeholder="这里输入所属学校"> | |
178 | - <option value="">全部</option> | |
179 | - <c:forEach var="item" items="${subjectInfos}"> | |
180 | - <option value="${item.SUBJECT_ID}" <c:if test="${pd.SUBJECT_ID == item.SUBJECT_ID }">selected = ture</c:if>>${item.SCNAME}</option> | |
181 | - </c:forEach> | |
182 | - </select> | |
183 | - </td> | |
184 | - </c:if> | |
185 | - <td style="padding-left:2px;"> | |
186 | - <input | |
187 | - class="span10 date-picker" name="lastStart" id="lastStart" | |
188 | - value="${start_date}" type="text" data-date-format="yyyy-mm-dd" | |
189 | - readonly="readonly" style="width:88px;" placeholder="开始日期" | |
190 | - title="开始日期" /> | |
191 | - </td> | |
192 | - <td style="padding-left:2px;"><input | |
193 | - class="span10 date-picker" name="lastEnd" id="lastEnd" value="${end_date}" | |
194 | - type="text" data-date-format="yyyy-mm-dd" readonly="readonly" | |
195 | - style="width:88px;" placeholder="结束日期" title="结束日期" /></td> | |
196 | - <td style="vertical-align:top;padding-left:2px"><a | |
197 | - class="btn btn-light btn-xs" onclick="tosearch();" title="检索"><img src="static/images/search.png" alt="" class="search_btn" /></a></td> | |
198 | - <td><li class="btn btn-default btn-sm">上一周</li></td> | |
199 | - <td><li class="btn btn-primary btn-sm">本周</li></td> | |
200 | - <td><li class="btn btn-default btn-sm">下一周</li></td> | |
201 | - </tr> | |
202 | - </table> | |
203 | - <hr /> | |
204 | - <table id="simple-table" | |
205 | - class="table table-bordered table-hover" | |
206 | - style="margin-top:0px;margin-bottom:0px;"> | |
207 | - <thead> | |
208 | - <tr> | |
209 | - <th class="center th_name"><div style="width:150px;">姓名</div></th> | |
210 | - <th class="center "><div style="width:150px;">课程平均得分率</div></th> | |
211 | - <th class="center"><div style="width:80px;">课程总分</div></th> | |
212 | - <c:forEach items="${testpaperList}" var="var" varStatus="vs"> | |
213 | - <th class="center kc"><a | |
214 | - onclick="paper('${info.CLASS_ID}','${var.TESTPAPER_ID}');"><div style="width:180px; margin: 0 auto;cursor:hand" class="font">${var.NAME}</br><span>${var.CREATE_DATE}</span></div></a></th> | |
215 | - </c:forEach> | |
216 | - </tr> | |
217 | - </thead> | |
218 | - <tbody> | |
219 | - <tr> | |
220 | - <td class="center"><div style="width:150px;">班级课程总分</div></td> | |
221 | - <td class="center"><div style="width:150px;"></div></td> | |
222 | - <td class="center"><div style="width:80px;"></div></td> | |
223 | - <c:forEach items="${testpaperList}" var="var" varStatus="vs"> | |
224 | - <td class="center"><div style="width:80px;margin:0 auto;">${var.TOTAL_SCORE}</div></td> | |
225 | - </c:forEach> | |
226 | - </tr> | |
227 | - <tr> | |
228 | - <td class="center"><div style="width:150px;">班级课程平均分</div></td> | |
229 | - <td class="center"><div style="width:150px;"></div></td> | |
230 | - <td class="center"><div style="width:80px;"></div></td> | |
231 | - <c:forEach items="${testpaperList}" var="var" varStatus="vs"> | |
232 | - <td class="center"><div style="width:80px;margin:0 auto;">${var.AVG_SCORE}</div></td> | |
233 | - </c:forEach> | |
234 | - </tr> | |
235 | - <tr> | |
236 | - <td class="center"><div style="width:150px;">班级课程平均得分率</div></td> | |
237 | - <td class="center"><div style="width:150px;"></div></td> | |
238 | - <td class="center"><div style="width:80px;"></div></td> | |
239 | - <c:forEach items="${testpaperList}" var="var" varStatus="vs"> | |
240 | - <td class="center"><div style="width:80px;margin:0 auto;"><fmt:formatNumber type="number" | |
241 | - value="${var.TOTAL_SCORE == 0 ? 0: (var.AVG_SCORE / var.TOTAL_SCORE * 100)}" | |
242 | - maxFractionDigits="2" />%</div></td> | |
243 | - </c:forEach> | |
244 | - </tr> | |
245 | - | |
246 | - <c:choose> | |
247 | - <c:when test="${not empty studentList}"> | |
248 | - <c:forEach items="${studentList}" var="var" varStatus="vs"> | |
249 | - <tr> | |
250 | - <%-- <td class="center"><a | |
251 | - href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> | |
252 | - </td> --%> | |
253 | - <td class="center"><div style="width:150px;cursor:hand"><a | |
254 | - onclick="student('${info.CLASS_ID}','${var.STUDENT_ID}')">${var.NAME}</a></div> | |
255 | - </td> | |
256 | - <td class="center"><div style="width:150px;"><fmt:formatNumber type="number" | |
257 | - value="${var.TOTALSCORE == 0 ? 0: (var.GETSCORE / var.TOTALSCORE * 100)}" | |
258 | - maxFractionDigits="2" />%</div></td> | |
259 | - <td class="center"><div style="width:80px;margin:0 auto;">${var.GETSCORE }</div></td> | |
260 | - <c:forEach items="${testpaperList}" var="var1" varStatus="vs1"> | |
261 | - <td class="center"><div style="width:180px;margin:0 auto;"><c:set var="TEST_ID" | |
262 | - value="${var1.TESTPAPER_ID}" /> ${var[TEST_ID] }</div></td> | |
263 | - </c:forEach> | |
264 | - </tr> | |
265 | - </c:forEach> | |
266 | - </c:when> | |
267 | - </c:choose> | |
268 | - </tbody> | |
269 | - </table> | |
270 | - ${pd } | |
271 | - <div id="scrollableTable"></div> | |
272 | - </form> | |
56 | + <div class="content row"> | |
57 | + <div class="content_l col-md-2"> | |
58 | + <ul> | |
59 | + | |
60 | + </ul> | |
61 | + </div> | |
62 | + <div class="content_r col-md-10"> | |
63 | + <div class="tabel_t"> | |
64 | + <div class="name"> | |
65 | + <h1></h1> | |
66 | + </div> | |
67 | + <div class="circle row"> | |
68 | + <div class="col-md-6"> | |
69 | + <!-- <div id="myStathalf" data-dimension="350" data-text="9/19" data-info="参与测试" data-width="10" data-fontsize="38" data-percent="35" data-fgcolor="#8ad254" data-bgcolor="#a9f9ff" data-type="half" data-fill="#50b5c9"></div> --> | |
70 | + | |
71 | + </div> | |
72 | + <div class="col-md-6"> | |
73 | + <!-- <div id="myStathalf1" data-dimension="350" data-text="36%" data-info="个人平均得分率" data-width="10" data-fontsize="38" data-percent="35" data-fgcolor="#8ad254" data-bgcolor="#a9f9ff" data-type="half" data-fill="#50b5c9"></div> --> | |
74 | + | |
75 | + </div> | |
76 | + </div> | |
77 | + <div class="info row"> | |
78 | + <div class="col-md-6"> | |
79 | + <p> | |
80 | + 班级平均得分率<span id="class_avg">0.0</span>% | |
81 | + </p> | |
82 | + </div> | |
83 | + <div class="col-md-6"> | |
84 | + <p> | |
85 | + 班级最高得分率<span id="class_max">0.0</span>% | |
86 | + </p> | |
87 | + </div> | |
88 | + </div> | |
89 | + <div class="prev"></div> | |
90 | + <div class="next"></div> | |
91 | + </div> | |
92 | + <div class="tabel_b"> | |
93 | + <div class="tab_top row"> | |
94 | + <div class="col-md-3">正确率走势对比图</div> | |
95 | + <div class="col-md-9"> | |
96 | + <div class="color"> | |
97 | + <ul> | |
98 | + <li><span class="green"></span>班级平均</li> | |
99 | + <li><span class="blue"></span>学生个人</li> | |
100 | + <li><span class="yellow"></span>班级最好成绩</li> | |
101 | + <div class="clear"></div> | |
102 | + </ul> | |
103 | + </div> | |
104 | + <div class="check_box"> | |
105 | + <input type="radio" checked value="1" name="check" id="check1" /> | |
106 | + <label for="check1">按得分率</label> <input type="radio" value="2" | |
107 | + name="check" id="check2" /> <label for="check2">按分数</label> | |
108 | + </div> | |
109 | + </div> | |
110 | + </div> | |
111 | + <div class="tabel_content"> | |
112 | + <div id="main" style="width: 100%;height:400px;"></div> | |
113 | + </div> | |
114 | + </div> | |
115 | + </div> | |
273 | 116 | </div> |
274 | - | |
275 | - <%@ include file="../../system/index/foot.jsp"%> | |
276 | - <script src="static/ace/js/bootbox.js"></script> | |
277 | - <!-- ace scripts --> | |
278 | - <script src="static/ace/js/ace/ace.js"></script> | |
279 | - <!-- 下拉框 --> | |
280 | - <script src="static/ace/js/chosen.jquery.js"></script> | |
117 | + <script type=""> | |
118 | + var URL = '<%=basePath%>${URL}'; | |
119 | + </script> | |
120 | + <script src="../static/js/control1.js?a=1"></script> | |
281 | 121 | <!-- 日期框 --> |
282 | - <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
283 | - <!--提示框--> | |
284 | - <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
285 | - | |
286 | - <script language="javascript" src="static/js/tablescroller.js"></script> | |
287 | - <script language="javascript" src="static/js/tablescroller.jquery.js"></script> | |
288 | - | |
289 | - | |
290 | - | |
291 | - <script type="text/javascript"> | |
292 | - $(function() { | |
293 | - | |
294 | - //日期框 | |
295 | - $('.date-picker').datepicker({ | |
296 | - autoclose : true, | |
297 | - todayHighlight : true | |
298 | - }); | |
299 | - | |
300 | - //下拉框 | |
301 | - if (!ace.vars['touch']) { | |
302 | - $('.chosen-select').chosen({ | |
303 | - allow_single_deselect : true | |
304 | - }); | |
305 | - $(window).off('resize.chosen').on('resize.chosen', function() { | |
306 | - $('.chosen-select').each(function() { | |
307 | - var $this = $(this); | |
308 | - $this.next().css({ | |
309 | - 'width' : $this.parent().width() | |
310 | - }); | |
311 | - }); | |
312 | - }).trigger('resize.chosen'); | |
313 | - $(document).on('settings.ace.chosen', | |
314 | - function(e, event_name, event_val) { | |
315 | - if (event_name != 'sidebar_collapsed') | |
316 | - return; | |
317 | - $('.chosen-select').each(function() { | |
318 | - var $this = $(this); | |
319 | - $this.next().css({ | |
320 | - 'width' : $this.parent().width() | |
321 | - }); | |
322 | - }); | |
323 | - }); | |
324 | - $('#chosen-multiple-style .btn').on( | |
325 | - 'click', | |
326 | - function(e) { | |
327 | - var target = $(this).find('input[type=radio]'); | |
328 | - var which = parseInt(target.val()); | |
329 | - if (which == 2) | |
330 | - $('#form-field-select-4').addClass( | |
331 | - 'tag-input-style'); | |
332 | - else | |
333 | - $('#form-field-select-4').removeClass( | |
334 | - 'tag-input-style'); | |
335 | - }); | |
336 | - } | |
337 | - | |
338 | - //复选框全选控制 | |
339 | - var active_class = 'active'; | |
340 | - $('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on( | |
341 | - 'click', | |
342 | - function() { | |
343 | - var th_checked = this.checked;//checkbox inside "TH" table header | |
344 | - $(this).closest('table').find('tbody > tr').each( | |
345 | - function() { | |
346 | - var row = this; | |
347 | - if (th_checked) | |
348 | - $(row).addClass(active_class).find( | |
349 | - 'input[type=checkbox]').eq(0) | |
350 | - .prop('checked', true); | |
351 | - else | |
352 | - $(row).removeClass(active_class).find( | |
353 | - 'input[type=checkbox]').eq(0) | |
354 | - .prop('checked', false); | |
355 | - }); | |
356 | - }); | |
357 | - }); | |
358 | - | |
359 | - var role = '${pd.ROLE}'; | |
360 | - | |
361 | - function precent(avg,total){ | |
362 | - if(total == 0){ | |
363 | - return "0%" | |
364 | - } | |
365 | - return Math.round(avg / total * 100)/100 + '%' ; | |
366 | - } | |
367 | - | |
368 | - function tosearch(){ | |
369 | - var url = "<%=basePath%>report/report.do?classid=${info.CLASS_ID}" ; | |
370 | - var startDate = $("#lastStart").val(); | |
371 | - var endDate = $("#lastEnd").val(); | |
372 | - var subject_id = $("#SUBJECT_ID").val(); | |
373 | - url = url + "&start_date=" + startDate ; | |
374 | - if(endDate != null){ | |
375 | - url = url + "&end_date=" + endDate; | |
376 | - } | |
377 | - if(subject_id != null){ | |
378 | - url = url + "&SUBJECT_ID=" + subject_id; | |
379 | - } | |
380 | - if(role == "admin"){ | |
381 | - url = url + "&ROLE=admin" ; | |
382 | - } | |
383 | - window.location.href = url; | |
384 | - window.top.loading.show(); | |
385 | - /* $("#Form").sumbit(); */ | |
386 | - } | |
387 | - | |
388 | - function student(classid,studentid){ | |
389 | - | |
390 | - var url = "<%=basePath%>report/student_report?studentid=" + studentid + "&class_id=" + classid ; | |
391 | - var startDate = $("#lastStart").val(); | |
392 | - var endDate = $("#lastEnd").val(); | |
393 | - url = url + "&start_date=" + startDate + "&end_date=" + endDate ; | |
394 | - var SUBJECT_ID = $("#SUBJECT_ID").val(); | |
395 | - if(SUBJECT_ID != null && SUBJECT_ID != ''){ | |
396 | - url = url + "&SUBJECT_ID="+ SUBJECT_ID ; | |
397 | - } | |
398 | - window.self.location.href = url; | |
399 | - window.top.loading.show(); | |
400 | - } | |
401 | - | |
402 | - function paper(class_id,testpaper_id){ | |
403 | - var url = "<%=basePath%>report/test_report?TestID=" + testpaper_id + "&class_id=" + class_id; | |
404 | - var startDate = $("#lastStart").val(); | |
405 | - var endDate = $("#lastEnd").val(); | |
406 | - url = url + "&start_date=" + startDate + "&end_date=" + endDate ; | |
407 | - window.self.location.href = url; | |
408 | - window.top.loading.show(); | |
409 | - } | |
410 | - | |
122 | + <script> | |
123 | + //lay('#version').html('-v'+ laydate.v); | |
124 | + //日期范围 | |
125 | + // laydate.render({ | |
126 | + // elem: '#test6' | |
127 | + // ,range: true | |
128 | + // }); | |
411 | 129 | $(document).ready(function(){ |
412 | 130 | window.top.loading.remove(); |
413 | - | |
414 | - var sour = "${testpaperList}"; | |
415 | - | |
416 | - if(sour != null && sour.length > 3){ | |
417 | - var _width = $('#mainFrame', parent.document).width()-40; | |
418 | - var _heigh = $('#mainFrame', parent.document).height()-100; | |
419 | - var options = { | |
420 | - width: _width, | |
421 | - height: _heigh, | |
422 | - pinnedRows: 4, | |
423 | - pinnedCols: 3, | |
424 | - container: "#scrollableTable", | |
425 | - removeOriginal: true | |
426 | - }; | |
427 | - $("#simple-table").tablescroller(options); | |
428 | - var name_height = $(".kc").last().parent().height()-18.5; | |
429 | - console.log(name_height); | |
430 | - $(".th_name").height(name_height); | |
431 | - } | |
432 | - | |
433 | 131 | }); |
434 | 132 | |
435 | - </script> | |
133 | + $('.date-picker').datepicker({ | |
134 | + autoclose : true, | |
135 | + todayHighlight : true | |
136 | + }); | |
137 | +</script> | |
138 | + | |
139 | + | |
436 | 140 | |
437 | 141 | </body> |
438 | 142 | </html> | ... | ... |