Commit 5361dc04be5b837ece6bd50058cbfb3b12ea466f
1 parent
cf481ef3
1、小修改提交
Showing
1 changed file
with
139 additions
and
6 deletions
WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 | pageEncoding="UTF-8"%> |
3 | 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
4 | 4 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> |
5 | +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
5 | 6 | <% |
6 | 7 | String path = request.getContextPath(); |
7 | 8 | String basePath = request.getScheme() + "://" |
... | ... | @@ -34,14 +35,146 @@ |
34 | 35 | </head> |
35 | 36 | |
36 | 37 | <body style="background:#fff;"> |
37 | - <div style="padding-top:3%;"> | |
38 | - <ul> | |
39 | - <c:forEach items="${pd.CLASS}" var="var" varStatus="vs"> | |
40 | - <li class="btn btn-primary btn-lg">${var.CLASS_NAME}</li> | |
41 | - </c:forEach> | |
38 | + | |
39 | + | |
40 | +<div style="padding-top:3%;"> | |
41 | + | |
42 | + <!-- Nav tabs --> | |
43 | + <ul class="nav nav-tabs" role="tablist"> | |
44 | + | |
45 | + | |
46 | + <c:forEach items="${pd.CLASS}" var="var" varStatus="vs"> | |
47 | + <li role="presentation" class="${vs.index==0?'active':''}"><a href="#${var.ID}" aria-controls="${var.ID}" role="tab" data-toggle="tab">${var.CLASS_NAME}</a></li> | |
48 | + </c:forEach> | |
49 | + | |
50 | + </ul> | |
51 | + | |
52 | + <!-- Tab panes --> | |
53 | + <div class="tab-content"> | |
54 | + | |
55 | + <c:forEach items="${pd.CLASS}" var="var" varStatus="vs"> | |
56 | + <div role="tabpanel" class="tab-pane ${vs.index==0?'active':''}" id="${var.ID}"> | |
57 | + ${var.CLASS_NAME} | |
58 | + <div style="padding:20px 20px;"> | |
59 | + <form action="report/report.do" method="post" name="Form" id="Form" style="margin-bottom:0;"> | |
60 | + <input type="hidden" name="CLASSID" id="CLASSID" value="${var.ID}" /> | |
61 | + <input type="hidden" name="ROLE" id="ROLE" value="${pd.ROLE}" /> | |
62 | + <table style="margin-top:5px;margin-bottom:20px;"> | |
63 | + <tr> | |
64 | + <td><div style="width:150px;text-align:center;">课程统计: ${fn:length(var.HOMEWORKS)}</div></td> | |
65 | + <td><div style="width:150px;text-align:center;">班级名册: ${var.CLASS_NAME}</div></td> | |
42 | 66 | |
43 | - </ul> | |
67 | + <td><div style="width:150px;text-align:center;"><span>学生人数: ${INDE.STUDENT_NUM}</span></div></td> | |
68 | + <td></td> | |
69 | + | |
70 | + | |
71 | + <c:if test="${not empty subjectInfos}"> | |
72 | + <td> | |
73 | + <select class="chosen-select form-control" name="SUBJECT_ID" id="SUBJECT_ID" data-placeholder="这里输入所属学校"> | |
74 | + <option value="">全部</option> | |
75 | + <c:forEach var="item" items="${subjectInfos}"> | |
76 | + <option value="${item.SUBJECT_ID}" <c:if test="${pd.SUBJECT_ID == item.SUBJECT_ID }">selected = ture</c:if>>${item.SCNAME}</option> | |
77 | + </c:forEach> | |
78 | + </select> | |
79 | + </td> | |
80 | + </c:if> | |
81 | + <td style="padding-left:2px;"> | |
82 | + <input | |
83 | + class="span10 date-picker" name="lastStart" id="lastStart" | |
84 | + value="${start_date}" type="text" data-date-format="yyyy-mm-dd" | |
85 | + readonly="readonly" style="width:88px;" placeholder="开始日期" | |
86 | + title="开始日期" /> | |
87 | + </td> | |
88 | + <td style="padding-left:2px;"><input | |
89 | + class="span10 date-picker" name="lastEnd" id="lastEnd" value="${end_date}" | |
90 | + type="text" data-date-format="yyyy-mm-dd" readonly="readonly" | |
91 | + style="width:88px;" placeholder="结束日期" title="结束日期" /></td> | |
92 | + <td style="vertical-align:top;padding-left:2px"><a | |
93 | + class="btn btn-light btn-xs" onclick="tosearch();" title="检索"><img src="static/images/search.png" alt="" class="search_btn" /></a></td> | |
94 | + <td><li class="btn btn-default btn-sm">上一周</li></td> | |
95 | + <td><li class="btn btn-primary btn-sm">本周</li></td> | |
96 | + <td><li class="btn btn-default btn-sm">下一周</li></td> | |
97 | + </tr> | |
98 | + </table> | |
99 | + <hr /> | |
100 | + <table id="simple-table" | |
101 | + class="table table-bordered table-hover" | |
102 | + style="margin-top:0px;margin-bottom:0px;"> | |
103 | + <thead> | |
104 | + <tr> | |
105 | + <th class="center th_name"><div style="width:150px;">姓名</div></th> | |
106 | + <th class="center "><div style="width:150px;">课程平均得分率</div></th> | |
107 | + <th class="center"><div style="width:80px;">课程总分</div></th> | |
108 | + <c:forEach items="${var.HOMEWORKS}" var="var_h" varStatus="vs"> | |
109 | + <th class="center kc"><a | |
110 | + 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.SUMBIT_DATE}</span></div></a></th> | |
111 | + </c:forEach> | |
112 | + </tr> | |
113 | + </thead> | |
114 | + <tbody> | |
115 | + <tr> | |
116 | + <td class="center"><div style="width:150px;">班级课程总分</div></td> | |
117 | + <td class="center"><div style="width:150px;"></div></td> | |
118 | + <td class="center"><div style="width:80px;"></div></td> | |
119 | + <c:forEach items="${var.HOMEWORKS}" var="var_h" varStatus="vs"> | |
120 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.ALL_SCORE}</div></td> | |
121 | + </c:forEach> | |
122 | + </tr> | |
123 | + <tr> | |
124 | + <td class="center"><div style="width:150px;">班级课程平均分</div></td> | |
125 | + <td class="center"><div style="width:150px;"></div></td> | |
126 | + <td class="center"><div style="width:80px;"></div></td> | |
127 | + <c:forEach items="${var.HOMEWORKS}" var="var_h" varStatus="vs"> | |
128 | + <td class="center"><div style="width:80px;margin:0 auto;">${var.AVG_SCORE}</div></td> | |
129 | + </c:forEach> | |
130 | + </tr> | |
131 | + <tr> | |
132 | + <td class="center"><div style="width:150px;">班级课程平均得分率</div></td> | |
133 | + <td class="center"><div style="width:150px;"></div></td> | |
134 | + <td class="center"><div style="width:80px;"></div></td> | |
135 | + <c:forEach items="${testpaperList}" var="var" varStatus="vs"> | |
136 | + <td class="center"><div style="width:80px;margin:0 auto;"><fmt:formatNumber type="number" | |
137 | + value="${var.TOTAL_SCORE == 0 ? 0: (var.AVG_SCORE / var.TOTAL_SCORE * 100)}" | |
138 | + maxFractionDigits="2" />%</div></td> | |
139 | + </c:forEach> | |
140 | + </tr> | |
141 | + | |
142 | + <c:choose> | |
143 | + <c:when test="${not empty studentList}"> | |
144 | + <c:forEach items="${studentList}" var="var" varStatus="vs"> | |
145 | + <tr> | |
146 | + <%-- <td class="center"><a | |
147 | + href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> | |
148 | + </td> --%> | |
149 | + <td class="center"><div style="width:150px;cursor:hand"><a | |
150 | + onclick="student('${info.CLASS_ID}','${var.STUDENT_ID}')">${var.NAME}</a></div> | |
151 | + </td> | |
152 | + <td class="center"><div style="width:150px;"><fmt:formatNumber type="number" | |
153 | + value="${var.TOTALSCORE == 0 ? 0: (var.GETSCORE / var.TOTALSCORE * 100)}" | |
154 | + maxFractionDigits="2" />%</div></td> | |
155 | + <td class="center"><div style="width:80px;margin:0 auto;">${var.GETSCORE }</div></td> | |
156 | + <c:forEach items="${testpaperList}" var="var1" varStatus="vs1"> | |
157 | + <td class="center"><div style="width:180px;margin:0 auto;"><c:set var="TEST_ID" | |
158 | + value="${var1.TESTPAPER_ID}" /> ${var[TEST_ID] }</div></td> | |
159 | + </c:forEach> | |
160 | + </tr> | |
161 | + </c:forEach> | |
162 | + </c:when> | |
163 | + </c:choose> | |
164 | + </tbody> | |
165 | + </table> | |
166 | + | |
167 | + <div id="scrollableTable"></div> | |
168 | + </form> | |
44 | 169 | </div> |
170 | + | |
171 | + | |
172 | + </div> | |
173 | + </c:forEach> | |
174 | + </div> | |
175 | + | |
176 | +</div> | |
177 | + | |
45 | 178 | <hr /> |
46 | 179 | <div style="padding:20px 20px;"> |
47 | 180 | <form action="report/report.do" method="post" name="Form" id="Form" style="margin-bottom:0;"> | ... | ... |