Commit 5690803e5ea90ec305a40b9311968bb0d34186f3

Authored by 孙向锦
1 parent 4b9536d4

修改管理员部分显示页面

WebRoot/WEB-INF/jsp/sunvote/admin/admin_main.jsp
@@ -267,18 +267,14 @@ @@ -267,18 +267,14 @@
267 267
268 function chooseListClass(school_id,gradle_id){ 268 function chooseListClass(school_id,gradle_id){
269 var path = "../sclass/listcs.do?school_id=" + school_id + "&grade_id=" + gradle_id ; 269 var path = "../sclass/listcs.do?school_id=" + school_id + "&grade_id=" + gradle_id ;
270 - if($("#mainFrame").attr('src') != (path)){  
271 - $("#mainFrame").attr('src',path);  
272 - window.top.loading.show();  
273 - } 270 + $("#mainFrame").attr('src',path);
  271 + window.top.loading.show();
274 } 272 }
275 273
276 function report(classId){ 274 function report(classId){
277 //window.open('<%=basePath%>report/report.do?role=admin&classid=' + classId); 275 //window.open('<%=basePath%>report/report.do?role=admin&classid=' + classId);
278 - //if($("#mainFrame").attr('src') != ('<%=basePath%>report/report.do?role=admin&classid=' + classId)){  
279 $("#mainFrame").attr('src','<%=basePath%>report/report.do?role=admin&classid=' + classId); 276 $("#mainFrame").attr('src','<%=basePath%>report/report.do?role=admin&classid=' + classId);
280 window.top.loading.show(); 277 window.top.loading.show();
281 - //}  
282 } 278 }
283 function report2(classId){ 279 function report2(classId){
284 //window.open('<%=basePath%>report/report.do?classid=' + classId); 280 //window.open('<%=basePath%>report/report.do?classid=' + classId);
@@ -307,19 +303,15 @@ @@ -307,19 +303,15 @@
307 $("#qingsongkao_paper").click(function (){ 303 $("#qingsongkao_paper").click(function (){
308 var path = "../paper/list4.do?school_id=" + schoolId ; 304 var path = "../paper/list4.do?school_id=" + schoolId ;
309 //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>'); 305 //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
310 - if($("#mainFrame").attr('src') != (path)){  
311 - $("#mainFrame").attr('src',path);  
312 - window.top.loading.show();  
313 - } 306 + $("#mainFrame").attr('src',path);
  307 + window.top.loading.show();
314 }); 308 });
315 309
316 $("#new_paper").click(function (){ 310 $("#new_paper").click(function (){
317 var path = "../paper/list5.do?school_id=" + schoolId ; 311 var path = "../paper/list5.do?school_id=" + schoolId ;
318 //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>'); 312 //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
319 - if($("#mainFrame").attr('src') != (path)){  
320 - $("#mainFrame").attr('src',path);  
321 - window.top.loading.show();  
322 - } 313 + $("#mainFrame").attr('src',path);
  314 + window.top.loading.show();
323 }); 315 });
324 316
325 $("#jishice_paper").click(function (){ 317 $("#jishice_paper").click(function (){
WebRoot/WEB-INF/jsp/sunvote/coursemanagement/coursemanagement_list2.jsp
@@ -19,19 +19,15 @@ @@ -19,19 +19,15 @@
19 href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" 19 href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
20 rel="stylesheet"> 20 rel="stylesheet">
21 <link href="static/css/teach.css" rel="stylesheet"> 21 <link href="static/css/teach.css" rel="stylesheet">
22 -<!-- jsp文件头和头部 -->  
23 -<%@ include file="../../system/index/top.jsp"%>  
24 <!-- 日期框 --> 22 <!-- 日期框 -->
25 <link rel="stylesheet" href="static/ace/css/datepicker.css" /> 23 <link rel="stylesheet" href="static/ace/css/datepicker.css" />
26 </head> 24 </head>
27 -<body class="no-skin">  
28 -  
29 25
  26 +<body class="no-skin">
30 27
31 <!-- 检索 --> 28 <!-- 检索 -->
32 <form action="coursemanagement/listcs.do" method="post" name="Form" 29 <form action="coursemanagement/listcs.do" method="post" name="Form"
33 - id="Form">  
34 - 30 + id="Form" style="background:#fff;">
35 <div class="head_box"> 31 <div class="head_box">
36 <div class="box_header"> 32 <div class="box_header">
37 <div class="head_box_l"> 33 <div class="head_box_l">
@@ -61,7 +57,7 @@ @@ -61,7 +57,7 @@
61 </table> 57 </table>
62 </div> 58 </div>
63 </div> 59 </div>
64 - <div class="table_box"> 60 + <div class="table_box" >
65 <table class="table table-striped"> 61 <table class="table table-striped">
66 <col style="width: 10%" /> 62 <col style="width: 10%" />
67 <col style="width: 30%" /> 63 <col style="width: 30%" />
@@ -88,7 +84,15 @@ @@ -88,7 +84,15 @@
88 </c:choose> 84 </c:choose>
89 </tbody> 85 </tbody>
90 </table> 86 </table>
91 - 87 + <div class="footer">
  88 + <div class="creat"></div>
  89 + <div class="removeAll"></div>
  90 + <div class="page_box">
  91 +
  92 + <div class="pagination"
  93 + style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
  94 + </div>
  95 + </div>
92 </div> 96 </div>
93 </form> 97 </form>
94 <!-- /.main-container --> 98 <!-- /.main-container -->
WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_list2.jsp
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 </div> 38 </div>
39 <div class="clearfix"></div> 39 <div class="clearfix"></div>
40 </div> 40 </div>
41 - <div style="padding:0 5%;background:#fff;"> 41 + <div style="background:#fff;">
42 42
43 <table class="table table-striped"> 43 <table class="table table-striped">
44 <col style="width: 10%" /> 44 <col style="width: 10%" />
@@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@
62 <!-- 检索 --> 62 <!-- 检索 -->
63 63
64 </div> 64 </div>
65 - <div class="table_box"> 65 + <div class="table_box" style="padding:0%;">
66 <table class="table table-striped"> 66 <table class="table table-striped">
67 <col style="width: 10%" /> 67 <col style="width: 10%" />
68 <col style="width: 22%" /> 68 <col style="width: 22%" />
resources/dbconfig.properties
1 #数据源 1 1 #数据源 1
2 -url:jdbc:mysql://47.107.98.47:3306/education?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 2 +url:jdbc:mysql://47.107.98.47:3306/education2?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
3 #url:jdbc:mysql://120.78.57.84:3306/education3?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 3 #url:jdbc:mysql://120.78.57.84:3306/education3?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
4 #url:jdbc:mysql://192.168.0.3:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 4 #url:jdbc:mysql://192.168.0.3:3306/education?autoReconnect=true&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
5 driverClassName:com.mysql.jdbc.Driver 5 driverClassName:com.mysql.jdbc.Driver