Commit 3371dbc6506e26b995da6d7d5c0ad5994980fb06

Authored by 孙向锦
1 parent 8942b440

0720 版本

WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp
... ... @@ -107,6 +107,9 @@
107 107 <script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script>
108 108 <script type="text/javascript">
109 109  
  110 + $(document).ready(function(){
  111 + window.top.loading.remove();
  112 + });
110 113  
111 114 function tosearch(){
112 115 window.top.loading.remove();
... ...
WebRoot/WEB-INF/jsp/sunvote/student/student_edit2.jsp
1   -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  1 +<%@ page language="java" contentType="text/html; charset=UTF-8"
  2 + pageEncoding="UTF-8"%>
2 3 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
3 4 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
4   -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5 +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
5 6 <%
6 7 String path = request.getContextPath();
7   - String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  8 + String basePath = request.getScheme() + "://"
  9 + + request.getServerName() + ":" + request.getServerPort()
  10 + + path + "/";
8 11 %>
9 12 <!DOCTYPE html>
10 13 <html lang="en">
11   - <head>
12   - <base href="<%=basePath%>">
13   - <!-- 下拉框 -->
14   - <link rel="stylesheet" href="static/ace/css/chosen.css" />
15   - <!-- jsp文件头和头部 -->
16   - <%@ include file="../../system/index/top.jsp"%>
17   - <!-- 日期框 -->
18   - <link rel="stylesheet" href="static/ace/css/datepicker.css" />
19   - <style>
20   - .table td{border:0 !important;}
21   - .btn1 {
  14 +<head>
  15 +<base href="<%=basePath%>">
  16 +<!-- 日期框 -->
  17 +<link rel="stylesheet" href="../static/ace/css/datepicker.css" />
  18 +<style type="text/css">
  19 +li {
  20 + list-style: none;
  21 + margin-top: 10px;
  22 + clear: right;
  23 + clear: both;
  24 +}
  25 +
  26 +li p {
  27 + width: 5em;
  28 + text-align: right;
  29 + margin: 0;
  30 + margin-right: 0.5em;
  31 + float: left;
  32 + line-height: 30px;
  33 +}
  34 +
  35 +li .li_r {
  36 + margin-left: 6em;
  37 + margin-right: 1em;
  38 + clear: right;
  39 +}
  40 +
  41 +li .li_r select {
  42 + height: 30px;
  43 + line-height: 30px;
  44 + background: #f5f5f5;
  45 + border: 1px solid #ccc;
  46 + outline-style: none;
  47 + width: 100%;
  48 +}
  49 +
  50 +li input {
  51 + height: 30px;
  52 + line-height: 30px;
  53 + background: #f5f5f5;
  54 + border: 1px solid #ccc;
  55 + outline-style: none;
  56 + width: 100%;
  57 +}
  58 +
  59 +.btn {
22 60 width: 80%;
23 61 height: 40px;
24 62 margin: 0 auto;
... ... @@ -26,7 +64,7 @@
26 64 margin-top: 5%;
27 65 }
28 66  
29   -.btn1 a {
  67 +.btn a {
30 68 display: block;
31 69 width: 100%;
32 70 height: 100%;
... ... @@ -36,127 +74,158 @@
36 74 line-height: 40px;
37 75 font-size: 20px;
38 76 }
39   - </style>
  77 +
  78 +input[type="text"],select {
  79 + padding-left: 6px;
  80 +}
  81 +</style>
  82 +
40 83 </head>
41   -<body class="no-skin">
42   -<!-- /section:basics/navbar.layout -->
43   -<div class="main-container" id="main-container">
44   - <!-- /section:basics/sidebar -->
45   - <div class="main-content">
46   - <div class="main-content-inner">
47   - <div class="page-content">
48   - <div class="row">
49   - <div class="col-xs-12">
50   -
51   - <form action="student/${msg }.do" name="Form" id="Form" method="post">
52   - <input type="hidden" name="ID" id="ID" value="${pd.ID}"/>
53   - <input type="hidden" name="CLASS_ID" id="CLASS_ID" value="${pd.CLASS_ID}"/>
54   - <input type="hidden" name="TERM_ID" id="TERM_ID" value="${pd.TERM_ID}"/>
55   - <div id="zhongxin" style="padding-top: 13px;">
56   - <table id="table_report" class="table">
57   - <tr>
58   - <td style="width:90px;text-align: right;padding-top: 13px;">姓名:</td>
59   - <td><input type="text" name="NAME" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="这里输入学生姓名" title="学生姓名" style="width:98%;"/></td>
60   - </tr>
61   - <tr>
62   - <td style="width:90px;text-align: right;padding-top: 13px;">学籍号:</td>
63   - <td><input type="text" name="SNO" id="SNO" value="${pd.SNO}" maxlength="255" placeholder="这里输入学籍号" title="学籍号" style="width:98%;"/></td>
64   - </tr>
65   - <tr>
66   - <td style="width:90px;text-align: right;padding-top: 13px;">学号:</td>
67   - <td><input type="text" name="NUMBER" id="NUMBER" value="${pd.NUMBER}" maxlength="255" placeholder="这里输入学号" title="学号" style="width:98%;"/></td>
68   - </tr>
69   - <tr>
70   - <td style="width:90px;text-align: right;padding-top: 13px;">性别:</td>
71   - <td>
72   - <%-- <input type="number" name="SEX" id="SEX" value="${pd.SEX}" maxlength="32" placeholder="这里输入性别" title="性别" style="width:98%;"/></td> --%>
73   - <select class="chosen-select form-control" name="SEX" id="SEX" data-placeholder="这里输入班级类型" style="width:98%;">
74   - <option value="1" <c:if test="${pd.SEX==1}">selected="true"</c:if>>男</option>
75   - <option value="0" <c:if test="${pd.SEX==0}">selected="true"</c:if>>女</option>
76   - </select>
77   - </td>
78   - </tr>
79   - <tr>
80   - <td style="width:90px;text-align: right;padding-top: 13px;">组号:</td>
81   - <td><input type="text" name="GROUPID" id="GROUPID" value="${pd.GROUPID}" maxlength="255" placeholder="这里输入组号" title="组号" style="width:98%;"/></td>
82   - </tr>
83   - <tr>
84   - <td style="width:90px;text-align: right;padding-top: 13px;">签到码:</td>
85   - <td><input type="text" name="SIGN_NO" id="SIGN_NO" value="${pd.SIGN_NO}" maxlength="255" placeholder="这里输入签到码" title="签到码" style="width:98%;"/></td>
86   - </tr>
87   - <tr>
88   - <td style="width:90px;text-align: right;padding-top: 13px;">家长姓名:</td>
89   - <td><input type="text" name="PARENT_NAME" id="PARENT_NAME" value="${pd.PARENT_NAME}" maxlength="255" placeholder="这里输入家长姓名" title="家长姓名" style="width:98%;"/></td>
90   - </tr>
91   - <tr>
92   - <td style="width:90px;text-align: right;padding-top: 13px;">家长手机号:</td>
93   - <td><input type="text" name="PARENT_PHONE" id="PARENT_PHONE" value="${pd.PARENT_PHONE}" maxlength="255" placeholder="这里输入家长手机号" title="家长手机号" style="width:98%;"/></td>
94   - </tr>
95   - <tr>
96   - <td style="width:90px;text-align: right;padding-top: 13px;">键盘ID:</td>
97   - <td><input type="text" name="KEYPAD_ID" id="KEYPAD_ID" value="${pd.KEYPAD_ID}" maxlength="255" placeholder="这里输入键盘ID" title="键盘ID" style="width:98%;"/></td>
98   - </tr>
99   - <tr>
100   - <td style="width:90px;text-align: right;padding-top: 13px;">备注:</td>
101   - <td><input type="text" name="REMARK" id="REMARK" value="${pd.REMARK}" maxlength="255" placeholder="这里输入备注" title="备注" style="width:98%;"/></td>
102   - </tr>
103   - <tr>
104   - <td style="text-align: center;" colspan="10">
105   - <!-- <a class="btn" onclick="save();"><div style="width:100px;">保存</div></a> -->
106   - <div class="btn1">
107   - <a onclick="save();">保存</a>
108   - </div>
109   - </td>
110   - </tr>
111   - </table>
112   - </div>
113   - <div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
114   - </form>
115   - </div>
116   - <!-- /.col -->
  84 +<body>
  85 + <form action="../student/${msg }.do" name="Form" id="Form"
  86 + method="post">
  87 + <input type="hidden" name="ID" id="ID" value="${pd.ID}" /> <input
  88 + type="hidden" name="CLASS_ID" id="CLASS_ID" value="${pd.CLASS_ID}" />
  89 + <input type="hidden" name="TERM_ID" id="TERM_ID" value="${pd.TERM_ID}" />
  90 + <div id="zhongxin">
  91 + <li>
  92 + <p>学生姓名:</p>
  93 + <div class="li_r">
  94 + <input type="text" name="NAME" id="NAME" value="${pd.NAME}"
  95 + maxlength="255" placeholder="这里输入学生姓名" title="学生姓名" />
117 96 </div>
118   - <!-- /.row -->
  97 + </li>
  98 + <li>
  99 + <p>学籍号:</p>
  100 + <div class="li_r">
  101 + <input type="text" name="SNO" id="SNO" value="${pd.SNO}"
  102 + maxlength="255" placeholder="这里输入学籍号" title="学籍号" />
  103 + </div>
  104 + </li>
  105 + <li>
  106 + <p>学号:</p>
  107 + <div class="li_r">
  108 + <input type="text" name="NUMBER" id="NUMBER" value="${pd.NUMBER}"
  109 + maxlength="255" placeholder="这里输入学号" title="学号" />
  110 + </div>
  111 + </li>
  112 + <li>
  113 + <p>性别:</p>
  114 + <div class="li_r">
  115 + <select class="chosen-select form-control" name="SEX" id="SEX"
  116 + data-placeholder="这里输入班级类型">
  117 + <option value="1" <c:if test="${pd.SEX==1}">selected="true"</c:if>>男</option>
  118 + <option value="0" <c:if test="${pd.SEX==0}">selected="true"</c:if>>女</option>
  119 + </select>
  120 + </div>
  121 + </li>
  122 + <li>
  123 + <p>组号:</p>
  124 + <div class="li_r">
  125 + <input type="text" name="GROUPID" id="GROUPID"
  126 + value="${pd.GROUPID}" maxlength="255" placeholder="这里输入组号"
  127 + title="组号" />
  128 + </div>
  129 + </li>
  130 + <li>
  131 + <p>签到码:</p>
  132 + <div class="li_r">
  133 + <input type="text" name="SIGN_NO" id="SIGN_NO"
  134 + value="${pd.SIGN_NO}" maxlength="255" placeholder="这里输入签到码"
  135 + title="签到码" />
  136 + </div>
  137 + </li>
  138 + <li>
  139 + <p>家长姓名:</p>
  140 + <div class="li_r">
  141 + <input type="text" name="PARENT_NAME" id="PARENT_NAME"
  142 + value="${pd.PARENT_NAME}" maxlength="255" placeholder="这里输入家长姓名"
  143 + title="家长姓名" />
  144 + </div>
  145 + </li>
  146 + <li>
  147 + <p>家长手机:</p>
  148 + <div class="li_r">
  149 + <input type="text" name="PARENT_PHONE" id="PARENT_PHONE"
  150 + value="${pd.PARENT_PHONE}" maxlength="255" placeholder="这里输入家长手机号"
  151 + title="家长手机号" />
  152 + </div>
  153 + </li>
  154 + <li>
  155 + <p>键盘ID:</p>
  156 + <div class="li_r">
  157 + <input type="text" name="KEYPAD_ID" id="KEYPAD_ID"
  158 + value="${pd.KEYPAD_ID}" maxlength="255" placeholder="这里输入键盘ID"
  159 + title="键盘ID" />
  160 + </div>
  161 + </li>
  162 + <li>
  163 + <p>备注:</p>
  164 + <div class="li_r">
  165 + <input type="text" name="REMARK" id="REMARK" value="${pd.REMARK}"
  166 + maxlength="255" placeholder="这里输入备注" title="备注" />
  167 + </div>
  168 + </li>
  169 +
  170 + <div class="btn">
  171 + <a onclick="save();">保存</a>
119 172 </div>
120   - <!-- /.page-content -->
121 173 </div>
122   - </div>
123   - <!-- /.main-content -->
124   -</div>
125   -<!-- /.main-container -->
  174 + <div id="zhongxin2" class="center" style="display:none">
  175 +
  176 + <img src="../static/images/jiazai.gif" /><br />
  177 + <h4 class="lighter block green">提交中...</h4>
  178 + </div>
  179 + </form>
  180 +
126 181  
127 182  
128 183 <!-- 页面底部js¨ -->
129   - <%@ include file="../../system/index/foot.jsp"%>
  184 + <%@ include file="../../system/index/foot2.jsp"%>
130 185 <!-- 下拉框 -->
131   - <script src="static/ace/js/chosen.jquery.js"></script>
  186 + <script src="../static/ace/js/chosen.jquery.js"></script>
132 187 <!-- 日期框 -->
133   - <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  188 + <script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script>
134 189 <!--提示框-->
135   - <script type="text/javascript" src="static/js/jquery.tips.js"></script>
136   - <script type="text/javascript">
137   - $(top.hangge());
  190 + <script type="text/javascript" src="../static/js/jquery.tips.js"></script>
  191 + <script type="text/javascript">
138 192 //保存
139   - function save(){
140   - if($("#NAME").val()==""){
  193 + function save() {
  194 + if ($("#NAME").val() == "") {
141 195 $("#NAME").tips({
142   - side:3,
143   - msg:'请输入学生姓名',
144   - bg:'#AE81FF',
145   - time:2
146   - });
  196 + side : 3,
  197 + msg : '请输入学生姓名',
  198 + bg : '#AE81FF',
  199 + time : 2
  200 + });
147 201 $("#NAME").focus();
148   - return false;
  202 + return false;
149 203 }
150   -
  204 +
  205 + if ($("#KEYPAD_ID").val() == ""
  206 + || $("#KEYPAD_ID").val().length != 10) {
  207 + $("#KEYPAD_ID").tips({
  208 + side : 3,
  209 + msg : '输入十位有效编号',
  210 + bg : '#AE81FF',
  211 + time : 2
  212 + });
  213 + $("#KEYPAD_ID").focus();
  214 + return false;
  215 + }
  216 +
151 217 $("#Form").submit();
152 218 $("#zhongxin").hide();
153 219 $("#zhongxin2").show();
154 220 }
155   -
  221 +
156 222 $(function() {
157 223 //日期框
158   - $('.date-picker').datepicker({autoclose: true,todayHighlight: true});
  224 + $('.date-picker').datepicker({
  225 + autoclose : true,
  226 + todayHighlight : true
  227 + });
159 228 });
160   - </script>
  229 + </script>
161 230 </body>
162 231 </html>
163 232 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/student/student_edit2_bak.jsp deleted
1   -<%@ page language="java" contentType="text/html; charset=UTF-8"
2   - pageEncoding="UTF-8"%>
3   -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4   -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
5   -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
6   -<%
7   - String path = request.getContextPath();
8   - String basePath = request.getScheme() + "://"
9   - + request.getServerName() + ":" + request.getServerPort()
10   - + path + "/";
11   -%>
12   -<!DOCTYPE html>
13   -<html lang="en">
14   -<head>
15   -<base href="<%=basePath%>">
16   -<!-- 日期框 -->
17   -<link rel="stylesheet" href="static/ace/css/datepicker.css" />
18   -<style type="text/css">
19   -li {
20   - list-style: none;
21   - margin-top: 10px;
22   - clear: right;
23   - clear: both;
24   -}
25   -
26   -li p {
27   - width: 5em;
28   - text-align: right;
29   - margin: 0;
30   - margin-right: 0.5em;
31   - float: left;
32   - line-height: 30px;
33   -}
34   -
35   -li .li_r {
36   - margin-left: 6em;
37   - margin-right: 1em;
38   - clear: right;
39   -}
40   -
41   -li .li_r select {
42   - height: 30px;
43   - line-height: 30px;
44   - background: #f5f5f5;
45   - border: 1px solid #ccc;
46   - outline-style: none;
47   - width: 100%;
48   -}
49   -
50   -li input {
51   - height: 30px;
52   - line-height: 30px;
53   - background: #f5f5f5;
54   - border: 1px solid #ccc;
55   - outline-style: none;
56   - width: 100%;
57   -}
58   -
59   -.btn {
60   - width: 80%;
61   - height: 40px;
62   - margin: 0 auto;
63   - background: #3bc2d6;
64   - margin-top: 5%;
65   -}
66   -
67   -.btn a {
68   - display: block;
69   - width: 100%;
70   - height: 100%;
71   - color: #fff;
72   - text-decoration: none;
73   - text-align: center;
74   - line-height: 40px;
75   - font-size: 20px;
76   -}
77   -</style>
78   -
79   -</head>
80   -<body>
81   - <form action="<%=basePath %>student/${msg }.do" name="Form" id="Form" method="post">
82   - <input type="hidden" name="ID" id="ID" value="${pd.ID}" />
83   - <input type="hidden" name="CLASS_ID" id="CLASS_ID" value="${pd.CLASS_ID}" />
84   - <input type="hidden" name="TERM_ID" id="TERM_ID" value="${pd.TERM_ID}" />
85   - <div id="zhongxin">
86   - <li>
87   - <p>学生姓名:</p>
88   - <div class="li_r">
89   - <input type="text" name="NAME" id="NAME" value="${pd.NAME}"
90   - maxlength="255" placeholder="这里输入学生姓名" title="学生姓名" />
91   - </div>
92   - </li>
93   - <li>
94   - <p>学籍号:</p>
95   - <div class="li_r">
96   - <input type="text" name="SNO" id="SNO" value="${pd.SNO}"
97   - maxlength="255" placeholder="这里输入学籍号" title="学籍号" />
98   - </div>
99   - </li>
100   - <li>
101   - <p>学号:</p>
102   - <div class="li_r">
103   - <input type="text" name="NUMBER" id="NUMBER" value="${pd.NUMBER}"
104   - maxlength="255" placeholder="这里输入学号" title="学号" />
105   - </div>
106   - </li>
107   - <li>
108   - <p>性别:</p>
109   - <div class="li_r">
110   - <select class="chosen-select form-control" name="SEX" id="SEX" data-placeholder="这里输入班级类型">
111   - <option value="1" <c:if test="${pd.SEX==1}">selected="true"</c:if>>男</option>
112   - <option value="0" <c:if test="${pd.SEX==0}">selected="true"</c:if>>女</option>
113   - </select>
114   - </div>
115   - </li>
116   - <li>
117   - <p>组号:</p>
118   - <div class="li_r">
119   - <input type="text" name="GROUPID" id="GROUPID"
120   - value="${pd.GROUPID}" maxlength="255" placeholder="这里输入组号"
121   - title="组号" />
122   - </div>
123   - </li>
124   - <li>
125   - <p>签到码:</p>
126   - <div class="li_r">
127   - <input type="text" name="SIGN_NO" id="SIGN_NO"
128   - value="${pd.SIGN_NO}" maxlength="255" placeholder="这里输入签到码"
129   - title="签到码" />
130   - </div>
131   - </li>
132   - <li>
133   - <p>家长姓名:</p>
134   - <div class="li_r">
135   - <input type="text" name="PARENT_NAME" id="PARENT_NAME"
136   - value="${pd.PARENT_NAME}" maxlength="255" placeholder="这里输入家长姓名"
137   - title="家长姓名" />
138   - </div>
139   - </li>
140   - <li>
141   - <p>家长手机:</p>
142   - <div class="li_r">
143   - <input type="text" name="PARENT_PHONE" id="PARENT_PHONE"
144   - value="${pd.PARENT_PHONE}" maxlength="255" placeholder="这里输入家长手机号"
145   - title="家长手机号" />
146   - </div>
147   - </li>
148   - <li>
149   - <p>键盘ID:</p>
150   - <div class="li_r">
151   - <input type="text" name="KEYPAD_ID" id="KEYPAD_ID"
152   - value="${pd.KEYPAD_ID}" maxlength="255" placeholder="这里输入键盘ID"
153   - title="键盘ID" />
154   - </div>
155   - </li>
156   - <li>
157   - <p>备注:</p>
158   - <div class="li_r">
159   - <input type="text" name="REMARK" id="REMARK" value="${pd.REMARK}"
160   - maxlength="255" placeholder="这里输入备注" title="备注" />
161   - </div>
162   - </li>
163   -
164   - <div class="btn">
165   - <a href="#" onclick="save();">保存</a>
166   - </div>
167   - </div>
168   - <div id="zhongxin2" class="center" style="display:none">
169   -
170   - <img src="static/images/jiazai.gif" /><br />
171   - <h4 class="lighter block green">提交中...</h4>
172   - </div>
173   - </form>
174   -
175   -
176   -
177   - <!-- 页面底部js¨ -->
178   - <%@ include file="../../system/index/foot.jsp"%>
179   - <!-- 下拉框 -->
180   - <script src="static/ace/js/chosen.jquery.js"></script>
181   - <!-- 日期框 -->
182   - <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
183   - <!--提示框-->
184   - <script type="text/javascript" src="static/js/jquery.tips.js"></script>
185   - <script type="text/javascript">
186   - //保存
187   - function save() {
188   - if ($("#NAME").val() == "") {
189   - $("#NAME").tips({
190   - side : 3,
191   - msg : '请输入学生姓名',
192   - bg : '#AE81FF',
193   - time : 2
194   - });
195   - $("#NAME").focus();
196   - return false;
197   - }
198   -
199   - $("#Form").submit(function(e){
200   - alert(1);
201   - });
202   - $("#zhongxin").hide();
203   - $("#zhongxin2").show();
204   - }
205   -
206   - $(function() {
207   - //日期框
208   - $('.date-picker').datepicker({
209   - autoclose : true,
210   - todayHighlight : true
211   - });
212   - });
213   - </script>
214   -</body>
215   -</html>
216 0 \ No newline at end of file
WebRoot/WEB-INF/jsp/sunvote/student/student_list2.jsp
... ... @@ -82,6 +82,9 @@
82 82 <div class="creat">
83 83 <input type="button" onclick="add();" value="添加学生" />
84 84 </div>
  85 + <div class="creat">
  86 + <input type="button" onclick="upload();" value="批量导入" />
  87 + </div>
85 88 <div class="removeAll" >
86 89 <input type="button" onclick="deleteAll();" value="批量删除" />
87 90 </div>
... ... @@ -95,7 +98,9 @@
95 98  
96 99 <%@ include file="../../system/index/foot2.jsp"%>
97 100 <script type="text/javascript">
98   - window.top.loading.remove();
  101 + $(document).ready(function(){
  102 + window.top.loading.remove();
  103 + });
99 104 function tosearch(){
100 105 $("#Form").submit();
101 106 }
... ... @@ -180,6 +185,16 @@
180 185 window.top.remove.show();
181 186 }
182 187  
  188 + function upload(){
  189 + window.top.modal.init({
  190 + 'title':'EXCEL导入学生名单',
  191 + 'url':'<%=basePath%>student/goUploadExcel.do?class_id=${pd.CLASS_ID}&term_id=${pd.TERM_ID}',
  192 + func:function() {
  193 + tosearch();
  194 + }
  195 + });
  196 + window.top.modal.show();
  197 + }
183 198  
184 199 </script>
185 200 </html>
186 201 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/student/uploadexcel.jsp
... ... @@ -16,6 +16,86 @@
16 16 <!-- jsp文件头和头部 -->
17 17 <%@ include file="../../system/index/top.jsp"%>
18 18  
  19 +
  20 +<style>
  21 +
  22 +.ace-file-input .ace-file-container{
  23 +display: block;
  24 + position: absolute;
  25 + top: 0;
  26 + left: 0;
  27 + right: 0;
  28 + height: 40px;
  29 + background-color: #ffffff;
  30 + border: 1px solid #d5d5d5;
  31 + cursor: pointer;
  32 + -webkit-box-shadow: none;
  33 + box-shadow: none;
  34 + -webkit-transition: all 0.15s;
  35 + -o-transition: all 0.15s;
  36 + transition: all 0.15s;
  37 +}
  38 +.ace-file-input .ace-file-container:before{
  39 + display: inline-block;
  40 + content: attr(data-title);
  41 + position: absolute;
  42 + right: 0;
  43 + top: 0;
  44 + bottom: 0;
  45 + line-height: 34px;
  46 + text-align: center;
  47 + padding: 0 8px;
  48 + background-color: #3bc2d6;
  49 + color: #FFF;
  50 + font-size: 11px;
  51 + font-weight: bold;
  52 + border: 2px solid #FFF;
  53 + border-left-width: 4px;
  54 + -webkit-transition: all 0.3s;
  55 + -o-transition: all 0.3s;
  56 + transition: all 0.3s;
  57 +}
  58 +.ace-file-input .ace-file-container .ace-file-name {
  59 + display: inline-block;
  60 + height: 38px;
  61 + max-width: 80%;
  62 + white-space: nowrap;
  63 + overflow: hidden;
  64 + line-height: 38px;
  65 + color: #888888;
  66 + font-size: 13px;
  67 + vertical-align: top;
  68 + position: static;
  69 + padding-left: 36px;
  70 + }
  71 +
  72 + .ace-file-input .ace-file-container .ace-icon {
  73 + display: inline-block;
  74 + position: absolute;
  75 + left: 0;
  76 + top: 0;
  77 + bottom: 0;
  78 + line-height: 34px;
  79 + width: 36px;
  80 + text-align: center;
  81 + font-family: FontAwesome;
  82 + font-size: 13px;
  83 + border: 2px solid #FFF;
  84 + color: #FFF;
  85 + -webkit-transition: all 0.1s;
  86 + -o-transition: all 0.1s;
  87 + transition: all 0.1s;
  88 + background-color: #3bc2d6;
  89 + }
  90 +
  91 + .ace-file-input .ace-file-container .ace-file-name:after {
  92 + display: inline-block;
  93 + content: attr(data-title);
  94 +}
  95 +
  96 +
  97 +</style>
  98 +
19 99 </head>
20 100 <body class="no-skin">
21 101  
... ... @@ -37,9 +117,7 @@
37 117 </tr>
38 118 <tr>
39 119 <td style="text-align: center;padding-top: 10px;">
40   - <a class="btn btn-mini btn-primary" onclick="save();">导入</a>
41   - <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
42   - <a style="display:none" class="btn btn-mini btn-success" onclick="window.location.href='<%=basePath%>/user/downExcel.do'">下载模版</a>
  120 + <a class="btn btn-mini btn-primary" style="background-color:#3bc2d6 !important;border-color:#3bc2d6 !important;width:300px; height:50px;line-height:50px;font-size:18px;margin-top:5%;padding:0" onclick="save();">导入</a>
43 121 </td>
44 122 </tr>
45 123 </table>
... ... @@ -68,7 +146,6 @@
68 146 <!--提示框-->
69 147 <script type="text/javascript" src="static/js/jquery.tips.js"></script>
70 148 <script type="text/javascript">
71   - $(top.hangge());
72 149 $(function() {
73 150 //上传
74 151 $('#excel').ace_file_input({
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/stduent_report.jsp
... ... @@ -125,6 +125,10 @@ li {
125 125 // elem: '#test6'
126 126 // ,range: true
127 127 // });
  128 + $(document).ready(function(){
  129 + window.top.loading.remove();
  130 + });
  131 +
128 132 $('.date-picker').datepicker({
129 133 autoclose : true,
130 134 todayHighlight : true
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_main.jsp
... ... @@ -128,12 +128,18 @@
128 128 function chooseClass(classID,termID){
129 129 var path = "../student/listcs.do?class_id=" + classID + "&term_id=" + termID ;
130 130 //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
131   - $("#mainFrame").attr('src',path);
  131 + if($("#mainFrame").attr('src') != (path)){
  132 + $("#mainFrame").attr('src',path);
  133 + window.top.loading.show();
  134 + }
132 135 }
133 136  
134 137 function report(classId){
135 138 //window.open('<%=basePath%>report/report.do?classid=' + classId);
136   - $("#mainFrame").attr('src','<%=basePath%>report/report.do?classid=' + classId);
  139 + //if($("#mainFrame").attr('src') != ('<%=basePath%>report/report.do?classid=' + classId)){
  140 + $("#mainFrame").attr('src','<%=basePath%>report/report.do?classid=' + classId);
  141 + window.top.loading.show();
  142 + //}
137 143 }
138 144  
139 145 $("#time_submit").click(function(){
... ... @@ -148,7 +154,10 @@
148 154 $(".testpaper").click(function (){
149 155 var path = "../paper/list2.do?" ;
150 156 //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
151   - $("#mainFrame").attr('src',path);
  157 + if($("#mainFrame").attr('src') != (path)){
  158 + $("#mainFrame").attr('src',path);
  159 + window.top.loading.show();
  160 + }
152 161 });
153 162 </script>
154 163 </body>
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_report_1.jsp
... ... @@ -22,7 +22,10 @@
22 22 <%@ include file="../../system/index/top.jsp"%>
23 23 <!-- 日期框 -->
24 24 <link rel="stylesheet" href="static/ace/css/datepicker.css" />
25   -
  25 +<style>
  26 + .font span{ font-size: 12px;
  27 + font-weight: initial;color:#000;}
  28 + </style>
26 29 </head>
27 30  
28 31 <body style="background:#fff">
... ... @@ -61,7 +64,7 @@
61 64 <th class="center"><div style="width:80px;">课程总分</div></th>
62 65 <c:forEach items="${testpaperList}" var="var" varStatus="vs">
63 66 <th class="center"><a
64   - href="report/test_report?TestID=${var.TESTPAPER_ID}&class_id=${info.CLASS_ID}"><div style="width:180px;">${var.NAME}</br>${var.CREATE_DATE}</div></a></th>
  67 + href="report/test_report?TestID=${var.TESTPAPER_ID}&class_id=${info.CLASS_ID}" onclick="window.top.loading.show();"><div style="width:180px;" class="font">${var.NAME}</br><span>${var.CREATE_DATE}</span></div></a></th>
65 68 </c:forEach>
66 69 </tr>
67 70 </thead>
... ... @@ -101,7 +104,7 @@
101 104 href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a>
102 105 </td> --%>
103 106 <td class="center"><a
104   - href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a>
  107 + href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}" onclick="window.top.loading.show();">${var.NAME}</a>
105 108 </td>
106 109 <td class="center"><fmt:formatNumber type="number"
107 110 value="${var.TOTALSCORE == 0 ? 0: (var.GETSCORE / var.TOTALSCORE * 100)}"
... ... @@ -133,7 +136,7 @@
133 136  
134 137 <script type="text/javascript">
135 138 $(function() {
136   -
  139 +
137 140 //日期框
138 141 $('.date-picker').datepicker({
139 142 autoclose : true,
... ... @@ -215,6 +218,10 @@
215 218 window.location.href = url;
216 219 /* $("#Form").sumbit(); */
217 220 }
  221 +
  222 + $(document).ready(function(){
  223 + window.top.loading.remove();
  224 + });
218 225 </script>
219 226  
220 227 </body>
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_report_test.jsp
... ... @@ -52,12 +52,12 @@
52 52 <th class="center"><div style="width:80px;">学号</div></th>
53 53 <th class="center"><div style="width:80px;">姓名</div></th>
54 54 <th class="center"><div style="width:80px;">得分</div></th>
55   - <th class="center"><div style="width:80px;">正确率</div></th>
  55 + <!-- <th class="center"><div style="width:80px;">正确率</div></th> -->
56 56 <th class="center"><div style="width:80px;">排名</div></th>
57 57 <c:forEach items="${questionInfo}" var="var" varStatus="vs">
58 58 <th class="center"><div style="width:80px;">题目${vs.index+1}</div></th>
59 59 </c:forEach>
60   - <th class="center"><div style="width:150px;">非选择题得分</div></th>
  60 + <!-- <th class="center"><div style="width:150px;">非选择题得分</div></th> -->
61 61 <th class="center"><div style="width:80px;">总分</div></th>
62 62 </tr>
63 63 </thead>
... ... @@ -67,14 +67,14 @@
67 67 <td class="center"></td>
68 68 <td class="center"></td>
69 69 <td class="center"></td>
70   - <td class="center"></td>
  70 + <!-- <td class="center"></td> -->
71 71 <td class="center"></td>
72 72 <c:forEach items="${questionInfo}" var="var" varStatus="vs">
73 73 <td class="center"><fmt:formatNumber type="number"
74 74 value="${var == 0 ? 0: (var / classInfo.studentNum * 100)}"
75 75 maxFractionDigits="1" />%</td>
76 76 </c:forEach>
77   - <td class="center"></td>
  77 + <!-- <td class="center"></td> -->
78 78 <td class="center"></td>
79 79 </tr>
80 80  
... ... @@ -86,12 +86,12 @@
86 86 <td class="center">${var.SNO}</td>
87 87 <td class="center">${var.NAME}</td>
88 88 <td class="center">${var.GETSCORE}</td>
89   - <td class="center">${var.RIGHT}</td>
  89 + <%-- <td class="center">${var.RIGHT}</td> --%>
90 90 <td class="center">${vs.index + 1}</td>
91 91 <c:forEach items="${questionInfo}" var="var1" varStatus="vs1">
92 92 <td class="center">${var.detail[vs1.index].ANSWER}</td>
93 93 </c:forEach>
94   - <td class="center">${var.OTHER_SCORE}</td>
  94 + <%-- <td class="center">${var.OTHER_SCORE}</td> --%>
95 95 <td class="center">${var.GETSCORE}</td>
96 96 </tr>
97 97 </c:forEach>
... ... @@ -114,6 +114,9 @@
114 114 <script type="text/javascript" src="static/js/jquery.tips.js"></script>
115 115  
116 116 <script type="text/javascript">
  117 + $(document).ready(function(){
  118 + window.top.loading.remove();
  119 + });
117 120 $(function() {
118 121  
119 122 //日期框
... ...
WebRoot/WEB-INF/jsp/system/index/login.jsp
1   -<!DOCTYPE html>
  1 +<%@ page language="java" contentType="text/html; charset=UTF-8"
  2 + pageEncoding="UTF-8"%>
  3 +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  4 +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  5 +<%
  6 + String path = request.getContextPath();
  7 + String basePath = request.getScheme() + "://"
  8 + + request.getServerName() + ":" + request.getServerPort()
  9 + + path + "/";
  10 +%>
  11 +<!DOCTYPE html>
2 12 <html lang="zh-CN">
3 13 <head>
4 14 <meta charset="utf-8">
... ... @@ -41,6 +51,9 @@
41 51  
42 52 <script type="text/javascript">
43 53  
  54 + if(window.top != window.self){
  55 + window.top.location.href = "<%=basePath%>";
  56 + }
44 57 //客户端校验
45 58 function check() {
46 59  
... ...
WebRoot/static/css/mb_style.css
... ... @@ -7,7 +7,9 @@
7 7 .mb_content{height:calc(100% - 50px);}
8 8 .mb_content iframe{width:100%;height:100%;border:0;box-sizing:border-box;padding:12px;}
9 9  
10   -.remove .mb_box{display:table;padding-bottom:3%;}
  10 +.remove .mb_box{display:inline-block;height:150px;}
  11 +.mb_content p{margin:0;}
  12 +
11 13 .remove .mb_msg p{text-align: left;line-height: 40px;font-size: 20px;margin: 0;padding-left: 20px;}
12 14 .mb_content .mb_content_l{width:50%;float:left;margin-top:5%;}
13 15 .mb_content .mb_content_l a{width:50%;margin:0 auto;display:block;color:#fff;text-decoration:none;background:#fd8080;text-align:center;height:40px;line-height:40px;}
... ...
WebRoot/static/css/teach.css
... ... @@ -13,11 +13,12 @@ html,body{width:100%;height:100%;}
13 13 }
14 14 .pagination>li:first-child>a, .pagination>li:first-child>span{border-radius:0;}
15 15 .pagination>li:last-child>a, .pagination>li:last-child>span{border-radius:0;}
16   -
  16 +input[type="checkbox"]{margin-right:10px;}
17 17  
18 18 .header{width:100%;background:#0bb8b9;box-sizing:border-box;padding:20px 30px;position:fixed;top:0;}
19 19 .header .logo{float:left;}
20 20 .header .out{float:right;font-size:18px;color:#fff;}
  21 +.header .out a{color:#fff;text-decoration:none;}
21 22 .header .out img{width:18px;margin-right:15px;}
22 23 .content{width:100%;height:100%;box-sizing:border-box;padding-top:66px;}
23 24 .content .content_l{width:18%;float:left;height:100%;background:#13707b;overflow-y:auto;}
... ... @@ -31,7 +32,7 @@ html,body{width:100%;height:100%;}
31 32 .content .content_l .tab1{border-bottom:1px solid #80afb4;}
32 33 .content .content_l .tab1 p{width:100%;height:77px;line-height:77px;margin-bottom:0;font-size:24px;color:#fff;padding-left:10%;}
33 34 .content .content_l .tab1 ul{margin-bottom:0;padding:12px 0;padding-left:15%;background:#0b535b;font-size:18px;line-height:64px;display:none;}
34   -.content .content_l .tab1 ul li{list-style:none;color:#fff;}
  35 +.content .content_l .tab1 ul li{list-style:none;color:#fff;cursor:pointer;}
35 36 .content .content_r{margin-left:18%;height:100%;overflow-y:hidden;}
36 37  
37 38  
... ... @@ -45,7 +46,7 @@ html,body{width:100%;height:100%;}
45 46 .table_box input[name="choose"]{vertical-align:top;margin-right:15px;}
46 47 .table_box img{width:24px;}
47 48 .footer .creat,.content .content_r .footer .removeAll {float:left;}
48   - .footer .creat input{background:#3bc2d6;outline-style:none;text-decoration:none;border:none;color:#fff;padding:15px 20px;font-size:18px;}
  49 + .footer .creat input{background:#3bc2d6;outline-style:none;text-decoration:none;border:none;color:#fff;padding:15px 20px;margin-right:20px;font-size:18px;}
49 50 .footer .removeAll input{background:#f29c9f;outline-style:none;text-decoration:none;border:none;margin-left:15px;color:#fff;padding:15px 20px;font-size:18px;}
50 51 .footer .page_box{float:right;}
51 52  
... ...
WebRoot/static/js/control1.js
... ... @@ -159,58 +159,58 @@
159 159 data: data1,
160 160 type: 'line',
161 161 symbol: 'circle',
162   - symbolSize: 10,
  162 + symbolSize: 5,
163 163 lineStyle: {
164 164 normal: {
165 165 color: 'green',
166   - width: 4,
167   - type: 'solid'
  166 + width: 2,
  167 + type: 'dashed'
168 168 }
169 169 },
170 170 itemStyle: {
171 171 normal: {
172   - borderWidth: 3,
  172 + borderWidth: 2,
173 173 borderColor: 'green',
174 174 color: 'green'
175 175 }
176 176 }
177 177 },{
178   - data: data2,
  178 + data: data3,
179 179 type: 'line',
180 180 symbol: 'circle',
181   - symbolSize: 10,
  181 + symbolSize: 5,
182 182 lineStyle: {
183 183 normal: {
184   - color: 'blue',
185   - width: 4,
186   - type: 'dashed'
  184 + color: 'yellow',
  185 + width: 2,
  186 + type: 'dashed',
187 187 }
188 188 },
189 189 itemStyle: {
190 190 normal: {
191   - borderWidth: 3,
192   - borderColor: 'blue',
193   - color: 'blue',
194   - label : {show: true}
  191 + borderWidth: 2,
  192 + borderColor: 'yellow',
  193 + color: 'yellow'
195 194 }
196 195 }
197 196 },{
198   - data: data3,
  197 + data: data2,
199 198 type: 'line',
200 199 symbol: 'circle',
201 200 symbolSize: 10,
202 201 lineStyle: {
203 202 normal: {
204   - color: 'yellow',
  203 + color: 'blue',
205 204 width: 4,
206   - type: 'solid',
  205 + type: 'solid'
207 206 }
208 207 },
209 208 itemStyle: {
210 209 normal: {
211 210 borderWidth: 3,
212   - borderColor: 'yellow',
213   - color: 'yellow'
  211 + borderColor: 'blue',
  212 + color: 'blue',
  213 + label : {show: true}
214 214 }
215 215 }
216 216 }]
... ...
WebRoot/static/js/loading.js
... ... @@ -9,6 +9,9 @@
9 9  
10 10 var loading={
11 11 show:function(url){
  12 + if(typeof(url) == "undefined"){
  13 + url = '../static/images/loading.gif' ;
  14 + }
12 15 if(window.top!=window.self){
13 16 $("body",top.document).append('<div class="loading" style="background:rgba(0,0,0,0.5);width:100%;height:100%;position:fixed;top:0;display:block;"><img src="'+url+'" width="200px" style="position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;"/></div>');
14 17 }else{
... ...
WebRoot/static/login/style_login.css
1   -html,body{width:100%;height:100%;}
  1 +html,body{width:100%;height:100%;}
2 2 input::-webkit-input-placeholder{ /*WebKit browsers*/
3 3  
4 4 color: #666666;
... ... @@ -23,6 +23,6 @@ color: #666666;
23 23 .content_t{background:#01a5a6;height:40%;position:relative;}
24 24 .content_t img{position:absolute;bottom:0;width:30%;left:35%;display:block;}
25 25 .content_b .form_box{width:25%;margin:0 auto;margin-top:3%;}
26   -.content_b input{display:block;width:100%;background:#f2f2f2;border:1px solid #cccccc;line-height:50px;box-sizing:border-box;padding:0 12px;outline-style:none;font-size:20px;}
  26 +.content_b input{display:block;width:100%;height:50px;background:#f2f2f2;border:1px solid #cccccc;line-height:50px;box-sizing:border-box;padding:0 12px;outline-style:none;font-size:20px;}
27 27 .content_b input:nth-child(2){margin-top:15px;}
28   -.content_b .login_btn{display:block;width:100%;background:#13b5b1;color:#fff;font-size:24px;text-align:center;padding:2% 0;margin-top:10%;}
  28 +.content_b .login_btn{display:block;width:100%;background:#13b5b1;color:#fff;font-size:24px;text-align:center;padding:2% 0;margin-top:10%;text-decoration:none;}
... ...
src/com/fh/controller/api/V1.java
... ... @@ -162,6 +162,7 @@ public class V1 extends BaseController {
162 162 @RequestMapping(value = "/login", produces = "application/json;charset=UTF-8")
163 163 @ResponseBody
164 164 public Object login() throws Exception {
  165 + event("apilogin");
165 166 PageData pd = this.getPageData();
166 167 ResponseGson<PageData> res = new ResponseGson();
167 168 if (!pd.containsKey("ACCOUT")) {
... ... @@ -216,6 +217,7 @@ public class V1 extends BaseController {
216 217 @RequestMapping(value = "/class", produces = "application/json;charset=UTF-8")
217 218 @ResponseBody
218 219 public Object sclass() throws Exception {
  220 + event("sclass");
219 221 long cur = System.currentTimeMillis();
220 222 PageData pd = this.getPageData();
221 223 if (pd.containsKey("ID")) {
... ... @@ -247,6 +249,7 @@ public class V1 extends BaseController {
247 249 @RequestMapping(value = "/questiontype", produces = "application/json;charset=UTF-8")
248 250 @ResponseBody
249 251 public Object questiontype() throws Exception {
  252 + event("questiontype");
250 253 long cur = System.currentTimeMillis();
251 254 PageData pd = this.getPageData();
252 255 ResponseGson<List<PageData>> res = new ResponseGson();
... ... @@ -259,6 +262,7 @@ public class V1 extends BaseController {
259 262 @RequestMapping(value = "/classtype", produces = "application/json;charset=UTF-8")
260 263 @ResponseBody
261 264 public Object classtype() throws Exception {
  265 + event("classtype");
262 266 long cur = System.currentTimeMillis();
263 267 PageData pd = this.getPageData();
264 268 ResponseGson<List<PageData>> res = new ResponseGson();
... ... @@ -271,6 +275,7 @@ public class V1 extends BaseController {
271 275 @RequestMapping(value = "/grade", produces = "application/json;charset=UTF-8")
272 276 @ResponseBody
273 277 public Object grade() throws Exception {
  278 + event("grade");
274 279 long cur = System.currentTimeMillis();
275 280 PageData pd = this.getPageData();
276 281 ResponseGson<List<PageData>> res = new ResponseGson();
... ... @@ -288,6 +293,7 @@ public class V1 extends BaseController {
288 293 @RequestMapping(value = "/subject", produces = "application/json;charset=UTF-8")
289 294 @ResponseBody
290 295 public Object subject() throws Exception {
  296 + event("subject");
291 297 long cur = System.currentTimeMillis();
292 298 PageData pd = this.getPageData();
293 299 ResponseGson<List<PageData>> res = new ResponseGson();
... ... @@ -307,6 +313,7 @@ public class V1 extends BaseController {
307 313 @RequestMapping(value = "/keypadscan", produces = "application/json;charset=UTF-8")
308 314 @ResponseBody
309 315 public Object keypadScan() throws Exception {
  316 + event("keypadScan");
310 317 long cur = System.currentTimeMillis();
311 318 PageData pd = this.getPageData();
312 319 ResponseGson<String> res = new ResponseGson();
... ... @@ -327,6 +334,7 @@ public class V1 extends BaseController {
327 334 @RequestMapping(value = "/paper", produces = "application/json;charset=UTF-8")
328 335 @ResponseBody
329 336 public Object paper() throws Exception {
  337 + event("paper");
330 338 long cur = System.currentTimeMillis();
331 339 PageData pd = this.getPageData();
332 340 ResponseGson<List<PageData>> res = new ResponseGson<List<PageData>>();
... ... @@ -363,6 +371,7 @@ public class V1 extends BaseController {
363 371 @RequestMapping(value = "/paperinfo", produces = "application/json;charset=UTF-8")
364 372 @ResponseBody
365 373 public Object paperInfo() throws Exception {
  374 + event("paperInfo");
366 375 long cur = System.currentTimeMillis();
367 376 PageData pd = this.getPageData();
368 377 ResponseGson<Paper> res = new ResponseGson<Paper>();
... ... @@ -469,6 +478,7 @@ public class V1 extends BaseController {
469 478 @RequestMapping(value = "/paperquestion", produces = "application/json;charset=UTF-8")
470 479 @ResponseBody
471 480 public Object paperQuestion() throws Exception {
  481 + event("paperQuestion");
472 482 long cur = System.currentTimeMillis();
473 483 PageData pd = this.getPageData();
474 484 ResponseGson<PageData> res = new ResponseGson();
... ... @@ -479,6 +489,7 @@ public class V1 extends BaseController {
479 489 @RequestMapping(value = "/question", produces = "application/json;charset=UTF-8")
480 490 @ResponseBody
481 491 public Object question() throws Exception {
  492 + event("question");
482 493 long cur = System.currentTimeMillis();
483 494 PageData pd = this.getPageData();
484 495 ResponseGson<PageData> res = new ResponseGson();
... ... @@ -496,6 +507,7 @@ public class V1 extends BaseController {
496 507 @RequestMapping(value = "/question/add", produces = "application/json;charset=UTF-8")
497 508 @ResponseBody
498 509 public Object questionAdd() throws Exception {
  510 + event("questionAdd");
499 511 long cur = System.currentTimeMillis();
500 512 PageData pd = this.getPageData();
501 513 ResponseGson<PageData> res = new ResponseGson();
... ... @@ -508,6 +520,7 @@ public class V1 extends BaseController {
508 520 @RequestMapping(value = "/uploadpaper", produces = "application/json;charset=UTF-8")
509 521 @ResponseBody
510 522 public Object uploadpaper() throws Exception {
  523 + event("uploadpaper");
511 524 long cur = System.currentTimeMillis();
512 525 PageData pd = this.getPageData();
513 526 ResponseGson<String> res = new ResponseGson();
... ... @@ -636,6 +649,7 @@ public class V1 extends BaseController {
636 649 @RequestMapping(value = "/uploadtestpaper", produces = "application/json;charset=UTF-8")
637 650 @ResponseBody
638 651 public Object uploadTestpaper() {
  652 + event("uploadTestpaper");
639 653 long cur = System.currentTimeMillis();
640 654 PageData pd = this.getPageData();
641 655 ResponseGson<String> res = new ResponseGson();
... ... @@ -750,6 +764,7 @@ public class V1 extends BaseController {
750 764 @RequestMapping(value = "/uploadupdatetestpaper", produces = "application/json;charset=UTF-8")
751 765 @ResponseBody
752 766 public Object uploadupdateTestpaper() {
  767 + event("uploadupdateTestpaper");
753 768 long cur = System.currentTimeMillis();
754 769 PageData pd = this.getPageData();
755 770 ResponseGson<String> res = new ResponseGson();
... ... @@ -862,6 +877,7 @@ public class V1 extends BaseController {
862 877 @RequestMapping(value = "/downloadtestpaper", produces = "application/json;charset=UTF-8")
863 878 @ResponseBody
864 879 public Object downloadTestpaper() {
  880 + event("downloadTestpaper");
865 881 long cur = System.currentTimeMillis();
866 882 PageData pd = this.getPageData();
867 883 ResponseGson<TestPaper> res = new ResponseGson();
... ... @@ -947,6 +963,7 @@ public class V1 extends BaseController {
947 963 @RequestMapping(value = "/testpaper", produces = "application/json;charset=UTF-8")
948 964 @ResponseBody
949 965 public Object testpaper() {
  966 + event("testpaper");
950 967 long cur = System.currentTimeMillis();
951 968 PageData pd = this.getPageData();
952 969 ResponseGson<List<TestPaper>> res = new ResponseGson();
... ... @@ -988,6 +1005,7 @@ public class V1 extends BaseController {
988 1005 @RequestMapping(value = "/schooladmin", produces = "application/json;charset=UTF-8")
989 1006 @ResponseBody
990 1007 public void schoolAdmin(){
  1008 + event("schoolAdmin");
991 1009 PageData pd = this.getPageData();
992 1010 this.getUserID();
993 1011 }
... ... @@ -996,6 +1014,7 @@ public class V1 extends BaseController {
996 1014 @RequestMapping(value = "/network", produces = "application/json;charset=UTF-8")
997 1015 @ResponseBody
998 1016 public Object network() throws Exception{
  1017 + event("network");
999 1018 PageData pd = this.getPageData();
1000 1019 ResponseGson<PageData> res = new ResponseGson();
1001 1020 PageData spd = networkstatisticsService.findByClientID(pd);
... ... @@ -1055,6 +1074,7 @@ public class V1 extends BaseController {
1055 1074 @RequestMapping(value = "/newversion", produces = "application/json;charset=UTF-8")
1056 1075 @ResponseBody
1057 1076 public Object getNewVersion(HttpServletRequest request) throws Exception{
  1077 + event("getNewVersion");
1058 1078 PageData pd = this.getPageData();
1059 1079 String softId = pd.getString("SOFTID");
1060 1080 String path = request.getContextPath();
... ... @@ -1081,5 +1101,20 @@ public class V1 extends BaseController {
1081 1101  
1082 1102  
1083 1103  
  1104 + private void event(String apiName){
  1105 + PageData eventPd = new PageData();
  1106 + eventPd.put("EVENT_ID", get32UUID());
  1107 + eventPd.put("EVENT_NAME", apiName);
  1108 + eventPd.put("EVENT_USER", getUsername());
  1109 + eventPd.put("EVENT_TYPE", "0");
  1110 + eventPd.put("EVENT_START_TIME", Tools.date2Str(new Date()));
  1111 + eventPd.put("CLIENT_ID", "SERVER");
  1112 + eventPd.put("EVENT_IP", getRemoteIp());
  1113 + try{
  1114 + eventService.save(eventPd);
  1115 + }catch(Exception e){
  1116 +
  1117 + }
  1118 + }
1084 1119  
1085 1120 }
... ...
src/com/fh/controller/sunvote/student/StudentController.java
... ... @@ -168,7 +168,7 @@ public class StudentController extends BaseController {
168 168 }
169 169 }
170 170 mv.addObject("msg","success");
171   - mv.setViewName("save_result");
  171 + mv.setViewName("save_result2");
172 172 return mv;
173 173 }
174 174  
... ... @@ -216,8 +216,8 @@ public class StudentController extends BaseController {
216 216 PageData pd = new PageData();
217 217 pd = this.getPageData();
218 218 studentService.edit(pd);
219   - mv.addObject("msg","success2");
220   - mv.setViewName("save_result");
  219 + mv.addObject("msg","success");
  220 + mv.setViewName("save_result2");
221 221 return mv;
222 222 }
223 223  
... ...