Commit 54a5b6adcef94ce22c743740ae7524d695ba2572

Authored by jack
1 parent 4933d4ac

1.英文翻译

WebRoot/WEB-INF/jsp/sunvote/admin/admin_main.jsp
... ... @@ -29,7 +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 33 </head>
34 34 <body>
35 35 <div class="header">
... ... @@ -50,8 +50,9 @@
50 50 <div class="name">
51 51 <p>欢迎!</p>
52 52 <p id="school" title="${SNAME }">${SNAME }</p>
53   - <p id="name" title="${SNAME } 管理员">${SNAME } 管理员</p>
54   - </br></br>
  53 + <p id="name" title="${SNAME } 管理员">${SNAME }管理员</p>
  54 + </br>
  55 + </br>
55 56 </div>
56 57 </div>
57 58 <div class="class tab1">
... ... @@ -60,14 +61,15 @@
60 61 </p>
61 62 <ul class="menu_1">
62 63 <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
63   - <li onclick="event.stopPropagation();chooseListClass('${SCHOOL_ID}','${var.ID}')">
  64 + <li
  65 + onclick="event.stopPropagation();chooseListClass('${SCHOOL_ID}','${var.ID}')">
64 66 <p>${ var.NAME }</p>
65 67 </li>
66   - </c:forEach>
  68 + </c:forEach>
67 69  
68   - </ul>
69   - </div>
70   - <%-- <div class="class tab1">
  70 + </ul>
  71 + </div>
  72 + <%-- <div class="class tab1">
71 73 <p>
72 74 科目管理<span class="right jiao"></span>
73 75 </p>
... ... @@ -84,32 +86,36 @@
84 86 任课管理<span class="right jiao"></span>
85 87 </p>
86 88 <ul class="menu_1">
87   - <li> <p>科目管理</p>
88   - <ul class="menu_2">
  89 + <li>
  90 + <p>科目管理</p>
  91 + <ul class="menu_2">
89 92 <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
90   - <li onclick="event.stopPropagation();subject('${SCHOOL_ID}','${var.ID }')">
  93 + <li
  94 + onclick="event.stopPropagation();subject('${SCHOOL_ID}','${var.ID }')">
91 95 <p>${ var.NAME }</p>
92 96 </li>
93 97 </c:forEach>
94 98 </ul>
95 99 </li>
96   -
  100 +
97 101 <li onclick="event.stopPropagation();coursemanager('${SCHOOL_ID}')"><p>任课管理</p></li>
98 102 <li onclick="event.stopPropagation();teacher('${SCHOOL_ID}')"><p>教师管理</p></li>
99   - </ul>
100   - </div>
101   - <div class="testpaper tab1">
102   - <p>轻松考<span class="right jiao"></span></p>
  103 + </ul>
  104 + </div>
  105 + <div class="testpaper tab1">
  106 + <p>
  107 + 轻松考<span class="right jiao"></span>
  108 + </p>
103 109 <ul class="menu_1">
104   - <li >
105   - <p >试卷管理</p>
  110 + <li>
  111 + <p>试卷管理</p>
106 112 <ul class="menu_2">
107   - <li ><p id="new_paper">出卷</p></li>
108   - <li ><p id="qingsongkao_paper">查看所有试卷</p></li>
109   -
  113 + <li><p id="new_paper">出卷</p></li>
  114 + <li><p id="qingsongkao_paper">查看所有试卷</p></li>
  115 +
110 116 </ul>
111 117 </li>
112   - <li >
  118 + <li>
113 119 <p>考试情况</p>
114 120 <ul class="menu_2">
115 121 <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
... ... @@ -121,41 +127,41 @@
121 127 </c:forEach>
122 128 </ul>
123 129 </li>
124   -
  130 +
125 131 </ul>
126   -
127   - </div>
128   - <div class="analyse tab1">
129   - <p>
130   - 即时测<span class="right jiao"></span>
131   - </p>
132   -
133   - <ul class="menu_1">
  132 +
  133 + </div>
  134 + <div class="analyse tab1">
  135 + <p>
  136 + 即时测<span class="right jiao"></span>
  137 + </p>
  138 +
  139 + <ul class="menu_1">
134 140 <li>
135 141 <p id="jishice_paper">试卷管理</p>
136 142 </li>
137 143 <li>
138 144 <p>测验分析</p>
139 145 <ul class="menu_2">
140   - <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
141   - <c:forEach items="${var.classInfos}" var="var1" varStatus="vs1">
142   - <li onclick="event.stopPropagation();report2('${var1.ID}')">
143   - <p>${ var1.CLASS_NAME }</p>
144   - </li>
  146 + <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
  147 + <c:forEach items="${var.classInfos}" var="var1" varStatus="vs1">
  148 + <li onclick="event.stopPropagation();report2('${var1.ID}')">
  149 + <p>${ var1.CLASS_NAME }</p>
  150 + </li>
  151 + </c:forEach>
145 152 </c:forEach>
146   - </c:forEach>
147 153 </ul>
148 154 </li>
149 155 </ul>
150   - </div>
151   -
152   -
153   - <div class="analyse tab1">
154   - <p>
155   - 课后练<span class="right jiao"></span>
156   - </p>
157   -
158   - <ul class="menu_1">
  156 + </div>
  157 +
  158 +
  159 + <div class="analyse tab1">
  160 + <p>
  161 + 课后练<span class="right jiao"></span>
  162 + </p>
  163 +
  164 + <ul class="menu_1">
159 165 <li>
160 166 <p onclick="event.stopPropagation();monitor('${SCHOOL_ID}')">班长管理</p>
161 167 </li>
... ... @@ -166,17 +172,17 @@
166 172 <p id="homework_analysis">作业分析</p>
167 173 </li>
168 174 </ul>
169   - </div>
170   -
171   - <div class="analyse tab1">
172   - <p>
173   - 系统设置<span class="right jiao"></span>
174   - </p>
175   -
176   - <ul class="menu_1">
177   - <li >
  175 + </div>
  176 +
  177 + <div class="analyse tab1">
  178 + <p>
  179 + 系统设置<span class="right jiao"></span>
  180 + </p>
  181 +
  182 + <ul class="menu_1">
  183 + <li>
178 184 <p onclick="event.stopPropagation();school('${SCHOOL_ID}')">学校设置</p>
179   -
  185 +
180 186 </li>
181 187 <li>
182 188 <p onclick="event.stopPropagation();grade('${SCHOOL_ID}')">年级设置</p>
... ... @@ -184,87 +190,102 @@
184 190 <li>
185 191 <p onclick="event.stopPropagation();pagetemplate('${SCHOOL_ID}')">模板设置</p>
186 192 </li>
187   -
  193 +
188 194 <li style="display:none">
189 195 <p onclick="event.stopPropagation();other('${SCHOOL_ID}')">其他配置</p>
190 196 </li>
191 197 </ul>
  198 + </div>
192 199 </div>
193   - </div>
194   - <div class="content_r">
195   - <iframe name="mainFrame" id="mainFrame" frameborder="0" width="100%" height="100%"></iframe>
196   -
197   - </div>
  200 + <div class="content_r">
  201 + <iframe name="mainFrame" id="mainFrame" frameborder="0" width="100%"
  202 + height="100%"></iframe>
198 203  
199   - <div class="modal fade title_time" tabindex="-1" role="dialog">
200   - <div class="modal-dialog" role="document" style="z-index:1400">
201   - <div class="modal-content">
202   - <div class="modal-header">
203   - <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
204   - <h4 class="modal-title">新建试卷</h4>
205   - </div>
206   - <div class="modal-body">
207   - <div class="form-group">
208   - <label for="enter_title" class="col-sm-4 control-label">测验标题</label>
209   - <div class="col-sm-6">
210   - <input type="text" class="form-control" id="enter_title" placeholder="输入测验标题(不能超过100个字符)" maxlength="100" minlength="1">
211   - </div>
212   - <div class="clearfix"></div>
213   - </div>
214   -
215   - <div class="form-group">
216   - <label for="enter_time" class="col-sm-4 control-label">测验时长(分钟)</label>
217   - <div class="col-sm-6">
218   - <input type="number" class="form-control" id="enter_time" placeholder="输入测验时长(单位:分钟)" maxlength="3" oninput="if(value.length>3) value=value.slice(0,3)">
219   - </div>
220   - <div class="clearfix"></div>
221   - </div>
222   - <div class="form-group">
223   - <label for="enter_time" class="col-sm-4 control-label">年级</label>
224   - <div class="col-sm-6">
225   - <select class="chosen-select form-control" name="grade_id" id="grade_id" onchange="getSubjects('${SCHOOL_ID}')" data-placeholder="这里输入所属学校">
226   - <option value="-1">--请选择--</option>
227   - <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
228   - <option value="${var.GRADE_ID}">${var.GNAME}</option>
229   - </c:forEach>
230   - </select>
231   - </div>
232   - <div class="clearfix"></div>
233   - </div>
234   - <div class="form-group">
235   - <label for="enter_time" class="col-sm-4 control-label">科目</label>
236   - <div class="col-sm-6">
237   - <select class="chosen-select form-control" name="subject_id" id="subject_id" onchange="getTemplates()" data-placeholder="这里输入所属学校">
238   - </select>
239   - </div>
240   - <div class="clearfix"></div>
241   - </div>
242   - <div class="form-group">
243   - <label for="enter_time" class="col-sm-4 control-label">模板</label>
244   - <div class="col-sm-6">
245   - <select class="chosen-select form-control" name="TEMPLATE_ID" id="TEMPLATE_ID" data-placeholder="这里输入所属学校">
246   - <option value="">自定义</option>
247   - </select>
248   - </div>
249   - <div class="clearfix"></div>
250   - </div>
  204 + </div>
  205 +
  206 + <div class="modal fade title_time" tabindex="-1" role="dialog">
  207 + <div class="modal-dialog" role="document" style="z-index:1400">
  208 + <div class="modal-content">
  209 + <div class="modal-header">
  210 + <button type="button" class="close" data-dismiss="modal"
  211 + aria-label="Close">
  212 + <span aria-hidden="true">&times;</span>
  213 + </button>
  214 + <h4 class="modal-title">新建试卷</h4>
  215 + </div>
  216 + <div class="modal-body">
  217 + <div class="form-group">
  218 + <label for="enter_title" class="col-sm-4 control-label">测验标题</label>
  219 + <div class="col-sm-6">
  220 + <input type="text" class="form-control" id="enter_title"
  221 + placeholder="输入测验标题(不能超过100个字符)" maxlength="100" minlength="1">
  222 + </div>
  223 + <div class="clearfix"></div>
  224 + </div>
  225 +
  226 + <div class="form-group">
  227 + <label for="enter_time" class="col-sm-4 control-label">测验时长(分钟)</label>
  228 + <div class="col-sm-6">
  229 + <input type="number" class="form-control" id="enter_time"
  230 + placeholder="输入测验时长(单位:分钟)" maxlength="3"
  231 + oninput="if(value.length>3) value=value.slice(0,3)">
  232 + </div>
  233 + <div class="clearfix"></div>
  234 + </div>
  235 + <div class="form-group">
  236 + <label for="enter_time" class="col-sm-4 control-label">年级</label>
  237 + <div class="col-sm-6">
  238 + <select class="chosen-select form-control" name="grade_id"
  239 + id="grade_id" onchange="getSubjects('${SCHOOL_ID}')"
  240 + data-placeholder="这里输入所属学校">
  241 + <option value="-1">--请选择--</option>
  242 + <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
  243 + <option value="${var.GRADE_ID}">${var.GNAME}</option>
  244 + </c:forEach>
  245 + </select>
  246 + </div>
  247 + <div class="clearfix"></div>
  248 + </div>
  249 + <div class="form-group">
  250 + <label for="enter_time" class="col-sm-4 control-label">科目</label>
  251 + <div class="col-sm-6">
  252 + <select class="chosen-select form-control" name="subject_id"
  253 + id="subject_id" onchange="getTemplates()"
  254 + data-placeholder="这里输入所属学校">
  255 + </select>
  256 + </div>
  257 + <div class="clearfix"></div>
  258 + </div>
  259 + <div class="form-group">
  260 + <label for="enter_time" class="col-sm-4 control-label">模板</label>
  261 + <div class="col-sm-6">
  262 + <select class="chosen-select form-control" name="TEMPLATE_ID"
  263 + id="TEMPLATE_ID" data-placeholder="这里输入所属学校">
  264 + <option value="">自定义</option>
  265 + </select>
  266 + </div>
  267 + <div class="clearfix"></div>
  268 + </div>
251 269  
252   - </div>
253   - <div class="modal-footer">
254   - <button type="button" class="btn btn-primary" id="time_submit">确定</button>
255   - <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
256   - </div>
257   - </div><!-- /.modal-content -->
258   - </div><!-- /.modal-dialog -->
259   - </div><!-- /.modal -->
260   - <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
261   - <script
262   - src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
263   - <script src="../static/js/model.js"></script>
264   - <script src="../static/js/loading.js"></script>
265   - <script src="../static/js/remove.js?a=2"></script>
266   - <script src="../static/js/dailog.js"></script>
267   - <script type="text/javascript">
  270 + </div>
  271 + <div class="modal-footer">
  272 + <button type="button" class="btn btn-primary" id="time_submit">确定</button>
  273 + <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
  274 + </div>
  275 + </div>
  276 + <!-- /.modal-content -->
  277 + </div>
  278 + <!-- /.modal-dialog -->
  279 + </div>
  280 + <!-- /.modal -->
  281 + <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
  282 + <script
  283 + src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  284 + <script src="../static/js/model.js"></script>
  285 + <script src="../static/js/loading.js"></script>
  286 + <script src="../static/js/remove.js?a=2"></script>
  287 + <script src="../static/js/dailog.js"></script>
  288 + <script type="text/javascript">
268 289  
269 290 var schoolId = '${SCHOOL_ID}';
270 291 function subject(school_id,grade_id){
... ... @@ -386,53 +407,58 @@
386 407 if(name != null&& name != '' && time != null && time != ''){
387 408 var itime = parseInt(time);
388 409 if(itime > 0 && itime <= 300){
389   - self.location.href = "<%=basePath%>" + "paper/npaper.do?paper_type=2&" + "name=" + name + "&grade_id=" + grade_id +"&subject_id=" + subject_id + "&school_id=" + schoolId + "&time=" + time ;
390   - $(".title_time").modal("hide");
391   - }else{
392   - alert("请输入正确的时间,时间不能超过300分钟");
393   - }
  410 + self.location.href = "<%=basePath%>"
  411 + + "paper/npaper.do?paper_type=2&"
  412 + + "name=" + name + "&grade_id="
  413 + + grade_id + "&subject_id="
  414 + + subject_id + "&school_id=" + schoolId
  415 + + "&time=" + time;
  416 + $(".title_time").modal("hide");
  417 + } else {
  418 + alert("请输入正确的时间,时间不能超过300分钟");
  419 + }
  420 + }
  421 + });
  422 +
  423 + $("#qingsongkao_paper").click(function() {
  424 + var path = "../paper/list4.do?school_id=" + schoolId;
  425 + //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  426 + $("#mainFrame").attr('src', path);
  427 + window.top.loading.show();
  428 + });
  429 +
  430 + $("#homework_paper").click(function() {
  431 + var path = "../homework/list.do?school_id=" + schoolId;
  432 + //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  433 + $("#mainFrame").attr('src', path);
  434 + window.top.loading.show();
  435 + });
  436 + $("#homework_analysis").click(function() {
  437 + var path = "../homework/report.do?school_id=" + schoolId;
  438 + //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  439 + $("#mainFrame").attr('src', path);
  440 + window.top.loading.show();
  441 + });
  442 +
  443 + $("#new_paper").click(function() {
  444 + var path = "../paper/list5.do?school_id=" + schoolId;
  445 + //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  446 + $("#mainFrame").attr('src', path);
  447 + window.top.loading.show();
  448 + });
  449 +
  450 + $("#jishice_paper").click(function() {
  451 + var path = "../teacher/teach_paper.do?school_id=" + schoolId;
  452 + //if($("#mainFrame").attr('src') != (path)){
  453 + // $("#mainFrame").attr('src',path);
  454 + // window.top.loading.show();
  455 + //}
  456 + });
  457 +
  458 + var defaultUrl = '${pd.DEFAULTURL}';
  459 + if (defaultUrl != '' && defaultUrl != '') {
  460 + $("#mainFrame").attr('src', defaultUrl);
394 461 }
395   - });
396   -
397   - $("#qingsongkao_paper").click(function (){
398   - var path = "../paper/list4.do?school_id=" + schoolId ;
399   - //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
400   - $("#mainFrame").attr('src',path);
401   - window.top.loading.show();
402   - });
403   -
404   - $("#homework_paper").click(function (){
405   - var path = "../homework/list.do?school_id=" + schoolId ;
406   - //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
407   - $("#mainFrame").attr('src',path);
408   - window.top.loading.show();
409   - });
410   - $("#homework_analysis").click(function (){
411   - var path = "../homework/report.do?school_id=" + schoolId ;
412   - //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
413   - $("#mainFrame").attr('src',path);
414   - window.top.loading.show();
415   - });
416   -
417   - $("#new_paper").click(function (){
418   - var path = "../paper/list5.do?school_id=" + schoolId ;
419   - //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
420   - $("#mainFrame").attr('src',path);
421   - window.top.loading.show();
422   - });
423   -
424   - $("#jishice_paper").click(function (){
425   - var path = "../teacher/teach_paper.do?school_id=" + schoolId;
426   - //if($("#mainFrame").attr('src') != (path)){
427   - // $("#mainFrame").attr('src',path);
428   - // window.top.loading.show();
429   - //}
430   - });
431   -
432   - var defaultUrl = '${pd.DEFAULTURL}' ;
433   - if(defaultUrl != '' && defaultUrl != ''){
434   - $("#mainFrame").attr('src',defaultUrl);
435   - }
436   - </script>
  462 + </script>
437 463 </body>
438 464 </html>
439 465 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/admin/en_admin_main.jsp
... ... @@ -14,13 +14,13 @@
14 14 <meta charset="utf-8">
15 15 <meta http-equiv="X-UA-Compatible" content="IE=edge">
16 16 <meta name="viewport" content="width=device-width, initial-scale=1">
17   -<title>中天电子-教育管理系统</title>
  17 +<title>SunVote-Education Management System</title>
18 18  
19 19 <!-- Bootstrap -->
20 20 <link
21 21 href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
22 22 rel="stylesheet">
23   -<link href="../static/css/teach.css?a=1" rel="stylesheet">
  23 +<link href="../static/css/en_teach.css?a=1" rel="stylesheet">
24 24 <link href="../static/css/mb_style.css" rel="stylesheet">
25 25  
26 26 <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
... ... @@ -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">
... ... @@ -36,7 +37,7 @@
36 37 <img src="../static/images/logo.png" />
37 38 </div>
38 39 <div class="out">
39   - <a href="../logout"><img src="../static/images/close.png" />退出登录</a>
  40 + <a href="../logout"><img src="../static/images/close.png" />log out</a>
40 41 </div>
41 42 <div class="clear"></div>
42 43 </div>
... ... @@ -47,26 +48,28 @@
47 48 <img src="../static/images/head_defult.png" />
48 49 </div>
49 50 <div class="name">
50   - <p>欢迎!</p>
51   - <p id="school">${SNAME }</p>
52   - <p id="name">${SNAME } 管理员</p>
53   - </br></br>
  51 + <p>welcome!</p>
  52 + <p id="school" title="${SNAME }">${SNAME }</p>
  53 + <p id="name" title="${SNAME } 管理员">${SNAME }administrator</p>
  54 + </br>
  55 + </br>
54 56 </div>
55 57 </div>
56 58 <div class="class tab1">
57 59 <p>
58   - 年级管理<span class="right jiao"></span>
  60 + Grade management<span class="right jiao"></span>
59 61 </p>
60 62 <ul class="menu_1">
61 63 <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
62   - <li onclick="event.stopPropagation();chooseListClass('${var.SCHOOL_ID}','${var.GRADE_ID}')">
63   - <p>${ var.GNAME }</p>
  64 + <li
  65 + onclick="event.stopPropagation();chooseListClass('${SCHOOL_ID}','${var.ID}')">
  66 + <p>${ var.NAME }</p>
64 67 </li>
65   - </c:forEach>
  68 + </c:forEach>
66 69  
67   - </ul>
68   - </div>
69   - <%-- <div class="class tab1">
  70 + </ul>
  71 + </div>
  72 + <%-- <div class="class tab1">
70 73 <p>
71 74 科目管理<span class="right jiao"></span>
72 75 </p>
... ... @@ -80,42 +83,40 @@
80 83 </div> --%>
81 84 <div class="class tab1">
82 85 <p>
83   - 任课管理<span class="right jiao"></span>
  86 + Classroom management<span class="right jiao"></span>
84 87 </p>
85 88 <ul class="menu_1">
86   - <li onclick="event.stopPropagation();subject('${SCHOOL_ID}')"><p>科目管理</p></li>
87   - <li onclick="event.stopPropagation();coursemanager('${SCHOOL_ID}')"><p>任课管理</p></li>
88   - <li onclick="event.stopPropagation();teacher('${SCHOOL_ID}')"><p>教师管理</p></li>
89   - </ul>
90   - </div>
91   - <div class="testpaper tab1">
92   - <p>试卷管理<span class="right jiao"></span></p>
93   - <ul class="menu_1">
94   - <li >
95   - <p >轻松考试卷管理</p>
  89 + <li>
  90 + <p>Course management</p>
96 91 <ul class="menu_2">
97   - <li ><p id="new_paper">出卷</p></li>
98   - <li ><p id="qingsongkao_paper">查看所有试卷</p></li>
99   -
  92 + <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
  93 + <li
  94 + onclick="event.stopPropagation();subject('${SCHOOL_ID}','${var.ID }')">
  95 + <p>${ var.NAME }</p>
  96 + </li>
  97 + </c:forEach>
100 98 </ul>
101 99 </li>
102   - <li>
103   - <p id="jishice_paper">即时测试卷管理</p>
104   - </li>
  100 +
  101 + <li onclick="event.stopPropagation();coursemanager('${SCHOOL_ID}')"><p>Classroom management</p></li>
  102 + <li onclick="event.stopPropagation();teacher('${SCHOOL_ID}')"><p>teacher management </p></li>
105 103 </ul>
106   -
107   - </div>
108   - <div class="analyse tab1">
109   - <p>
110   - 测验分析<span class="right jiao"></span>
111   - </p>
112   -
113   - <ul class="menu_1">
114   - <li >
115   - <p>轻松考统考</p>
  104 + </div>
  105 + <div class="testpaper tab1">
  106 + <p>
  107 + E-Exam<span class="right jiao"></span>
  108 + </p>
  109 + <ul class="menu_1">
  110 + <li>
  111 + <p>test paper management</p>
  112 + <ul class="menu_2">
  113 + <li><p id="new_paper">paper making</p></li>
  114 + <li><p id="qingsongkao_paper">View all papers</p></li>
  115 +
  116 + </ul>
116 117 </li>
117   - <li >
118   - <p>轻松考班级情况</p>
  118 + <li>
  119 + <p>examination situation</p>
119 120 <ul class="menu_2">
120 121 <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
121 122 <c:forEach items="${var.classInfos}" var="var1" varStatus="vs1">
... ... @@ -126,9 +127,22 @@
126 127 </c:forEach>
127 128 </ul>
128 129 </li>
  130 +
  131 + </ul>
  132 +
  133 + </div>
  134 + <div class="analyse tab1">
  135 + <p>
  136 + E-Class<span class="right jiao"></span>
  137 + </p>
  138 +
  139 + <ul class="menu_1">
  140 + <li>
  141 + <p id="jishice_paper">test paper management</p>
  142 + </li>
129 143 <li>
130   - <p>即时测测验分析</p>
131   - <ul class="menu_2">
  144 + <p>test analysis</p>
  145 + <ul class="menu_2">
132 146 <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
133 147 <c:forEach items="${var.classInfos}" var="var1" varStatus="vs1">
134 148 <li onclick="event.stopPropagation();report2('${var1.ID}')">
... ... @@ -139,116 +153,217 @@
139 153 </ul>
140 154 </li>
141 155 </ul>
142   - </div>
143   - <div class="analyse tab1">
144   - <p>
145   - 系统设置<span class="right jiao"></span>
146   - </p>
147   -
148   - <ul class="menu_1">
149   - <li >
150   - <p>学校设置</p>
151   -
  156 + </div>
  157 +
  158 +
  159 + <div class="analyse tab1">
  160 + <p>
  161 + after-class exercise<span class="right jiao"></span>
  162 + </p>
  163 +
  164 + <ul class="menu_1">
  165 + <li>
  166 + <p onclick="event.stopPropagation();monitor('${SCHOOL_ID}')">monitor management</p>
152 167 </li>
153 168 <li>
154   - <p >年级设置</p>
  169 + <p id="homework_paper">homework management</p>
155 170 </li>
156 171 <li>
157   - <p>年级升级</p>
  172 + <p id="homework_analysis">homework analysis</p>
158 173 </li>
  174 + </ul>
  175 + </div>
  176 +
  177 + <div class="analyse tab1">
  178 + <p>
  179 + system settings<span class="right jiao"></span>
  180 + </p>
  181 +
  182 + <ul class="menu_1">
159 183 <li>
160   - <p>其他配置</p>
  184 + <p onclick="event.stopPropagation();school('${SCHOOL_ID}')">school settings</p>
  185 +
  186 + </li>
  187 + <li>
  188 + <p onclick="event.stopPropagation();grade('${SCHOOL_ID}')">grade settings</p>
  189 + </li>
  190 + <li>
  191 + <p onclick="event.stopPropagation();pagetemplate('${SCHOOL_ID}')">Template Settings</p>
  192 + </li>
  193 +
  194 + <li style="display:none">
  195 + <p onclick="event.stopPropagation();other('${SCHOOL_ID}')">Other configuration</p>
161 196 </li>
162 197 </ul>
  198 + </div>
163 199 </div>
164   - </div>
165   - <div class="content_r">
166   - <iframe name="mainFrame" id="mainFrame" frameborder="0" width="100%" height="100%"></iframe>
167   -
168   - </div>
  200 + <div class="content_r">
  201 + <iframe name="mainFrame" id="mainFrame" frameborder="0" width="100%"
  202 + height="100%"></iframe>
169 203  
170   - <div class="modal fade title_time" tabindex="-1" role="dialog">
171   - <div class="modal-dialog" role="document" style="z-index:1400">
172   - <div class="modal-content">
173   - <div class="modal-header">
174   - <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
175   - <h4 class="modal-title">新建试卷</h4>
176   - </div>
177   - <div class="modal-body">
178   - <div class="form-group">
179   - <label for="enter_title" class="col-sm-4 control-label">测验标题</label>
180   - <div class="col-sm-6">
181   - <input type="text" class="form-control" id="enter_title" placeholder="输入测验标题(不能超过100个字符)" maxlength="100" minlength="1">
182   - </div>
183   - <div class="clearfix"></div>
184   - </div>
185   -
186   - <div class="form-group">
187   - <label for="enter_time" class="col-sm-4 control-label">测验时长(分钟)</label>
188   - <div class="col-sm-6">
189   - <input type="number" class="form-control" id="enter_time" placeholder="输入测验时长(单位:分钟)" maxlength="3" oninput="if(value.length>3) value=value.slice(0,3)">
190   - </div>
191   - <div class="clearfix"></div>
192   - </div>
193   - <div class="form-group">
194   - <label for="enter_time" class="col-sm-4 control-label">年级</label>
195   - <div class="col-sm-6">
196   - <select class="chosen-select form-control" name="grade_id" id="grade_id" data-placeholder="这里输入所属学校">
197   - <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
198   - <option value="${var.GRADE_ID}">${var.GNAME}</option>
199   - </c:forEach>
200   - </select>
201   - </div>
202   - <div class="clearfix"></div>
203   - </div>
204   - <div class="form-group">
205   - <label for="enter_time" class="col-sm-4 control-label">科目</label>
206   - <div class="col-sm-6">
207   - <select class="chosen-select form-control" name="subject_id" id="subject_id" data-placeholder="这里输入所属学校">
208   - <c:forEach items="${subjectInfos}" var="var" varStatus="vs">
209   - <option value="${var.SUBJECT_ID}">${var.SCNAME}</option>
210   - </c:forEach>
211   - </select>
212   - </div>
213   - <div class="clearfix"></div>
214   - </div>
215   - <div class="form-group">
216   - <label for="enter_time" class="col-sm-4 control-label">模板</label>
217   - <div class="col-sm-6">
218   - <select class="chosen-select form-control" name="TEMPLATE_ID" id="TEMPLATE_ID" data-placeholder="这里输入所属学校">
219   - <option value="">自定义</option>
220   - <c:forEach items="${templateInfos}" var="var" varStatus="vs">
221   - <option value="${var.PAGETEMPLATE_ID}">${var.NAME}</option>
222   - </c:forEach>
223   - </select>
224   - </div>
225   - <div class="clearfix"></div>
  204 + </div>
  205 +
  206 + <div class="modal fade title_time" tabindex="-1" role="dialog">
  207 + <div class="modal-dialog" role="document" style="z-index:1400">
  208 + <div class="modal-content">
  209 + <div class="modal-header">
  210 + <button type="button" class="close" data-dismiss="modal"
  211 + aria-label="Close">
  212 + <span aria-hidden="true">&times;</span>
  213 + </button>
  214 + <h4 class="modal-title">add a new test paper</h4>
  215 + </div>
  216 + <div class="modal-body">
  217 + <div class="form-group">
  218 + <label for="enter_title" class="col-sm-4 control-label">Test title</label>
  219 + <div class="col-sm-6">
  220 + <input type="text" class="form-control" id="enter_title"
  221 + placeholder="Enter the test title (no more than 100 characters)" maxlength="100" minlength="1">
  222 + </div>
  223 + <div class="clearfix"></div>
  224 + </div>
  225 +
  226 + <div class="form-group">
  227 + <label for="enter_time" class="col-sm-4 control-label">Test duration (minutes)</label>
  228 + <div class="col-sm-6">
  229 + <input type="number" class="form-control" id="enter_time"
  230 + placeholder="Input test duration (unit: minutes)" maxlength="3"
  231 + oninput="if(value.length>3) value=value.slice(0,3)">
  232 + </div>
  233 + <div class="clearfix"></div>
  234 + </div>
  235 + <div class="form-group">
  236 + <label for="enter_time" class="col-sm-4 control-label">grade</label>
  237 + <div class="col-sm-6">
  238 + <select class="chosen-select form-control" name="grade_id"
  239 + id="grade_id" onchange="getSubjects('${SCHOOL_ID}')"
  240 + data-placeholder="Enter the school">
  241 + <option value="-1">please select</option>
  242 + <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
  243 + <option value="${var.GRADE_ID}">${var.GNAME}</option>
  244 + </c:forEach>
  245 + </select>
  246 + </div>
  247 + <div class="clearfix"></div>
  248 + </div>
  249 + <div class="form-group">
  250 + <label for="enter_time" class="col-sm-4 control-label">subject</label>
  251 + <div class="col-sm-6">
  252 + <select class="chosen-select form-control" name="subject_id"
  253 + id="subject_id" onchange="getTemplates()"
  254 + data-placeholder="Enter the subject">
  255 + </select>
  256 + </div>
  257 + <div class="clearfix"></div>
  258 + </div>
  259 + <div class="form-group">
  260 + <label for="enter_time" class="col-sm-4 control-label">Template </label>
  261 + <div class="col-sm-6">
  262 + <select class="chosen-select form-control" name="TEMPLATE_ID"
  263 + id="TEMPLATE_ID" data-placeholder="Enter the Template">
  264 + <option value="">Self-definition</option>
  265 + </select>
  266 + </div>
  267 + <div class="clearfix"></div>
  268 + </div>
  269 +
  270 + </div>
  271 + <div class="modal-footer">
  272 + <button type="button" class="btn btn-primary" id="time_submit">confirm</button>
  273 + <button type="button" class="btn btn-primary" data-dismiss="modal">cancel</button>
  274 + </div>
  275 + </div>
  276 + <!-- /.modal-content -->
226 277 </div>
227   - </div>
228   - <div class="modal-footer">
229   - <button type="button" class="btn btn-primary" id="time_submit">确定</button>
230   - <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
231   - </div>
232   - </div><!-- /.modal-content -->
233   - </div><!-- /.modal-dialog -->
234   - </div><!-- /.modal -->
235   - <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
236   - <script
237   - src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
238   - <script src="../static/js/model.js"></script>
239   - <script src="../static/js/loading.js"></script>
240   - <script src="../static/js/remove.js?a=2"></script>
241   - <script src="../static/js/dailog.js"></script>
242   - <script type="text/javascript">
  278 + <!-- /.modal-dialog -->
  279 + </div>
  280 + <!-- /.modal -->
  281 + <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
  282 + <script
  283 + src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  284 + <script src="../static/js/model.js"></script>
  285 + <script src="../static/js/loading.js"></script>
  286 + <script src="../static/js/remove.js?a=2"></script>
  287 + <script src="../static/js/dailog.js"></script>
  288 + <script type="text/javascript">
243 289  
244 290 var schoolId = '${SCHOOL_ID}';
245   - function subject(school_id){
246   - var path = "../subject/listcs.do?school_id=" + school_id ;
  291 + function subject(school_id,grade_id){
  292 + var path = "../subject/listcs.do?school_id=" + school_id + "&grade_id=" + grade_id ;
247 293 //if($("#mainFrame").attr('src') != (path)){
248 294 $("#mainFrame").attr('src',path);
249 295 window.top.loading.show();
250 296 //}
251 297 }
  298 +
  299 + function getSubjects(school_id){
  300 + var grade_id = $("#grade_id").val();
  301 + var path = "../subject/listdata?school_id=" + school_id + "&grade_id=" + grade_id ;
  302 + $("#subject_id").empty();
  303 + if(grade != '-1'){
  304 + $.ajax({
  305 + type: 'post',
  306 + url : path,
  307 + async: true,
  308 + dataType: "json",
  309 + success: function(data) {
  310 + for(var key in data){
  311 + $("#subject_id").append("<option value='"+data[key].ID+"'>"+data[key].CNAME+"</option>");
  312 + }
  313 + getTemplates();
  314 + }
  315 + });
  316 + }
  317 + }
  318 +
  319 + function getTemplates(){
  320 + var grade_id = $("#grade_id").val();
  321 + var subject_id = $("#subject_id").val();
  322 + var school_id = schoolId;
  323 + if(grade != '-1' && subject_id != ''){
  324 + var path = "../pagetemplate/listdata?school_id=" + school_id + "&grade_id=" + grade_id + "&subject_id=" + subject_id ;
  325 + $("#TEMPLATE_ID").empty();
  326 + $("#TEMPLATE_ID").append("<option value=''>自定义</option>");
  327 + $.ajax({
  328 + type: 'post',
  329 + url : path,
  330 + async: true,
  331 + dataType: "json",
  332 + success: function(data) {
  333 + for(var key in data){
  334 + $("#TEMPLATE_ID").append("<option value='"+data[key].PAGETEMPLATE_ID+"'>"+data[key].NAME+"</option>");
  335 + }
  336 + }
  337 + });
  338 + }
  339 + }
  340 +
  341 + function school(schoolId){
  342 + var path = "../school/goEdit2.do?ID=" + schoolId ;
  343 + $("#mainFrame").attr('src',path);
  344 + window.top.loading.show();
  345 + }
  346 + function other(schoolId){
  347 + var path = "../school/other.do?ID=" + schoolId ;
  348 + $("#mainFrame").attr('src',path);
  349 + window.top.loading.show();
  350 + }
  351 + function grade(school_id){
  352 + var path = "../grade/listcs.do?school_id=" + school_id ;
  353 + $("#mainFrame").attr('src',path);
  354 + window.top.loading.show();
  355 + }
  356 + function pagetemplate(school_id){
  357 + var path = "../pagetemplate/listcs.do?school_id=" + school_id ;
  358 + $("#mainFrame").attr('src',path);
  359 + window.top.loading.show();
  360 + }
  361 +
  362 + function monitor(school_id){
  363 + var path = "../headmaster/listcs.do?school_id=" + school_id ;
  364 + $("#mainFrame").attr('src',path);
  365 + window.top.loading.show();
  366 + }
252 367  
253 368 function coursemanager(school_id){
254 369 var path = "../coursemanagement/listcs.do?school_id=" + school_id ;
... ... @@ -292,40 +407,58 @@
292 407 if(name != null&& name != '' && time != null && time != ''){
293 408 var itime = parseInt(time);
294 409 if(itime > 0 && itime <= 300){
295   - self.location.href = "<%=basePath%>" + "paper/npaper.do?paper_type=2&" + "name=" + name + "&grade_id=" + grade_id +"&subject_id=" + subject_id + "&school_id=" + schoolId + "&time=" + time ;
296   - $(".title_time").modal("hide");
297   - }else{
298   - alert("请输入正确的时间,时间不能超过300分钟");
299   - }
  410 + self.location.href = "<%=basePath%>"
  411 + + "paper/npaper.do?paper_type=2&"
  412 + + "name=" + name + "&grade_id="
  413 + + grade_id + "&subject_id="
  414 + + subject_id + "&school_id=" + schoolId
  415 + + "&time=" + time;
  416 + $(".title_time").modal("hide");
  417 + } else {
  418 + alert("Please enter the correct time, no more than 300 minutes");
  419 + }
  420 + }
  421 + });
  422 +
  423 + $("#qingsongkao_paper").click(function() {
  424 + var path = "../paper/list4.do?school_id=" + schoolId;
  425 + //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  426 + $("#mainFrame").attr('src', path);
  427 + window.top.loading.show();
  428 + });
  429 +
  430 + $("#homework_paper").click(function() {
  431 + var path = "../homework/list.do?school_id=" + schoolId;
  432 + //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  433 + $("#mainFrame").attr('src', path);
  434 + window.top.loading.show();
  435 + });
  436 + $("#homework_analysis").click(function() {
  437 + var path = "../homework/report.do?school_id=" + schoolId;
  438 + //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  439 + $("#mainFrame").attr('src', path);
  440 + window.top.loading.show();
  441 + });
  442 +
  443 + $("#new_paper").click(function() {
  444 + var path = "../paper/list5.do?school_id=" + schoolId;
  445 + //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
  446 + $("#mainFrame").attr('src', path);
  447 + window.top.loading.show();
  448 + });
  449 +
  450 + $("#jishice_paper").click(function() {
  451 + var path = "../teacher/teach_paper.do?school_id=" + schoolId;
  452 + //if($("#mainFrame").attr('src') != (path)){
  453 + // $("#mainFrame").attr('src',path);
  454 + // window.top.loading.show();
  455 + //}
  456 + });
  457 +
  458 + var defaultUrl = '${pd.DEFAULTURL}';
  459 + if (defaultUrl != '' && defaultUrl != '') {
  460 + $("#mainFrame").attr('src', defaultUrl);
300 461 }
301   - });
302   -
303   - $("#qingsongkao_paper").click(function (){
304   - var path = "../paper/list4.do?school_id=" + schoolId ;
305   - //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
306   - $("#mainFrame").attr('src',path);
307   - window.top.loading.show();
308   - });
309   -
310   - $("#new_paper").click(function (){
311   - var path = "../paper/list5.do?school_id=" + schoolId ;
312   - //$(".content_r").html('<iframe name="mainFrame" id="mainFrame" frameborder="0" style="width:100%;height:'+$(".content_l").height()+'px;" src=' + path + '></iframe>');
313   - $("#mainFrame").attr('src',path);
314   - window.top.loading.show();
315   - });
316   -
317   - $("#jishice_paper").click(function (){
318   - var path = "../teacher/teach_paper.do?school_id=" + schoolId;
319   - //if($("#mainFrame").attr('src') != (path)){
320   - // $("#mainFrame").attr('src',path);
321   - // window.top.loading.show();
322   - //}
323   - });
324   -
325   - var defaultUrl = '${pd.DEFAULTURL}' ;
326   - if(defaultUrl != '' && defaultUrl != ''){
327   - $("#mainFrame").attr('src',defaultUrl);
328   - }
329   - </script>
  462 + </script>
330 463 </body>
331 464 </html>
332 465 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/coursemanagement/en_coursemanagement_edit2.jsp 0 → 100644
  1 +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2 +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3 +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4 +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5 +<%
  6 + String path = request.getContextPath();
  7 + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  8 +%>
  9 +<!DOCTYPE html>
  10 +<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 + <!-- 编辑页样式覆盖 -->
  20 + <link rel="stylesheet" href="static/css/edit.css" />
  21 +
  22 +</head>
  23 +<body class="no-skin">
  24 +<!-- /section:basics/navbar.layout -->
  25 +<div class="main-container" id="main-container">
  26 + <!-- /section:basics/sidebar -->
  27 + <div class="main-content">
  28 + <div class="main-content-inner">
  29 + <div class="page-content">
  30 + <div class="row">
  31 + <div class="col-xs-12">
  32 +
  33 + <form action="coursemanagement/${msg }.do" name="Form" id="Form" method="post">
  34 + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/>
  35 + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/>
  36 + <div id="zhongxin" style="padding-top: 13px;">
  37 + <table id="table_report" class="table">
  38 + <tr>
  39 + <td style="width:75px;text-align: right;padding-top: 13px;">Teacher:</td>
  40 + <td>
  41 + <select class="chosen-select form-control" name="TEACHER_ID" id="TEACHER_ID" data-placeholder="Enter the teacher">
  42 + <c:forEach var="item" items="${teachers}">
  43 + <option value="${item.ID}" <c:if test="${pd.TEACHER_ID==item.ID}">selected="true"</c:if>>${item.NAME}</option>
  44 + </c:forEach>
  45 + </select>
  46 + </td>
  47 + </tr>
  48 + <tr>
  49 + <td style="width:75px;text-align: right;padding-top: 13px;">Class:</td>
  50 + <td>
  51 + <%-- <input type="number" name="CLASS_ID" id="CLASS_ID" value="${pd.CLASS_ID}" maxlength="32" placeholder="这里输入班级ID" title="班级ID" style="width:98%;"/></td> --%>
  52 + <select class="chosen-select form-control" name="CLASS_ID" id="CLASS_ID" data-placeholder="Enter the class">
  53 + <c:forEach var="item" items="${classs}">
  54 + <option value="${item.ID}" <c:if test="${pd.CLASS_ID==item.ID}">selected="true"</c:if>>${item.CLASS_NAME}</option>
  55 + </c:forEach>
  56 + </select>
  57 + </td>
  58 + </tr>
  59 +
  60 + <%-- <tr>
  61 + <td style="width:75px;text-align: right;padding-top: 13px;">科目:</td>
  62 + <td>
  63 + <input type="number" name="SUBJECT_ID" id="SUBJECT_ID" value="${pd.SUBJECT_ID}" maxlength="32" placeholder="这里输入科目" title="科目" style="width:98%;"/></td>
  64 + <select class="chosen-select form-control" name="SUBJECT_ID" id="SUBJECT_ID" data-placeholder="这里输入班级类型">
  65 + <c:forEach var="item" items="${subjects}">
  66 + <option value="${item.ID}" <c:if test="${pd.SUBJECT_ID==item.ID}">selected="true"</c:if>>${item.CNAME}</option>
  67 + </c:forEach>
  68 + </select>
  69 + </td>
  70 + </tr> --%>
  71 + <tr>
  72 + <td style="width:75px;text-align: right;padding-top: 13px;">Semester:</td>
  73 + <td>
  74 + <select class="chosen-select form-control" name="TERM_ID" id="TERM_ID" data-placeholder="Semester">
  75 + <c:forEach var="item" items="${terms}">
  76 + <option value="${item.TERM_ID}" <c:if test="${pd.TERM_ID==item.TERM_ID}">selected="true"</c:if>>${item.NAME}</option>
  77 + </c:forEach>
  78 + </select>
  79 + </td>
  80 + </tr>
  81 + <tr>
  82 + <td style="text-align: center;" colspan="10">
  83 + <a class="btn btn-mini btn-primary" onclick="save();">Save</a>
  84 + <a class="btn btn-mini btn-danger" onclick="window.top.modal.remove();">Cancel</a>
  85 + </td>
  86 + </tr>
  87 + </table>
  88 + </div>
  89 + <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">Submitting...</h4></div>
  90 + </form>
  91 + </div>
  92 + <!-- /.col -->
  93 + </div>
  94 + <!-- /.row -->
  95 + </div>
  96 + <!-- /.page-content -->
  97 + </div>
  98 + </div>
  99 + <!-- /.main-content -->
  100 +</div>
  101 +<!-- /.main-container -->
  102 +
  103 +
  104 + <!-- 页面底部js¨ -->
  105 + <%@ include file="../../system/index/foot.jsp"%>
  106 + <!-- 下拉框 -->
  107 + <script src="static/ace/js/chosen.jquery.js"></script>
  108 + <!-- 日期框 -->
  109 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  110 + <!--提示框-->
  111 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  112 + <script type="text/javascript">
  113 + $(top.hangge());
  114 + //保存
  115 + function save(){
  116 +
  117 + $("#Form").submit();
  118 + $("#zhongxin").hide();
  119 + $("#zhongxin2").show();
  120 + }
  121 +
  122 + $(function() {
  123 + //日期框
  124 + $('.date-picker').datepicker({autoclose: true,todayHighlight: true});
  125 + });
  126 + </script>
  127 +</body>
  128 +</html>
0 129 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/coursemanagement/en_coursemanagement_list2.jsp 0 → 100644
  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="myelfun" uri="/WEB-INF/tld/elfun.tld"%>
  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/chosen.css" />
  18 +<link
  19 + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
  20 + rel="stylesheet">
  21 +<link href="static/css/teach.css" rel="stylesheet">
  22 +<!-- 日期框 -->
  23 +<link rel="stylesheet" href="static/ace/css/datepicker.css" />
  24 +</head>
  25 +
  26 +<body class="no-skin">
  27 +
  28 + <!-- 检索 -->
  29 + <form action="coursemanagement/listcs.do" method="post" name="Form"
  30 + id="Form" style="background:#fff;">
  31 + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/>
  32 + <div class="head_box">
  33 + <div class="box_header">
  34 + <div class="head_box_l">
  35 + <p>
  36 + <span class="right_b"></span>Classroom management
  37 + </p>
  38 + </div>
  39 + <div class="head_box_r">
  40 +
  41 + </div>
  42 + <div class="clear"></div>
  43 + </div>
  44 + <div style="padding:0 5%;background:#fff;">
  45 + <table class="table table-striped">
  46 + <col style="width: 10%" />
  47 + <col style="width: 30%" />
  48 + <col style="width: 30%" />
  49 + <col style="width: 30%" />
  50 + <thead>
  51 + <tr>
  52 + <th><input type="checkbox" name='ids' id="ids" />Number</th>
  53 + <th>Teacher Name</th>
  54 + <th>Class Name</th>
  55 + <th>Subject</th>
  56 + </tr>
  57 + </thead>
  58 + </table>
  59 + </div>
  60 + </div>
  61 + <div class="table_box" >
  62 + <table class="table table-striped">
  63 + <col style="width: 10%" />
  64 + <col style="width: 30%" />
  65 + <col style="width: 30%" />
  66 + <col style="width: 30%" />
  67 + <tbody>
  68 + <c:choose>
  69 + <c:when test="${not empty varList}">
  70 + <c:forEach items="${varList}" var="var" varStatus="vs">
  71 + <tr>
  72 + <td><input type="checkbox" name='ids' id="ids" value="${var.ID}"/>${vs.index+1}</td>
  73 + <td >${var.NAME}</td>
  74 + <td >${var.CLASS_NAME}</td>
  75 + <td >${var.CNAME}</td>
  76 + </tr>
  77 +
  78 + </c:forEach>
  79 + </c:when>
  80 + <c:otherwise>
  81 + <tr class="main_info">
  82 + <td colspan="100" class="center" >There is no data</td>
  83 + </tr>
  84 + </c:otherwise>
  85 + </c:choose>
  86 + </tbody>
  87 + </table>
  88 + <div class="footer">
  89 + <div class="creat">
  90 + <input type="button" onclick="add()" value="Distribute class teacher task" />
  91 + </div>
  92 + <div class="removeAll">
  93 + <input type="button" onclick="deleteAll()" value="Remove class task" />
  94 + </div>
  95 + <div class="page_box">
  96 +
  97 + <div class="pagination"
  98 + style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
  99 + </div>
  100 + </div>
  101 + </div>
  102 + </form>
  103 + <!-- /.main-container -->
  104 +
  105 + <!-- basic scripts -->
  106 + <!-- 页面底部js¨ -->
  107 + <%@ include file="../../system/index/foot.jsp"%>
  108 + <!-- 删除时确认窗口 -->
  109 + <script src="static/ace/js/bootbox.js"></script>
  110 + <!-- ace scripts -->
  111 + <script src="static/ace/js/ace/ace.js"></script>
  112 + <!-- 下拉框 -->
  113 + <script src="static/ace/js/chosen.jquery.js"></script>
  114 + <!-- 日期框 -->
  115 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  116 + <!--提示框-->
  117 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  118 + <script type="text/javascript">
  119 + $(document).ready(function(){
  120 + window.top.loading.remove();
  121 + });
  122 +
  123 + function tosearch(){
  124 + $("#Form").submit();
  125 + }
  126 +
  127 + //新增
  128 + function add(){
  129 + window.top.modal.init({
  130 + 'title':'Distribute class teacher task',
  131 + 'url':'<%=basePath%>coursemanagement/goAdd2.do?school_id=${pd.SCHOOL_ID}',
  132 + func:function() {
  133 + tosearch();
  134 + }
  135 + });
  136 + window.top.modal.show();
  137 + }
  138 +
  139 + function deleteAll(){
  140 + window.top.remove.init({"title":"Remove class task","ok":"Confirm","cancel":"Cancel","func":function(success){
  141 + if(success){
  142 + var str = '';
  143 + for(var i=0;i < document.getElementsByName('ids').length;i++){
  144 + if(document.getElementsByName('ids')[i].checked){
  145 + if(str=='') str += document.getElementsByName('ids')[i].value;
  146 + else str += ',' + document.getElementsByName('ids')[i].value;
  147 + }
  148 + }
  149 + if(str==''){
  150 +
  151 + }else{
  152 + $.ajax({
  153 + type: "POST",
  154 + url: '<%=basePath%>coursemanagement/deleteAll.do?tm='+new Date().getTime(),
  155 + data: {DATA_IDS:str},
  156 + dataType:'json',
  157 + //beforeSend: validateData,
  158 + cache: false,
  159 + success: function(data){
  160 + tosearch();
  161 + }
  162 + });
  163 + }
  164 + }
  165 + else{
  166 + console.log("false");
  167 + }
  168 + }});
  169 + window.top.remove.show();
  170 + }
  171 +
  172 + </script>
  173 +
  174 +
  175 +</body>
  176 +</html>
0 177 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/paper/en_paper_list4.jsp 0 → 100644
  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="myelfun" uri="/WEB-INF/tld/elfun.tld"%>
  6 +<%
  7 + String path = request.getContextPath();
  8 + String basePath = request.getScheme() + "://"
  9 + + request.getServerName() + ":" + request.getServerPort()
  10 + + path + "/";
  11 +%>
  12 +<html lang="zh-CN">
  13 +<head>
  14 +<meta charset="utf-8">
  15 +<meta http-equiv="X-UA-Compatible" content="IE=edge">
  16 +<meta name="viewport" content="width=device-width, initial-scale=1">
  17 +<title>中天电子-教育管理系统</title>
  18 +
  19 +<!-- Bootstrap -->
  20 +<link
  21 + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
  22 + rel="stylesheet">
  23 +<link href="../static/css/teach.css" rel="stylesheet">
  24 +<link rel="stylesheet" href="../static/ace/css/datepicker.css" />
  25 +<script src="../static/js/loading.js"></script>
  26 +<script src="../static/js/remove.js?a=1"></script>
  27 +<script src="../static/js/dailog.js"></script>
  28 +
  29 +<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
  30 +<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
  31 +<!--[if lt IE 9]>
  32 + <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  33 + <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  34 + <![endif]-->
  35 +</head>
  36 +<body>
  37 +
  38 + <form action="../paper/list4.do" method="post" name="Form" id="Form">
  39 + <div class="head_box">
  40 + <div class="box_header">
  41 + <div class="head_box_l">
  42 + <p>
  43 + <span class="right_b"></span>test paper management
  44 + </p>
  45 + </div>
  46 + <div class="head_box_r">
  47 + <input type="hidden" name="SCHOOL_ID" id="PAPER_ID"
  48 + value="${pd.SCHOOL_ID}" /> <label>grade: </label>&nbsp;&nbsp; <select
  49 + name="grade_id" id="grade_id" data-placeholder="这里输入所属年级">
  50 + <option value="">All</option>
  51 + <c:forEach items="${gradeInfos}" var="var" varStatus="vs">
  52 + <option value="${var.ID}"
  53 + <c:if test="${pd.GRADE_ID==var.ID}">selected="true"</c:if>>${var.NAME}</option>
  54 + </c:forEach>
  55 + </select> <label>subject: </label>&nbsp;&nbsp; <select name="subject_id"
  56 + id="subject_id" data-placeholder="这里输入所属科目">
  57 + <option value="">All</option>
  58 + <c:forEach items="${subjectInfos}" var="var" varStatus="vs">
  59 + <option value="${var.ID}"
  60 + <c:if test="${pd.SUBJECT_ID==var.ID}">selected="true"</c:if>>${var.CNAME}</option>
  61 + </c:forEach>
  62 + </select>&nbsp;&nbsp;&nbsp;&nbsp; <input class="date-picker" type="text"
  63 + placeholder="Start date" name="lastStart" id="lastStart"
  64 + data-date-format="yyyy-mm-dd" readonly="readonly"
  65 + value="${pd.LASTSTART }" /> <input type="text"
  66 + class="date-picker" placeholder="End date" name="lastEnd"
  67 + name="lastEnd" data-date-format="yyyy-mm-dd" readonly="readonly"
  68 + value="${pd.LASTEND}" /> <a href="#" onclick="tosearch();"><img
  69 + src="../static/images/search.png" /></a>
  70 + </div>
  71 + <div class="clear"></div>
  72 + </div>
  73 + <div style="padding:0 5%;background:#fff;" class="paper_title">
  74 + <table class="table table-striped">
  75 + <col style="width: 10%" />
  76 + <col style="width: 10%" />
  77 + <col style="width: 10%" />
  78 + <col style="width: 10%" />
  79 + <col style="width: 10%" />
  80 + <col style="width: 20%" />
  81 + <col style="width: 10%" />
  82 + <col style="width: 10%" />
  83 + <thead>
  84 + <tr>
  85 + <th><input type="checkbox" name='ids' id="ids" />number</th>
  86 + <th>Test title</th>
  87 + <th>Grade</th>
  88 + <th>Class</th>
  89 + <th>出卷老师</th>
  90 + <th>Creation time</th>
  91 + <th>Recommended test duration</th>
  92 + <th>Total score</th>
  93 + </tr>
  94 + </thead>
  95 + </table>
  96 + </div>
  97 + </div>
  98 + <div class="table_box">
  99 + <table class="table table-striped">
  100 + <col style="width: 10%" />
  101 + <col style="width: 10%" />
  102 + <col style="width: 10%" />
  103 + <col style="width: 10%" />
  104 + <col style="width: 10%" />
  105 + <col style="width: 20%" />
  106 + <col style="width: 10%" />
  107 + <col style="width: 10%" />
  108 + <tbody>
  109 + <c:choose>
  110 + <c:when test="${not empty varList}">
  111 + <c:forEach items="${varList}" var="var" varStatus="vs">
  112 + <tr>
  113 + <td><input type="checkbox" name='ids' id="ids"
  114 + value="${var.PAPER_ID}" />${vs.index+1}</td>
  115 + <td><a target="_blank"
  116 + href="<%=basePath%>paper/iteminfo.do?paper_id=${var.PAPER_ID}">${var.TITLE}</a></td>
  117 + <td>${myelfun:findGradeName(var.GRADE_ID)}</td>
  118 + <td>${myelfun:findSubjectCName(var.SUBJECT_ID)}</td>
  119 + <td>${myelfun:findTeacherName(var.USER_ID)}</td>
  120 + <td>${var.CREATE_DATE}</td>
  121 + <td>${var.EXAM_TIME}</td>
  122 + <td>${var.SCORE}</td>
  123 + </tr>
  124 +
  125 + </c:forEach>
  126 + </c:when>
  127 + <c:otherwise>
  128 + <tr class="main_info">
  129 + <td colspan="100" class="text-center">There is no data</td>
  130 + </tr>
  131 + </c:otherwise>
  132 + </c:choose>
  133 + </tbody>
  134 + </table>
  135 + <div class="footer">
  136 + <!-- <div class="creat">
  137 + <input type="button" onclick="parent.$('.title_time').modal('show');" value="新建试卷" />
  138 + </div>
  139 + <div class="removeAll">
  140 + <input type="button" onclick="deleteAll()" value="批量删除" />
  141 + </div> -->
  142 + <div class="page_box">
  143 +
  144 + <div class="pagination"
  145 + style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
  146 + </div>
  147 + </div>
  148 + </div>
  149 + </form>
  150 +</body>
  151 +
  152 +<%@ include file="../../system/index/foot2.jsp"%>
  153 +<script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script>
  154 +<script type="text/javascript">
  155 +
  156 + $(document).ready(function(){
  157 + window.top.loading.remove();
  158 + $(".table_box").css("padding-top",$(".head_box").height());
  159 + });
  160 +
  161 + function tosearch(){
  162 + window.top.loading.remove();
  163 + $("#Form").submit();
  164 + }
  165 +
  166 + $('#ids').on('click', function(){
  167 + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header
  168 +
  169 + $(".table_box .table").find('tbody > tr').each(function(){
  170 + var row = this;
  171 + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true);
  172 + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false);
  173 + });
  174 + });
  175 +
  176 + function del(Id){
  177 + //var remove = new remove();
  178 + window.top.remove.init({"title":"删除","func":function(success){
  179 + if(success){
  180 + var url = "<%=basePath%>paper/delete.do?PAPER_ID="+Id+"&qingsongkao=true&tm="+new Date().getTime();
  181 + window.top.loading.show();
  182 + $.get(url,function(data){
  183 + tosearch();
  184 + });
  185 + }
  186 + else{
  187 + console.log("false");
  188 + }
  189 + }});
  190 + remove.show();
  191 + }
  192 +
  193 + $(function() {
  194 + $.fn.datepicker.dates['en'] = {
  195 + days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  196 + daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  197 + daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  198 + months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  199 + monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  200 + today: "Today",
  201 + clear: "Clear",
  202 + format: "mm/dd/yyyy",
  203 + titleFormat: "MM yyyy", /* Leverages same syntax as 'format' */
  204 + weekStart: 0
  205 + };
  206 +
  207 + //日期框
  208 + $('.date-picker').datepicker({
  209 + autoclose: true,
  210 + todayHighlight: true,
  211 + language: 'en'
  212 + });
  213 +
  214 + });
  215 +
  216 + function deleteAll(){
  217 + window.top.remove.init({"title":"删除","func":function(success){
  218 + if(success){
  219 + var str = '';
  220 + for(var i=0;i < document.getElementsByName('ids').length;i++){
  221 + if(document.getElementsByName('ids')[i].checked){
  222 + if(str=='') str += document.getElementsByName('ids')[i].value;
  223 + else str += ',' + document.getElementsByName('ids')[i].value;
  224 + }
  225 + }
  226 + if(str==''){
  227 +
  228 + }else{
  229 + $.ajax({
  230 + type: "POST",
  231 + url: '<%=basePath%>paper/deleteAll.do?tm='
  232 + + new Date().getTime(),
  233 + data : {
  234 + DATA_IDS : str
  235 + },
  236 + dataType : 'json',
  237 + //beforeSend: validateData,
  238 + cache : false,
  239 + success : function(data) {
  240 + $.each(data.list, function(i, list) {
  241 + tosearch();
  242 + });
  243 + }
  244 + });
  245 + }
  246 + } else {
  247 + console.log("false");
  248 + }
  249 + }
  250 + });
  251 + window.top.remove.show();
  252 + }
  253 +</script>
  254 +</html>
0 255 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/paper/en_paper_list5.jsp 0 → 100644
  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="myelfun" uri="/WEB-INF/tld/elfun.tld"%>
  6 +<%
  7 + String path = request.getContextPath();
  8 + String basePath = request.getScheme() + "://"
  9 + + request.getServerName() + ":" + request.getServerPort() + path + "/";
  10 +%>
  11 +<html lang="zh-CN">
  12 +<head>
  13 +<meta charset="utf-8">
  14 +<meta http-equiv="X-UA-Compatible" content="IE=edge">
  15 +<meta name="viewport" content="width=device-width, initial-scale=1">
  16 +<title>中天电子-教育管理系统</title>
  17 +
  18 +<!-- Bootstrap -->
  19 +<link
  20 + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
  21 + rel="stylesheet">
  22 +<link href="../static/css/teach.css" rel="stylesheet">
  23 +<link rel="stylesheet" href="../static/ace/css/datepicker.css" />
  24 +<script src="../static/js/loading.js"></script>
  25 +<script src="../static/js/remove.js?a=1"></script>
  26 +<script src="../static/js/dailog.js"></script>
  27 +
  28 +<!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
  29 +<!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
  30 +<!--[if lt IE 9]>
  31 + <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  32 + <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  33 + <![endif]-->
  34 +</head>
  35 +<body>
  36 +
  37 + <form action="../paper/list5.do" method="post" name="Form" id="Form">
  38 + <div class="head_box">
  39 + <div class="box_header">
  40 + <div class="head_box_l">
  41 + <p>
  42 + <span class="right_b"></span>test paper management
  43 + </p>
  44 + </div>
  45 + <div class="head_box_r">
  46 + <input class="date-picker" type="text" placeholder="Start date" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.LASTSTART }"/>
  47 + <input type="text" class="date-picker" placeholder="End date" name="lastEnd" name="lastEnd" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.LASTEND}"/>
  48 + <a href="#" onclick="tosearch();"><img
  49 + src="../static/images/search.png" /></a>
  50 + </div>
  51 + <div class="clear"></div>
  52 + </div>
  53 + <div style="padding:0 5%;background:#fff;">
  54 + <table class="table table-striped">
  55 + <col style="width: 10%" />
  56 + <col style="width: 15%" />
  57 + <col style="width: 15%" />
  58 + <col style="width: 10%" />
  59 + <col style="width: 10%" />
  60 + <col style="width: 15%" />
  61 + <col style="width: 15%" />
  62 + <col style="width: 10%" />
  63 + <thead>
  64 + <tr>
  65 + <th><input type="checkbox" name='ids' id="ids" />Number</th>
  66 + <th>Test title</th>
  67 + <th>Creation time</th>
  68 + <th>grade</th>
  69 + <th>subject</th>
  70 + <th>Recommended test duration</th>
  71 + <th>Total score</th>
  72 + <th>operation</th>
  73 + </tr>
  74 + </thead>
  75 + </table>
  76 + </div>
  77 + </div>
  78 + <div class="table_box">
  79 + <table class="table table-striped">
  80 + <col style="width: 10%" />
  81 + <col style="width: 15%" />
  82 + <col style="width: 15%" />
  83 + <col style="width: 10%" />
  84 + <col style="width: 10%" />
  85 + <col style="width: 15%" />
  86 + <col style="width: 15%" />
  87 + <col style="width: 10%" />
  88 + <tbody>
  89 + <c:choose>
  90 + <c:when test="${not empty varList}">
  91 + <c:forEach items="${varList}" var="var" varStatus="vs">
  92 + <tr>
  93 + <td><input type="checkbox" name='ids' id="ids" value="${var.PAPER_ID}"/>${vs.index+1}</td>
  94 + <td ><a target="_blank" href="<%=basePath%>paper/iteminfo.do?paper_id=${var.PAPER_ID}">${var.TITLE}</a></td>
  95 + <td >${var.CREATE_DATE}</td>
  96 + <td >${myelfun:findGradeName(var.GRADE_ID)}</td>
  97 + <td >${myelfun:findSubjectCName(var.SUBJECT_ID)}</td>
  98 + <td >${var.EXAM_TIME}</td>
  99 + <td >${var.SCORE}</td>
  100 + <td>
  101 + <a href="#" onclick="del('${var.PAPER_ID}');"><img src="../static/images/remove.png" /></a>
  102 + </td>
  103 + </tr>
  104 +
  105 + </c:forEach>
  106 + </c:when>
  107 + <c:otherwise>
  108 + <tr class="main_info">
  109 + <td colspan="100" class="center" >There is no data</td>
  110 + </tr>
  111 + </c:otherwise>
  112 + </c:choose>
  113 + </tbody>
  114 + </table>
  115 + <div class="footer">
  116 + <div class="creat">
  117 + <input type="button" onclick="parent.$('.title_time').modal('show');" value="Add a new paper" />
  118 + </div>
  119 + <div class="removeAll">
  120 + <input type="button" onclick="deleteAll()" value="Batch Remove" />
  121 + </div>
  122 + <div class="page_box">
  123 +
  124 + <div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
  125 + </div>
  126 + </div>
  127 + </div>
  128 + </form>
  129 +</body>
  130 +
  131 +<%@ include file="../../system/index/foot2.jsp"%>
  132 +<script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script>
  133 +<script type="text/javascript">
  134 +
  135 + $(document).ready(function(){
  136 + window.top.loading.remove();
  137 + $(".table_box").css("padding-top",$(".head_box").height());
  138 + });
  139 +
  140 + function tosearch(){
  141 + window.top.loading.remove();
  142 + $("#Form").submit();
  143 + }
  144 +
  145 + $('#ids').on('click', function(){
  146 + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header
  147 +
  148 + $(".table_box .table").find('tbody > tr').each(function(){
  149 + var row = this;
  150 + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true);
  151 + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false);
  152 + });
  153 + });
  154 +
  155 + function del(Id){
  156 + //var remove = new remove();
  157 + window.top.remove.init({"title":"Remove","func":function(success){
  158 + if(success){
  159 + var url = "<%=basePath%>paper/delete.do?PAPER_ID="+Id+"&qingsongkao=true&tm="+new Date().getTime();
  160 + window.top.loading.show();
  161 + $.get(url,function(data){
  162 + tosearch();
  163 + });
  164 + }
  165 + else{
  166 + console.log("false");
  167 + }
  168 + }});
  169 + remove.show();
  170 + }
  171 +
  172 + $(function() {
  173 + $.fn.datepicker.dates['en'] = {
  174 + days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  175 + daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  176 + daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  177 + months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  178 + monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  179 + today: "Today",
  180 + clear: "Clear",
  181 + format: "mm/dd/yyyy",
  182 + titleFormat: "MM yyyy", /* Leverages same syntax as 'format' */
  183 + weekStart: 0
  184 + };
  185 +
  186 +
  187 + //日期框
  188 + $('.date-picker').datepicker({
  189 + autoclose: true,
  190 + todayHighlight: true,
  191 + language: 'en'
  192 +
  193 + });
  194 +
  195 + });
  196 +
  197 + function deleteAll(){
  198 + window.top.remove.init({"title":"Remove","func":function(success){
  199 + if(success){
  200 + var str = '';
  201 + for(var i=0;i < document.getElementsByName('ids').length;i++){
  202 + if(document.getElementsByName('ids')[i].checked){
  203 + if(str=='') str += document.getElementsByName('ids')[i].value;
  204 + else str += ',' + document.getElementsByName('ids')[i].value;
  205 + }
  206 + }
  207 + if(str==''){
  208 +
  209 + }else{
  210 + $.ajax({
  211 + type: "POST",
  212 + url: '<%=basePath%>paper/deleteAll.do?tm='+new Date().getTime(),
  213 + data: {DATA_IDS:str},
  214 + dataType:'json',
  215 + //beforeSend: validateData,
  216 + cache: false,
  217 + success: function(data){
  218 + $.each(data.list, function(i, list){
  219 + tosearch();
  220 + });
  221 + }
  222 + });
  223 + }
  224 + }
  225 + else{
  226 + console.log("false");
  227 + }
  228 + }});
  229 + window.top.remove.show();
  230 + }
  231 +
  232 +
  233 +</script>
  234 +</html>
0 235 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/sclass/en_sclass_edit2.jsp 0 → 100644
  1 +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2 +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3 +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4 +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5 +<%
  6 + String path = request.getContextPath();
  7 + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  8 +%>
  9 +<!DOCTYPE html>
  10 +<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 + <!-- 编辑页样式覆盖 -->
  20 + <link rel="stylesheet" href="static/css/edit.css" />
  21 +</head>
  22 +<body class="no-skin">
  23 +<!-- /section:basics/navbar.layout -->
  24 +<div class="main-container" id="main-container">
  25 + <!-- /section:basics/sidebar -->
  26 + <div class="main-content">
  27 + <div class="main-content-inner">
  28 + <div class="page-content">
  29 + <div class="row">
  30 + <div class="col-xs-12">
  31 +
  32 + <form action="sclass/${msg }.do" name="Form" id="Form" method="post">
  33 + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/>
  34 + <div id="zhongxin" style="padding-top: 13px;">
  35 + <table id="table_report" class="table">
  36 + <tr>
  37 + <td style="width:75px;text-align: right;padding-top: 13px;">School:</td>
  38 + <td>
  39 + <%-- <input type="text" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}" maxlength="255" placeholder="这里输入所属学校" title="所属学校" style="width:98%;"/> --%>
  40 +
  41 + <select class="chosen-select form-control" name="SCHOOL_ID" id="SCHOOL_ID" disabled="disabled" data-placeholder="Enter the school">
  42 + <c:forEach var="item" items="${schools}">
  43 + <option value="${item.ID}" <c:if test="${pd.SCHOOL_ID==item.ID}">selected="true"</c:if>>${item.NAME}</option>
  44 + </c:forEach>
  45 + </select>
  46 + </td>
  47 + </tr>
  48 + <tr>
  49 + <td style="width:75px;text-align: right;padding-top: 13px;">Grade:</td>
  50 + <td>
  51 + <%-- <input type="text" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}" maxlength="255" placeholder="这里输入所属年级" title="所属年级" style="width:98%;"/></td> --%>
  52 + <select class="chosen-select form-control" name="GRADE_ID" disabled="disabled" id="GRADE_ID" data-placeholder="Enter the Grade" >
  53 + <c:forEach var="item" items="${grades}">
  54 + <option value="${item.ID}" <c:if test="${pd.GRADE_ID==item.ID}">selected="true"</c:if>>${item.NAME}</option>
  55 + </c:forEach>
  56 + </select>
  57 + </td>
  58 + </tr>
  59 + <tr>
  60 + <td style="width:75px;text-align: right;padding-top: 13px;">Class type:</td>
  61 + <td>
  62 + <%-- <input type="text" name="CLASS_TYPE" id="CLASS_TYPE" value="${pd.CLASS_TYPE}" maxlength="255" placeholder="这里输入班级类型" title="班级类型" style="width:98%;"/></td> --%>
  63 + <select class="chosen-select form-control" name="CLASS_TYPE" id="CLASS_TYPE" data-placeholder="Enter the Class type">
  64 + <c:forEach var="item" items="${classTypes}">
  65 + <option value="${item.ID}" <c:if test="${pd.CLASS_TYPE==item.ID}">selected="true"</c:if>>${item.NAME}</option>
  66 + </c:forEach>
  67 + </select>
  68 + </td>
  69 + </tr>
  70 + <tr>
  71 + <td style="width:75px;text-align: right;padding-top: 13px;">Class name:</td>
  72 + <td><input type="text" name="CLASS_NAME" id="CLASS_NAME" value="${pd.CLASS_NAME}" maxlength="255" placeholder="Enter the Class name" title="班级名称" style="width:98%;"/></td>
  73 + </tr>
  74 + <tr>
  75 + <td style="width:75px;text-align: right;padding-top: 13px;">Class code:</td>
  76 + <td><input type="text" name="CLASS_CODE" id="CLASS_CODE" value="${pd.CLASS_CODE}" maxlength="255" placeholder="Enter the Class code" title="班级编码" style="width:98%;"/></td>
  77 + </tr>
  78 + <tr>
  79 + <td style="width:75px;text-align: right;padding-top: 13px;">Class base station:</td>
  80 + <td>
  81 + <%-- <input type="text" name="BASESTATION_ID" id="BASESTATION_ID" value="${pd.BASESTATION_ID}" maxlength="255" placeholder="这里输入班级基站" title="班级基站" style="width:98%;"/></td> --%>
  82 + <select class="chosen-select form-control" name="BASESTATION_ID" id="BASESTATION_ID" data-placeholder="Enter the Class base station">
  83 + <c:forEach var="item" items="${basestations}">
  84 + <option value="${item.ID}" <c:if test="${pd.BASESTATION_ID==item.ID}">selected="true"</c:if>>${item.NAME}</option>
  85 + </c:forEach>
  86 + </select>
  87 + </td>
  88 + </tr>
  89 + <tr>
  90 + <td style="text-align: center;" colspan="10">
  91 + <a class="btn btn-mini btn-primary" onclick="save();">Save</a>
  92 + <a class="btn btn-mini btn-danger" onclick="window.top.modal.remove();">Cancel</a>
  93 + </td>
  94 + </tr>
  95 + </table>
  96 + </div>
  97 + <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>
  98 + </form>
  99 + </div>
  100 + <!-- /.col -->
  101 + </div>
  102 + <!-- /.row -->
  103 + </div>
  104 + <!-- /.page-content -->
  105 + </div>
  106 + </div>
  107 + <!-- /.main-content -->
  108 +</div>
  109 +<!-- /.main-container -->
  110 +
  111 +
  112 + <!-- 页面底部js¨ -->
  113 + <%@ include file="../../system/index/foot.jsp"%>
  114 + <!-- 下拉框 -->
  115 + <script src="static/ace/js/chosen.jquery.js"></script>
  116 + <!-- 日期框 -->
  117 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  118 + <!--提示框-->
  119 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  120 + <script type="text/javascript">
  121 + $(top.hangge());
  122 + //保存
  123 + function save(){
  124 + if($("#SCHOOL_ID").val()==""){
  125 + $("#SCHOOL_ID").tips({
  126 + side:3,
  127 + msg:'请输入所属学校',
  128 + bg:'#AE81FF',
  129 + time:2
  130 + });
  131 + $("#SCHOOL_ID").focus();
  132 + return false;
  133 + }
  134 + if($("#GRADE_ID").val()==""){
  135 + $("#GRADE_ID").tips({
  136 + side:3,
  137 + msg:'请输入所属年级',
  138 + bg:'#AE81FF',
  139 + time:2
  140 + });
  141 + $("#GRADE_ID").focus();
  142 + return false;
  143 + }
  144 + if($("#CLASS_TYPE").val()==""){
  145 + $("#CLASS_TYPE").tips({
  146 + side:3,
  147 + msg:'请输入班级类型',
  148 + bg:'#AE81FF',
  149 + time:2
  150 + });
  151 + $("#CLASS_TYPE").focus();
  152 + return false;
  153 + }
  154 + if($("#CLASS_NAME").val()==""){
  155 + $("#CLASS_NAME").tips({
  156 + side:3,
  157 + msg:'请输入班级名称',
  158 + bg:'#AE81FF',
  159 + time:2
  160 + });
  161 + $("#CLASS_NAME").focus();
  162 + return false;
  163 + }
  164 + if($("#CLASS_CODE").val()==""){
  165 + $("#CLASS_CODE").tips({
  166 + side:3,
  167 + msg:'请输入班级编码',
  168 + bg:'#AE81FF',
  169 + time:2
  170 + });
  171 + $("#CLASS_CODE").focus();
  172 + return false;
  173 + }
  174 + if($("#BASESTATION_ID").val()==""){
  175 + $("#BASESTATION_ID").tips({
  176 + side:3,
  177 + msg:'请输入班级基站',
  178 + bg:'#AE81FF',
  179 + time:2
  180 + });
  181 + $("#BASESTATION_ID").focus();
  182 + return false;
  183 + }
  184 + $("#SCHOOL_ID").removeAttr("disabled");
  185 + $("#GRADE_ID").removeAttr("disabled");
  186 + $("#Form").submit();
  187 + $("#zhongxin").hide();
  188 + $("#zhongxin2").show();
  189 + }
  190 +
  191 + $(function() {
  192 + //日期框
  193 + $('.date-picker').datepicker({autoclose: true,todayHighlight: true});
  194 + });
  195 + </script>
  196 +</body>
  197 +</html>
0 198 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/sclass/en_sclass_list2.jsp 0 → 100644
  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="myelfun" uri="/WEB-INF/tld/elfun.tld"%>
  6 +
  7 +<%
  8 + String path = request.getContextPath();
  9 + String basePath = request.getScheme() + "://"
  10 + + request.getServerName() + ":" + request.getServerPort() + path + "/";
  11 +%>
  12 +<!DOCTYPE html>
  13 +<html lang="en">
  14 +<head>
  15 +<base href="<%=basePath%>">
  16 +<!-- 下拉框 -->
  17 +<link rel="stylesheet" href="static/ace/css/chosen.css" />
  18 +<!-- jsp文件头和头部 -->
  19 +
  20 +<!-- 日期框 -->
  21 +<link rel="stylesheet" href="static/ace/css/datepicker.css" />
  22 +<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  23 +<link href="static/css/teach.css" rel="stylesheet">
  24 +</head>
  25 +<body class="no-skin">
  26 +
  27 + <!-- 检索 -->
  28 + <form action="sclass/listcs.do" method="post" name="Form" id="Form">
  29 + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/>
  30 + <input type="hidden" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}"/>
  31 + <div class="head_box">
  32 + <div class="box_header">
  33 + <div class="head_box_l">
  34 + <p>
  35 + <span class="right_b"></span>Class Management
  36 + </p>
  37 + </div>
  38 + <div class="clearfix"></div>
  39 + </div>
  40 + <div style="background:#fff;padding:0 5%;" >
  41 +
  42 + <table class="table table-striped" >
  43 + <col style="width: 10%" />
  44 + <col style="width: 18%" />
  45 + <col style="width: 18%" />
  46 + <col style="width: 18%" />
  47 + <col style="width: 18%" />
  48 + <col style="width: 18%" />
  49 + <thead>
  50 + <tr>
  51 + <th><input type="checkbox" value="0" name='ids' id="ids" />Number</th>
  52 + <th class="center">Class Name</th>
  53 + <th class="center">Class Type</th>
  54 + <th class="center">Class Coding</th>
  55 + <th class="center">班级基站</th>
  56 + <th class="center">Operation</th>
  57 + </tr>
  58 + </thead>
  59 + </table>
  60 + </div>
  61 +
  62 + <div class="clearfix"></div>
  63 + <!-- 检索 -->
  64 +
  65 + </div>
  66 + <div class="table_box" style="padding:0px 5%">
  67 + <table class="table table-striped" >
  68 + <col style="width: 10%" />
  69 + <col style="width: 18%" />
  70 + <col style="width: 18%" />
  71 + <col style="width: 18%" />
  72 + <col style="width: 18%" />
  73 + <col style="width: 18%" />
  74 + <tbody>
  75 + <!-- 开始循环 -->
  76 + <c:choose>
  77 + <c:when test="${not empty varList}">
  78 + <c:forEach items="${varList}" var="var" varStatus="vs">
  79 + <tr>
  80 + <td><input type="checkbox" name='ids' id="ids"
  81 + value="${var.ID}" />${vs.index+1}</td>
  82 + <td class='center'><a href="student/listcs.do?class_id=${var.ID }">${var.CLASS_NAME}</a></td>
  83 + <td class='center'>${myelfun:findClassTypeName(var.CLASS_TYPE)}</td>
  84 + <td class='center'>${var.CLASS_CODE}</td>
  85 + <td class='center'>${myelfun:findBasestationName(var.BASESTATION_ID)}</td>
  86 +
  87 + <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>
  88 + </tr>
  89 + </c:forEach>
  90 + </c:when>
  91 + <c:otherwise>
  92 + <tr class="main_info">
  93 + <td colspan="100" class="center">There is no data</td>
  94 + </tr>
  95 + </c:otherwise>
  96 + </c:choose>
  97 + </tbody>
  98 + </table>
  99 + <div class="footer" style="width:auto;margin: 0px 5%;">
  100 + <div class="creat">
  101 + <input type="button" onclick="add();" value="Add the Class" />
  102 + </div>
  103 + <div class="removeAll">
  104 + <input type="button" onclick="del();" value="Remove" />
  105 + </div>
  106 +
  107 + <div class="page_box">
  108 + <div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
  109 + </div>
  110 + </div>
  111 + </div>
  112 + </form>
  113 + <!-- basic scripts -->
  114 + <!-- 页面底部js¨ -->
  115 + <%@ include file="../../system/index/foot.jsp"%>
  116 + <!-- 删除时确认窗口 -->
  117 + <script src="static/ace/js/bootbox.js"></script>
  118 + <!-- ace scripts -->
  119 + <script src="static/ace/js/ace/ace.js"></script>
  120 + <!-- 下拉框 -->
  121 + <script src="static/ace/js/chosen.jquery.js"></script>
  122 + <!-- 日期框 -->
  123 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  124 + <!--提示框-->
  125 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  126 + <script type="text/javascript">
  127 + $(document).ready(function() {
  128 + window.top.loading.remove();
  129 + $(".table_box").css("padding-top",$(".head_box").height());
  130 + });
  131 +
  132 + function tosearch(){
  133 + $("#Form").submit();
  134 + }
  135 +
  136 + $('#ids').on('click', function(){
  137 + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header
  138 +
  139 + $(".table_box .table").find('tbody > tr').each(function(){
  140 + var row = this;
  141 + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true);
  142 + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false);
  143 + });
  144 + });
  145 + function edit(Id){
  146 + window.top.modal.init({
  147 + 'title':'Modify the information',
  148 + 'url':'<%=basePath%>sclass/goEdit2.do?ID='+Id,
  149 + func:function() {
  150 + tosearch();
  151 + }
  152 + });
  153 + window.top.modal.show();
  154 + }
  155 +
  156 + function del(Id){
  157 + window.top.remove.init({"title":"Remove","func":function(success){
  158 + if(success){
  159 + var str = '';
  160 + for(var i=0;i < document.getElementsByName('ids').length;i++){
  161 + if(document.getElementsByName('ids')[i].checked){
  162 + if(str=='') str += document.getElementsByName('ids')[i].value;
  163 + else str += ',' + document.getElementsByName('ids')[i].value;
  164 + }
  165 + }
  166 + if(str==''){
  167 + $.ajax({
  168 + type: "POST",
  169 + url: '<%=basePath%>sclass/deleteAll.do?tm='+new Date().getTime(),
  170 + data: {DATA_IDS:Id},
  171 + dataType:'json',
  172 + //beforeSend: validateData,
  173 + cache: false,
  174 + success: function(data){
  175 + tosearch();
  176 + }
  177 + });
  178 + }else{
  179 + $.ajax({
  180 + type: "POST",
  181 + url: '<%=basePath%>sclass/deleteAll.do?tm='+new Date().getTime(),
  182 + data: {DATA_IDS:str},
  183 + dataType:'json',
  184 + //beforeSend: validateData,
  185 + cache: false,
  186 + success: function(data){
  187 + tosearch();
  188 + }
  189 + });
  190 + }
  191 + }
  192 + else{
  193 + console.log("false");
  194 + }
  195 + }});
  196 + window.top.remove.show();
  197 + }
  198 +
  199 + function add(){
  200 + window.top.modal.init({
  201 + 'title':'Add the Class',
  202 + 'url':'<%=basePath%>sclass/goAdd2.do?school_id=${pd.SCHOOL_ID}&grade_id=${pd.GRADE_ID}',
  203 + func:function() {
  204 + tosearch();
  205 + }
  206 + });
  207 + window.top.modal.show();
  208 + }
  209 + </script>
  210 +
  211 +
  212 +</body>
  213 +</html>
0 214 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/subject/en_subject_edit2.jsp 0 → 100644
  1 +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2 +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3 +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4 +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5 +<%
  6 + String path = request.getContextPath();
  7 + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  8 +%>
  9 +<!DOCTYPE html>
  10 +<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 + <link rel="stylesheet" href="static/css/edit.css" />
  20 +</head>
  21 +<body class="no-skin">
  22 +<!-- /section:basics/navbar.layout -->
  23 +<div class="main-container" id="main-container">
  24 + <!-- /section:basics/sidebar -->
  25 + <div class="main-content">
  26 + <div class="main-content-inner">
  27 + <div class="page-content">
  28 + <div class="row">
  29 + <div class="col-xs-12">
  30 +
  31 + <form action="subject/${msg}.do" name="Form" id="Form" method="post">
  32 + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/>
  33 + <input type="hidden" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}"/>
  34 + <div id="zhongxin" style="padding-top: 13px;">
  35 + <table id="table_report" class="table">
  36 + <tr>
  37 + <td style="width:75px;text-align: right;padding-top: 13px;">Course name:</td>
  38 + <td>
  39 + <select class="chosen-select form-control" name="SUBJECT_ID" id="SUBJECT_ID" data-placeholder="Enter the Course name">
  40 + <c:forEach var="item" items="${varList}">
  41 + <option value="${item.ID}">${item.CNAME}</option>
  42 + </c:forEach>
  43 + </select>
  44 + </td>
  45 + </tr>
  46 + <tr>
  47 + <td style="text-align: center;" colspan="10">
  48 + <a class="btn btn-mini btn-primary" onclick="save();">Save</a>
  49 + <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">Cancel</a>
  50 + </td>
  51 + </tr>
  52 + </table>
  53 + </div>
  54 + <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">Submitting...</h4></div>
  55 + </form>
  56 + </div>
  57 + <!-- /.col -->
  58 + </div>
  59 + <!-- /.row -->
  60 + </div>
  61 + <!-- /.page-content -->
  62 + </div>
  63 + </div>
  64 + <!-- /.main-content -->
  65 +</div>
  66 +<!-- /.main-container -->
  67 +
  68 +
  69 + <!-- 页面底部js¨ -->
  70 + <%@ include file="../../system/index/foot.jsp"%>
  71 + <!-- 下拉框 -->
  72 + <script src="static/ace/js/chosen.jquery.js"></script>
  73 + <!-- 日期框 -->
  74 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  75 + <!--提示框-->
  76 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  77 + <script type="text/javascript">
  78 +
  79 + //保存
  80 + function save(){
  81 + $("#Form").submit();
  82 + $("#zhongxin").hide();
  83 + $("#zhongxin2").show();
  84 + // window.top.modal.remove();
  85 + }
  86 +
  87 + $(function() {
  88 + //日期框
  89 + $('.date-picker').datepicker({autoclose: true,todayHighlight: true});
  90 + });
  91 + </script>
  92 +</body>
  93 +</html>
0 94 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/subject/en_subject_list2.jsp 0 → 100644
  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>
  12 +<html lang="en">
  13 +<head>
  14 +<base href="<%=basePath%>">
  15 +<!-- 下拉框 -->
  16 +<link rel="stylesheet" href="static/ace/css/chosen.css" />
  17 +<!-- jsp文件头和头部 -->
  18 +
  19 +<link href="../static/css/teach.css" rel="stylesheet">
  20 +<!-- 日期框 -->
  21 +<link rel="stylesheet" href="static/ace/css/datepicker.css" />
  22 +<link
  23 + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
  24 + rel="stylesheet">
  25 +<link href="static/css/teach.css" rel="stylesheet">
  26 +</head>
  27 +<body class="no-skin">
  28 + <form action="subject/listcs.do" method="post" name="Form" id="Form">
  29 + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/>
  30 + <input type="hidden" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}"/>
  31 + <div class="head_box">
  32 + <div class="box_header">
  33 + <div class="head_box_l">
  34 + <p>
  35 + <span class="right_b"></span>Course management
  36 + </p>
  37 + </div>
  38 + <div class="head_box_r"></div>
  39 + <div class="clear"></div>
  40 + </div>
  41 + <div style="padding:0 5%;background:#fff;">
  42 + <table class="table table-striped">
  43 + <col style="width: 10%" />
  44 + <col style="width: 30%" />
  45 + <col style="width: 30%" />
  46 + <col style="width: 30%" />
  47 + <thead>
  48 + <tr>
  49 + <th><input type="checkbox" name='ids' id="ids" />Number</th>
  50 + <th class="center">Chinese name</th>
  51 + <th class="center">English names</th>
  52 + <th class="center">Operation</th>
  53 + </tr>
  54 + </thead>
  55 + </table>
  56 + </div>
  57 + </div>
  58 + <div class="table_box">
  59 + <table class="table table-striped">
  60 + <col style="width: 10%" />
  61 + <col style="width: 30%" />
  62 + <col style="width: 30%" />
  63 + <col style="width: 30%" />
  64 +
  65 + <tbody>
  66 + <c:choose>
  67 + <c:when test="${not empty varList}">
  68 + <c:forEach items="${varList}" var="var" varStatus="vs">
  69 + <tr>
  70 + <td><input type="checkbox" name='ids' id="ids"
  71 + value="${var.ID}" />${vs.index+1}</td>
  72 + <td class='center'>${var.CNAME}</td>
  73 + <td class='center'>${var.ENAME}</td>
  74 + <td><a onclick="del('${var.ID}');"><img src="static/images/remove.png" /></a></td>
  75 +
  76 + </tr>
  77 +
  78 + </c:forEach>
  79 + </c:when>
  80 + <c:otherwise>
  81 + <tr class="main_info">
  82 + <td colspan="100" class="center">There is no data</td>
  83 + </tr>
  84 + </c:otherwise>
  85 + </c:choose>
  86 + </tbody>
  87 + </table>
  88 + <div class="footer" style="width:auto">
  89 + <div class="creat">
  90 + <input type="button" onclick="add()" value="Add the subject" />
  91 + </div>
  92 + <div class="removeAll">
  93 + <input type="button" onclick="del()" value="Remove the subjects" />
  94 + </div>
  95 + <div class="page_box">
  96 +
  97 + <div class="pagination"
  98 + style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
  99 + </div>
  100 + </div>
  101 + </div>
  102 + </form>
  103 +
  104 + <!-- /.main-container -->
  105 +
  106 + <!-- basic scripts -->
  107 + <!-- 页面底部js¨ -->
  108 + <%@ include file="../../system/index/foot.jsp"%>
  109 + <!-- 删除时确认窗口 -->
  110 + <script src="static/ace/js/bootbox.js"></script>
  111 + <!-- ace scripts -->
  112 + <script src="static/ace/js/ace/ace.js"></script>
  113 + <!-- 下拉框 -->
  114 + <script src="static/ace/js/chosen.jquery.js"></script>
  115 + <!-- 日期框 -->
  116 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  117 + <!--提示框-->
  118 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  119 + <script type="text/javascript">
  120 + $(document).ready(function(){
  121 + window.top.loading.remove();
  122 + });
  123 + function tosearch(){
  124 + $("#Form").submit();
  125 + }
  126 + function del(Id){
  127 + window.top.remove.init({"title":"Remove","func":function(success){
  128 + if(success){
  129 + var str = '';
  130 + for(var i=0;i < document.getElementsByName('ids').length;i++){
  131 + if(document.getElementsByName('ids')[i].checked){
  132 + if(str=='') str += document.getElementsByName('ids')[i].value;
  133 + else str += ',' + document.getElementsByName('ids')[i].value;
  134 + }
  135 + }
  136 + if(str==''){
  137 + if(Id != ''){
  138 + $.ajax({
  139 + type: "POST",
  140 + url: '<%=basePath%>schoolgradesubject/deleteAll.do?tm='+new Date().getTime(),
  141 + data: {DATA_IDS:Id},
  142 + dataType:'json',
  143 + cache: false,
  144 + success: function(data){
  145 + tosearch();
  146 + }
  147 + });
  148 + }
  149 + }else{
  150 + $.ajax({
  151 + type: "POST",
  152 + url: '<%=basePath%>schoolgradesubject/deleteAll.do?tm='+new Date().getTime(),
  153 + data: {DATA_IDS:str},
  154 + dataType:'json',
  155 + //beforeSend: validateData,
  156 + cache: false,
  157 + success: function(data){
  158 + tosearch();
  159 + }
  160 + });
  161 + }
  162 + }
  163 + else{
  164 + console.log("false");
  165 + }
  166 + }});
  167 + window.top.remove.show();
  168 + }
  169 +
  170 + function add(){
  171 + window.top.modal.init({
  172 + 'title':'Add the subject',
  173 + 'url':'<%=basePath%>subject/goAdd2.do?school_id=${pd.SCHOOL_ID}&grade_id=${pd.GRADE_ID}',
  174 + func:function() {
  175 + tosearch();
  176 + }
  177 + });
  178 + window.top.modal.show();
  179 + }
  180 + </script>
  181 +
  182 +
  183 +</body>
  184 +</html>
0 185 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/en_teacher_edit2.jsp 0 → 100644
  1 +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2 +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3 +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4 +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5 +<%
  6 + String path = request.getContextPath();
  7 + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  8 +%>
  9 +<!DOCTYPE html>
  10 +<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 + <!-- 编辑页样式覆盖 -->
  20 + <link rel="stylesheet" href="static/css/edit.css" />
  21 +
  22 +</head>
  23 +<body class="no-skin">
  24 +<!-- /section:basics/navbar.layout -->
  25 +<div class="main-container" id="main-container">
  26 + <!-- /section:basics/sidebar -->
  27 + <div class="main-content">
  28 + <div class="main-content-inner">
  29 + <div class="page-content">
  30 + <div class="row">
  31 + <div class="col-xs-12">
  32 +
  33 + <form action="teacher/${msg }.do" name="Form" id="Form" method="post">
  34 + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/>
  35 + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/>
  36 + <div id="zhongxin" style="padding-top: 13px;">
  37 + <table id="table_report" class="table">
  38 + <tr>
  39 + <td style="width:75px;text-align: right;padding-top: 13px;">Name:</td>
  40 + <td><input type="text" name="NAME" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="Enter the Name" title="Name" style="width:98%;"/></td>
  41 + </tr>
  42 + <tr>
  43 + <td style="width:75px;text-align: right;padding-top: 13px;">Phone Number:</td>
  44 + <td><input type="text" name="PHONE" id="PHONE" value="${pd.PHONE}" maxlength="255" placeholder="Enter the Phone Number" title="Phone Number" style="width:98%;"/></td>
  45 + </tr>
  46 + <tr>
  47 + <td style="width:75px;text-align: right;padding-top: 13px;">Tel Number:</td>
  48 + <td><input type="text" name="SEAT_PHONE" id="SEAT_PHONE" value="${pd.SEAT_PHONE}" maxlength="255" placeholder="Enter the Tel Number" title="Tel Number" style="width:98%;"/></td>
  49 + </tr>
  50 + <tr>
  51 + <td style="width:75px;text-align: right;padding-top: 13px;">Id no.:</td>
  52 + <td><input type="text" name="CARD_NO" id="CARD_NO" value="${pd.CARD_NO}" maxlength="255" placeholder="Enter the Id no." title="Id no." style="width:98%;"/></td>
  53 + </tr>
  54 + <tr>
  55 + <td style="width:75px;text-align: right;padding-top: 13px;">Account:</td>
  56 + <td><input type="text" name="ACCOUT" id="ACCOUT" value="${pd.ACCOUT}" maxlength="255" placeholder="Enter the Account" title="Account" style="width:98%;"/></td>
  57 + </tr>
  58 + <tr>
  59 + <td style="width:75px;text-align: right;padding-top: 13px;">Password:</td>
  60 + <td><input type="password" name="PASSWORD" id="PASSWORD" value="${pd.PASSWORD}" maxlength="255" placeholder="Enter the Password" title="Password" style="width:98%;"/></td>
  61 + </tr>
  62 + <tr>
  63 + <td style="width:75px;text-align: right;padding-top: 13px;">Sex:</td>
  64 + <td>
  65 + <select class="chosen-select form-control" name="SEX" id="SEX" data-placeholder="Sex">
  66 + <option value="1" <c:if test="${pd.SEX==1}">selected="true"</c:if>>male</option>
  67 + <option value="2" <c:if test="${pd.SEX==2}">selected="true"</c:if>>female</option>
  68 + </select>
  69 + </td>
  70 + <%-- <input type="number" name="SEX" id="SEX" value="${pd.SEX}" maxlength="32" placeholder="这里输入性别" title="性别" style="width:98%;"/></td> --%>
  71 + </tr>
  72 + <%-- <tr>
  73 + <td style="width:75px;text-align: right;padding-top: 13px;">科目列表:</td>
  74 + <td><input type="text" name="SUBJECT_IDS" id="SUBJECT_IDS" value="${pd.SUBJECT_IDS}" maxlength="255" placeholder="这里输入科目列表" title="科目列表" style="width:98%;"/></td>
  75 + </tr> --%>
  76 + <tr>
  77 + <td style="width:75px;text-align: right;padding-top: 13px;">Teacher card number:</td>
  78 + <td><input type="text" name="KEYPAD_ID" id="KEYPAD_ID" value="${pd.KEYPAD_ID}" maxlength="255" placeholder="Enter the Teacher card number" title="教师卡编号" style="width:98%;"/></td>
  79 + </tr>
  80 + <tr>
  81 + <td style="width:75px;text-align: right;padding-top: 13px;">subjects:</td>
  82 + <td>
  83 + <select class="chosen-select form-control" name="SUBJECT_IDS" id="SUBJECT_IDS" data-placeholder="subjects">
  84 + <c:forEach var="item" items="${subjects}">
  85 + <option value="${item.ID}" <c:if test="${pd.SUBJECT_IDS==item.ID}">selected="true"</c:if>>${item.CNAME}</option>
  86 + </c:forEach>
  87 + </select>
  88 + </td>
  89 + </tr>
  90 + <tr>
  91 + <td style="text-align: center;" colspan="10">
  92 + <a class="btn btn-mini btn-primary" onclick="save();">Save</a>
  93 + <a class="btn btn-mini btn-danger" onclick="window.top.modal.remove();">Cancel</a>
  94 + </td>
  95 + </tr>
  96 + </table>
  97 + </div>
  98 + <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">Submitting...</h4></div>
  99 + </form>
  100 + </div>
  101 + <!-- /.col -->
  102 + </div>
  103 + <!-- /.row -->
  104 + </div>
  105 + <!-- /.page-content -->
  106 + </div>
  107 + </div>
  108 + <!-- /.main-content -->
  109 +</div>
  110 +<!-- /.main-container -->
  111 +
  112 +
  113 + <!-- 页面底部js¨ -->
  114 + <%@ include file="../../system/index/foot.jsp"%>
  115 + <!-- 下拉框 -->
  116 + <script src="static/ace/js/chosen.jquery.js"></script>
  117 + <!-- 日期框 -->
  118 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  119 + <!--提示框-->
  120 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  121 + <script type="text/javascript">
  122 + $(top.hangge());
  123 + //保存
  124 + function save(){
  125 + if($("#SCHOOL_ID").val()==""){
  126 + $("#SCHOOL_ID").tips({
  127 + side:3,
  128 + msg:'Please enter the school',
  129 + bg:'#AE81FF',
  130 + time:2
  131 + });
  132 + $("#SCHOOL_ID").focus();
  133 + return false;
  134 + }
  135 + if($("#NAME").val()==""){
  136 + $("#NAME").tips({
  137 + side:3,
  138 + msg:'Please enter the Name',
  139 + bg:'#AE81FF',
  140 + time:2
  141 + });
  142 + $("#NAME").focus();
  143 + return false;
  144 + }
  145 + if($("#PHONE").val()==""){
  146 + $("#PHONE").tips({
  147 + side:3,
  148 + msg:'Please enter the phone number',
  149 + bg:'#AE81FF',
  150 + time:2
  151 + });
  152 + $("#PHONE").focus();
  153 + return false;
  154 + }
  155 + if($("#SEAT_PHONE").val()==""){
  156 + $("#SEAT_PHONE").tips({
  157 + side:3,
  158 + msg:'Please enter the tel number',
  159 + bg:'#AE81FF',
  160 + time:2
  161 + });
  162 + $("#SEAT_PHONE").focus();
  163 + return false;
  164 + }
  165 + if($("#CARD_NO").val()==""){
  166 + $("#CARD_NO").tips({
  167 + side:3,
  168 + msg:'Please enter the id no.',
  169 + bg:'#AE81FF',
  170 + time:2
  171 + });
  172 + $("#CARD_NO").focus();
  173 + return false;
  174 + }
  175 + if($("#ACCOUT").val()==""){
  176 + $("#ACCOUT").tips({
  177 + side:3,
  178 + msg:'Please enter the account',
  179 + bg:'#AE81FF',
  180 + time:2
  181 + });
  182 + $("#ACCOUT").focus();
  183 + return false;
  184 + }
  185 + if($("#PASSWORD").val()==""){
  186 + $("#PASSWORD").tips({
  187 + side:3,
  188 + msg:'Please enter the password',
  189 + bg:'#AE81FF',
  190 + time:2
  191 + });
  192 + $("#PASSWORD").focus();
  193 + return false;
  194 + }
  195 + if($("#SEX").val()==""){
  196 + $("#SEX").tips({
  197 + side:3,
  198 + msg:'Please enter the sex',
  199 + bg:'#AE81FF',
  200 + time:2
  201 + });
  202 + $("#SEX").focus();
  203 + return false;
  204 + }
  205 + if($("#KEYPAD_ID").val()==""){
  206 + $("#KEYPAD_ID").tips({
  207 + side:3,
  208 + msg:'Please enter the teacher card number',
  209 + bg:'#AE81FF',
  210 + time:2
  211 + });
  212 + $("#KEYPAD_ID").focus();
  213 + return false;
  214 + }
  215 + $("#Form").submit();
  216 + $("#zhongxin").hide();
  217 + $("#zhongxin2").show();
  218 + }
  219 +
  220 + $(function() {
  221 + //日期框
  222 + $('.date-picker').datepicker({autoclose: true,todayHighlight: true});
  223 + });
  224 + </script>
  225 +</body>
  226 +</html>
0 227 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/sunvote/teacher/en_teacher_list2.jsp 0 → 100644
  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="myelfun" uri="/WEB-INF/tld/elfun.tld"%>
  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/chosen.css" />
  18 +<!-- jsp文件头和头部 -->
  19 +
  20 +<!-- 日期框 -->
  21 +<link rel="stylesheet" href="static/ace/css/datepicker.css" />
  22 +<link
  23 + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
  24 + rel="stylesheet">
  25 +<link href="static/css/teach.css" rel="stylesheet">
  26 +</head>
  27 +<body class="no-skin">
  28 +
  29 + <form action="teacher/listcs.do" method="post" name="Form" id="Form">
  30 + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/>
  31 + <div class="head_box">
  32 + <div class="box_header">
  33 + <div class="head_box_l">
  34 + <p>
  35 + <span class="right_b"></span>Teacher Management
  36 + </p>
  37 + </div>
  38 + <div class="head_box_r"></div>
  39 + <div class="clear"></div>
  40 + </div>
  41 + <div style="padding:0 5%;background:#fff;">
  42 + <table class="table table-striped">
  43 + <col style="width: 8%" />
  44 + <col style="width: 10%" />
  45 + <col style="width: 10%" />
  46 + <col style="width: 10%" />
  47 + <col style="width: 15%" />
  48 + <col style="width: 15%" />
  49 + <col style="width: 7%" />
  50 + <col style="width: 8%" />
  51 + <col style="width: 7%" />
  52 + <col style="width: 9%" />
  53 + <thead>
  54 + <tr>
  55 + <th><input type="checkbox" value="0" name='ids' id="ids" />Number</th>
  56 + <th class="center">Name</th>
  57 + <th class="center">Phone number</th>
  58 + <th class="center">Tel number</th>
  59 + <th class="center">Id no.</th>
  60 + <th class="center">Account</th>
  61 + <th class="center">Sex</th>
  62 + <th class="center">Teacher card number</th>
  63 + <th class="center">subjects</th>
  64 + <th class="center">Operation</th>
  65 + </tr>
  66 + </thead>
  67 + </table>
  68 + </div>
  69 + </div>
  70 + <div class="table_box">
  71 + <table class="table table-striped">
  72 + <col style="width: 8%" />
  73 + <col style="width: 10%" />
  74 + <col style="width: 10%" />
  75 + <col style="width: 10%" />
  76 + <col style="width: 15%" />
  77 + <col style="width: 15%" />
  78 + <col style="width: 7%" />
  79 + <col style="width: 8%" />
  80 + <col style="width: 7%" />
  81 + <col style="width: 9%" />
  82 + <tbody>
  83 + <!-- 开始循环 -->
  84 + <c:choose>
  85 + <c:when test="${not empty varList}">
  86 + <c:forEach items="${varList}" var="var" varStatus="vs">
  87 + <tr>
  88 + <td><input type="checkbox" name='ids' id="ids" value="${var.ID}" />${vs.index+1}</td>
  89 + <td class='center'>${var.NAME}</td>
  90 + <td class='center'>${var.PHONE}</td>
  91 + <td class='center'>${var.SEAT_PHONE}</td>
  92 + <td class='center'>${var.CARD_NO}</td>
  93 + <td class='center'>${var.ACCOUT}</td>
  94 + <td class='center'>${var.SEX == 1? "male":"female"}</td>
  95 + <td class='center'>${var.KEYPAD_ID}</td>
  96 + <td class='center'>${myelfun:findSubjectCName(var.SUBJECT_IDS)}</td>
  97 + <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>
  98 +
  99 + </tr>
  100 +
  101 + </c:forEach>
  102 + </c:when>
  103 + <c:otherwise>
  104 + <tr class="main_info">
  105 + <td colspan="100" class="center">There is no data</td>
  106 + </tr>
  107 + </c:otherwise>
  108 + </c:choose>
  109 + </tbody>
  110 + </table>
  111 + <div class="footer" style="width:auto">
  112 + <div class="creat">
  113 + <input type="button" onclick="add();" value="Add the Teacher" />
  114 + </div>
  115 + <div class="removeAll">
  116 + <input type="button" onclick="del()" value="Remove" />
  117 + </div>
  118 + <div class="page_box">
  119 + <div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div>
  120 + </div>
  121 + </div>
  122 + </div>
  123 + </form>
  124 +
  125 + <div class="modal fade title_time" tabindex="-1" role="dialog">
  126 + <div class="modal-dialog" role="document" style="z-index:1400">
  127 + <div class="modal-content">
  128 + <div class="modal-header">
  129 + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  130 + <h4 class="modal-title">Add the Teacher</h4>
  131 + </div>
  132 + <div class="modal-body">
  133 + <div class="form-group">
  134 + <label for="enter_title" class="col-sm-4 control-label">Name</label>
  135 + <div class="col-sm-6">
  136 + <input type="text" class="form-control" id="enter_title" placeholder="Enter the Name" maxlength="100" minlength="1">
  137 + </div>
  138 + <div class="clearfix"></div>
  139 + </div>
  140 +
  141 + <div class="form-group">
  142 + <label for="enter_time" class="col-sm-4 control-label">Phone Number</label>
  143 + <div class="col-sm-6">
  144 + <input type="text" class="form-control" id="enter_time" placeholder="Enter the Phone Number" maxlength="11" oninput="value=value.replace(/[^\d]/g,'')" >
  145 + </div>
  146 + <div class="clearfix"></div>
  147 + </div>
  148 + <div class="form-group">
  149 + <label for="enter_time" class="col-sm-4 control-label">Tel Number</label>
  150 + <div class="col-sm-6">
  151 + <input type="text" class="form-control" id="enter_time" placeholder="Enter the Number" maxlength="20" oninput="value=value.replace(/[^\d]/g,'')">
  152 + </div>
  153 + <div class="clearfix"></div>
  154 + </div>
  155 + <div class="form-group">
  156 + <label for="enter_time" class="col-sm-4 control-label">Id no.</label>
  157 + <div class="col-sm-6">
  158 + <input type="text" class="form-control" id="enter_time" placeholder="Enter the Id no." />
  159 + </div>
  160 + <div class="clearfix"></div>
  161 + </div>
  162 + <div class="form-group">
  163 + <label for="enter_time" class="col-sm-4 control-label">Account</label>
  164 + <div class="col-sm-6">
  165 + <input type="text" class="form-control" id="enter_time" placeholder="Enter the Account" />
  166 + </div>
  167 + <div class="clearfix"></div>
  168 + </div>
  169 + <div class="form-group">
  170 + <label for="enter_time" class="col-sm-4 control-label">Sex</label>
  171 + <div class="col-sm-6">
  172 + <select class="chosen-select form-control" name="TEMPLATE_ID" id="TEMPLATE_ID" data-placeholder="Sex">
  173 + <option value="1">male</option>
  174 + <option value="2">female</option>
  175 + </select>
  176 + </div>
  177 + <div class="clearfix"></div>
  178 + </div>
  179 + <div class="form-group">
  180 + <label for="enter_time" class="col-sm-4 control-label">Teacher card number</label>
  181 + <div class="col-sm-6">
  182 + <input type="text" class="form-control" id="enter_time" placeholder="Enter the Teacher card number" />
  183 + </div>
  184 + <div class="clearfix"></div>
  185 + </div>
  186 +
  187 + </div>
  188 + <div class="modal-footer">
  189 + <button type="button" class="btn btn-primary" id="time_submit" onclick="save()">Confirm</button>
  190 + <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
  191 + </div>
  192 + </div><!-- /.modal-content -->
  193 + </div><!-- /.modal-dialog -->
  194 + </div><!-- /.modal -->
  195 +
  196 + <!-- basic scripts -->
  197 + <!-- 页面底部js¨ -->
  198 + <%@ include file="../../system/index/foot.jsp"%>
  199 + <!-- 删除时确认窗口 -->
  200 + <script src="static/ace/js/bootbox.js"></script>
  201 + <!-- ace scripts -->
  202 + <script src="static/ace/js/ace/ace.js"></script>
  203 + <!-- 下拉框 -->
  204 + <script src="static/ace/js/chosen.jquery.js"></script>
  205 + <!-- 日期框 -->
  206 + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  207 + <!--提示框-->
  208 + <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  209 + <script type="text/javascript">
  210 + $(document).ready(function() {
  211 + window.top.loading.remove();
  212 + });
  213 +
  214 + //检索
  215 + function tosearch(){
  216 + $("#Form").submit();
  217 + }
  218 +
  219 + function edit(Id){
  220 + window.top.modal.init({
  221 + 'title':'Modify the information',
  222 + 'url':'<%=basePath%>teacher/goEdit2.do?school_id=${pd.SCHOOL_ID}&ID='+Id,
  223 + func:function() {
  224 + tosearch();
  225 + }
  226 + });
  227 + window.top.modal.show();
  228 + }
  229 +
  230 + function add(){
  231 + window.top.modal.init({
  232 + 'title':'Add the Teacher',
  233 + 'url':'<%=basePath%>teacher/goAdd2.do?school_id=${pd.SCHOOL_ID}',
  234 + func:function() {
  235 + tosearch();
  236 + }
  237 + });
  238 + window.top.modal.show();
  239 + }
  240 +
  241 + function save(){
  242 +
  243 + }
  244 +
  245 + function del(Id){
  246 + window.top.remove.init({"title":"Remove","func":function(success){
  247 + if(success){
  248 + var all = typeof Id == "undefined" ? true : false;
  249 + var str = Id;
  250 + if(all){
  251 + str = '' ;
  252 + for(var i=0;i < document.getElementsByName('ids').length;i++){
  253 + if(document.getElementsByName('ids')[i].checked){
  254 + if(str=='') str += document.getElementsByName('ids')[i].value;
  255 + else str += ',' + document.getElementsByName('ids')[i].value;
  256 + }
  257 + }
  258 + }
  259 +
  260 + $.ajax({
  261 + type: "POST",
  262 + url: '<%=basePath%>teacher/deleteAll.do?tm='+new Date().getTime(),
  263 + data: {DATA_IDS:str},
  264 + dataType:'json',
  265 + //beforeSend: validateData,
  266 + cache: false,
  267 + success: function(data){
  268 + tosearch();
  269 + }
  270 + });
  271 +
  272 + }
  273 + else{
  274 + console.log("false");
  275 + }
  276 + }});
  277 + window.top.remove.show();
  278 + }
  279 + </script>
  280 +
  281 +
  282 +</body>
  283 +</html>
0 284 \ No newline at end of file
... ...
WebRoot/WEB-INF/jsp/system/index/en_login.jsp
... ... @@ -17,23 +17,27 @@
17 17 <title>SunVote-Education Management System</title>
18 18  
19 19 <!-- Bootstrap -->
20   -<link
21   - href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
22   - rel="stylesheet">
  20 +<link href="static/css/bootstrap.min.css" rel="stylesheet">
23 21 <link href="static/login/style_login.css" rel="stylesheet">
  22 +<link href="static/css/mb_style.css" rel="stylesheet">
24 23  
25   -<script src="static/js/jquery-1.7.2.js"></script>
  24 +<script src="static/js/jquery-2.1.4.min.js"></script>
  25 +<script type="text/javascript" src="static/js/jquery.cookie.js"></script>
26 26 <script src="static/login/js/jquery.easing.1.3.js"></script>
27 27 <script type="text/javascript" src="static/js/jQuery.md5.js"></script>
28 28 <script type="text/javascript" src="static/js/jquery.tips.js"></script>
29   -<script type="text/javascript" src="static/js/jquery.cookie.js"></script>
30 29 <script type="text/javascript" src="static/js/lang.js"></script>
  30 +<script type="text/javascript" src="static/js/remove.js"></script>
31 31 <script type="text/javascript" >
32 32 if(lang() != 'en'){
33 33  
34 34 }
35 35 </script>
36 36 <style type="text/css">
  37 +html,body{
  38 + padding:0;
  39 + margin:0;
  40 +}
37 41 .div_foot {
38 42 height: 30px;
39 43 line-height: 35px;
... ... @@ -45,6 +49,15 @@
45 49 font-size: 14px;
46 50 letter-spacing: 1px;
47 51 }
  52 +.clear_history{
  53 + text-align:right;
  54 + line-height:30px;
  55 + margin: 0;
  56 +}
  57 +.clear_history a{
  58 + text-decoration: underline;
  59 + margin-right: 15px;
  60 +}
48 61 </style>
49 62  
50 63 <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
... ... @@ -61,12 +74,34 @@
61 74 </div>
62 75 <div class="content_b">
63 76 <div class="form_box">
64   - <form action="" method="post" name="loginbox" id="loginbox">
65   - <input type="text" name="loginname" id="loginname" value=""
66   - placeholder="Username" /> <input type="password" name="password"
67   - id="password" placeholder="Password" value="" /> <a href="#"
68   - onclick="severCheck();" class="login_btn">Login</a>
69   - </form>
  77 + <div id="loginbox" >
  78 + <div class="name_box">
  79 +
  80 + <input type="text" id="loginname" value="" placeholder="Username" autoComplete="off"/>
  81 + <svg t="1554790328236" class="icon_down" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2161" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M863.321996 251.674996 194.108395 251.674996 528.677333 621.186771Z" p-id="2162" fill="#333333"></path></svg>
  82 + </div>
  83 + <div class="psw_box">
  84 + <input type="text" id="password" placeholder="Password" value="" autoComplete="off"/>
  85 + <div class="rember" style="width:50%;float:left;text-align:left;margin-top:10px;display:inline-block;line-height:34px;">
  86 + <input type="checkbox" id="rem_flag"/>
  87 + <span>记住密码</span>
  88 + </div>
  89 + <div class="language" style="display:inline-block;width:50%;margin-top:10px;text-align:right;">
  90 + <select name="language" id="language" style="line-height:34px;height:34px;width:120px;">
  91 + <option value="en">English</option>
  92 + <option value="zh">中文</option>
  93 + </select>
  94 + </div>
  95 + </div>
  96 + <a href="#" onclick="severCheck();" class="login_btn">Login</a>
  97 +
  98 + <div class="history">
  99 + <ul>
  100 +
  101 + </ul>
  102 + <p class="clear_history"><a onclick="clear_history()">Clear</a></p>
  103 + </div>
  104 + </div>
70 105  
71 106 </div>
72 107 </div>
... ... @@ -78,13 +113,69 @@
78 113 if(window.top != window.self){
79 114 window.top.location.href = "<%=basePath%>";
80 115 }
  116 +
  117 + document.onkeydown = function (e) { // 回车提交表单
  118 + // 兼容FF和IE和Opera
  119 + var theEvent = window.event || e;
  120 + var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
  121 + if (code == 13) {
  122 + severCheck();
  123 + }
  124 + }
  125 +
  126 + $(".icon_down").click(function(){
  127 + $("#loginname").focus();
  128 +
  129 + });
  130 + $("#loginname").focus(function(e){
  131 +
  132 + $("#password").attr("type","password");
  133 + var _html="";
  134 + var u_list=JSON.parse(storage.getItem('userNameList'));
  135 + console.log(u_list);
  136 + if((u_list!=null)||(u_list.length>0)){
  137 + $("#loginname").blur(function(){
  138 + $(".history").hide();
  139 + })
  140 + for(var i=0;i<u_list.length;i++){
  141 + _html+='<li>'+u_list[i]+'</li>';
  142 + }
  143 + $(".history ul").html(_html);
  144 + $(".history").show();
  145 + }
  146 +
  147 + });
  148 +
  149 + $('.history').hover(function(){ //鼠标悬停下拉框时,解绑blur事件
  150 + $("#loginname").unbind("blur");
  151 + },function(){
  152 + $("#loginname").blur(function(){ //鼠标移出下拉框时,添加blur事件
  153 + $(".history").hide();
  154 + })
  155 + });
  156 +
  157 + $(document).on('click','.history li',function(){
  158 + var p_list=JSON.parse(storage.getItem('passWordList'));
  159 + $("#loginname").val($(this).text());
  160 + $("#password").val(p_list[$(this).index()]);
  161 + $(".history").hide();
  162 + })
  163 +
  164 + //更换语言
  165 + $("#language").change(function(){
  166 + $.cookie("lang",$("#language").val());
  167 + window.location.reload();
  168 + })
  169 + console.log($.cookie("lang"));
  170 +
  171 +
81 172 //客户端校验
82 173 function check() {
83 174  
84 175 if ($("#loginname").val() == "") {
85 176 $("#loginname").tips({
86 177 side : 2,
87   - msg : 'User name cannot be empty',
  178 + msg : '用户名不得为空',
88 179 bg : '#AE81FF',
89 180 time : 3
90 181 });
... ... @@ -97,7 +188,7 @@
97 188 if ($("#password").val() == "") {
98 189 $("#password").tips({
99 190 side : 2,
100   - msg : 'Password cannot be empty',
  191 + msg : '密码不得为空',
101 192 bg : '#AE81FF',
102 193 time : 3
103 194 });
... ... @@ -108,13 +199,15 @@
108 199  
109 200 $("#loginbox").tips({
110 201 side : 1,
111   - msg : 'Logining, please wait...',
  202 + msg : '正在登录 , 请稍后 ...',
112 203 bg : '#68B500',
113 204 time : 10
114 205 });
115 206  
116 207 return true;
117 208 }
  209 +
  210 +
118 211  
119 212 //服务器校验
120 213 function severCheck(){
... ... @@ -130,7 +223,8 @@
130 223 cache: false,
131 224 success: function(data){
132 225 if("success" == data.result){
133   - saveCookie();
  226 + if($("#rem_flag").prop("checked")) //如果选择了记住密码
  227 + saveCookie();
134 228 if(data.teacher != null){
135 229 window.location.href="main/teacher";
136 230 }else if(data.admin != null){
... ... @@ -141,7 +235,7 @@
141 235 }else if("usererror" == data.result){
142 236 $("#loginname").tips({
143 237 side : 1,
144   - msg : "Incorrect user name or password",
  238 + msg : "用户名或密码有误",
145 239 bg : '#FF5080',
146 240 time : 15
147 241 });
... ... @@ -150,7 +244,7 @@
150 244 }else if("codeerror" == data.result){
151 245 $("#code").tips({
152 246 side : 1,
153   - msg : "Incorrect captcha input",
  247 + msg : "验证码输入有误",
154 248 bg : '#FF5080',
155 249 time : 15
156 250 });
... ... @@ -159,7 +253,7 @@
159 253 }else{
160 254 $("#loginname").tips({
161 255 side : 1,
162   - msg : "Missing parameters",
  256 + msg : "缺少参数",
163 257 bg : '#FF5080',
164 258 time : 15
165 259 });
... ... @@ -171,31 +265,77 @@
171 265 }
172 266 }
173 267  
  268 + var storage=window.localStorage;
  269 + var userNameList=[];
  270 + var passWordList=[];
  271 +
  272 + //console.log(JSON.parse(storage.getItem('userNameList')));
  273 +
  274 + //清除历史记录
  275 + function clear_history(){
  276 + window.top.remove.init({"title":"确定清除历史记录吗?","func":function(success){
  277 + if(success){
  278 + storage.clear();
  279 + $(".history").hide();
  280 + }else{
  281 + console.log("false");
  282 + }
  283 + }});
  284 + window.top.remove.show();
  285 + $(".mb_head .close img").css("display","none");
  286 + }
  287 + //保存登录记录
174 288 function saveCookie() {
175   - if ($("#saveid").attr("checked")) {
176   - $.cookie('loginname', $("#loginname").val(), {
  289 + if(!window.localStorage){
  290 + alert("浏览器不支持localstorage");
  291 +
  292 + }else{
  293 + //主逻辑业务
  294 +
  295 + userNameList=JSON.parse(storage.getItem('userNameList'));
  296 + passWordList=JSON.parse(storage.getItem('passWordList'));
  297 +
  298 +
  299 + if(userNameList==null){
  300 + var userNameList=[];
  301 + var passWordList=[];
  302 + userNameList.push($("#loginname").val());
  303 + passWordList.push($("#password").val());
  304 +
  305 + storage.setItem('userNameList',JSON.stringify(userNameList));
  306 + storage.setItem('passWordList',JSON.stringify(passWordList));
  307 + }else{
  308 +
  309 + if(userNameList.indexOf($("#loginname").val())>-1){
  310 + return false;
  311 + }else{
  312 + userNameList.push($("#loginname").val());
  313 + passWordList.push($("#password").val());
  314 + storage.setItem('userNameList',JSON.stringify(userNameList));
  315 + storage.setItem('passWordList',JSON.stringify(passWordList));
  316 + }
  317 + }
  318 +
  319 +
  320 +
  321 + //console.log(userNameList);
  322 +
  323 +
  324 +
  325 + }
  326 +
  327 + /*$.cookie('loginname', $("#loginname").val(), {
177 328 expires : 7
178 329 });
179 330 $.cookie('password', $("#password").val(), {
180 331 expires : 7
181   - });
182   - }
  332 + });*/
  333 +
183 334 }
184 335 </script>
185   - <script type="text/javascript"
186   - src="static/login/js/jquery-1.5.1.min.js"></script>
187   - <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
188   - <script
189   - src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
190   - <script src="static/login/js/bootstrap.min.js"></script>
191   - <script src="static/js/jquery-1.7.2.js"></script>
192   - <script src="static/login/js/jquery.easing.1.3.js"></script>
193   - <script src="static/login/js/jquery.mobile.customized.min.js"></script>
194   - <script src="static/login/js/camera.min.js"></script>
195   - <script src="static/login/js/templatemo_script.js"></script>
196   - <script type="text/javascript" src="static/js/jQuery.md5.js"></script>
197   - <script type="text/javascript" src="static/js/jquery.tips.js"></script>
198   - <script type="text/javascript" src="static/js/jquery.cookie.js"></script>
  336 +
  337 +
  338 +
199 339  
200 340 <!-- 软键盘控件start -->
201 341 <script type="text/javascript"
... ...
WebRoot/WEB-INF/jsp/system/index/login.jsp
... ... @@ -21,7 +21,8 @@
21 21 <link href="static/login/style_login.css" rel="stylesheet">
22 22 <link href="static/css/mb_style.css" rel="stylesheet">
23 23  
24   -<script src="static/js/jquery-1.7.2.js"></script>
  24 +<script src="static/js/jquery-2.1.4.min.js"></script>
  25 +<script type="text/javascript" src="static/js/jquery.cookie.js"></script>
25 26 <script src="static/login/js/jquery.easing.1.3.js"></script>
26 27 <script type="text/javascript" src="static/js/jQuery.md5.js"></script>
27 28 <script type="text/javascript" src="static/js/jquery.tips.js"></script>
... ... @@ -75,15 +76,21 @@ body{
75 76 <div id="loginbox" >
76 77 <div class="name_box">
77 78  
78   - <input type="text" name="loginname" id="loginname" value="" placeholder="用户名" autoComplete="off"/>
  79 + <input type="text" id="loginname" value="" placeholder="用户名" autoComplete="off"/>
79 80 <svg t="1554790328236" class="icon_down" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2161" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M863.321996 251.674996 194.108395 251.674996 528.677333 621.186771Z" p-id="2162" fill="#333333"></path></svg>
80 81 </div>
81 82 <div class="psw_box">
82   - <input type="password" name="password" id="password" placeholder="密 码" value="" autoComplete="off"/>
83   - <div class="rember">
  83 + <input type="text" id="password" placeholder="密 码" value="" autoComplete="off"/>
  84 + <div class="rember" style="width:50%;float:left;text-align:left;margin-top:10px;display:inline-block;line-height:34px;">
84 85 <input type="checkbox" id="rem_flag"/>
85 86 <span>记住密码</span>
86 87 </div>
  88 + <div class="language" style="display:inline-block;width:50%;margin-top:10px;text-align:right;">
  89 + <select name="language" id="language" style="line-height:34px;height:34px;width:120px;">
  90 + <option value="zh">中文</option>
  91 + <option value="en">English</option>
  92 + </select>
  93 + </div>
87 94 </div>
88 95 <a href="#" onclick="severCheck();" class="login_btn">登录</a>
89 96  
... ... @@ -120,6 +127,8 @@ body{
120 127  
121 128 });
122 129 $("#loginname").focus(function(e){
  130 +
  131 + $("#password").attr("type","password");
123 132 var _html="";
124 133 var u_list=JSON.parse(storage.getItem('userNameList'));
125 134 console.log(u_list);
... ... @@ -151,7 +160,12 @@ body{
151 160 $(".history").hide();
152 161 })
153 162  
154   -
  163 + //更换语言
  164 + $("#language").change(function(){
  165 + $.cookie("lang",$("#language").val());
  166 + window.location.reload();
  167 + })
  168 + console.log($.cookie("lang"));
155 169  
156 170  
157 171 //客户端校验
... ...
WebRoot/static/css/en_teach.css 0 → 100644
  1 +html,body{width:100%;height:100%;}
  2 +table{font-size:16px;}
  3 +.clear{clear:both;}
  4 +.right{width:12px;height:12px;display:inline-block;background:url(../images/right.png) no-repeat;background-size:100%;}
  5 +.right_b{width:20px;height:20px;margin-right:20px;display:inline-block;background:url(../images/right_b.png) no-repeat;background-size:100%;}
  6 +.down{width:12px;height:12px;display:inline-block;background:url(../images/down.png) no-repeat;background-size:100%;}
  7 +.jiao{float:right;margin-top:32.5px;margin-right:10%;}
  8 +
  9 +.pagination{border-radius:0;float:left;}
  10 +.pagination>li>a, .pagination>li>span{color:#34c99d;}
  11 +.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover, .pagination>.active>span, .pagination>.active>span:focus, .pagination>.active>span:hover{
  12 + background-color:#6fd9bb;
  13 + border-color:#6fd9bb;
  14 +}
  15 +.pagination>li:first-child>a, .pagination>li:first-child>span{border-radius:0;}
  16 +.pagination>li:last-child>a, .pagination>li:last-child>span{border-radius:0;}
  17 +input[type="checkbox"]{margin-right:10px;}
  18 +
  19 +.header{width:100%;background:#0bb8b9;box-sizing:border-box;padding:20px 30px;position:fixed;top:0;}
  20 +.header .logo{float:left;}
  21 +.header .out{float:right;font-size:18px;color:#fff;}
  22 +.header .out a{color:#fff;text-decoration:none;}
  23 +.header .out img{width:18px;margin-right:15px;}
  24 +.content{width:100%;height:100%;box-sizing:border-box;padding-top:66px;}
  25 +.content .content_l{width:18%;float:left;height:100%;background:#13707b;overflow-y:auto;}
  26 +.content .content_l .info_tab{padding:10% 0;border-bottom:1px solid #80afb4;}
  27 +.content .content_l .head_pic{width:88px;height:88px;border-radius:44px;overflow:hidden;float:left;margin-left:2%;}
  28 +.content .content_l .name{margin-left:calc(88px + 10%);}
  29 +.content .content_l .name p{width:100%;color:#fff;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;}
  30 +.content .content_l .name p:first-child{font-size:14px;}
  31 +.content .content_l .name p:nth-child(2){font-size:20px;}
  32 +.content .content_l .name p:nth-child(3){font-size:14px;}
  33 +.content .content_l .tab1{border-bottom:1px solid #80afb4;cursor:pointer}
  34 +.content .content_l .tab1 p{width:90%;height:77px;line-height:77px;margin-bottom:0;font-size:18px;color:#fff;padding-left:5%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  35 +.content .content_l .tab1 ul{margin-bottom:0;padding:0;font-size:18px;line-height:64px;display:none;}
  36 +.content .content_l .tab1 ul li{list-style:none;color:#fff;cursor:pointer;}
  37 +.menu_1 li{background:#1b535b;border-bottom: 1px solid #80afb4;}
  38 +.menu_2 li{background:#333333;border-bottom: 1px dashed #80afb4;}
  39 +.content .content_l .tab1 ul li:last-child{border:0;}
  40 +.content .content_l .tab1 ul li p{padding-left:10%;font-size:14px;}
  41 +.content .content_r{margin-left:18%;height:100%;overflow-y:hidden;}
  42 +
  43 +
  44 + .head_box{width:100%;height:auto;position:fixed;top:0;}
  45 + .box_header{padding:30px 5%;background:#f5f5f5;}
  46 + .head_box_l{float:left;font-size:30px;}
  47 + .head_box .table{padding:0px 5%;margin-bottom:0;}
  48 + .head_box_l p{color:#106666;margin-bottom:0;}
  49 + .head_box_r{float:right;}
  50 + .head_box_r input{padding-left:10px;}
  51 + .head_box_r img{width:30px;margin-left:10px;}
  52 + .table_box{padding:5%;padding-top:143px;}
  53 + .table_box input[name="choose"]{vertical-align:top;margin-right:15px;}
  54 + .table_box img{width:24px;}
  55 + .footer .creat,.content .content_r .footer .removeAll {float:left;}
  56 + .footer .creat input{background:#3bc2d6;outline-style:none;text-decoration:none;border:none;color:#fff;padding:15px 20px;margin-right:20px;font-size:18px;}
  57 + .footer .removeAll input{background:#f29c9f;outline-style:none;text-decoration:none;border:none;margin-left:15px;color:#fff;padding:15px 20px;font-size:18px;}
  58 + .footer .page_box{float:right;}
  59 +
  60 +
  61 +.enter{padding:0 !important;}
  62 +.jump_btn{background:#74c4a2 !important;color:#fff !important;border-color:#74c4a2 !important;}
  63 +.pagination li input{display: block;border: 0;width: 3em;height:32px;outline-style: none;}
... ...
src/com/fh/controller/base/BaseController.java
1 1 package com.fh.controller.base;
2 2  
3   -
4 3 import javax.servlet.http.Cookie;
5 4 import javax.servlet.http.HttpServletRequest;
6 5  
... ... @@ -21,135 +20,160 @@ import com.fh.util.UuidUtil;
21 20 * 修改时间:2015、12、11
22 21 */
23 22 public class BaseController {
24   -
  23 +
25 24 protected Logger logger = Logger.getLogger(this.getClass());
26 25  
27 26 private static final long serialVersionUID = 6357869213649815390L;
28   -
29   - /** new PageData对象
  27 +
  28 + /**
  29 + * new PageData对象
  30 + *
30 31 * @return
31 32 */
32   - public PageData getPageData(){
  33 + public PageData getPageData() {
33 34 return new PageData(this.getRequest());
34 35 }
35   -
36   - /**得到ModelAndView
  36 +
  37 + /**
  38 + * 得到ModelAndView
  39 + *
37 40 * @return
38 41 */
39   - public ModelAndView getModelAndView(){
  42 + public ModelAndView getModelAndView() {
40 43 return new ModelAndView();
41 44 }
42   -
43   - /**得到request对象
  45 +
  46 + /**
  47 + * 得到request对象
  48 + *
44 49 * @return
45 50 */
46 51 public HttpServletRequest getRequest() {
47   - HttpServletRequest request = ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
  52 + HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder
  53 + .getRequestAttributes()).getRequest();
48 54 return request;
49 55 }
50 56  
51   - /**得到32位的uuid
  57 + /**
  58 + * 得到32位的uuid
  59 + *
52 60 * @return
53 61 */
54   - public String get32UUID(){
  62 + public String get32UUID() {
55 63 return UuidUtil.get32UUID();
56 64 }
57   -
58   - /**得到分页列表的信息
  65 +
  66 + /**
  67 + * 得到分页列表的信息
  68 + *
59 69 * @return
60 70 */
61   - public Page getPage(){
  71 + public Page getPage() {
62 72 return new Page();
63 73 }
64   -
65   - public static void logBefore(Logger logger, String interfaceName){
  74 +
  75 + public static void logBefore(Logger logger, String interfaceName) {
66 76 logger.info("");
67 77 logger.info("start");
68 78 logger.info(interfaceName);
69 79 }
70   -
71   - public static void logAfter(Logger logger){
  80 +
  81 + public static void logAfter(Logger logger) {
72 82 logger.info("end");
73 83 logger.info("");
74 84 }
75   -
76   -
77   - public String getUsername(){
  85 +
  86 + public String getUsername() {
78 87 Session session = Jurisdiction.getSession();
79   - User user = (User)session.getAttribute(Const.SESSION_USER);
80   - if(user != null){
  88 + User user = (User) session.getAttribute(Const.SESSION_USER);
  89 + if (user != null) {
81 90 return user.getUSERNAME();
82 91 }
83 92 return "ERROR";
84 93 }
85   -
86   - public String getUserID(){
  94 +
  95 + public String getUserID() {
87 96 Session session = Jurisdiction.getSession();
88   - User user = (User)session.getAttribute(Const.SESSION_USER);
89   - if(user != null){
  97 + User user = (User) session.getAttribute(Const.SESSION_USER);
  98 + if (user != null) {
90 99 return user.getUSER_ID();
91 100 }
92 101 return "ERROR";
93 102 }
94   -
95   - public String getRole(){
  103 +
  104 + public String getRole() {
96 105 Session session = Jurisdiction.getSession();
97   - String role = (String)session.getAttribute(getUsername() + Const.ROLE_ID);
  106 + String role = (String) session.getAttribute(getUsername()
  107 + + Const.ROLE_ID);
98 108 return role;
99 109 }
100   -
101   - public String getTeacherID(){
  110 +
  111 + public String getTeacherID() {
102 112 Session session = Jurisdiction.getSession();
103   - User user = (User)session.getAttribute(Const.SESSION_USER);
104   - if(user != null){
  113 + User user = (User) session.getAttribute(Const.SESSION_USER);
  114 + if (user != null) {
105 115 return user.getTeacherID();
106 116 }
107 117 return "ERROR";
108 118 }
109   -
110   -
111   - public String getSchoolID(){
  119 +
  120 + public String getSchoolID() {
112 121 Session session = Jurisdiction.getSession();
113   - String schoolName = (String)session.getAttribute(getUsername() + Const.SCHOOL_ID);
  122 + String schoolName = (String) session.getAttribute(getUsername()
  123 + + Const.SCHOOL_ID);
114 124 return schoolName;
115 125 }
116   - public String getSchoolName(){
  126 +
  127 + public String getSchoolName() {
117 128 Session session = Jurisdiction.getSession();
118   - String schoolName = (String)session.getAttribute(getUsername() + Const.SCHOOL_NAME);
  129 + String schoolName = (String) session.getAttribute(getUsername()
  130 + + Const.SCHOOL_NAME);
119 131 return schoolName;
120 132 }
121   - public String getGradeID(){
  133 +
  134 + public String getGradeID() {
122 135 Session session = Jurisdiction.getSession();
123   - String schoolName = (String)session.getAttribute(getUsername() + Const.GRADE_ID);
  136 + String schoolName = (String) session.getAttribute(getUsername()
  137 + + Const.GRADE_ID);
124 138 return schoolName;
125 139 }
126   - public String getGradeName(){
  140 +
  141 + public String getGradeName() {
127 142 Session session = Jurisdiction.getSession();
128   - String schoolName = (String)session.getAttribute(getUsername() + Const.GRADE_NAME);
  143 + String schoolName = (String) session.getAttribute(getUsername()
  144 + + Const.GRADE_NAME);
129 145 return schoolName;
130 146 }
131   - public String getSubjectId(){
  147 +
  148 + public String getSubjectId() {
132 149 Session session = Jurisdiction.getSession();
133   - String schoolName = (String)session.getAttribute(getUsername() + Const.SUBJECT_ID);
  150 + String schoolName = (String) session.getAttribute(getUsername()
  151 + + Const.SUBJECT_ID);
134 152 return schoolName;
135 153 }
136   - public String getSubjectName(){
  154 +
  155 + public String getSubjectName() {
137 156 Session session = Jurisdiction.getSession();
138   - String schoolName = (String)session.getAttribute(getUsername() + Const.SUBJECT_NAME);
  157 + String schoolName = (String) session.getAttribute(getUsername()
  158 + + Const.SUBJECT_NAME);
139 159 return schoolName;
140 160 }
141   - public String getClassId(){
  161 +
  162 + public String getClassId() {
142 163 Session session = Jurisdiction.getSession();
143   - String schoolName = (String)session.getAttribute(getUsername() + Const.CLASS_ID);
  164 + String schoolName = (String) session.getAttribute(getUsername()
  165 + + Const.CLASS_ID);
144 166 return schoolName;
145 167 }
146   - public String getClassName(){
  168 +
  169 + public String getClassName() {
147 170 Session session = Jurisdiction.getSession();
148   - String schoolName = (String)session.getAttribute(getUsername() + Const.CLASS_NAME);
  171 + String schoolName = (String) session.getAttribute(getUsername()
  172 + + Const.CLASS_NAME);
149 173 return schoolName;
150 174 }
151   -
152   - public String getCookieLanguage(){
  175 +
  176 + public String getCookieLanguage() {
153 177 Cookie[] cookies = getRequest().getCookies();
154 178 if (cookies != null) {
155 179 for (Cookie cookie : cookies) {
... ... @@ -160,22 +184,27 @@ public class BaseController {
160 184 }
161 185 return null;
162 186 }
163   -
  187 +
164 188 public String getLang() {
165 189 String lang = getCookieLanguage();
166   - if(lang == null){
  190 + if (lang == null) {
167 191 lang = getRequest().getLocale().getLanguage();
  192 +
  193 + Cookie cookies = new Cookie("lang", lang);
  194 +
  195 +
  196 +
168 197 }
  198 +
169 199 return lang;
170 200 }
171   -
172   - public boolean isChineseLanguageClient(){
  201 +
  202 + public boolean isChineseLanguageClient() {
173 203 String lang = getLang();
174   - if(lang != null && lang.length() >= 2){
175   - lang = lang.substring(0,2);
  204 + if (lang != null && lang.length() >= 2) {
  205 + lang = lang.substring(0, 2);
176 206 }
177 207 return "zh".equals(getLang());
178 208 }
179   -
180   -
  209 +
181 210 }
... ...
src/com/fh/controller/sunvote/coursemanagement/CourseManagementController.java
... ... @@ -193,8 +193,14 @@ public class CourseManagementController extends BaseController {
193 193 PageData pd = new PageData();
194 194 pd = this.getPageData();
195 195 page.setPd(pd);
  196 + page.setLangIsChina(isChineseLanguageClient());
196 197 List<PageData> varList = coursemanagementService.listCourse(page); //列出CourseManagement列表
197   - mv.setViewName("sunvote/coursemanagement/coursemanagement_list2");
  198 + if(isChineseLanguageClient()){
  199 + mv.setViewName("sunvote/coursemanagement/coursemanagement_list2");
  200 + }else{
  201 + mv.setViewName("sunvote/coursemanagement/en_coursemanagement_list2");
  202 + }
  203 +
198 204 mv.addObject("varList", varList);
199 205 mv.addObject("pd", pd);
200 206 mv.addObject("QX",Jurisdiction.getHC()); //按钮权限
... ... @@ -256,7 +262,12 @@ public class CourseManagementController extends BaseController {
256 262 ModelAndView mv = this.getModelAndView();
257 263 PageData pd = new PageData();
258 264 pd = this.getPageData();
259   - mv.setViewName("sunvote/coursemanagement/coursemanagement_edit2");
  265 + if(isChineseLanguageClient()){
  266 + mv.setViewName("sunvote/coursemanagement/coursemanagement_edit2");
  267 + }else{
  268 + mv.setViewName("sunvote/coursemanagement/en_coursemanagement_edit2");
  269 + }
  270 +
260 271  
261 272 List<PageData> teachers = teacherService.listAll(pd);
262 273 mv.addObject("teachers",teachers);
... ...
src/com/fh/controller/sunvote/paper/PaperController.java
... ... @@ -383,7 +383,12 @@ public class PaperController extends BaseController {
383 383 // pd.put("PAPER_TYPE","2");
384 384 // List<PageData> varList2 = paperService.list(page); //列出Paper列表
385 385 // varList.addAll(varList2);
386   - mv.setViewName("sunvote/paper/paper_list4");
  386 + if(isChineseLanguageClient()){
  387 + mv.setViewName("sunvote/paper/paper_list4");
  388 + }else{
  389 + mv.setViewName("sunvote/paper/en_paper_list4");
  390 + }
  391 +
387 392  
388 393 for(PageData p:varList){
389 394 String examTime = p.getString("EXAM_TIME");
... ... @@ -445,8 +450,13 @@ public class PaperController extends BaseController {
445 450 pd.put("PAPER_TYPE","2");
446 451 pd.put("USER_ID", this.getUserID());
447 452 page.setPd(pd);
  453 + page.setLangIsChina(isChineseLanguageClient());
448 454 List<PageData> varList = paperService.list(page); //列出Paper列表
449   - mv.setViewName("sunvote/paper/paper_list5");
  455 + if(isChineseLanguageClient()){
  456 + mv.setViewName("sunvote/paper/paper_list5");
  457 + }else{
  458 + mv.setViewName("sunvote/paper/en_paper_list5");
  459 + }
450 460  
451 461 for(PageData p:varList){
452 462 String examTime = p.getString("EXAM_TIME");
... ...
src/com/fh/controller/sunvote/sclass/SClassController.java
... ... @@ -181,7 +181,12 @@ public class SClassController extends BaseController {
181 181 ModelAndView mv = this.getModelAndView();
182 182 PageData pd = this.getPageData();
183 183 page.setPd(pd);
184   - mv.setViewName("sunvote/sclass/sclass_list2");
  184 + page.setLangIsChina(isChineseLanguageClient());
  185 + if(isChineseLanguageClient()){
  186 + mv.setViewName("sunvote/sclass/sclass_list2");
  187 + }else{
  188 + mv.setViewName("sunvote/sclass/en_sclass_list2");
  189 + }
185 190 List<PageData> varList = sclassService.list(page); //列出SClass列表
186 191 mv.addObject("varList", varList);
187 192 mv.addObject("pd", pd);
... ... @@ -224,7 +229,7 @@ public class SClassController extends BaseController {
224 229 if(isChineseLanguageClient()){
225 230 mv.setViewName("sunvote/sclass/sclass_edit2");
226 231 }else{
227   - mv.setViewName("sunvote/sclass/sclass_edit2");
  232 + mv.setViewName("sunvote/sclass/en_sclass_edit2");
228 233 }
229 234 List<PageData> schools = schoolService.listAll(pd);
230 235 mv.addObject("schools",schools);
... ... @@ -273,7 +278,12 @@ public class SClassController extends BaseController {
273 278 PageData pd = new PageData();
274 279 pd = this.getPageData();
275 280 pd = sclassService.findById(pd); //根据ID读取
276   - mv.setViewName("sunvote/sclass/sclass_edit2");
  281 + if(isChineseLanguageClient()){
  282 + mv.setViewName("sunvote/sclass/sclass_edit2");
  283 + }else{
  284 + mv.setViewName("sunvote/sclass/en_sclass_edit2");
  285 + }
  286 + //mv.setViewName("sunvote/sclass/sclass_edit2");
277 287 List<PageData> schools = schoolService.listAll(pd);
278 288 mv.addObject("schools",schools);
279 289 List<PageData> basestations = basestationService.listAll(pd);
... ...
src/com/fh/controller/sunvote/subject/SubjectController.java
... ... @@ -148,8 +148,13 @@ public class SubjectController extends BaseController {
148 148 PageData pd = new PageData();
149 149 pd = this.getPageData();
150 150 page.setPd(pd);
  151 + page.setLangIsChina(isChineseLanguageClient());
151 152 List<PageData> varList = subjectService.listAllSchool(page); //列出Subject列表
152   - mv.setViewName("sunvote/subject/subject_list2");
  153 + if(isChineseLanguageClient()){
  154 + mv.setViewName("sunvote/subject/subject_list2");
  155 + }else{
  156 + mv.setViewName("sunvote/subject/en_subject_list2");
  157 + }
153 158 mv.addObject("varList", varList);
154 159 mv.addObject("pd", pd);
155 160 mv.addObject("QX",Jurisdiction.getHC()); //按钮权限
... ... @@ -194,7 +199,11 @@ public class SubjectController extends BaseController {
194 199 ModelAndView mv = this.getModelAndView();
195 200 PageData pd = new PageData();
196 201 pd = this.getPageData();
197   - mv.setViewName("sunvote/subject/subject_edit2");
  202 + if(isChineseLanguageClient()){
  203 + mv.setViewName("sunvote/subject/subject_edit2");
  204 + }else{
  205 + mv.setViewName("sunvote/subject/en_subject_edit2");
  206 + }
198 207 List<PageData> varList = subjectService.listNotSchoolSubject(pd);
199 208 mv.addObject("varList", varList);
200 209 mv.addObject("msg", "save2");
... ...
src/com/fh/controller/sunvote/teacher/TeacherController.java
... ... @@ -532,8 +532,14 @@ public class TeacherController extends BaseController {
532 532 PageData pd = new PageData();
533 533 pd = this.getPageData();
534 534 page.setPd(pd);
  535 + page.setLangIsChina(isChineseLanguageClient());
535 536 List<PageData> varList = teacherService.list(page); // 列出Teacher列表
536   - mv.setViewName("sunvote/teacher/teacher_list2");
  537 + if(isChineseLanguageClient()){
  538 + mv.setViewName("sunvote/teacher/teacher_list2");
  539 + }else{
  540 + mv.setViewName("sunvote/teacher/en_teacher_list2");
  541 + }
  542 +
537 543 mv.addObject("varList", varList);
538 544  
539 545 mv.addObject("pd", pd);
... ... @@ -583,7 +589,12 @@ public class TeacherController extends BaseController {
583 589 ModelAndView mv = this.getModelAndView();
584 590 PageData pd = new PageData();
585 591 pd = this.getPageData();
586   - mv.setViewName("sunvote/teacher/teacher_edit2");
  592 + if(isChineseLanguageClient()){
  593 + mv.setViewName("sunvote/teacher/teacher_edit2");
  594 + }else{
  595 + mv.setViewName("sunvote/teacher/en_teacher_edit2");
  596 + }
  597 +
587 598  
588 599 List<PageData> schools = schoolService.listAll(pd);
589 600 mv.addObject("schools", schools);
... ... @@ -630,7 +641,11 @@ public class TeacherController extends BaseController {
630 641 PageData pd = new PageData();
631 642 pd = this.getPageData();
632 643 pd = teacherService.findById(pd); // 根据ID读取
633   - mv.setViewName("sunvote/teacher/teacher_edit2");
  644 + if(isChineseLanguageClient()){
  645 + mv.setViewName("sunvote/teacher/teacher_edit2");
  646 + }else{
  647 + mv.setViewName("sunvote/teacher/en_teacher_edit2");
  648 + }
634 649 List<PageData> schools = schoolService.listAll(pd);
635 650 mv.addObject("schools", schools);
636 651 List<PageData> subjects = subjectService.listAllSchool(pd);
... ...