Commit 1694089d272a5a6d1decc3bc43ab84d13f03976d
提交合并
Showing
2 changed files
with
148 additions
and
7 deletions
WebRoot/WEB-INF/jsp/sunvote/homework/homework_report.jsp
@@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
2 | pageEncoding="UTF-8"%> | 2 | pageEncoding="UTF-8"%> |
3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> |
4 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> | 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 | String path = request.getContextPath(); | 7 | String path = request.getContextPath(); |
7 | String basePath = request.getScheme() + "://" | 8 | String basePath = request.getScheme() + "://" |
@@ -34,14 +35,144 @@ | @@ -34,14 +35,144 @@ | ||
34 | </head> | 35 | </head> |
35 | 36 | ||
36 | <body style="background:#fff;"> | 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> | ||
66 | + | ||
67 | + <td><div style="width:150px;text-align:center;"><span>学生人数: ${var.STUDENT_NUM}</span></div></td> | ||
68 | + <td></td> | ||
69 | + | ||
42 | 70 | ||
43 | - </ul> | 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_h.GET_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="${var.HOMEWORKS}" var="var_h" varStatus="vs"> | ||
136 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.GET_SCORE_PERSENT }</div></td> | ||
137 | + </c:forEach> | ||
138 | + </tr> | ||
139 | + | ||
140 | + <c:choose> | ||
141 | + <c:when test="${not empty $var.HOMEWORKS}"> | ||
142 | + <c:forEach items="${studentList}" var="var" varStatus="vs"> | ||
143 | + <tr> | ||
144 | + <%-- <td class="center"><a | ||
145 | + href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> | ||
146 | + </td> --%> | ||
147 | + <td class="center"><div style="width:150px;cursor:hand"><a | ||
148 | + onclick="student('${info.CLASS_ID}','${var.STUDENT_ID}')">${var.NAME}</a></div> | ||
149 | + </td> | ||
150 | + <td class="center"><div style="width:150px;"><fmt:formatNumber type="number" | ||
151 | + value="${var.TOTALSCORE == 0 ? 0: (var.GETSCORE / var.TOTALSCORE * 100)}" | ||
152 | + maxFractionDigits="2" />%</div></td> | ||
153 | + <td class="center"><div style="width:80px;margin:0 auto;">${var.GETSCORE }</div></td> | ||
154 | + <c:forEach items="${testpaperList}" var="var1" varStatus="vs1"> | ||
155 | + <td class="center"><div style="width:180px;margin:0 auto;"><c:set var="TEST_ID" | ||
156 | + value="${var1.TESTPAPER_ID}" /> ${var[TEST_ID] }</div></td> | ||
157 | + </c:forEach> | ||
158 | + </tr> | ||
159 | + </c:forEach> | ||
160 | + </c:when> | ||
161 | + </c:choose> | ||
162 | + </tbody> | ||
163 | + </table> | ||
164 | + | ||
165 | + <div id="scrollableTable"></div> | ||
166 | + </form> | ||
44 | </div> | 167 | </div> |
168 | + | ||
169 | + | ||
170 | + </div> | ||
171 | + </c:forEach> | ||
172 | + </div> | ||
173 | + | ||
174 | +</div> | ||
175 | + | ||
45 | <hr /> | 176 | <hr /> |
46 | <div style="padding:20px 20px;"> | 177 | <div style="padding:20px 20px;"> |
47 | <form action="report/report.do" method="post" name="Form" id="Form" style="margin-bottom:0;"> | 178 | <form action="report/report.do" method="post" name="Form" id="Form" style="margin-bottom:0;"> |
WebRoot/static/login/style_login.css
@@ -22,7 +22,17 @@ color: #666666; | @@ -22,7 +22,17 @@ color: #666666; | ||
22 | .content{width:100%;height:100%;} | 22 | .content{width:100%;height:100%;} |
23 | .content_t{background:#01a5a6;height:40%;position:relative;} | 23 | .content_t{background:#01a5a6;height:40%;position:relative;} |
24 | .content_t img{position:absolute;bottom:0;width:30%;left:35%;display:block;} | 24 | .content_t img{position:absolute;bottom:0;width:30%;left:35%;display:block;} |
25 | -.content_b .form_box{width:25%;margin:0 auto;margin-top:3%;} | 25 | +.content_b .form_box {width:25%;margin:0 auto;margin-top:3%;} |
26 | +.content_b .form_box #loginbox{position:relative;} | ||
27 | +.content_b .form_box .name_box{position:relative;} | ||
28 | +.content_b .form_box .icon_down{position:absolute;right:10px;top:9px;width:20px;} | ||
26 | .content_b input{display:block;width:100%;height:50px;background:#f2f2f2;border:1px solid #cccccc;line-height:50px;box-sizing:border-box;padding:0 12px;outline-style:none;font-size:20px;} | 29 | .content_b input{display:block;width:100%;height:50px;background:#f2f2f2;border:1px solid #cccccc;line-height:50px;box-sizing:border-box;padding:0 12px;outline-style:none;font-size:20px;} |
27 | .content_b input:nth-child(2){margin-top:15px;} | 30 | .content_b input:nth-child(2){margin-top:15px;} |
28 | .content_b .login_btn{display:block;width:100%;background:#13b5b1;color:#fff;font-size:24px;text-align:center;padding:2% 0;margin-top:10%;text-decoration:none;} | 31 | .content_b .login_btn{display:block;width:100%;background:#13b5b1;color:#fff;font-size:24px;text-align:center;padding:2% 0;margin-top:10%;text-decoration:none;} |
32 | +.history{width:100%;position:absolute;top:50px;height:auto;max-height:240px;background:#fff;overflow:auto;border:1px solid #ccc;display:none;} | ||
33 | +.history ul{padding:0;margin:0;} | ||
34 | +.history li{height:40px;border-bottom:1px solid #ccc;list-style:none;line-height:40px;padding:0 12px;font-size:20px;} | ||
35 | +.history li:hover{background:#ccc;} | ||
36 | +.rember{text-align:right;} | ||
37 | +.rember input{width:16px;height:16px;display:inline;vertical-align:middle;margin:0;} | ||
38 | +.rember span{vertical-align:middle;} | ||
29 | \ No newline at end of file | 39 | \ No newline at end of file |