Commit 9aff16c2ac8246617d1885200005fe0c567f4bbc
Merge branch 'develop' of http://120.78.57.84/Elvis/SunvoteEducation into develop
Showing
7 changed files
with
26 additions
and
7 deletions
WebRoot/WEB-INF/jsp/sunvote/admin/admin_main.jsp
@@ -29,6 +29,7 @@ | @@ -29,6 +29,7 @@ | ||
29 | <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script> | 29 | <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script> |
30 | <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script> | 30 | <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script> |
31 | <![endif]--> | 31 | <![endif]--> |
32 | + | ||
32 | </head> | 33 | </head> |
33 | <body> | 34 | <body> |
34 | <div class="header"> | 35 | <div class="header"> |
@@ -166,6 +167,9 @@ | @@ -166,6 +167,9 @@ | ||
166 | <p>年级升级</p> | 167 | <p>年级升级</p> |
167 | </li> | 168 | </li> |
168 | <li> | 169 | <li> |
170 | + <p>模板设置</p> | ||
171 | + </li> | ||
172 | + <li> | ||
169 | <p>其他配置</p> | 173 | <p>其他配置</p> |
170 | </li> | 174 | </li> |
171 | </ul> | 175 | </ul> |
WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_edit2.jsp
@@ -16,6 +16,8 @@ | @@ -16,6 +16,8 @@ | ||
16 | <%@ include file="../../system/index/top.jsp"%> | 16 | <%@ include file="../../system/index/top.jsp"%> |
17 | <!-- 日期框 --> | 17 | <!-- 日期框 --> |
18 | <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | 18 | <link rel="stylesheet" href="static/ace/css/datepicker.css" /> |
19 | + <!-- 编辑页样式覆盖 --> | ||
20 | + <link rel="stylesheet" href="static/css/edit.css" /> | ||
19 | </head> | 21 | </head> |
20 | <body class="no-skin"> | 22 | <body class="no-skin"> |
21 | <!-- /section:basics/navbar.layout --> | 23 | <!-- /section:basics/navbar.layout --> |
@@ -30,7 +32,7 @@ | @@ -30,7 +32,7 @@ | ||
30 | <form action="sclass/${msg }.do" name="Form" id="Form" method="post"> | 32 | <form action="sclass/${msg }.do" name="Form" id="Form" method="post"> |
31 | <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> | 33 | <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> |
32 | <div id="zhongxin" style="padding-top: 13px;"> | 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 | <tr> | 36 | <tr> |
35 | <td style="width:75px;text-align: right;padding-top: 13px;">所属学校:</td> | 37 | <td style="width:75px;text-align: right;padding-top: 13px;">所属学校:</td> |
36 | <td> | 38 | <td> |
@@ -47,7 +49,7 @@ | @@ -47,7 +49,7 @@ | ||
47 | <td style="width:75px;text-align: right;padding-top: 13px;">所属年级:</td> | 49 | <td style="width:75px;text-align: right;padding-top: 13px;">所属年级:</td> |
48 | <td> | 50 | <td> |
49 | <%-- <input type="text" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}" maxlength="255" placeholder="这里输入所属年级" title="所属年级" style="width:98%;"/></td> --%> | 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 | <c:forEach var="item" items="${grades}"> | 53 | <c:forEach var="item" items="${grades}"> |
52 | <option value="${item.ID}" <c:if test="${pd.GRADE_ID==item.ID}">selected="true"</c:if>>${item.NAME}</option> | 54 | <option value="${item.ID}" <c:if test="${pd.GRADE_ID==item.ID}">selected="true"</c:if>>${item.NAME}</option> |
53 | </c:forEach> | 55 | </c:forEach> |
@@ -87,7 +89,7 @@ | @@ -87,7 +89,7 @@ | ||
87 | <tr> | 89 | <tr> |
88 | <td style="text-align: center;" colspan="10"> | 90 | <td style="text-align: center;" colspan="10"> |
89 | <a class="btn btn-mini btn-primary" onclick="save();">保存</a> | 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 | </td> | 93 | </td> |
92 | </tr> | 94 | </tr> |
93 | </table> | 95 | </table> |
WebRoot/WEB-INF/jsp/sunvote/sclass/sclass_list2.jsp
@@ -83,6 +83,7 @@ | @@ -83,6 +83,7 @@ | ||
83 | <td class='center'>${myelfun:findClassTypeName(var.CLASS_TYPE)}</td> | 83 | <td class='center'>${myelfun:findClassTypeName(var.CLASS_TYPE)}</td> |
84 | <td class='center'>${var.CLASS_CODE}</td> | 84 | <td class='center'>${var.CLASS_CODE}</td> |
85 | <td class='center'>${myelfun:findBasestationName(var.BASESTATION_ID)}</td> | 85 | <td class='center'>${myelfun:findBasestationName(var.BASESTATION_ID)}</td> |
86 | + | ||
86 | <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 | <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 | </tr> | 88 | </tr> |
88 | </c:forEach> | 89 | </c:forEach> |
WebRoot/WEB-INF/jsp/sunvote/subject/subject_edit2.jsp
@@ -16,6 +16,7 @@ | @@ -16,6 +16,7 @@ | ||
16 | <%@ include file="../../system/index/top.jsp"%> | 16 | <%@ include file="../../system/index/top.jsp"%> |
17 | <!-- 日期框 --> | 17 | <!-- 日期框 --> |
18 | <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | 18 | <link rel="stylesheet" href="static/ace/css/datepicker.css" /> |
19 | + <link rel="stylesheet" href="static/css/edit.css" /> | ||
19 | </head> | 20 | </head> |
20 | <body class="no-skin"> | 21 | <body class="no-skin"> |
21 | <!-- /section:basics/navbar.layout --> | 22 | <!-- /section:basics/navbar.layout --> |
@@ -31,7 +32,7 @@ | @@ -31,7 +32,7 @@ | ||
31 | <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | 32 | <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> |
32 | <input type="hidden" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}"/> | 33 | <input type="hidden" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}"/> |
33 | <div id="zhongxin" style="padding-top: 13px;"> | 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 | <tr> | 36 | <tr> |
36 | <td style="width:75px;text-align: right;padding-top: 13px;">科目名称:</td> | 37 | <td style="width:75px;text-align: right;padding-top: 13px;">科目名称:</td> |
37 | <td> | 38 | <td> |
@@ -80,6 +81,8 @@ | @@ -80,6 +81,8 @@ | ||
80 | $("#Form").submit(); | 81 | $("#Form").submit(); |
81 | $("#zhongxin").hide(); | 82 | $("#zhongxin").hide(); |
82 | $("#zhongxin2").show(); | 83 | $("#zhongxin2").show(); |
84 | + window.top.modal.remove(); | ||
85 | + tosearch(); | ||
83 | } | 86 | } |
84 | 87 | ||
85 | $(function() { | 88 | $(function() { |
WebRoot/WEB-INF/jsp/sunvote/subject/subject_list2.jsp
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | value="${var.ID}" />${vs.index+1}</td> | 70 | value="${var.ID}" />${vs.index+1}</td> |
71 | <td class='center'>${var.CNAME}</td> | 71 | <td class='center'>${var.CNAME}</td> |
72 | <td class='center'>${var.ENAME}</td> | 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 | </tr> | 75 | </tr> |
76 | 76 |
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_list2.jsp
@@ -89,7 +89,7 @@ | @@ -89,7 +89,7 @@ | ||
89 | <td class='center'>${var.ACCOUT}</td> | 89 | <td class='center'>${var.ACCOUT}</td> |
90 | <td class='center'>${var.SEX == 1? "男":"女"}</td> | 90 | <td class='center'>${var.SEX == 1? "男":"女"}</td> |
91 | <td class='center'>${var.KEYPAD_ID}</td> | 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 | </tr> | 94 | </tr> |
95 | 95 | ||
@@ -208,7 +208,7 @@ | @@ -208,7 +208,7 @@ | ||
208 | 208 | ||
209 | function edit(Id){ | 209 | function edit(Id){ |
210 | window.top.modal.init({ | 210 | window.top.modal.init({ |
211 | - 'title':'添加学生', | 211 | + 'title':'修改信息', |
212 | 'url':'<%=basePath%>teacher/goEdit2.do?ID='+Id, | 212 | 'url':'<%=basePath%>teacher/goEdit2.do?ID='+Id, |
213 | func:function() { | 213 | func:function() { |
214 | tosearch(); | 214 | tosearch(); |
WebRoot/WEB-INF/jsp/system/index/login.jsp
@@ -78,6 +78,15 @@ | @@ -78,6 +78,15 @@ | ||
78 | if(window.top != window.self){ | 78 | if(window.top != window.self){ |
79 | window.top.location.href = "<%=basePath%>"; | 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 | function check() { | 91 | function check() { |
83 | 92 |