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 | 102 | <a class="btn btn-mini btn-success" onclick="add();">新增</a> |
| 103 | 103 | <a class="btn btn-mini btn-success" onclick="upload();">批量上传</a> |
| 104 | 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 | 106 | </td> |
| 107 | 107 | <td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td> |
| 108 | 108 | </tr> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/teacher/stduent_report.jsp
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp
| ... | ... | @@ -94,10 +94,11 @@ |
| 94 | 94 | </div> |
| 95 | 95 | <c:forEach items="${pd.TEACHER}" var="var" varStatus="vs"> |
| 96 | 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 | 99 | </div> |
| 99 | 100 | </c:forEach> |
| 100 | - <div class="test">测验</div> | |
| 101 | + <div class="class" id="test"><p> <a href="javascript:;">试卷</a></p></div> | |
| 101 | 102 | <!-- <div class="analysis">分析</div> --> |
| 102 | 103 | </div> |
| 103 | 104 | <div style="width:70%;height:100%;margin-left:30%;" class="content_r"> |
| ... | ... | @@ -204,7 +205,7 @@ |
| 204 | 205 | self.location.href = "<%=basePath%>" + "paper/npaper.do?" + "name=" + name + "&time=" + time ; |
| 205 | 206 | $(".title_time").modal("hide"); |
| 206 | 207 | }); |
| 207 | - $(".test").click(function(){ | |
| 208 | + $("#test").click(function(){ | |
| 208 | 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 | 213 | var path = "student/listcs.do?class_id=" + classID + "&term_id=" + termID ; |
| 213 | 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 | 220 | /* $(".analysis").click(function(){ |
| 216 | 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 | 2 | ul{padding:0;} |
| 3 | 3 | .content{height:100%;} |
| 4 | 4 | .on{background:#b6ebf1;} |
| ... | ... | @@ -10,7 +10,7 @@ ul{padding:0;} |
| 10 | 10 | .content .content_l{height:100%;overflow-y:auto;padding:0;} |
| 11 | 11 | .content .content_l li p{line-height:50px;font-size:25px;text-align:center;} |
| 12 | 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 | 14 | .content .content_r .tabel_t .name{color:#fff;text-align:center;} |
| 15 | 15 | .header .navbar{background:#fff;border-bottom:1px solid #ccc;height:70px;} |
| 16 | 16 | .circle{border-bottom:1px solid #fff;} |
| ... | ... | @@ -23,4 +23,7 @@ ul{padding:0;} |
| 23 | 23 | .tabel_b .tab_top .col-md-3{font-size:20px;color:#8ab1b8;} |
| 24 | 24 | .tabel_b .tab_top .col-md-9 .color{float:left;margin-right:10%;} |
| 25 | 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 | 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 | 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 | 66 | endDate=date_arry[1]; |
| 67 | 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 | ... | ... |