Commit a7c57a42ee0a950503d73a3b62a36673a7f44659
1 parent
066f7673
成绩添加上一个下一个学生功能
Showing
7 changed files
with
36 additions
and
7 deletions
WebRoot/WEB-INF/jsp/sunvote/student/student_list2.jsp
| @@ -102,7 +102,7 @@ | @@ -102,7 +102,7 @@ | ||
| 102 | <a class="btn btn-mini btn-success" onclick="add();">新增</a> | 102 | <a class="btn btn-mini btn-success" onclick="add();">新增</a> |
| 103 | <a class="btn btn-mini btn-success" onclick="upload();">批量上传</a> | 103 | <a class="btn btn-mini btn-success" onclick="upload();">批量上传</a> |
| 104 | <a class="btn btn-mini btn-danger" onclick="makeAll('确定要删除选中的数据吗?');" title="批量删除" ><i class='ace-icon fa fa-trash-o bigger-120'></i></a> | 104 | <a class="btn btn-mini btn-danger" onclick="makeAll('确定要删除选中的数据吗?');" title="批量删除" ><i class='ace-icon fa fa-trash-o bigger-120'></i></a> |
| 105 | - <a class="btn btn-mini btn-success" onclick="report();">查看班级报表</a> | 105 | + <!-- <a class="btn btn-mini btn-success" onclick="report();">查看班级报表</a> --> |
| 106 | </td> | 106 | </td> |
| 107 | <td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td> | 107 | <td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td> |
| 108 | </tr> | 108 | </tr> |
WebRoot/WEB-INF/jsp/sunvote/teacher/stduent_report.jsp
| @@ -66,6 +66,8 @@ | @@ -66,6 +66,8 @@ | ||
| 66 | <p>班级最高得分率<span id="class_max">0.0</span>%</p> | 66 | <p>班级最高得分率<span id="class_max">0.0</span>%</p> |
| 67 | </div> | 67 | </div> |
| 68 | </div> | 68 | </div> |
| 69 | + <div class="prev"></div> | ||
| 70 | + <div class="next"></div> | ||
| 69 | </div> | 71 | </div> |
| 70 | <div class="tabel_b"> | 72 | <div class="tabel_b"> |
| 71 | <div class="tab_top row"> | 73 | <div class="tab_top row"> |
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp
| @@ -94,10 +94,11 @@ | @@ -94,10 +94,11 @@ | ||
| 94 | </div> | 94 | </div> |
| 95 | <c:forEach items="${pd.TEACHER}" var="var" varStatus="vs"> | 95 | <c:forEach items="${pd.TEACHER}" var="var" varStatus="vs"> |
| 96 | <div class="class"> | 96 | <div class="class"> |
| 97 | - <p><a href="javascript:chooseClass('${var.CLASS_ID}','${var.TERM_ID}');">${var.GRADE_NAME}${var.SUBJECT_NAME} <span>${var.CLASS_NAME}</span></a></p> | 97 | + <p><a href="javascript:chooseClass('${var.CLASS_ID}','${var.TERM_ID}');">${var.GRADE_NAME}${var.SUBJECT_NAME} <span>${var.CLASS_NAME}</span></a> |
| 98 | + <a href="javascript:report('${var.CLASS_ID}');">成绩</a></p> | ||
| 98 | </div> | 99 | </div> |
| 99 | </c:forEach> | 100 | </c:forEach> |
| 100 | - <div class="test">测验</div> | 101 | + <div class="class" id="test"><p> <a href="javascript:;">试卷</a></p></div> |
| 101 | <!-- <div class="analysis">分析</div> --> | 102 | <!-- <div class="analysis">分析</div> --> |
| 102 | </div> | 103 | </div> |
| 103 | <div style="width:70%;height:100%;margin-left:30%;" class="content_r"> | 104 | <div style="width:70%;height:100%;margin-left:30%;" class="content_r"> |
| @@ -204,7 +205,7 @@ | @@ -204,7 +205,7 @@ | ||
| 204 | self.location.href = "<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time ; | 205 | self.location.href = "<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time ; |
| 205 | $(".title_time").modal("hide"); | 206 | $(".title_time").modal("hide"); |
| 206 | }); | 207 | }); |
| 207 | - $(".test").click(function(){ | 208 | + $("#test").click(function(){ |
| 208 | $(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" src="paper/list2.do?" style="width:100%;height:'+$(".content_l").height()+'px;"></iframe>'); | 209 | $(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" src="paper/list2.do?" style="width:100%;height:'+$(".content_l").height()+'px;"></iframe>'); |
| 209 | }) | 210 | }) |
| 210 | 211 | ||
| @@ -212,6 +213,10 @@ | @@ -212,6 +213,10 @@ | ||
| 212 | var path = "student/listcs.do?class_id=" + classID + "&term_id=" + termID ; | 213 | var path = "student/listcs.do?class_id=" + classID + "&term_id=" + termID ; |
| 213 | $(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>'); | 214 | $(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>'); |
| 214 | } | 215 | } |
| 216 | + | ||
| 217 | + function report(classId){ | ||
| 218 | + window.open('<%=basePath%>report/report.do?classid=' + classId); | ||
| 219 | + } | ||
| 215 | /* $(".analysis").click(function(){ | 220 | /* $(".analysis").click(function(){ |
| 216 | $(".content_r").html('<img src="static/images/analysis.png" width="100%" />'); | 221 | $(".content_r").html('<img src="static/images/analysis.png" width="100%" />'); |
| 217 | }) */ | 222 | }) */ |
WebRoot/static/css/style1.css
| 1 | -html,body{width:100%;height:100%;} | 1 | +html,body{width:100%;height:100%;} |
| 2 | ul{padding:0;} | 2 | ul{padding:0;} |
| 3 | .content{height:100%;} | 3 | .content{height:100%;} |
| 4 | .on{background:#b6ebf1;} | 4 | .on{background:#b6ebf1;} |
| @@ -10,7 +10,7 @@ ul{padding:0;} | @@ -10,7 +10,7 @@ ul{padding:0;} | ||
| 10 | .content .content_l{height:100%;overflow-y:auto;padding:0;} | 10 | .content .content_l{height:100%;overflow-y:auto;padding:0;} |
| 11 | .content .content_l li p{line-height:50px;font-size:25px;text-align:center;} | 11 | .content .content_l li p{line-height:50px;font-size:25px;text-align:center;} |
| 12 | .content .content_r{padding:0;overflow-x:hidden;} | 12 | .content .content_r{padding:0;overflow-x:hidden;} |
| 13 | -.content .content_r .tabel_t{background:#50b5c9;padding-top:5%;} | 13 | +.content .content_r .tabel_t{background:#50b5c9;padding-top:5%;position:relative;} |
| 14 | .content .content_r .tabel_t .name{color:#fff;text-align:center;} | 14 | .content .content_r .tabel_t .name{color:#fff;text-align:center;} |
| 15 | .header .navbar{background:#fff;border-bottom:1px solid #ccc;height:70px;} | 15 | .header .navbar{background:#fff;border-bottom:1px solid #ccc;height:70px;} |
| 16 | .circle{border-bottom:1px solid #fff;} | 16 | .circle{border-bottom:1px solid #fff;} |
| @@ -23,4 +23,7 @@ ul{padding:0;} | @@ -23,4 +23,7 @@ ul{padding:0;} | ||
| 23 | .tabel_b .tab_top .col-md-3{font-size:20px;color:#8ab1b8;} | 23 | .tabel_b .tab_top .col-md-3{font-size:20px;color:#8ab1b8;} |
| 24 | .tabel_b .tab_top .col-md-9 .color{float:left;margin-right:10%;} | 24 | .tabel_b .tab_top .col-md-9 .color{float:left;margin-right:10%;} |
| 25 | .tabel_b .tab_top .col-md-9 .color li{float:left;} | 25 | .tabel_b .tab_top .col-md-9 .color li{float:left;} |
| 26 | -.tabel_b .tab_top .col-md-9 .color li span{display:inline-block;width:15px;height:6px;vertical-align: middle;margin-left:5px;margin-right:5px;} | ||
| 27 | \ No newline at end of file | 26 | \ No newline at end of file |
| 27 | +.tabel_b .tab_top .col-md-9 .color li span{display:inline-block;width:15px;height:6px;vertical-align: middle;margin-left:5px;margin-right:5px;} | ||
| 28 | + | ||
| 29 | +.prev{width:50px;height:50px;background:url(../images/prev.png) no-repeat;background-size:100%;position:absolute;top:40%;left:3%;} | ||
| 30 | +.next{width:50px;height:50px;background:url(../images/next.png) no-repeat;background-size:100%;position:absolute;top:40%;right:3%;} | ||
| 28 | \ No newline at end of file | 31 | \ No newline at end of file |
WebRoot/static/images/next.png
0 → 100644
836 Bytes
WebRoot/static/images/prev.png
0 → 100644
576 Bytes
WebRoot/static/js/control1.js
| @@ -66,6 +66,25 @@ | @@ -66,6 +66,25 @@ | ||
| 66 | endDate=date_arry[1]; | 66 | endDate=date_arry[1]; |
| 67 | getData(startDate,endDate); | 67 | getData(startDate,endDate); |
| 68 | }) | 68 | }) |
| 69 | + | ||
| 70 | + $(".prev").click(function(){ | ||
| 71 | + _index-=1; | ||
| 72 | + if(_index<0){ | ||
| 73 | + _index=data_temp.data.studentList.length-1; | ||
| 74 | + } | ||
| 75 | + $(".content_l li").eq(_index).siblings().removeClass("on"); | ||
| 76 | + $(".content_l li").eq(_index).addClass("on"); | ||
| 77 | + data(_index,data_temp); | ||
| 78 | + }) | ||
| 79 | + $(".next").click(function(){ | ||
| 80 | + _index+=1; | ||
| 81 | + if(_index>(data_temp.data.studentList.length-1)){ | ||
| 82 | + _index=0; | ||
| 83 | + } | ||
| 84 | + $(".content_l li").eq(_index).siblings().removeClass("on"); | ||
| 85 | + $(".content_l li").eq(_index).addClass("on"); | ||
| 86 | + data(_index,data_temp); | ||
| 87 | + }) | ||
| 69 | }); | 88 | }); |
| 70 | 89 | ||
| 71 | 90 |