Commit 9aff16c2ac8246617d1885200005fe0c567f4bbc

Authored by 孙向锦
2 parents ed6f550b d318653d

Merge branch 'develop' of http://120.78.57.84/Elvis/SunvoteEducation into develop

WebRoot/WEB-INF/jsp/sunvote/admin/admin_main.jsp
... ... @@ -29,6 +29,7 @@
29 29 <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
30 30 <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
31 31 <![endif]-->
  32 +
32 33 </head>
33 34 <body>
34 35 <div class="header">
... ... @@ -166,6 +167,9 @@
166 167 <p>年级升级</p>
167 168 </li>
168 169 <li>
  170 + <p>模板设置</p>
  171 + </li>
  172 + <li>
169 173 <p>其他配置</p>
170 174 </li>
171 175 </ul>
... ...
WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_edit2.jsp
... ... @@ -16,6 +16,8 @@
16 16 <%@ include file="../../system/index/top.jsp"%>
17 17 <!-- 日期框 -->
18 18 <link rel="stylesheet" href="static/ace/css/datepicker.css" />
  19 + <!-- 编辑页样式覆盖 -->
  20 + <link rel="stylesheet" href="static/css/edit.css" />
19 21 </head>
20 22 <body class="no-skin">
21 23 <!-- /section:basics/navbar.layout -->
... ... @@ -30,7 +32,7 @@
30 32 <form action="sclass/${msg }.do" name="Form" id="Form" method="post">
31 33 <input type="hidden" name="ID" id="ID" value="${pd.ID}"/>
32 34 <div id="zhongxin" style="padding-top: 13px;">
33   - <table id="table_report" class="table table-striped table-bordered table-hover">
  35 + <table id="table_report" class="table">
34 36 <tr>
35 37 <td style="width:75px;text-align: right;padding-top: 13px;">所属学校:</td>
36 38 <td>
... ... @@ -47,7 +49,7 @@
47 49 <td style="width:75px;text-align: right;padding-top: 13px;">所属年级:</td>
48 50 <td>
49 51 <%-- <input type="text" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}" maxlength="255" placeholder="这里输入所属年级" title="所属年级" style="width:98%;"/></td> --%>
50   - <select class="chosen-select form-control" name="GRADE_ID" id="GRADE_ID" data-placeholder="这里输入所属年级" disabled="disabled">
  52 + <select class="chosen-select form-control" name="GRADE_ID" id="GRADE_ID" data-placeholder="这里输入所属年级" >
51 53 <c:forEach var="item" items="${grades}">
52 54 <option value="${item.ID}" <c:if test="${pd.GRADE_ID==item.ID}">selected="true"</c:if>>${item.NAME}</option>
53 55 </c:forEach>
... ... @@ -87,7 +89,7 @@
87 89 <tr>
88 90 <td style="text-align: center;" colspan="10">
89 91 <a class="btn btn-mini btn-primary" onclick="save();">保存</a>
90   - <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
  92 + <a class="btn btn-mini btn-danger" onclick="window.top.modal.remove();">取消</a>
91 93 </td>
92 94 </tr>
93 95 </table>
... ...
WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_list2.jsp
... ... @@ -83,6 +83,7 @@
83 83 <td class='center'>${myelfun:findClassTypeName(var.CLASS_TYPE)}</td>
84 84 <td class='center'>${var.CLASS_CODE}</td>
85 85 <td class='center'>${myelfun:findBasestationName(var.BASESTATION_ID)}</td>
  86 +
86 87 <td><a onclick="edit('${var.ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a><a href="#" onclick="del('${var.ID}');"><img src="static/images/remove.png" /></a></td>
87 88 </tr>
88 89 </c:forEach>
... ...
WebRoot/WEB-INF/jsp/sunvote/subject/subject_edit2.jsp
... ... @@ -16,6 +16,7 @@
16 16 <%@ include file="../../system/index/top.jsp"%>
17 17 <!-- 日期框 -->
18 18 <link rel="stylesheet" href="static/ace/css/datepicker.css" />
  19 + <link rel="stylesheet" href="static/css/edit.css" />
19 20 </head>
20 21 <body class="no-skin">
21 22 <!-- /section:basics/navbar.layout -->
... ... @@ -31,7 +32,7 @@
31 32 <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/>
32 33 <input type="hidden" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}"/>
33 34 <div id="zhongxin" style="padding-top: 13px;">
34   - <table id="table_report" class="table table-striped table-bordered table-hover">
  35 + <table id="table_report" class="table">
35 36 <tr>
36 37 <td style="width:75px;text-align: right;padding-top: 13px;">科目名称:</td>
37 38 <td>
... ... @@ -80,6 +81,8 @@
80 81 $("#Form").submit();
81 82 $("#zhongxin").hide();
82 83 $("#zhongxin2").show();
  84 + window.top.modal.remove();
  85 + tosearch();
83 86 }
84 87  
85 88 $(function() {
... ...
WebRoot/WEB-INF/jsp/sunvote/subject/subject_list2.jsp
... ... @@ -70,7 +70,7 @@
70 70 value="${var.ID}" />${vs.index+1}</td>
71 71 <td class='center'>${var.CNAME}</td>
72 72 <td class='center'>${var.ENAME}</td>
73   - <td><a href="#" onclick="edit('${var.ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a><a href="#" onclick="del('${var.ID}');"><img src="static/images/remove.png" /></a></td>
  73 + <td><a onclick="edit('${var.ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a><a onclick="del('${var.ID}');"><img src="static/images/remove.png" /></a></td>
74 74  
75 75 </tr>
76 76  
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_list2.jsp
... ... @@ -89,7 +89,7 @@
89 89 <td class='center'>${var.ACCOUT}</td>
90 90 <td class='center'>${var.SEX == 1? "男":"女"}</td>
91 91 <td class='center'>${var.KEYPAD_ID}</td>
92   - <td><a href="#" onclick="edit('${var.ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a><a href="#" onclick="del('${var.ID}');"><img src="static/images/remove.png" /></a></td>
  92 + <td><a onclick="edit('${var.ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a><a onclick="del('${var.ID}');"><img src="static/images/remove.png" /></a></td>
93 93  
94 94 </tr>
95 95  
... ... @@ -208,7 +208,7 @@
208 208  
209 209 function edit(Id){
210 210 window.top.modal.init({
211   - 'title':'添加学生',
  211 + 'title':'修改信息',
212 212 'url':'<%=basePath%>teacher/goEdit2.do?ID='+Id,
213 213 func:function() {
214 214 tosearch();
... ...
WebRoot/WEB-INF/jsp/system/index/login.jsp
... ... @@ -78,6 +78,15 @@
78 78 if(window.top != window.self){
79 79 window.top.location.href = "<%=basePath%>";
80 80 }
  81 +
  82 + document.onkeydown = function (e) { // 回车提交表单
  83 + // 兼容FF和IE和Opera
  84 + var theEvent = window.event || e;
  85 + var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
  86 + if (code == 13) {
  87 + severCheck();
  88 + }
  89 + }
81 90 //客户端校验
82 91 function check() {
83 92  
... ...