Commit 7efaee3dfd2c486b5561788e04718e6185981a7f
Merge branch 'develop' of http://120.78.57.84/Elvis/SunvoteEducation into develop
Showing
43 changed files
with
5563 additions
and
488 deletions
.classpath
... | ... | @@ -4,7 +4,8 @@ |
4 | 4 | <classpathentry kind="src" path="resources"/> |
5 | 5 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> |
6 | 6 | <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
7 | - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"> | |
7 | + <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-web-4.3.7.RELEASE.jar"/> | |
8 | + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> | |
8 | 9 | <attributes> |
9 | 10 | <attribute name="owner.project.facets" value="java"/> |
10 | 11 | </attributes> |
... | ... | @@ -15,6 +16,5 @@ |
15 | 16 | <attribute name="owner.project.facets" value="jst.web.jstl"/> |
16 | 17 | </attributes> |
17 | 18 | </classpathentry> |
18 | - <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-web-4.3.7.RELEASE.jar"/> | |
19 | 19 | <classpathentry kind="output" path="WebRoot/WEB-INF/classes"/> |
20 | 20 | </classpath> | ... | ... |
.settings/org.eclipse.core.resources.prefs
1 | 1 | eclipse.preferences.version=1 |
2 | +encoding//WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_student_report.jsp=UTF-8 | |
2 | 3 | encoding//WebRoot/WEB-INF/jsp/sunvote/homework/homework_student_report.jsp=UTF-8 |
3 | 4 | encoding//WebRoot/WEB-INF/jsp/sunvote/paper/paper_list2.jsp=UTF-8 |
4 | 5 | encoding//WebRoot/WEB-INF/jsp/sunvote/teacher/creat_question.jsp=UTF-8 | ... | ... |
.settings/org.eclipse.jdt.core.prefs
1 | 1 | eclipse.preferences.version=1 |
2 | 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
3 | -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 | |
3 | +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | |
4 | 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve |
5 | -org.eclipse.jdt.core.compiler.compliance=1.6 | |
5 | +org.eclipse.jdt.core.compiler.compliance=1.7 | |
6 | 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate |
7 | 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate |
8 | 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate |
9 | 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
10 | 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
11 | -org.eclipse.jdt.core.compiler.source=1.6 | |
11 | +org.eclipse.jdt.core.compiler.source=1.7 | ... | ... |
.settings/org.eclipse.wst.common.project.facet.core.xml
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">×</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">×</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">×</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">×</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/grade/en_grade_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="grade/${msg }.do" name="Form" id="Form" method="post"> | |
33 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_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="GRADE_ID" id="GRADE_ID" data-placeholder=""> | |
40 | + <c:forEach var="item" items="${gradeList}"> | |
41 | + <option value="${item.ID}">${item.NAME}</option> | |
42 | + </c:forEach> | |
43 | + </select> | |
44 | + </td> | |
45 | + </tr> | |
46 | + | |
47 | + <tr> | |
48 | + <td style="text-align: center;" colspan="10"> | |
49 | + <a class="btn btn-mini btn-primary" onclick="save();">Save</a> | |
50 | + <a class="btn btn-mini btn-danger" onclick="window.top.modal.remove();">Cancel</a> | |
51 | + </td> | |
52 | + </tr> | |
53 | + </table> | |
54 | + </div> | |
55 | + <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">Submiting...</h4></div> | |
56 | + </form> | |
57 | + </div> | |
58 | + <!-- /.col --> | |
59 | + </div> | |
60 | + <!-- /.row --> | |
61 | + </div> | |
62 | + <!-- /.page-content --> | |
63 | + </div> | |
64 | + </div> | |
65 | + <!-- /.main-content --> | |
66 | +</div> | |
67 | +<!-- /.main-container --> | |
68 | + | |
69 | + | |
70 | + <!-- 页面底部js¨ --> | |
71 | + <%@ include file="../../system/index/foot.jsp"%> | |
72 | + <!-- 下拉框 --> | |
73 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
74 | + <!-- 日期框 --> | |
75 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
76 | + <!--提示框--> | |
77 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
78 | + <script type="text/javascript"> | |
79 | + $(top.hangge()); | |
80 | + //保存 | |
81 | + function save(){ | |
82 | + if($("#GRADE_ID").val()==""){ | |
83 | + $("#GRADE_ID").tips({ | |
84 | + side:3, | |
85 | + msg:'Please enter the grade name', | |
86 | + bg:'#AE81FF', | |
87 | + time:2 | |
88 | + }); | |
89 | + $("#GRADE_ID").focus(); | |
90 | + return false; | |
91 | + } | |
92 | + $("#Form").submit(); | |
93 | + $("#zhongxin").hide(); | |
94 | + $("#zhongxin2").show(); | |
95 | + } | |
96 | + | |
97 | + $(function() { | |
98 | + //日期框 | |
99 | + $('.date-picker').datepicker({autoclose: true,todayHighlight: true}); | |
100 | + }); | |
101 | + </script> | |
102 | +</body> | |
103 | +</html> | |
0 | 104 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/grade/en_grade_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 | +<link href="../static/css/teach.css" rel="stylesheet"> | |
19 | +<!-- 日期框 --> | |
20 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
21 | +<link | |
22 | + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
23 | + rel="stylesheet"> | |
24 | +<link href="static/css/teach.css" rel="stylesheet"> | |
25 | +</head> | |
26 | +<body class="no-skin"> | |
27 | + <form action="grade/listcs.do" method="post" name="Form" id="Form"> | |
28 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
29 | + | |
30 | + <div class="head_box"> | |
31 | + <div class="box_header"> | |
32 | + <div class="head_box_l"> | |
33 | + <p> | |
34 | + <span class="right_b"></span>Grade management | |
35 | + </p> | |
36 | + </div> | |
37 | + <div class="head_box_r"></div> | |
38 | + <div class="clear"></div> | |
39 | + </div> | |
40 | + <div style="padding:0 5%;background:#fff;"> | |
41 | + <table class="table table-striped"> | |
42 | + <col style="width: 10%" /> | |
43 | + <col style="width: 45%" /> | |
44 | + <col style="width: 45%" /> | |
45 | + <thead> | |
46 | + <tr> | |
47 | + <th><input type="checkbox" name='ids' id="ids" value="${var.SCHOOLGRADESUBJECT_ID}" />Number</th> | |
48 | + <th class="center">Grade name</th> | |
49 | + <th class="center">Grade description</th> | |
50 | + </tr> | |
51 | + </thead> | |
52 | + </table> | |
53 | + </div> | |
54 | + </div> | |
55 | + <div class="table_box"> | |
56 | + <table class="table table-striped"> | |
57 | + <col style="width: 10%" /> | |
58 | + <col style="width: 30%" /> | |
59 | + <col style="width: 30%" /> | |
60 | + <col style="width: 30%" /> | |
61 | + | |
62 | + <tbody> | |
63 | + <c:choose> | |
64 | + <c:when test="${not empty varList}"> | |
65 | + <c:forEach items="${varList}" var="var" varStatus="vs"> | |
66 | + <tr> | |
67 | + <td><input type="checkbox" name='ids' id="ids" | |
68 | + value="${var.SCHOOLGRADESUBJECT_ID}" />${vs.index+1}</td> | |
69 | + <td class='center'>${var.NAME}</td> | |
70 | + <td class='center'>${var.DESC}</td> | |
71 | + <td class='center'></td> | |
72 | + | |
73 | + </tr> | |
74 | + | |
75 | + </c:forEach> | |
76 | + </c:when> | |
77 | + <c:otherwise> | |
78 | + <tr class="main_info"> | |
79 | + <td colspan="100" class="center">There is no data</td> | |
80 | + </tr> | |
81 | + </c:otherwise> | |
82 | + </c:choose> | |
83 | + </tbody> | |
84 | + </table> | |
85 | + <div class="footer" style="width:auto"> | |
86 | + <div class="creat"> | |
87 | + <input type="button" onclick="add()" value="Add a grade" /> | |
88 | + </div> | |
89 | + <div class="removeAll"> | |
90 | + <input type="button" onclick="del()" value="Remove the grade" /> | |
91 | + </div> | |
92 | + <div class="page_box"> | |
93 | + | |
94 | + <div class="pagination" | |
95 | + style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div> | |
96 | + </div> | |
97 | + </div> | |
98 | + </div> | |
99 | + </form> | |
100 | + | |
101 | + <!-- /.main-container --> | |
102 | + | |
103 | + <!-- basic scripts --> | |
104 | + <!-- 页面底部js¨ --> | |
105 | + <%@ include file="../../system/index/foot.jsp"%> | |
106 | + <!-- 删除时确认窗口 --> | |
107 | + <script src="static/ace/js/bootbox.js"></script> | |
108 | + <!-- ace scripts --> | |
109 | + <script src="static/ace/js/ace/ace.js"></script> | |
110 | + <!-- 下拉框 --> | |
111 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
112 | + <!-- 日期框 --> | |
113 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
114 | + <!--提示框--> | |
115 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
116 | + <script type="text/javascript"> | |
117 | + $(document).ready(function(){ | |
118 | + window.top.loading.remove(); | |
119 | + }); | |
120 | + | |
121 | + //检索 | |
122 | + function tosearch(){ | |
123 | + $("#Form").submit(); | |
124 | + } | |
125 | + | |
126 | + function add(){ | |
127 | + window.top.modal.init({ | |
128 | + 'title':'Add a grade', | |
129 | + 'url':'<%=basePath%>grade/goAdd2.do?school_id=${pd.SCHOOL_ID}', | |
130 | + func:function() { | |
131 | + tosearch(); | |
132 | + } | |
133 | + }); | |
134 | + window.top.modal.show(); | |
135 | + } | |
136 | + | |
137 | + $('#ids').on('click', function(){ | |
138 | + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header | |
139 | + | |
140 | + $(".table_box .table").find('tbody > tr').each(function(){ | |
141 | + var row = this; | |
142 | + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true); | |
143 | + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false); | |
144 | + }); | |
145 | + }); | |
146 | + | |
147 | + function del(Id){ | |
148 | + window.top.remove.init({"title":"Remove","func":function(success){ | |
149 | + if(success){ | |
150 | + var str = ''; | |
151 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
152 | + if(document.getElementsByName('ids')[i].checked){ | |
153 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
154 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
155 | + } | |
156 | + } | |
157 | + if(str==''){ | |
158 | + | |
159 | + }else{ | |
160 | + $.ajax({ | |
161 | + type: "POST", | |
162 | + url: '<%=basePath%>grade/deleteAll2.do?tm='+new Date().getTime(), | |
163 | + data: {DATA_IDS:str}, | |
164 | + dataType:'json', | |
165 | + //beforeSend: validateData, | |
166 | + cache: false, | |
167 | + success: function(data){ | |
168 | + tosearch(); | |
169 | + } | |
170 | + }); | |
171 | + } | |
172 | + } | |
173 | + else{ | |
174 | + console.log("false"); | |
175 | + } | |
176 | + }}); | |
177 | + window.top.remove.show(); | |
178 | + } | |
179 | + | |
180 | + </script> | |
181 | + | |
182 | + | |
183 | +</body> | |
184 | +</html> | |
0 | 185 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/headmaster/en_headmaster_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="headmaster/${msg }.do" name="Form" id="Form" method="post"> | |
33 | + <input type="hidden" name="HEADMASTER_ID" id="HEADMASTER_ID" value="${pd.HEADMASTER_ID}"/> | |
34 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
35 | + <input type="hidden" name="PERMISSON" id="PERMISSON" value="${pd.PERMISSON}"/> | |
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;">Class:</td> | |
40 | + <td> | |
41 | + <select class="chosen-select form-control" name="CLASS_ID" id="CLASS_ID" <c:if test="${msg eq 'edit'} "> disabled="disabled" </c:if> data-placeholder="Enter the Class"> | |
42 | + <c:forEach var="item" items="${classes}"> | |
43 | + <option value="${item.ID}" <c:if test="${pd.CLASS_ID==item.ID}">selected="true"</c:if>>${item.CLASS_NAME}</option> | |
44 | + </c:forEach> | |
45 | + </select> | |
46 | + </td> | |
47 | + </tr> | |
48 | + <tr> | |
49 | + <td style="width:75px;text-align: right;padding-top: 13px;">Name:</td> | |
50 | + <td><input type="text" name="NAME" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="Enter the Name" title="name" style="width:98%;"/></td> | |
51 | + </tr> | |
52 | + <tr> | |
53 | + <td style="width:75px;text-align: right;padding-top: 13px;">User Name:</td> | |
54 | + <td><input type="text" name="USERNAME" id="USERNAME" value="${pd.USERNAME}" maxlength="255" placeholder="Enter the User Name" title="User Name" style="width:98%;"/></td> | |
55 | + </tr> | |
56 | + <tr> | |
57 | + <td style="width:75px;text-align: right;padding-top: 13px;">Password:</td> | |
58 | + <td><input type="text" name="PASSWORD" id="PASSWORD" value="${pd.PASSWORD}" maxlength="255" placeholder="Enter the Password" title="Password" style="width:98%;"/></td> | |
59 | + </tr> | |
60 | + <tr> | |
61 | + <td style="width:75px;text-align: right;padding-top: 13px;">Contact number:</td> | |
62 | + <td><input type="text" name="PHONE" id="PHONE" value="${pd.PHONE}" maxlength="255" placeholder="Enter the Contact number" title="Contact number" style="width:98%;"/></td> | |
63 | + </tr> | |
64 | + | |
65 | + <tr> | |
66 | + <td style="text-align: center;" colspan="10"> | |
67 | + <a class="btn btn-mini btn-primary" onclick="save();">Save</a> | |
68 | + <a class="btn btn-mini btn-danger" onclick="window.top.modal.remove();">Cancel</a> | |
69 | + </td> | |
70 | + </tr> | |
71 | + </table> | |
72 | + </div> | |
73 | + <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">Submiting...</h4></div> | |
74 | + </form> | |
75 | + </div> | |
76 | + <!-- /.col --> | |
77 | + </div> | |
78 | + <!-- /.row --> | |
79 | + </div> | |
80 | + <!-- /.page-content --> | |
81 | + </div> | |
82 | + </div> | |
83 | + <!-- /.main-content --> | |
84 | +</div> | |
85 | +<!-- /.main-container --> | |
86 | + | |
87 | + | |
88 | + <!-- 页面底部js¨ --> | |
89 | + <%@ include file="../../system/index/foot.jsp"%> | |
90 | + <!-- 下拉框 --> | |
91 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
92 | + <!-- 日期框 --> | |
93 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
94 | + <!--提示框--> | |
95 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
96 | + <script type="text/javascript"> | |
97 | + | |
98 | + //保存 | |
99 | + function save(){ | |
100 | + if($("#NAME").val()==""){ | |
101 | + $("#NAME").tips({ | |
102 | + side:3, | |
103 | + msg:'Please enter the name', | |
104 | + bg:'#AE81FF', | |
105 | + time:2 | |
106 | + }); | |
107 | + $("#NAME").focus(); | |
108 | + return false; | |
109 | + } | |
110 | + if($("#USERNAME").val()==""){ | |
111 | + $("#USERNAME").tips({ | |
112 | + side:3, | |
113 | + msg:'Please enter the user name', | |
114 | + bg:'#AE81FF', | |
115 | + time:2 | |
116 | + }); | |
117 | + $("#USERNAME").focus(); | |
118 | + return false; | |
119 | + } | |
120 | + if($("#PASSWORD").val()==""){ | |
121 | + $("#PASSWORD").tips({ | |
122 | + side:3, | |
123 | + msg:'Please enter the password', | |
124 | + bg:'#AE81FF', | |
125 | + time:2 | |
126 | + }); | |
127 | + $("#PASSWORD").focus(); | |
128 | + return false; | |
129 | + } | |
130 | + | |
131 | + if($("#PHONE").val()==""){ | |
132 | + $("#PHONE").tips({ | |
133 | + side:3, | |
134 | + msg:'Please enter the contact number', | |
135 | + bg:'#AE81FF', | |
136 | + time:2 | |
137 | + }); | |
138 | + $("#PHONE").focus(); | |
139 | + return false; | |
140 | + } | |
141 | + $("#Form").submit(); | |
142 | + $("#zhongxin").hide(); | |
143 | + $("#zhongxin2").show(); | |
144 | + } | |
145 | + | |
146 | + $(function() { | |
147 | + //日期框 | |
148 | + $('.date-picker').datepicker({autoclose: true,todayHighlight: true}); | |
149 | + }); | |
150 | + </script> | |
151 | +</body> | |
152 | +</html> | |
0 | 153 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/headmaster/en_headmaster_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 | +<title>中天电子-教育管理系统</title> | |
15 | +<head> | |
16 | +<base href="<%=basePath%>"> | |
17 | + | |
18 | +<!-- 下拉框 --> | |
19 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
20 | +<!-- jsp文件头和头部 --> | |
21 | + | |
22 | +<!-- 日期框 --> | |
23 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
24 | +<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> | |
25 | +<link href="static/css/teach.css" rel="stylesheet"> | |
26 | +</head> | |
27 | +<body class="no-skin"> | |
28 | + | |
29 | + | |
30 | + <!-- 检索 --> | |
31 | + <form action="headmaster/listcs.do" method="post" name="Form" id="Form"> | |
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 class="head_box"> | |
35 | + <div class="box_header"> | |
36 | + <div class="head_box_l"> | |
37 | + <p> | |
38 | + <span class="right_b"></span>Monitor Management | |
39 | + </p> | |
40 | + </div> | |
41 | + <div class="clearfix"></div> | |
42 | + </div> | |
43 | + <div style="background:#fff;padding:0 5%;" > | |
44 | + | |
45 | + <table class="table table-striped" > | |
46 | + <col style="width: 10%" /> | |
47 | + <col style="width: 10%" /> | |
48 | + <col style="width: 10%" /> | |
49 | + <col style="width: 10%" /> | |
50 | + <col style="width: 20%" /> | |
51 | + <col style="width: 20%" /> | |
52 | + <thead> | |
53 | + <tr> | |
54 | + <th><input type="checkbox" value="0" name='ids' id="ids" />Number</th> | |
55 | + <th class="center">Name</th> | |
56 | + <th class="center">User Name</th> | |
57 | + <th class="center">Password</th> | |
58 | + <th class="center">Contact Number</th> | |
59 | + <th class="center">Class</th> | |
60 | + <th class="center">Operation</th> | |
61 | + </tr> | |
62 | + | |
63 | + </thead> | |
64 | + </table> | |
65 | + </div> | |
66 | + | |
67 | + <div class="clearfix"></div> | |
68 | + <!-- 检索 --> | |
69 | + | |
70 | + </div> | |
71 | + <div class="table_box" > | |
72 | + <table class="table table-striped" > | |
73 | + <col style="width: 10%" /> | |
74 | + <col style="width: 10%" /> | |
75 | + <col style="width: 10%" /> | |
76 | + <col style="width: 10%" /> | |
77 | + <col style="width: 20%" /> | |
78 | + <col style="width: 20%" /> | |
79 | + <tbody> | |
80 | + <!-- 开始循环 --> | |
81 | + <c:choose> | |
82 | + <c:when test="${not empty varList}"> | |
83 | + <c:forEach items="${varList}" var="var" varStatus="vs"> | |
84 | + <tr> | |
85 | + <td><input type="checkbox" name='ids' id="ids" | |
86 | + value="${var.ID}" />${vs.index+1}</td> | |
87 | + <td class='center'>${var.NAME}</td> | |
88 | + <td class='center'>${var.USERNAME}</td> | |
89 | + <td class='center'>${var.PASSWORD}</td> | |
90 | + <td class='center'>${var.PHONE}</td> | |
91 | + <td class='center'>${var.CLASS_NAME}</td> | |
92 | + <td><a onclick="edit('${var.HEADMASTER_ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a><a onclick="del('${var.HEADMASTER_ID}');"><img src="static/images/remove.png" /></a></td> | |
93 | + </tr> | |
94 | + | |
95 | + </c:forEach> | |
96 | + </c:when> | |
97 | + <c:otherwise> | |
98 | + <tr class="main_info"> | |
99 | + <td colspan="100" class="center">There is no data</td> | |
100 | + </tr> | |
101 | + </c:otherwise> | |
102 | + </c:choose> | |
103 | + </tbody> | |
104 | + </table> | |
105 | + <div class="footer" style="width:auto;margin: 0px 5%;"> | |
106 | + <div class="creat"> | |
107 | + <input type="button" onclick="add();" value="Add the monitor" /> | |
108 | + </div> | |
109 | + <div class="removeAll"> | |
110 | + <input type="button" onclick="del();" value="Remove" /> | |
111 | + </div> | |
112 | + | |
113 | + <div class="page_box"> | |
114 | + <div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div> | |
115 | + </div> | |
116 | + </div> | |
117 | + </div> | |
118 | + </form> | |
119 | + </div> | |
120 | + <!-- /.main-container --> | |
121 | + | |
122 | + <!-- basic scripts --> | |
123 | + <!-- 页面底部js¨ --> | |
124 | + <%@ include file="../../system/index/foot.jsp"%> | |
125 | + | |
126 | + <script type="text/javascript"> | |
127 | + window.top.loading.remove(); | |
128 | + //检索 | |
129 | + function tosearch(){ | |
130 | + $("#Form").submit(); | |
131 | + } | |
132 | + //修改 | |
133 | + function edit(Id){ | |
134 | + window.top.modal.init({ | |
135 | + 'title':'Modify the information', | |
136 | + 'url':'<%=basePath%>headmaster/goEdit2.do?HEADMASTER_ID='+Id, | |
137 | + func:function() { | |
138 | + tosearch(); | |
139 | + } | |
140 | + }); | |
141 | + window.top.modal.show(); | |
142 | + } | |
143 | + function add(){ | |
144 | + window.top.modal.init({ | |
145 | + 'title':'Add the monitor', | |
146 | + 'url':'<%=basePath%>headmaster/goAdd2.do?school_id=${pd.SCHOOL_ID}&grade_id=${pd.GRADE_ID}', | |
147 | + func:function() { | |
148 | + tosearch(); | |
149 | + } | |
150 | + }); | |
151 | + window.top.modal.show(); | |
152 | + } | |
153 | + function del(Id){ | |
154 | + window.top.remove.init({"title":"Remove","func":function(success){ | |
155 | + if(success){ | |
156 | + var str = Id; | |
157 | + if(str == ''){ | |
158 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
159 | + if(document.getElementsByName('ids')[i].checked){ | |
160 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
161 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
162 | + } | |
163 | + } | |
164 | + } | |
165 | + | |
166 | + $.ajax({ | |
167 | + type: "POST", | |
168 | + url: '<%=basePath%>headmaster/deleteAll.do?tm='+new Date().getTime(), | |
169 | + data: {DATA_IDS:str}, | |
170 | + dataType:'json', | |
171 | + //beforeSend: validateData, | |
172 | + cache: false, | |
173 | + success: function(data){ | |
174 | + tosearch(); | |
175 | + } | |
176 | + }); | |
177 | + | |
178 | + } | |
179 | + else{ | |
180 | + console.log("false"); | |
181 | + } | |
182 | + }}); | |
183 | + window.top.remove.show(); | |
184 | + } | |
185 | + | |
186 | + </script> | |
187 | + | |
188 | + | |
189 | +</body> | |
190 | +</html> | |
0 | 191 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_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 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
6 | + | |
7 | +<% | |
8 | + String path = request.getContextPath(); | |
9 | + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | |
10 | +%> | |
11 | +<!DOCTYPE html> | |
12 | +<html lang="en" style="overflow-x:hidden;"> | |
13 | + <head> | |
14 | + <base href="<%=basePath%>"> | |
15 | + <!-- 下拉框 --> | |
16 | + <link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
17 | + <!-- jsp文件头和头部 --> | |
18 | + | |
19 | + <link rel="stylesheet" href="static/css/bootstrap.min.css"> | |
20 | + <!-- 日期框 --> | |
21 | + <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
22 | + | |
23 | + <link rel="stylesheet" href="static/css/teach.css" /> | |
24 | + <link rel="stylesheet" href="static/css/edit.css?a=2" /> | |
25 | + <style> | |
26 | + .box_header{position:fixed;top:0;left:0;width:100%;z-index:9999} | |
27 | + #Form{margin-top:102px;} | |
28 | + | |
29 | + </style> | |
30 | +</head> | |
31 | +<body class="no-skin homework_edit"> | |
32 | +<!-- /section:basics/navbar.layout --> | |
33 | +<div class="main-container" id="main-container"> | |
34 | + <!-- /section:basics/sidebar --> | |
35 | + <div class="main-content"> | |
36 | + <div class="main-content-inner"> | |
37 | + <div class="page-content"> | |
38 | + <div class="row"> | |
39 | + <div class="col-xs-12"> | |
40 | + <div class="box_header"> | |
41 | + <div class="head_box_l"> | |
42 | + <p> | |
43 | + <span class="right_b"></span>Arrange Exercise | |
44 | + </p> | |
45 | + </div> | |
46 | + <div class="clear"></div> | |
47 | + </div> | |
48 | + <form action="homework/${msg }.do" name="Form" id="Form" method="post"> | |
49 | + <input type="hidden" name="TEACHER_ID" id="TEACHER_ID" value="${pd.TEACHER_ID}"/> | |
50 | + <div id="zhongxin" style="padding-top: 13px;width:80%;margin:0 auto;"> | |
51 | + <table id="table_report" class="table"> | |
52 | + <tr> | |
53 | + <td style="width:95px;text-align: right;padding-top: 13px;">Exercise Title</td> | |
54 | + <td><input type="text" name="NAME" class="form-control" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="输入练习标题,不超过20个汉字" title="作业代码" /></td> | |
55 | + </tr> | |
56 | + <tr> | |
57 | + <td style="width:95px;text-align: right;padding-top: 13px;">Exercise Description</td> | |
58 | + <td><input type="text" name=HOMEWORK_DESC class="form-control" id="HOMEWORK_DESC" value="${pd.HOMEWORK_DESC}" maxlength="255" placeholder="输入题目说明,如教材第12页1-5题,教辅第5页1-3题,尽量精简,不超过100个汉字" title="作业名称" /></td> | |
59 | + </tr> | |
60 | + <tr> | |
61 | + <td style="width:95px;text-align: right;padding-top: 13px;">Assign completed time of class</td> | |
62 | + <td> | |
63 | + <div class="classBox"> | |
64 | + <ul> | |
65 | + <c:if test="${pd.CLASS_ID != null}"> | |
66 | + <li class="checked"> | |
67 | + <input type="checkbox" checked="true" id="class0" name="className" value="${pd.CLASS_ID}" /> | |
68 | + <label for="class0"></label> | |
69 | + <span>${myelfun:findClassName(pd.CLASS_ID)}</span> | |
70 | + <input class="date-picker" type="text" class="form-control" style="width:150px;text-align:center;" placeholder="completion date" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.COMPLETE_DATE}"/> | |
71 | + </li> | |
72 | + </c:if> | |
73 | + <!-- <li> | |
74 | + | |
75 | + <input type="checkbox" id="class1" name="className" value="1" /> | |
76 | + <label for="class1"></label> | |
77 | + <span>1班</span> | |
78 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
79 | + </li> | |
80 | + <li> | |
81 | + | |
82 | + <input type="checkbox" id="class2" name="className" value="1" /> | |
83 | + <label for="class2"></label> | |
84 | + <span>2班</span> | |
85 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
86 | + </li> | |
87 | + <li> | |
88 | + | |
89 | + <input type="checkbox" id="class3" name="className" value="1" /> | |
90 | + <label for="class3"></label> | |
91 | + <span>3班</span> | |
92 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
93 | + </li> | |
94 | + <li> | |
95 | + | |
96 | + <input type="checkbox" id="class4" name="className" value="1" /> | |
97 | + <label for="class4"></label> | |
98 | + <span>4班</span> | |
99 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
100 | + </li> | |
101 | + <li> | |
102 | + <input type="checkbox" id="class5" name="className" value="1" /> | |
103 | + <label for="class5"></label> | |
104 | + <span>5班</span> | |
105 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
106 | + </li> | |
107 | + <li> | |
108 | + <input type="checkbox" id="class6" name="className" value="1" /> | |
109 | + <label for="class6"></label> | |
110 | + <span>6班</span> | |
111 | + <input class="date-picker" type="text" class="form-control" style="width:200px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""/> | |
112 | + </li> --> | |
113 | + </ul> | |
114 | + </div> | |
115 | + | |
116 | + </td> | |
117 | + </tr> | |
118 | + | |
119 | + </table> | |
120 | + </div> | |
121 | + <hr /> | |
122 | + <div class="subject" style="width:80%;margin:0 auto;"> | |
123 | + <table width="100%"> | |
124 | + <col width="50%"/> | |
125 | + <col width="20%"/> | |
126 | + <col width="20%"/> | |
127 | + <col width="10%"/> | |
128 | + <thead> | |
129 | + <tr> | |
130 | + <th style="text-align:left;"><span>question number</span><span class="redu">-</span><input type="number" class="w_100" id="que_num" value="${pd.QUESTION_COUNT==null?0:pd.QUESTION_COUNT}"/><span class="add">+</span></th> | |
131 | + <th><span>option number</span><span class="redu">-</span><input type="number" class="w_100 ans_num" id="ans_num" value="4"/><span class="add">+</span></th> | |
132 | + <th><span>score</span><span class="redu">-</span><input type="number" class="w_100 score" id="score" value="1"/><span class="add">+</span></th> | |
133 | + <th></th> | |
134 | + </tr> | |
135 | + </thead> | |
136 | + </table> | |
137 | + <table width="100%" border="0" class="subject_body_tabel"> | |
138 | + <col width="10%"/> | |
139 | + <col width="40%"/> | |
140 | + <col width="20%"/> | |
141 | + <col width="20%"/> | |
142 | + <col width="10%"/> | |
143 | + <tbody class="subject_body_tbody"> | |
144 | + <c:choose> | |
145 | + <c:when test="${not empty pd.QUESTIONS}"> | |
146 | + <c:forEach items="${pd.QUESTIONS}" var="var" varStatus="vs"> | |
147 | + <tr> | |
148 | + <td class="first">${var.RANK}</td> | |
149 | + <td class="middle"> | |
150 | + <div class="question question${var.RANK}"> | |
151 | + <ul> | |
152 | + <c:forEach var="i" begin="1" end="${var.OPTION_NUM}"> | |
153 | + <c:set var="a" value="${fn:substring('ABCDEFGHI',i-1,i)}"/> | |
154 | + | |
155 | + <li class="btn btn-default <c:if test="${fn:contains(var.RIGHT_ANSWER, a)}"> on </c:if>">${a}</li> | |
156 | + </c:forEach> | |
157 | + | |
158 | + </ul> | |
159 | + </div> | |
160 | + | |
161 | + </td> | |
162 | + <td class="middle"><span>option number</span><span class="redu">-</span><input type="number" class="w_100 ans_num" value="${var.OPTION_NUM}"/><span class="add">+</span></td> | |
163 | + <td class="middle"><span>score</span><span class="redu">-</span><input type="number" class="w_100 score" value="${var.SCORE}"/><span class="add">+</span></td> | |
164 | + <td class="last"><a class="remove"><img src="static/images/remove.png" /></a></td> | |
165 | + </tr> | |
166 | + </c:forEach> | |
167 | + </c:when> | |
168 | + <c:otherwise> | |
169 | + <tr class="main_info"> | |
170 | + <td colspan="100" class="center">There is no data</td> | |
171 | + </tr> | |
172 | + </c:otherwise> | |
173 | + </c:choose> | |
174 | + | |
175 | + </tbody> | |
176 | + </table> | |
177 | + </div> | |
178 | + <hr /> | |
179 | + <div> | |
180 | + <div style="text-align: center;" colspan="10"> | |
181 | + | |
182 | + <a class="btn btn-mini btn-primary" onclick="save();">confirm the assignment</a> | |
183 | + <a class="btn btn-mini btn-danger" onclick="back()">Cancel</a> | |
184 | + </div> | |
185 | + </div> | |
186 | + <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">Submiting...</h4></div> | |
187 | + </form> | |
188 | + | |
189 | + | |
190 | + | |
191 | + | |
192 | + </div> | |
193 | + <!-- /.col --> | |
194 | + </div> | |
195 | + <!-- /.row --> | |
196 | + </div> | |
197 | + <!-- /.page-content --> | |
198 | + </div> | |
199 | + </div> | |
200 | + <!-- /.main-content --> | |
201 | +</div> | |
202 | +<!-- /.main-container --> | |
203 | + | |
204 | + <!-- 页面底部js¨ --> | |
205 | + <%@ include file="../../system/index/foot.jsp"%> | |
206 | + <!-- 下拉框 --> | |
207 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
208 | + <!-- 日期框 --> | |
209 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
210 | + <!--提示框--> | |
211 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
212 | + <!--页面交互--> | |
213 | + <script src="static/js/control_homework.js?t=2"></script> | |
214 | + <script> | |
215 | + var homework_id="${pd.HOMEWORK_ID}"; | |
216 | + | |
217 | + $(function() { | |
218 | + window.top.loading.remove(); | |
219 | + work.que_num=parseInt($("#que_num").val()); | |
220 | + //日期框 | |
221 | + $(document).on("focus",".date-picker",function(){ | |
222 | + $(this).datepicker({ | |
223 | + autoclose: true, | |
224 | + todayHighlight: true, | |
225 | + orientation:'top' | |
226 | + }); | |
227 | + }); | |
228 | + if(${pd.CLASS_ID==null}==true){ | |
229 | + $.ajax({ //获取该名教师下的班级信息 | |
230 | + url:'<%=basePath%>coursemanagement/teacherClass', | |
231 | + type:"get", | |
232 | + data:{teacher_id:"${pd.TEACHER_ID}"}, | |
233 | + success:function(res){ | |
234 | + console.log(res); | |
235 | + if(res.data.length>0){ | |
236 | + var _html=""; | |
237 | + $.each(res.data,function(k,v){ | |
238 | + _html+='<li><input type="checkbox" id="class'+k+'" name="className" value="'+v.ID+'"><label for="class'+k+'"></label><span>'+v.CLASS_NAME+'</span><input class="date-picker" type="text" style="width:150px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value=""></li>'; | |
239 | + | |
240 | + }); | |
241 | + $(".classBox ul").html(_html); | |
242 | + } | |
243 | + } | |
244 | + }); | |
245 | + } | |
246 | + | |
247 | + | |
248 | + }); | |
249 | + function back(){ | |
250 | + var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}'; | |
251 | + parent.$("#mainFrame").attr('src',path); | |
252 | + window.top.loading.show(); | |
253 | + } | |
254 | + function save_data(data){ | |
255 | + $.ajax({ //获取该名教师下的班级信息 | |
256 | + url:'<%=basePath%>homework/uploadHomework', | |
257 | + type:"post", | |
258 | + dataType:"text", | |
259 | + data:{"JSON":data}, | |
260 | + success:function(res){ | |
261 | + var res=JSON.parse(res); | |
262 | + if(res.message=="success"){ | |
263 | + //alert(res.message); | |
264 | + console.log(res); | |
265 | + | |
266 | + var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}'; | |
267 | + parent.$("#mainFrame").attr('src',path); | |
268 | + window.top.loading.show(); | |
269 | + } | |
270 | + | |
271 | + } | |
272 | + }); | |
273 | + } | |
274 | + function up_data(data){ | |
275 | + $.ajax({ //获取该名教师下的班级信息 | |
276 | + url:'<%=basePath%>homework/updateHomework', | |
277 | + type:"post", | |
278 | + dataType:"text", | |
279 | + data:{"JSON":data}, | |
280 | + success:function(res){ | |
281 | + var res=JSON.parse(res); | |
282 | + if(res.message=="success"){ | |
283 | + //alert(res.message); | |
284 | + console.log(res); | |
285 | + | |
286 | + var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}'; | |
287 | + parent.$("#mainFrame").attr('src',path); | |
288 | + window.top.loading.show(); | |
289 | + | |
290 | + } | |
291 | + } | |
292 | + }); | |
293 | + } | |
294 | + | |
295 | + </script> | |
296 | +</body> | |
297 | +</html> | |
0 | 298 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_list.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="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
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 | +<!-- 日期框 --> | |
20 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
21 | +<link | |
22 | + href="static/css/bootstrap.min.css" | |
23 | + rel="stylesheet"> | |
24 | +<link href="static/css/teach.css" rel="stylesheet"> | |
25 | +</head> | |
26 | +<body class="no-skin"> | |
27 | + <form action="homework/list.do" method="post" name="Form" id="Form"> | |
28 | + <input type="hidden" name="TEACHER_ID" id="TEACHER_ID" value="${pd.TEACHER_ID}"/> | |
29 | + <div class="head_box"> | |
30 | + <div class="box_header"> | |
31 | + <div class="head_box_l"> | |
32 | + <p> | |
33 | + <span class="right_b"></span>Exercise List | |
34 | + </p> | |
35 | + </div> | |
36 | + <div class="head_box_r"> | |
37 | + <select name="status" id="status" style="width:90px;height:26px;margin-right:5px;padding:0;border-color:#aaa;"> | |
38 | + <option value="">All</option> | |
39 | + <option value="0" <c:if test="${pd.STATUS=='0'}">selected="true"</c:if>>Unfinished</option> | |
40 | + <option value="1" <c:if test="${pd.STATUS=='1'}">selected="true"</c:if>>Finished</option> | |
41 | + </select> | |
42 | + <input class="date-picker" type="text" placeholder="Start date" name="StartDate" id="StartDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.STARTDATE }"/> | |
43 | + <input type="text" class="date-picker" placeholder="End date" name="EndDate" name="EndDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.ENDDATE}"/> | |
44 | + <a onclick="tosearch();"><img | |
45 | + src="static/images/search.png" /></a> | |
46 | + </div> | |
47 | + <div class="clear"></div> | |
48 | + </div> | |
49 | + <div style="padding:0 5%;background:#fff;"> | |
50 | + <table class="table table-striped"> | |
51 | + <col style="width: 8%" /> | |
52 | + <col style="width: 20%" /> | |
53 | + <col style="width: 15%" /> | |
54 | + <col style="width: 15%" /> | |
55 | + <col style="width: 10%" /> | |
56 | + <col style="width: 7%" /> | |
57 | + <col style="width: 10%" /> | |
58 | + <col style="width: 5%" /> | |
59 | + <col style="width: 10%" /> | |
60 | + <thead> | |
61 | + <tr> | |
62 | + <th><input type="checkbox" name='ids' id="ids" />Number</th> | |
63 | + <th>Exercise List</th> | |
64 | + <th>Assignment time</th> | |
65 | + <th>Completion time</th> | |
66 | + <th>Class</th> | |
67 | + <th>Item number</th> | |
68 | + <th>Completion Situation</th> | |
69 | + <th>Total score</th> | |
70 | + <th>Operation</th> | |
71 | + </tr> | |
72 | + </thead> | |
73 | + </table> | |
74 | + </div> | |
75 | + </div> | |
76 | + <div class="table_box"> | |
77 | + <table class="table table-striped"> | |
78 | + <col style="width: 8%" /> | |
79 | + <col style="width: 20%" /> | |
80 | + <col style="width: 15%" /> | |
81 | + <col style="width: 15%" /> | |
82 | + <col style="width: 10%" /> | |
83 | + <col style="width: 7%" /> | |
84 | + <col style="width: 10%" /> | |
85 | + <col style="width: 5%" /> | |
86 | + <col style="width: 10%" /> | |
87 | + <tbody> | |
88 | + <c:choose> | |
89 | + <c:when test="${not empty varList}"> | |
90 | + <c:forEach items="${varList}" var="var" varStatus="vs"> | |
91 | + <tr> | |
92 | + <td><input type="checkbox" name='ids' id="ids" value="${var.HOMEWORK_ID}"/>${vs.index+1}</td> | |
93 | + <td ><a onclick="view('<%=basePath%>homework/goView.do?homework_id=${var.HOMEWORK_ID}')">${var.NAME}(${myelfun:findClassName(var.CLASS_ID)})</a></td> | |
94 | + <td >${var.CREATE_DATE}</td> | |
95 | + <td >${var.COMPLETE_DATE}</td> | |
96 | + <td >${myelfun:findClassName(var.CLASS_ID)}</td> | |
97 | + <td >${var.QUESTION_COUNT}</td> | |
98 | + <td >${var.COMPLETE_COUNT == "0" ? "Unfinished":"Finished"}</td> | |
99 | + <td >${var.ALL_SCORE}</td> | |
100 | + <td> | |
101 | + <c:if test="${var.COMPLETE_COUNT == '0'}"> | |
102 | + <a onclick="edit('${var.HOMEWORK_ID}');"><img src="static/images/eidtor.png" /></a> | |
103 | + <a onclick="del('${var.HOMEWORK_ID}');"><img src="static/images/remove.png" /></a> | |
104 | + </c:if> | |
105 | + <c:if test="${var.COMPLETE_COUNT == '1'}"> | |
106 | + <a onclick="del('${var.HOMEWORK_ID}');" style="margin-left: 28px"><img src="static/images/remove.png" /></a> | |
107 | + </c:if> | |
108 | + | |
109 | + </tr> | |
110 | + | |
111 | + | |
112 | + </c:forEach> | |
113 | + </c:when> | |
114 | + <c:otherwise> | |
115 | + <tr class="main_info"> | |
116 | + <td colspan="100" class="center" >There is no data</td> | |
117 | + </tr> | |
118 | + </c:otherwise> | |
119 | + </c:choose> | |
120 | + </tbody> | |
121 | + </table> | |
122 | + <div class="footer"> | |
123 | + <div class="creat" <c:if test="${pd.SCHOOL_ID != '' and pd.SCHOOL_ID != null}">style="display:none;"</c:if>> | |
124 | + <input type="button" onclick="add('${pd.TEACHER_ID}')" value="Arrange Exercise" /> | |
125 | + </div> | |
126 | + <div class="removeAll"> | |
127 | + <input type="button" onclick="del()" value="Batch delete" /> | |
128 | + </div> | |
129 | + <div class="page_box"> | |
130 | + | |
131 | + <div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div> | |
132 | + </div> | |
133 | + </div> | |
134 | + </div> | |
135 | + </form> | |
136 | + | |
137 | + <!-- basic scripts --> | |
138 | + <!-- 页面底部js¨ --> | |
139 | + <%@ include file="../../system/index/foot.jsp"%> | |
140 | + <!-- 删除时确认窗口 --> | |
141 | + <script src="static/ace/js/bootbox.js"></script> | |
142 | + <!-- ace scripts --> | |
143 | + <script src="static/ace/js/ace/ace.js"></script> | |
144 | + <!-- 下拉框 --> | |
145 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
146 | + <!-- 日期框 --> | |
147 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
148 | + <!--提示框--> | |
149 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
150 | + <script type="text/javascript"> | |
151 | + $(document).ready(function() { | |
152 | + window.top.loading.remove(); | |
153 | + //日期框 | |
154 | + $('.date-picker').datepicker({ | |
155 | + autoclose: true, | |
156 | + todayHighlight: true | |
157 | + }); | |
158 | + }); | |
159 | + | |
160 | + $('#ids').on('click', function(){ | |
161 | + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header | |
162 | + | |
163 | + $(".table_box .table").find('tbody > tr').each(function(){ | |
164 | + var row = this; | |
165 | + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true); | |
166 | + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false); | |
167 | + }); | |
168 | + }); | |
169 | + | |
170 | + function tosearch(){ | |
171 | + $("#Form").submit(); | |
172 | + } | |
173 | + function add(Id){ | |
174 | + var path = '<%=basePath%>homework/goAdd2.do?teacher_id='+Id; | |
175 | + parent.$("#mainFrame").attr('src',path); | |
176 | + window.top.loading.show(); | |
177 | + } | |
178 | + function view(url){ | |
179 | + var path = url | |
180 | + parent.$("#mainFrame").attr('src',path); | |
181 | + window.top.loading.show(); | |
182 | + } | |
183 | + function edit(Id){ | |
184 | + var path = '<%=basePath%>homework/goEdit2.do?school_id=${pd.SCHOOL_ID}&HOMEWORK_ID='+Id; | |
185 | + parent.$("#mainFrame").attr('src',path); | |
186 | + window.top.loading.show(); | |
187 | + } | |
188 | + function del(Id){ | |
189 | + window.top.remove.init({"title":"Remove","func":function(success){ | |
190 | + if(success){ | |
191 | + var str = Id; | |
192 | + if(typeof(Id) == "undefined"){ | |
193 | + str = ''; | |
194 | + } | |
195 | + if(str == ''){ | |
196 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
197 | + if(document.getElementsByName('ids')[i].checked){ | |
198 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
199 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
200 | + } | |
201 | + } | |
202 | + } | |
203 | + if(str == ''){ | |
204 | + return ; | |
205 | + } | |
206 | + | |
207 | + $.ajax({ | |
208 | + type: "POST", | |
209 | + url: '<%=basePath%>homework/deleteAll.do?tm='+new Date().getTime(), | |
210 | + data: {DATA_IDS:str}, | |
211 | + dataType:'json', | |
212 | + //beforeSend: validateData, | |
213 | + cache: false, | |
214 | + success: function(data){ | |
215 | + tosearch(); | |
216 | + } | |
217 | + }); | |
218 | + | |
219 | + } | |
220 | + else{ | |
221 | + console.log("false"); | |
222 | + } | |
223 | + }}); | |
224 | + window.top.remove.show(); | |
225 | + } | |
226 | + | |
227 | + </script> | |
228 | + | |
229 | + | |
230 | +</body> | |
231 | +</html> | |
0 | 232 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_report.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 uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
6 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
7 | +<% | |
8 | + String path = request.getContextPath(); | |
9 | + String basePath = request.getScheme() + "://" | |
10 | + + request.getServerName() + ":" + request.getServerPort() | |
11 | + + path + "/"; | |
12 | +%> | |
13 | + | |
14 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
15 | +<html> | |
16 | +<head> | |
17 | +<base href="<%=basePath%>"> | |
18 | + | |
19 | +<title>${info.CLASS_NAME}Scores report</title> | |
20 | +<base href="<%=basePath%>"> | |
21 | +<!-- 下拉框 --> | |
22 | +<link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
23 | + <link type="text/css" href="static/css/tablescroller.css" rel="stylesheet" /> | |
24 | + | |
25 | +<link | |
26 | + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
27 | + rel="stylesheet"> | |
28 | +<!-- 日期框 --> | |
29 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
30 | + | |
31 | +<link rel="stylesheet" href="static/css/teach.css" /> | |
32 | +<style> | |
33 | + .font span{ font-size: 12px; | |
34 | + font-weight: initial;color:#000;} | |
35 | + .search_btn{width:30px;} | |
36 | + .btn{margin:0 5px;} | |
37 | + .center{height:39px;} | |
38 | + .box_header{position:fixed;top:0;left:0;width:100%;z-index:9999;} | |
39 | + | |
40 | + </style> | |
41 | +</head> | |
42 | + | |
43 | +<body style="background:#fff;height:auto;"> | |
44 | +<div class="box_header"> | |
45 | + <div class="head_box_l"> | |
46 | + <p> | |
47 | + <span class="right_b"></span>Exercise Report | |
48 | + </p> | |
49 | + </div> | |
50 | + <div class="clear"></div> | |
51 | +</div> | |
52 | +<div style="padding-top:3%;margin-top:102px;"> | |
53 | + | |
54 | + <!-- Nav tabs --> | |
55 | + <ul class="nav nav-tabs" role="tablist" style="padding-bottom:3%"> | |
56 | + | |
57 | + <c:forEach items="${pd.CLASSES}" var="var" varStatus="vs"> | |
58 | + <li class="btn ${pd.CLASS_ID==var.CLASS_ID?'btn-primary':'btn-default'} btn-default btn-lg" onclick="homeReport('${var.CLASS_ID}')">${var.CLASS_NAME}</li> | |
59 | + </c:forEach> | |
60 | + | |
61 | + </ul> | |
62 | + | |
63 | + | |
64 | + <div style="padding:20px 20px;"> | |
65 | + <form action="homework/report.do" method="post" name="Form" id="Form" style="margin-bottom:0;"> | |
66 | + <input type="hidden" name="CLASSID" id="CLASSID" value="${pd.CLASS_ID}" /> | |
67 | + <input type="hidden" name="ROLE" id="ROLE" value="${pd.ROLE}" /> | |
68 | + <table style="margin-top:5px;margin-bottom:20px;"> | |
69 | + <tr> | |
70 | + <td><div style="width:150px;text-align:center;">Course statistics: ${fn:length(pd.DATA.HOMEWORKS)}</div></td> | |
71 | + <td><div style="width:150px;text-align:center;">Class roster: ${myelfun:findClassName(pd.CLASS_ID)}</div></td> | |
72 | + | |
73 | + <td><div style="width:150px;text-align:center;"><span>student number: ${fn:length(pd.DATA.STUDENTS)}</span></div></td> | |
74 | + <td></td> | |
75 | + | |
76 | + | |
77 | + | |
78 | + <td style="padding-left:2px;"> | |
79 | + <input | |
80 | + class="span10 date-picker" name="lastStart" id="lastStart" | |
81 | + value="${pd.START_DATE}" type="text" data-date-format="yyyy-mm-dd" | |
82 | + readonly="readonly" style="width:88px;" placeholder="Start Date" | |
83 | + title="Start Date" />— | |
84 | + </td> | |
85 | + <td style="padding-left:2px;"><input | |
86 | + class="span10 date-picker" name="lastEnd" id="lastEnd" value="${pd.END_DATE}" | |
87 | + type="text" data-date-format="yyyy-mm-dd" readonly="readonly" | |
88 | + style="width:88px;" placeholder="End Date" title="End Date" /></td> | |
89 | + <td style="vertical-align:top;padding-left:2px"><a | |
90 | + class="btn btn-light btn-xs" onclick="tosearch();" title="Search"><img src="static/images/search.png" alt="" class="search_btn" /></a></td> | |
91 | + <td><li class="btn ${pd.CURRENT_WEEK==-1?'btn-primary':'btn-default' } btn-sm" onclick="tosearch_week(${pd.CURRENT_WEEK-1})">Last week</li></td> | |
92 | + | |
93 | + <td><li class="btn ${pd.CURRENT_WEEK==1?'btn-primary':'btn-default' } btn-sm" onclick="tosearch_week(${pd.CURRENT_WEEK+1})">Next week</li></td> | |
94 | + </tr> | |
95 | + </table> | |
96 | + <hr /> | |
97 | + <table id="simple-table" | |
98 | + class="table table-bordered table-hover" | |
99 | + style="margin-top:0px;margin-bottom:0px;"> | |
100 | + <thead> | |
101 | + <tr> | |
102 | + <th class="center th_name"><div style="width:150px;">Name</div></th> | |
103 | + <th class="center "><div style="width:150px;">Average score of the course</div></th> | |
104 | + <th class="center"><div style="width:80px;">Course total scores</div></th> | |
105 | + <th class="center"><div style="width:150px;">Personal performance</div></th> | |
106 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
107 | + <th class="center kc"><a | |
108 | + onclick="paper('${pd.CLASS_ID}','${var_h.HOMEWORK_ID}');"><div style="width:180px; margin: 0 auto;cursor:hand" class="font">${var_h.NAME}</br><span>${var_h.COMPLETE_DATE}</span></div></a></th> | |
109 | + </c:forEach> | |
110 | + </tr> | |
111 | + </thead> | |
112 | + <tbody> | |
113 | + <tr> | |
114 | + <td class="center"><div style="width:150px;">course total scores of class</div></td> | |
115 | + <td class="center"><div style="width:150px;"></div></td> | |
116 | + <td class="center"><div style="width:80px;"></div></td> | |
117 | + <td class="center"><div style="width:80px;"></div></td> | |
118 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
119 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.ALL_SCORE}</div></td> | |
120 | + </c:forEach> | |
121 | + </tr> | |
122 | + <tr> | |
123 | + <td class="center"><div style="width:150px;">Class average score</div></td> | |
124 | + <td class="center"><div style="width:150px;"></div></td> | |
125 | + <td class="center"><div style="width:80px;"></div></td> | |
126 | + <td class="center"><div style="width:80px;"></div></td> | |
127 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
128 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.GET_SCORE}</div></td> | |
129 | + </c:forEach> | |
130 | + </tr> | |
131 | + <tr> | |
132 | + <td class="center"><div style="width:150px;">course average correct rate of class</div></td> | |
133 | + <td class="center"><div style="width:150px;"></div></td> | |
134 | + <td class="center"><div style="width:80px;"></div></td> | |
135 | + <td class="center"><div style="width:80px;"></div></td> | |
136 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
137 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.GET_SCORE_PERSENT }</div></td> | |
138 | + </c:forEach> | |
139 | + </tr> | |
140 | + <tr> | |
141 | + <td class="center"><div style="width:150px;">Exercise finish situation</div></td> | |
142 | + <td class="center"><div style="width:150px;"></div></td> | |
143 | + <td class="center"><div style="width:80px;"></div></td> | |
144 | + <td class="center"><div style="width:80px;"></div></td> | |
145 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var_h" varStatus="vs"> | |
146 | + <td class="center"><div style="width:80px;margin:0 auto;">${var_h.COMPLETE_DESC }</div></td> | |
147 | + </c:forEach> | |
148 | + </tr> | |
149 | + | |
150 | + <c:choose> | |
151 | + <c:when test="${not empty pd.DATA.STUDENTS}"> | |
152 | + <c:forEach items="${pd.DATA.STUDENTS}" var="var" varStatus="vs"> | |
153 | + <tr> | |
154 | + <%-- <td class="center"><a | |
155 | + href="report/student_report?studentid=${var.ID}&class_id=${info.CLASS_ID}">${var.NAME}</a> | |
156 | + </td> --%> | |
157 | + <td class="center"><div style="width:150px;cursor:hand"><a | |
158 | + onclick="student('${pd.CLASS_ID}','${var.STUDENT_ID}')">${var.NAME}</a></div> | |
159 | + </td> | |
160 | + <td class="center"><div style="width:150px;"><fmt:formatNumber type="number" | |
161 | + value="${var.PAPER_ALL_SCORE == 0 ? 0: (var.STUDENT_ALL_SCORE / var.PAPER_ALL_SCORE * 100)}" | |
162 | + maxFractionDigits="2" />%</div></td> | |
163 | + <td class="center"><div style="width:80px;margin:0 auto;">${var.PAPER_ALL_SCORE}</div></td> | |
164 | + <td class="center"><div style="width:80px;margin:0 auto;"><fmt:formatNumber type="number" | |
165 | + value="${var.ALL_COUNT == 0 ? 0: (var.COMPLETE_COUNT / var.ALL_COUNT * 100)}" | |
166 | + maxFractionDigits="2" />%</div></td> | |
167 | + <c:forEach items="${pd.DATA.HOMEWORKS}" var="var1" varStatus="vs1"> | |
168 | + <td class="center"><div style="width:80px;margin:0 auto;"><c:set var="TEST_ID" | |
169 | + value="${var1.HOMEWORK_ID}" /> ${var[TEST_ID] }</div></td> | |
170 | + </c:forEach> | |
171 | + </tr> | |
172 | + </c:forEach> | |
173 | + </c:when> | |
174 | + </c:choose> | |
175 | + </tbody> | |
176 | + </table> | |
177 | + | |
178 | + <div id="scrollableTable"></div> | |
179 | + </form> | |
180 | + </div> | |
181 | + | |
182 | + | |
183 | + | |
184 | + | |
185 | +</div> | |
186 | + | |
187 | + | |
188 | + | |
189 | + | |
190 | + | |
191 | + <%@ include file="../../system/index/foot.jsp"%> | |
192 | + <script src="static/ace/js/bootbox.js"></script> | |
193 | + <!-- ace scripts --> | |
194 | + <script src="static/ace/js/ace/ace.js"></script> | |
195 | + <!-- 下拉框 --> | |
196 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
197 | + <!-- 日期框 --> | |
198 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
199 | + <!--提示框--> | |
200 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
201 | + | |
202 | + <script language="javascript" src="static/js/tablescroller.js"></script> | |
203 | + <script language="javascript" src="static/js/tablescroller.jquery.js"></script> | |
204 | + | |
205 | + | |
206 | + | |
207 | + <script type="text/javascript"> | |
208 | + $(function() { | |
209 | + | |
210 | + //日期框 | |
211 | + $('.date-picker').datepicker({ | |
212 | + autoclose : true, | |
213 | + todayHighlight : true | |
214 | + }); | |
215 | + | |
216 | + //下拉框 | |
217 | + if (!ace.vars['touch']) { | |
218 | + $('.chosen-select').chosen({ | |
219 | + allow_single_deselect : true | |
220 | + }); | |
221 | + $(window).off('resize.chosen').on('resize.chosen', function() { | |
222 | + $('.chosen-select').each(function() { | |
223 | + var $this = $(this); | |
224 | + $this.next().css({ | |
225 | + 'width' : $this.parent().width() | |
226 | + }); | |
227 | + }); | |
228 | + }).trigger('resize.chosen'); | |
229 | + $(document).on('settings.ace.chosen', | |
230 | + function(e, event_name, event_val) { | |
231 | + if (event_name != 'sidebar_collapsed') | |
232 | + return; | |
233 | + $('.chosen-select').each(function() { | |
234 | + var $this = $(this); | |
235 | + $this.next().css({ | |
236 | + 'width' : $this.parent().width() | |
237 | + }); | |
238 | + }); | |
239 | + }); | |
240 | + $('#chosen-multiple-style .btn').on( | |
241 | + 'click', | |
242 | + function(e) { | |
243 | + var target = $(this).find('input[type=radio]'); | |
244 | + var which = parseInt(target.val()); | |
245 | + if (which == 2) | |
246 | + $('#form-field-select-4').addClass( | |
247 | + 'tag-input-style'); | |
248 | + else | |
249 | + $('#form-field-select-4').removeClass( | |
250 | + 'tag-input-style'); | |
251 | + }); | |
252 | + } | |
253 | + | |
254 | + //复选框全选控制 | |
255 | + var active_class = 'active'; | |
256 | + $('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on( | |
257 | + 'click', | |
258 | + function() { | |
259 | + var th_checked = this.checked;//checkbox inside "TH" table header | |
260 | + $(this).closest('table').find('tbody > tr').each( | |
261 | + function() { | |
262 | + var row = this; | |
263 | + if (th_checked) | |
264 | + $(row).addClass(active_class).find( | |
265 | + 'input[type=checkbox]').eq(0) | |
266 | + .prop('checked', true); | |
267 | + else | |
268 | + $(row).removeClass(active_class).find( | |
269 | + 'input[type=checkbox]').eq(0) | |
270 | + .prop('checked', false); | |
271 | + }); | |
272 | + }); | |
273 | + }); | |
274 | + | |
275 | + var role = '${pd.ROLE}'; | |
276 | + | |
277 | + function precent(avg,total){ | |
278 | + if(total == 0){ | |
279 | + return "0%" | |
280 | + } | |
281 | + return Math.round(avg / total * 100)/100 + '%' ; | |
282 | + } | |
283 | + | |
284 | + function homeReport(classId){ | |
285 | + var path = '<%=basePath%>homework/report.do?School_id=${pd.SCHOOL_ID}&CLASS_ID='+classId; | |
286 | + console.log(path); | |
287 | + parent.$("#mainFrame").attr('src',path); | |
288 | + window.top.loading.show(); | |
289 | + } | |
290 | + | |
291 | + function tosearch(){ | |
292 | + | |
293 | + var url = "<%=basePath%>homework/report.do?CLASS_ID=${pd.CLASS_ID}" ; | |
294 | + var startDate = $("#lastStart").val(); | |
295 | + var endDate = $("#lastEnd").val(); | |
296 | + //var subject_id = $("#SUBJECT_ID").val(); | |
297 | + url = url + "&START_DATE=" + startDate ; | |
298 | + if(endDate != null){ | |
299 | + url = url + "&END_DATE=" + endDate; | |
300 | + } | |
301 | + | |
302 | + window.location.href = url; | |
303 | + window.top.loading.show(); | |
304 | + /* $("#Form").sumbit(); */ | |
305 | + } | |
306 | + function tosearch_week(type){ //上一周 本周 下一周 | |
307 | + console.log('${pd.CLASS_ID}'); | |
308 | + var url = "<%=basePath%>homework/report.do?CLASS_ID=${pd.CLASS_ID}" ; | |
309 | + url = url + "&CURRENT_WEEK=" + type ; | |
310 | + | |
311 | + console.log(url); | |
312 | + window.location.href = url; | |
313 | + window.top.loading.show(); | |
314 | + /* $("#Form").sumbit(); */ | |
315 | + } | |
316 | + | |
317 | + function student(classid,studentid){ | |
318 | + | |
319 | + var url = "<%=basePath%>homework/student.do?STUDENT_ID=" + studentid + "&CLASS_ID=" + classid ; | |
320 | + var startDate = $("#lastStart").val(); | |
321 | + var endDate = $("#lastEnd").val(); | |
322 | + url = url + "&START_DATE=" + startDate + "&END_DATE=" + endDate ; | |
323 | + | |
324 | + window.location.href = url; | |
325 | + window.top.loading.show(); | |
326 | + } | |
327 | + | |
328 | + function paper(class_id,testpaper_id){ | |
329 | + var url = "<%=basePath%>homework/homework_report?HOMEWORK_ID=" + testpaper_id + "&CLASS_ID=" + class_id; | |
330 | + var startDate = $("#lastStart").val(); | |
331 | + var endDate = $("#lastEnd").val(); | |
332 | + url = url + "&START_DATE=" + startDate + "&END_DATE=" + endDate ; | |
333 | + window.self.location.href = url; | |
334 | + window.top.loading.show(); | |
335 | + } | |
336 | + | |
337 | + $(document).ready(function(){ | |
338 | + window.top.loading.remove(); | |
339 | + | |
340 | + var sour = "${pd.DATA.HOMEWORKS}"; | |
341 | + | |
342 | + | |
343 | + if(sour != null && sour.length > 3){ | |
344 | + var _width = $('#mainFrame', parent.document).width()-40; | |
345 | + var _heigh = $('#mainFrame', parent.document).height()-350; | |
346 | + var options = { | |
347 | + width: _width, | |
348 | + height: _heigh, | |
349 | + pinnedRows: 5, | |
350 | + pinnedCols: 4, | |
351 | + container: "#scrollableTable", | |
352 | + removeOriginal: true | |
353 | + }; | |
354 | + $("#simple-table").tablescroller(options); | |
355 | + var name_height = $(".kc").last().parent().height()-18.5; | |
356 | + console.log(name_height); | |
357 | + $(".th_name").height(name_height); | |
358 | + } | |
359 | + | |
360 | + }); | |
361 | + | |
362 | + </script> | |
363 | + | |
364 | +</body> | |
365 | +</html> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_student_report.jsp
0 → 100644
1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
2 | +<html xmlns="http://www.w3.org/1999/xhtml"> | |
3 | +<head> | |
4 | +<% | |
5 | + String path = request.getContextPath(); | |
6 | + String basePath = request.getScheme() + "://" | |
7 | + + request.getServerName() + ":" + request.getServerPort() | |
8 | + + path + "/"; | |
9 | +%> | |
10 | +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
11 | +<title>班级-测试名单</title> | |
12 | +<script src="../static/js/jquery.min.js"></script> | |
13 | +<script | |
14 | + src="../static/js/bootstrap.min.js"></script> | |
15 | +<link | |
16 | + href="../static/css/bootstrap.min.css" | |
17 | + rel="stylesheet" type="text/css" media="all" /> | |
18 | +<link href="../static/css/jquery.circliful.css" rel="stylesheet" | |
19 | + type="text/css" /> | |
20 | +<link href="../static/css/style1.css?t=123" rel="stylesheet" type="text/css" /> | |
21 | +<!-- 日期框 --> | |
22 | +<link rel="stylesheet" href="../static/ace/css/datepicker.css" /> | |
23 | +<script src="../static/laydate/laydate.js"></script> | |
24 | +<!-- 改成你的路径 --> | |
25 | +<script src="../static/js/jquery.circliful.min.js"></script> | |
26 | +<script src="../static/js/echars.js"></script> | |
27 | +<!-- 日期框 --> | |
28 | +<script src="../static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
29 | +<!--提示框--> | |
30 | +<script type="text/javascript" src="../static/js/jquery.tips.js"></script> | |
31 | + | |
32 | + | |
33 | + | |
34 | + | |
35 | +<style> | |
36 | +body { | |
37 | + padding-top: 50px; | |
38 | +} | |
39 | + | |
40 | +li { | |
41 | + list-style: none; | |
42 | +} | |
43 | +</style> | |
44 | +</head> | |
45 | +<body> | |
46 | + <div class="header"> | |
47 | + <nav class="navbar navbar-default navbar-fixed-top"> | |
48 | + <div class="container"> | |
49 | + <input type="hidden" name="SUBJECT_ID" id="SUBJECT_ID" value="${pd.SUBJECT_ID}"/> | |
50 | + <input type="text" class="date-picker" placeholder="Start Date" name="starDate" id="starDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${start_date}"/> | |
51 | + <input type="text" class="date-picker" placeholder="End Date" name="endDate" id="endDate" data-date-format="yyyy-mm-dd" readonly="readonly" value="${end_date}"/> | |
52 | + <input type="button" value="Search" id="search" /> | |
53 | + </div> | |
54 | + </nav> | |
55 | + </div> | |
56 | + <div class="content row"> | |
57 | + <div class="content_l col-md-2"> | |
58 | + <ul> | |
59 | + | |
60 | + </ul> | |
61 | + </div> | |
62 | + <div class="content_r col-md-10"> | |
63 | + <div class="tabel_t"> | |
64 | + <div class="name"> | |
65 | + <h1></h1> | |
66 | + </div> | |
67 | + <div class="circle row"> | |
68 | + <div class="col-md-6"> | |
69 | + <!-- <div id="myStathalf" data-dimension="350" data-text="9/19" data-info="参与测试" data-width="10" data-fontsize="38" data-percent="35" data-fgcolor="#8ad254" data-bgcolor="#a9f9ff" data-type="half" data-fill="#50b5c9"></div> --> | |
70 | + | |
71 | + </div> | |
72 | + <div class="col-md-6"> | |
73 | + <!-- <div id="myStathalf1" data-dimension="350" data-text="36%" data-info="个人平均得分率" data-width="10" data-fontsize="38" data-percent="35" data-fgcolor="#8ad254" data-bgcolor="#a9f9ff" data-type="half" data-fill="#50b5c9"></div> --> | |
74 | + | |
75 | + </div> | |
76 | + </div> | |
77 | + <div class="info row"> | |
78 | + <div class="col-md-6"> | |
79 | + <p> | |
80 | + Class average score<span id="class_avg">0.0</span>% | |
81 | + </p> | |
82 | + </div> | |
83 | + <div class="col-md-6"> | |
84 | + <p> | |
85 | + Highest grade rate in class<span id="class_max">0.0</span>% | |
86 | + </p> | |
87 | + </div> | |
88 | + </div> | |
89 | + <div class="prev"></div> | |
90 | + <div class="next"></div> | |
91 | + </div> | |
92 | + <div class="tabel_b"> | |
93 | + <div class="tab_top row"> | |
94 | + <div class="col-md-3">Comparison chart of correct rate</div> | |
95 | + <div class="col-md-9"> | |
96 | + <div class="color"> | |
97 | + <ul> | |
98 | + <li><span class="green"></span>Class average </li> | |
99 | + <li><span class="blue"></span>Student personal</li> | |
100 | + <li><span class="yellow"></span>Highest score in class</li> | |
101 | + <div class="clear"></div> | |
102 | + </ul> | |
103 | + </div> | |
104 | + <div class="check_box"> | |
105 | + <input type="radio" checked value="1" name="check" id="check1" /> | |
106 | + <label for="check1">According to the scoring rate</label> <input type="radio" value="2" | |
107 | + name="check" id="check2" /> <label for="check2">According to the score</label> | |
108 | + </div> | |
109 | + </div> | |
110 | + </div> | |
111 | + <div class="tabel_content"> | |
112 | + <div id="main" style="width: 100%;height:400px;"></div> | |
113 | + </div> | |
114 | + </div> | |
115 | + </div> | |
116 | + </div> | |
117 | + <script type=""> | |
118 | + var URL = '<%=basePath%>${URL}'; | |
119 | + var data = ${data}; | |
120 | + </script> | |
121 | + <script src="../static/js/home_control1.js?a=3"></script> | |
122 | + <!-- 日期框 --> | |
123 | + <script> | |
124 | + //lay('#version').html('-v'+ laydate.v); | |
125 | + //日期范围 | |
126 | + // laydate.render({ | |
127 | + // elem: '#test6' | |
128 | + // ,range: true | |
129 | + // }); | |
130 | + | |
131 | + | |
132 | + $(document).ready(function(){ | |
133 | + window.top.loading.remove(); | |
134 | + }); | |
135 | + | |
136 | + $('.date-picker').datepicker({ | |
137 | + autoclose : true, | |
138 | + todayHighlight : true | |
139 | + }); | |
140 | + function student(classid,studentid){ | |
141 | + | |
142 | + var url = "<%=basePath%>homework/student.do?STUDENT_ID=" + studentid + "&CLASS_ID=" + classid ; | |
143 | + var startDate = $("#starDate").val(); | |
144 | + var endDate = $("#endDate").val(); | |
145 | + url = url + "&START_DATE=" + startDate + "&END_DATE=" + endDate ; | |
146 | + | |
147 | + //console.log(url); | |
148 | + window.location.href = url; | |
149 | + window.top.loading.show(); | |
150 | + } | |
151 | +</script> | |
152 | + | |
153 | + | |
154 | + | |
155 | +</body> | |
156 | +</html> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/en_homework_view.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 | +<%@ taglib prefix="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
6 | + | |
7 | +<% | |
8 | + String path = request.getContextPath(); | |
9 | + String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | |
10 | +%> | |
11 | +<!DOCTYPE html> | |
12 | +<html lang="en" style="overflow-x:hidden;"> | |
13 | + <head> | |
14 | + <base href="<%=basePath%>"> | |
15 | + <!-- 下拉框 --> | |
16 | + <link rel="stylesheet" href="static/ace/css/chosen.css" /> | |
17 | + <!-- jsp文件头和头部 --> | |
18 | + | |
19 | + <link rel="stylesheet" href="static/css/bootstrap.min.css"> | |
20 | + <!-- 日期框 --> | |
21 | + <link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
22 | + | |
23 | + <link rel="stylesheet" href="static/css/teach.css" /> | |
24 | + <link rel="stylesheet" href="static/css/edit.css" /> | |
25 | + <style> | |
26 | + .box_header{position:fixed;top:0;left:0;width:100%;} | |
27 | + #Form{margin-top:102px;} | |
28 | + | |
29 | + </style> | |
30 | +</head> | |
31 | +<body class="no-skin homework_edit"> | |
32 | +<!-- /section:basics/navbar.layout --> | |
33 | +<div class="main-container" id="main-container"> | |
34 | + <!-- /section:basics/sidebar --> | |
35 | + <div class="main-content"> | |
36 | + <div class="main-content-inner"> | |
37 | + <div class="page-content"> | |
38 | + <div class="row"> | |
39 | + <div class="col-xs-12"> | |
40 | + <div class="box_header"> | |
41 | + <div class="head_box_l"> | |
42 | + <p> | |
43 | + <span class="right_b"></span>Exercise Preview | |
44 | + </p> | |
45 | + </div> | |
46 | + <div class="clear"></div> | |
47 | + </div> | |
48 | + <form action="homework/${msg }.do" name="Form" id="Form" method="post"> | |
49 | + <input type="hidden" name="TEACHER_ID" id="TEACHER_ID" value="${pd.TEACHER_ID}"/> | |
50 | + <div id="zhongxin" style="padding-top: 13px;width:80%;margin:0 auto;"> | |
51 | + <table id="table_report" class="table"> | |
52 | + <tr> | |
53 | + <td style="width:95px;text-align: right;padding-top: 13px;">exercise title</td> | |
54 | + <td><input type="text" name="NAME" class="form-control" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="输入练习标题,不超过20个汉字" title="exercise title" /></td> | |
55 | + </tr> | |
56 | + <tr> | |
57 | + <td style="width:95px;text-align: right;padding-top: 13px;">exercise description</td> | |
58 | + <td><input type="text" name=HOMEWORK_DESC class="form-control" id="HOMEWORK_DESC" value="${pd.HOMEWORK_DESC}" maxlength="255" placeholder="输入题目说明,如教材第12页1-5题,教辅第5页1-3题,尽量精简,不超过100个汉字" title="exercise description" /></td> | |
59 | + </tr> | |
60 | + <tr> | |
61 | + <td style="width:95px;text-align: right;padding-top: 13px;">Assign completed time of class</td> | |
62 | + <td> | |
63 | + <div class="classBox"> | |
64 | + <ul> | |
65 | + <c:if test="${pd.CLASS_ID != null}"> | |
66 | + <li class="checked"> | |
67 | + <input type="checkbox" checked="true" id="class0" name="className" value="${pd.CLASS_ID}" /> | |
68 | + <label for="class0"></label> | |
69 | + <span>${myelfun:findClassName(pd.CLASS_ID)}</span> | |
70 | + <input class="date-picker" type="text" class="form-control" style="width:150px;text-align:center;" placeholder="完成日期" name="lastStart" id="lastStart" data-date-format="yyyy-mm-dd" readonly="readonly" value="${pd.COMPLETE_DATE}"/> | |
71 | + </li> | |
72 | + </c:if> | |
73 | + | |
74 | + </ul> | |
75 | + </div> | |
76 | + | |
77 | + </td> | |
78 | + </tr> | |
79 | + | |
80 | + </table> | |
81 | + </div> | |
82 | + <hr /> | |
83 | + <div class="subject" style="width:80%;margin:0 auto;"> | |
84 | + <table width="100%"> | |
85 | + <col width="50%"/> | |
86 | + <col width="20%"/> | |
87 | + <col width="20%"/> | |
88 | + <col width="10%"/> | |
89 | + <thead> | |
90 | + <tr> | |
91 | + <th style="text-align:left;"><span>question number</span><input type="number" class="w_100" id="que_num" value="${pd.QUESTION_COUNT==null?0:pd.QUESTION_COUNT}"/></th> | |
92 | + <th><span>option number</span><input type="number" class="w_100 ans_num" id="ans_num" value="4"/></th> | |
93 | + <th><span>score</span><input type="number" class="w_100 score" id="score" value="1"/></th> | |
94 | + <th></th> | |
95 | + </tr> | |
96 | + </thead> | |
97 | + </table> | |
98 | + <table width="100%" border="0" class="subject_body_tabel"> | |
99 | + <col width="10%"/> | |
100 | + <col width="40%"/> | |
101 | + <col width="20%"/> | |
102 | + <col width="20%"/> | |
103 | + <col width="10%"/> | |
104 | + <tbody class="subject_body_tbody"> | |
105 | + <c:choose> | |
106 | + <c:when test="${not empty pd.QUESTIONS}"> | |
107 | + <c:forEach items="${pd.QUESTIONS}" var="var" varStatus="vs"> | |
108 | + <tr> | |
109 | + <td class="first">${var.RANK}</td> | |
110 | + <td class="middle"> | |
111 | + <div class="question question${var.RANK}"> | |
112 | + <ul> | |
113 | + <c:forEach var="i" begin="1" end="${var.OPTION_NUM}"> | |
114 | + <c:set var="a" value="${fn:substring('ABCDEFGHI',i-1,i)}"/> | |
115 | + | |
116 | + <li class="btn btn-default <c:if test="${fn:contains(var.RIGHT_ANSWER, a)}"> on </c:if>">${a}</li> | |
117 | + </c:forEach> | |
118 | + | |
119 | + </ul> | |
120 | + </div> | |
121 | + | |
122 | + </td> | |
123 | + <td class="middle"><span>option number</span><input type="number" class="w_100 ans_num" value="${var.OPTION_NUM}"/></td> | |
124 | + <td class="middle"><span>score</span><input type="number" class="w_100 score" value="${var.SCORE}"/></td> | |
125 | + <td class="last"></td> | |
126 | + </tr> | |
127 | + </c:forEach> | |
128 | + </c:when> | |
129 | + <c:otherwise> | |
130 | + <tr class="main_info"> | |
131 | + <td colspan="100" class="center">There is no data</td> | |
132 | + </tr> | |
133 | + </c:otherwise> | |
134 | + </c:choose> | |
135 | + | |
136 | + </tbody> | |
137 | + </table> | |
138 | + </div> | |
139 | + <hr /> | |
140 | + <div> | |
141 | + <div style="text-align: center;display:none" colspan="10"> | |
142 | + | |
143 | + | |
144 | + <a class="btn btn-mini btn-danger" onclick="back();">Quit</a> | |
145 | + </div> | |
146 | + </div> | |
147 | + <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">Submiting...</h4></div> | |
148 | + </form> | |
149 | + | |
150 | + | |
151 | + | |
152 | + | |
153 | + </div> | |
154 | + <!-- /.col --> | |
155 | + </div> | |
156 | + <!-- /.row --> | |
157 | + </div> | |
158 | + <!-- /.page-content --> | |
159 | + </div> | |
160 | + </div> | |
161 | + <!-- /.main-content --> | |
162 | +</div> | |
163 | +<!-- /.main-container --> | |
164 | + | |
165 | + <!-- 页面底部js¨ --> | |
166 | + <%@ include file="../../system/index/foot.jsp"%> | |
167 | + <!-- 下拉框 --> | |
168 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
169 | + <!-- 日期框 --> | |
170 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
171 | + <!--提示框--> | |
172 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
173 | + <!--页面交互--> | |
174 | + | |
175 | + <script> | |
176 | + | |
177 | + $(function() { | |
178 | + window.top.loading.remove(); | |
179 | + }); | |
180 | + function back(){ | |
181 | + var path = '<%=basePath%>homework/list.do?teacher_id=${pd.TEACHER_ID}'; | |
182 | + parent.$("#mainFrame").attr('src',path); | |
183 | + window.top.loading.show(); | |
184 | + } | |
185 | + | |
186 | + | |
187 | + | |
188 | + </script> | |
189 | +</body> | |
190 | +</html> | |
0 | 191 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/homework/homework_list.jsp
... | ... | @@ -19,7 +19,7 @@ |
19 | 19 | <!-- 日期框 --> |
20 | 20 | <link rel="stylesheet" href="static/ace/css/datepicker.css" /> |
21 | 21 | <link |
22 | - href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
22 | + href="static/css/bootstrap.min.css" | |
23 | 23 | rel="stylesheet"> |
24 | 24 | <link href="static/css/teach.css" rel="stylesheet"> |
25 | 25 | </head> | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/pagetemplate/en_pagetemplate_edit.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 | +</head> | |
20 | +<body class="no-skin"> | |
21 | +<!-- /section:basics/navbar.layout --> | |
22 | +<div class="main-container" id="main-container"> | |
23 | + <!-- /section:basics/sidebar --> | |
24 | + <div class="main-content"> | |
25 | + <div class="main-content-inner"> | |
26 | + <div class="page-content"> | |
27 | + <div class="row"> | |
28 | + <div class="col-xs-12"> | |
29 | + | |
30 | + <form action="pagetemplate/${msg }.do" name="Form" id="Form" method="post"> | |
31 | + <input type="hidden" name="PAGETEMPLATE_ID" id="PAGETEMPLATE_ID" value="${pd.PAGETEMPLATE_ID}"/> | |
32 | + <div id="zhongxin" style="padding-top: 13px;"> | |
33 | + <table id="table_report" class="table table-striped table-bordered table-hover"> | |
34 | + <tr> | |
35 | + <td style="width:75px;text-align: right;padding-top: 13px;">Template name:</td> | |
36 | + <td><input type="text" name="NAME" id="NAME" value="${pd.NAME}" maxlength="255" placeholder="Enter the template name" title="template name" style="width:98%;"/></td> | |
37 | + </tr> | |
38 | + <tr> | |
39 | + <td style="width:75px;text-align: right;padding-top: 13px;">School:</td> | |
40 | + <td><input type="text" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}" maxlength="100" placeholder="Enter the school" title="school" style="width:98%;"/></td> | |
41 | + </tr> | |
42 | + <tr> | |
43 | + <td style="width:75px;text-align: right;padding-top: 13px;">Subject:</td> | |
44 | + <td><input type="text" name="SUBJECT_ID" id="SUBJECT_ID" value="${pd.SUBJECT_ID}" maxlength="100" placeholder="Enter the subject" title="subject" style="width:98%;"/></td> | |
45 | + </tr> | |
46 | + <tr> | |
47 | + <td style="width:75px;text-align: right;padding-top: 13px;">Grade:</td> | |
48 | + <td><input type="text" name="GRADE_ID" id="GRADE_ID" value="${pd.GRADE_ID}" maxlength="255" placeholder="Enter the grade" title="grade" style="width:98%;"/></td> | |
49 | + </tr> | |
50 | + <tr> | |
51 | + <td style="width:75px;text-align: right;padding-top: 13px;">User ID:</td> | |
52 | + <td><input type="text" name="USER_ID" id="USER_ID" value="${pd.USER_ID}" maxlength="100" placeholder="Enter the user ID" title="user ID" style="width:98%;"/></td> | |
53 | + </tr> | |
54 | + <tr> | |
55 | + <td style="width:75px;text-align: right;padding-top: 13px;">Total score:</td> | |
56 | + <td><input type="text" name="PAGE_SCORE" id="PAGE_SCORE" value="${pd.PAGE_SCORE}" maxlength="255" placeholder="Enter the total score" title="total score" style="width:98%;"/></td> | |
57 | + </tr> | |
58 | + <tr> | |
59 | + <td style="width:75px;text-align: right;padding-top: 13px;">Template content:</td> | |
60 | + <td><input type="text" name="CONTENT" id="CONTENT" value="${pd.CONTENT}" maxlength="1000" placeholder="Enter the template content" title="template content" style="width:98%;"/></td> | |
61 | + </tr> | |
62 | + <tr> | |
63 | + <td style="text-align: center;" colspan="10"> | |
64 | + <a class="btn btn-mini btn-primary" onclick="save();">Save</a> | |
65 | + <a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">Cancel</a> | |
66 | + </td> | |
67 | + </tr> | |
68 | + </table> | |
69 | + </div> | |
70 | + <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">Submiting...</h4></div> | |
71 | + </form> | |
72 | + </div> | |
73 | + <!-- /.col --> | |
74 | + </div> | |
75 | + <!-- /.row --> | |
76 | + </div> | |
77 | + <!-- /.page-content --> | |
78 | + </div> | |
79 | + </div> | |
80 | + <!-- /.main-content --> | |
81 | +</div> | |
82 | +<!-- /.main-container --> | |
83 | + | |
84 | + | |
85 | + <!-- 页面底部js¨ --> | |
86 | + <%@ include file="../../system/index/foot.jsp"%> | |
87 | + <!-- 下拉框 --> | |
88 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
89 | + <!-- 日期框 --> | |
90 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
91 | + <!--提示框--> | |
92 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
93 | + <script type="text/javascript"> | |
94 | + $(top.hangge()); | |
95 | + //保存 | |
96 | + function save(){ | |
97 | + if($("#NAME").val()==""){ | |
98 | + $("#NAME").tips({ | |
99 | + side:3, | |
100 | + msg:'Please enter the template name', | |
101 | + bg:'#AE81FF', | |
102 | + time:2 | |
103 | + }); | |
104 | + $("#NAME").focus(); | |
105 | + return false; | |
106 | + } | |
107 | + if($("#SCHOOL_ID").val()==""){ | |
108 | + $("#SCHOOL_ID").tips({ | |
109 | + side:3, | |
110 | + msg:'Please enter the school', | |
111 | + bg:'#AE81FF', | |
112 | + time:2 | |
113 | + }); | |
114 | + $("#SCHOOL_ID").focus(); | |
115 | + return false; | |
116 | + } | |
117 | + if($("#SUBJECT_ID").val()==""){ | |
118 | + $("#SUBJECT_ID").tips({ | |
119 | + side:3, | |
120 | + msg:'Please enter the subject', | |
121 | + bg:'#AE81FF', | |
122 | + time:2 | |
123 | + }); | |
124 | + $("#SUBJECT_ID").focus(); | |
125 | + return false; | |
126 | + } | |
127 | + if($("#GRADE_ID").val()==""){ | |
128 | + $("#GRADE_ID").tips({ | |
129 | + side:3, | |
130 | + msg:'Please enter the grade', | |
131 | + bg:'#AE81FF', | |
132 | + time:2 | |
133 | + }); | |
134 | + $("#GRADE_ID").focus(); | |
135 | + return false; | |
136 | + } | |
137 | + if($("#USER_ID").val()==""){ | |
138 | + $("#USER_ID").tips({ | |
139 | + side:3, | |
140 | + msg:'Please enter the user ID', | |
141 | + bg:'#AE81FF', | |
142 | + time:2 | |
143 | + }); | |
144 | + $("#USER_ID").focus(); | |
145 | + return false; | |
146 | + } | |
147 | + if($("#PAGE_SCORE").val()==""){ | |
148 | + $("#PAGE_SCORE").tips({ | |
149 | + side:3, | |
150 | + msg:'Please enter the total score', | |
151 | + bg:'#AE81FF', | |
152 | + time:2 | |
153 | + }); | |
154 | + $("#PAGE_SCORE").focus(); | |
155 | + return false; | |
156 | + } | |
157 | + if($("#CONTENT").val()==""){ | |
158 | + $("#CONTENT").tips({ | |
159 | + side:3, | |
160 | + msg:'Please enter the template content', | |
161 | + bg:'#AE81FF', | |
162 | + time:2 | |
163 | + }); | |
164 | + $("#CONTENT").focus(); | |
165 | + return false; | |
166 | + } | |
167 | + $("#Form").submit(); | |
168 | + $("#zhongxin").hide(); | |
169 | + $("#zhongxin2").show(); | |
170 | + } | |
171 | + | |
172 | + $(function() { | |
173 | + //日期框 | |
174 | + $('.date-picker').datepicker({autoclose: true,todayHighlight: true}); | |
175 | + }); | |
176 | + </script> | |
177 | +</body> | |
178 | +</html> | |
0 | 179 | \ No newline at end of file | ... | ... |
WebRoot/WEB-INF/jsp/sunvote/pagetemplate/en_pagetemplate_list2.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="myelfun" uri="/WEB-INF/tld/elfun.tld"%> | |
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 | +<link | |
18 | + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
19 | + rel="stylesheet"> | |
20 | +<link href="static/css/teach.css" rel="stylesheet"> | |
21 | +<!-- 日期框 --> | |
22 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
23 | +</head> | |
24 | +<body class="no-skin"> | |
25 | + | |
26 | + <form action="pagetemplate/listcs.do" method="post" name="Form" id="Form"> | |
27 | + <input type="hidden" name="SCHOOL_ID" id="SCHOOL_ID" value="${pd.SCHOOL_ID}"/> | |
28 | + <div class="head_box"> | |
29 | + <div class="box_header"> | |
30 | + <div class="head_box_l"> | |
31 | + <p> | |
32 | + <span class="right_b"></span>Template management | |
33 | + </p> | |
34 | + </div> | |
35 | + <div class="head_box_r"></div> | |
36 | + <div class="clear"></div> | |
37 | + </div> | |
38 | + | |
39 | + <div style="padding:0 5%;background:#fff;"> | |
40 | + <table class="table table-striped"> | |
41 | + <col style="width: 10%" /> | |
42 | + <col style="width: 15%" /> | |
43 | + <col style="width: 12.5%" /> | |
44 | + <col style="width: 12.5%" /> | |
45 | + <col style="width: 12.5%" /> | |
46 | + <col style="width: 12.5%" /> | |
47 | + <thead> | |
48 | + <tr> | |
49 | + <th><input type="checkbox" name='ids' id="ids" />Number</th> | |
50 | + <th class="center">Template name</th> | |
51 | + <th class="center">Subject</th> | |
52 | + <th class="center">Grade</th> | |
53 | + <th class="center">Total score</th> | |
54 | + <th class="center">operation</th> | |
55 | + </tr> | |
56 | + </thead> | |
57 | + </table> | |
58 | + </div> | |
59 | + </div> | |
60 | + <div class="table_box" > | |
61 | + <table class="table table-striped"> | |
62 | + <col style="width: 10%" /> | |
63 | + <col style="width: 15%" /> | |
64 | + <col style="width: 12.5%" /> | |
65 | + <col style="width: 12.5%" /> | |
66 | + <col style="width: 12.5%" /> | |
67 | + <col style="width: 12.5%" /> | |
68 | + | |
69 | + <tbody> | |
70 | + <!-- 开始循环 --> | |
71 | + <c:choose> | |
72 | + <c:when test="${not empty varList}"> | |
73 | + | |
74 | + <c:forEach items="${varList}" var="var" varStatus="vs"> | |
75 | + <tr> | |
76 | + <td><input type="checkbox" name='ids' id="ids" value="${var.PAGETEMPLATE_ID}" />${vs.index+1}</td> | |
77 | + <td class='center'>${var.NAME}</td> | |
78 | + <td class='center'>${myelfun:findSubjectCName(var.SUBJECT_ID)}</td> | |
79 | + <td class='center'>${myelfun:findGradeName(var.GRADE_ID)}</td> | |
80 | + <td class='center'>${var.PAGE_SCORE}</td> | |
81 | + <td><a hidden onclick="edit('${var.PAGETEMPLATE_ID}');" style="margin-right:10px;"><img src="static/images/eidtor.png" /></a> | |
82 | + <a onclick="del('${var.PAGETEMPLATE_ID}');"><img src="static/images/remove.png" /></a></td> | |
83 | + </tr> | |
84 | + | |
85 | + </c:forEach> | |
86 | + | |
87 | + | |
88 | + </c:when> | |
89 | + <c:otherwise> | |
90 | + <tr class="main_info"> | |
91 | + <td colspan="100" class="center" >There is no data</td> | |
92 | + </tr> | |
93 | + </c:otherwise> | |
94 | + </c:choose> | |
95 | + </tbody> | |
96 | + </table> | |
97 | + <div class="footer" style="width:auto"> | |
98 | + <div class="creat"> | |
99 | + <input type="button" onclick="$('.title_time').modal('show');" value="Add the Template" /> | |
100 | + </div> | |
101 | + <div class="removeAll"> | |
102 | + <input type="button" onclick="del('')" value="Batch delete" /> | |
103 | + </div> | |
104 | + <div class="page_box"> | |
105 | + | |
106 | + <div class="pagination" | |
107 | + style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div> | |
108 | + </div> | |
109 | + </div> | |
110 | + </div> | |
111 | + </form> | |
112 | + <div class="modal fade title_time" tabindex="-1" role="dialog"> | |
113 | + <div class="modal-dialog" role="document" style="z-index:1400"> | |
114 | + <div class="modal-content"> | |
115 | + <div class="modal-header"> | |
116 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
117 | + <h4 class="modal-title">Add the Template</h4> | |
118 | + </div> | |
119 | + <div class="modal-body"> | |
120 | + <div class="form-group"> | |
121 | + <label for="template_name" class="col-sm-4 control-label">Template name</label> | |
122 | + <div class="col-sm-6"> | |
123 | + <input type="text" class="form-control" id="template_name" placeholder="Enter the Template name" maxlength="100" minlength="1"> | |
124 | + </div> | |
125 | + <div class="clearfix"></div> | |
126 | + </div> | |
127 | + <div class="form-group"> | |
128 | + <label for="subject_id" class="col-sm-4 control-label">Subject</label> | |
129 | + <div class="col-sm-6"> | |
130 | + <select class="chosen-select form-control" name="subject_id" id="subject_id" data-placeholder="Enter the subject"> | |
131 | + <c:forEach items="${subjectList}" var="var" varStatus="vs"> | |
132 | + <option value="${var.ID}">${var.CNAME}</option> | |
133 | + </c:forEach> | |
134 | + </select> | |
135 | + </div> | |
136 | + <div class="clearfix"></div> | |
137 | + </div> | |
138 | + <div class="form-group"> | |
139 | + <label for="grade_id" class="col-sm-4 control-label">Grade</label> | |
140 | + <div class="col-sm-6"> | |
141 | + <select class="chosen-select form-control" name="grade_id" id="grade_id" data-placeholder="Enter the grade"> | |
142 | + <c:forEach items="${gradeList}" var="var" varStatus="vs"> | |
143 | + <option value="${var.ID}">${var.NAME}</option> | |
144 | + </c:forEach> | |
145 | + </select> | |
146 | + </div> | |
147 | + <div class="clearfix"></div> | |
148 | + </div> | |
149 | + </div> | |
150 | + <div class="modal-footer"> | |
151 | + <button type="button" class="btn btn-primary" id="time_submit">confirm</button> | |
152 | + <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button> | |
153 | + </div> | |
154 | + </div><!-- /.modal-content --> | |
155 | + </div><!-- /.modal-dialog --> | |
156 | + </div><!-- /.modal --> | |
157 | + | |
158 | + <!-- basic scripts --> | |
159 | + <!-- 页面底部js¨ --> | |
160 | + <%@ include file="../../system/index/foot.jsp"%> | |
161 | + <!-- 删除时确认窗口 --> | |
162 | + <script src="static/ace/js/bootbox.js"></script> | |
163 | + <!-- ace scripts --> | |
164 | + <script src="static/ace/js/ace/ace.js"></script> | |
165 | + <!-- 下拉框 --> | |
166 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
167 | + <!-- 日期框 --> | |
168 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
169 | + <!--提示框--> | |
170 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
171 | + <script type="text/javascript"> | |
172 | + | |
173 | + $(document).ready(function() { | |
174 | + window.top.loading.remove(); | |
175 | + }); | |
176 | + | |
177 | + $('#ids').on('click', function(){ | |
178 | + var th_checked = $("#ids").prop('checked');//checkbox inside "TH" table header | |
179 | + | |
180 | + $(".table_box .table").find('tbody > tr').each(function(){ | |
181 | + var row = this; | |
182 | + if(th_checked) $(row).find('input[type=checkbox]').eq(0).prop('checked', true); | |
183 | + else $(row).find('input[type=checkbox]').eq(0).prop('checked', false); | |
184 | + }); | |
185 | + }); | |
186 | + | |
187 | + $("#time_submit").click(function(){ | |
188 | + var name = $("#template_name").val(); | |
189 | + var subject_id = $("#subject_id").val(); | |
190 | + var grade_id = $("#grade_id").val(); | |
191 | + | |
192 | + if(name != null&& name != ''){ | |
193 | + self.location.href = "<%=basePath%>" + "pagetemplate/npaper.do?school_id=${pd.SCHOOL_ID}&subject_id=" + subject_id + "&grade_id=" + grade_id + "&name=" + name; | |
194 | + $(".title_time").modal("hide"); | |
195 | + }else{ | |
196 | + alert("Please enter the template name"); | |
197 | + } | |
198 | + | |
199 | + }); | |
200 | + | |
201 | + //复选框全选控制 | |
202 | + var active_class = 'active'; | |
203 | + $('#simple-table > thead > tr > th input[type=checkbox]').eq(0).on('click', function(){ | |
204 | + var th_checked = this.checked;//checkbox inside "TH" table header | |
205 | + $(this).closest('table').find('tbody > tr').each(function(){ | |
206 | + var row = this; | |
207 | + if(th_checked) $(row).addClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', true); | |
208 | + else $(row).removeClass(active_class).find('input[type=checkbox]').eq(0).prop('checked', false); | |
209 | + }); | |
210 | + }); | |
211 | + | |
212 | + | |
213 | + //新增 | |
214 | + function add(){ | |
215 | + top.jzts(); | |
216 | + var diag = new top.Dialog(); | |
217 | + diag.Drag=true; | |
218 | + diag.Title ="Add"; | |
219 | + diag.URL = '<%=basePath%>pagetemplate/goAdd.do'; | |
220 | + diag.Width = 450; | |
221 | + diag.Height = 355; | |
222 | + diag.Modal = true; //有无遮罩窗口 | |
223 | + diag. ShowMaxButton = true; //最大化按钮 | |
224 | + diag.ShowMinButton = true; //最小化按钮 | |
225 | + diag.CancelEvent = function(){ //关闭事件 | |
226 | + if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ | |
227 | + if('${page.currentPage}' == '0'){ | |
228 | + tosearch(); | |
229 | + }else{ | |
230 | + tosearch(); | |
231 | + } | |
232 | + } | |
233 | + diag.close(); | |
234 | + }; | |
235 | + diag.show(); | |
236 | + } | |
237 | + function tosearch(){ | |
238 | + $("#Form").submit(); | |
239 | + } | |
240 | + //删除 | |
241 | + function del(Id){ | |
242 | + window.top.remove.init({"title":"Remove","func":function(success){ | |
243 | + if(success){ | |
244 | + var str = Id; | |
245 | + if(str == ''){ | |
246 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
247 | + if(document.getElementsByName('ids')[i].checked){ | |
248 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
249 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
250 | + } | |
251 | + } | |
252 | + } | |
253 | + if(str==''){ | |
254 | + | |
255 | + }else{ | |
256 | + $.ajax({ | |
257 | + type: "POST", | |
258 | + url: '<%=basePath%>pagetemplate/deleteAll.do?tm='+new Date().getTime(), | |
259 | + data: {DATA_IDS:str}, | |
260 | + dataType:'json', | |
261 | + //beforeSend: validateData, | |
262 | + cache: false, | |
263 | + success: function(data){ | |
264 | + tosearch(); | |
265 | + } | |
266 | + }); | |
267 | + } | |
268 | + } | |
269 | + else{ | |
270 | + console.log("false"); | |
271 | + } | |
272 | + }}); | |
273 | + window.top.remove.show(); | |
274 | + } | |
275 | + | |
276 | + //修改 | |
277 | + function edit(Id){ | |
278 | + top.jzts(); | |
279 | + var diag = new top.Dialog(); | |
280 | + diag.Drag=true; | |
281 | + diag.Title ="Edit"; | |
282 | + diag.URL = '<%=basePath%>pagetemplate/goEdit.do?PAGETEMPLATE_ID='+Id; | |
283 | + diag.Width = 450; | |
284 | + diag.Height = 355; | |
285 | + diag.Modal = true; //有无遮罩窗口 | |
286 | + diag. ShowMaxButton = true; //最大化按钮 | |
287 | + diag.ShowMinButton = true; //最小化按钮 | |
288 | + diag.CancelEvent = function(){ //关闭事件 | |
289 | + if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){ | |
290 | + tosearch(); | |
291 | + } | |
292 | + diag.close(); | |
293 | + }; | |
294 | + diag.show(); | |
295 | + } | |
296 | + | |
297 | + //批量操作 | |
298 | + function makeAll(msg){ | |
299 | + bootbox.confirm(msg, function(result) { | |
300 | + if(result) { | |
301 | + var str = ''; | |
302 | + for(var i=0;i < document.getElementsByName('ids').length;i++){ | |
303 | + if(document.getElementsByName('ids')[i].checked){ | |
304 | + if(str=='') str += document.getElementsByName('ids')[i].value; | |
305 | + else str += ',' + document.getElementsByName('ids')[i].value; | |
306 | + } | |
307 | + } | |
308 | + if(str==''){ | |
309 | + bootbox.dialog({ | |
310 | + message: "<span class='bigger-110'>You did not select anything!</span>", | |
311 | + buttons: | |
312 | + { "button":{ "label":"Confirm", "className":"btn-sm btn-success"}} | |
313 | + }); | |
314 | + $("#zcheckbox").tips({ | |
315 | + side:1, | |
316 | + msg:'点这里全选', | |
317 | + bg:'#AE81FF', | |
318 | + time:8 | |
319 | + }); | |
320 | + return; | |
321 | + }else{ | |
322 | + if(msg == 'Are you sure to delete the selected data?'){ | |
323 | + top.jzts(); | |
324 | + $.ajax({ | |
325 | + type: "POST", | |
326 | + url: '<%=basePath%>pagetemplate/deleteAll.do?tm='+new Date().getTime(), | |
327 | + data: {DATA_IDS:str}, | |
328 | + dataType:'json', | |
329 | + //beforeSend: validateData, | |
330 | + cache: false, | |
331 | + success: function(data){ | |
332 | + $.each(data.list, function(i, list){ | |
333 | + tosearch(); | |
334 | + }); | |
335 | + } | |
336 | + }); | |
337 | + } | |
338 | + } | |
339 | + } | |
340 | + }); | |
341 | + }; | |
342 | + | |
343 | + //导出excel | |
344 | + function toExcel(){ | |
345 | + window.location.href='<%=basePath%>pagetemplate/excel.do'; | |
346 | + } | |
347 | + | |
348 | + | |
349 | + </script> | |
350 | + | |
351 | + | |
352 | +</body> | |
353 | +</html> | |
0 | 354 | \ 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> <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> <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> <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/school/en_school_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 | +<link | |
16 | + href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" | |
17 | + rel="stylesheet"> | |
18 | +<link href="static/css/teach.css" rel="stylesheet"> | |
19 | +<!-- 日期框 --> | |
20 | +<link rel="stylesheet" href="static/ace/css/datepicker.css" /> | |
21 | +<style> | |
22 | + .edit_btn{ | |
23 | + width:20%; | |
24 | + margin:0 auto; | |
25 | + } | |
26 | + .edit_btn .edit_btn_sty{ | |
27 | + outline-style: none; | |
28 | + color: rgb(255, 255, 255); | |
29 | + margin-right: 20px; | |
30 | + margin-top:10%; | |
31 | + font-size: 16px; | |
32 | + background: #f29c9f; | |
33 | + text-decoration: none; | |
34 | + border-width: initial; | |
35 | + border-style: none; | |
36 | + border-color: initial; | |
37 | + border-image: initial; | |
38 | + padding: 10px 15px; | |
39 | + width:100%; | |
40 | + } | |
41 | + .edit_btn .save_btn_sty{ | |
42 | + outline-style: none; | |
43 | + color: rgb(255, 255, 255); | |
44 | + margin-right: 20px; | |
45 | + margin-top:10%; | |
46 | + font-size: 16px; | |
47 | + background: rgb(59, 194, 214); | |
48 | + text-decoration: none; | |
49 | + border-width: initial; | |
50 | + border-style: none; | |
51 | + border-color: initial; | |
52 | + border-image: initial; | |
53 | + padding: 10px 15px; | |
54 | + width:100%; | |
55 | + } | |
56 | + .school_info .col-sm-4{ | |
57 | + width:100px; | |
58 | + padding-right:0; | |
59 | + line-height:34px; | |
60 | + font-size:16px; | |
61 | + } | |
62 | +</style> | |
63 | +</head> | |
64 | +<body class="no-skin"> | |
65 | +<!-- /section:basics/navbar.layout --> | |
66 | + <form action="school/${msg }.do" name="Form" id="Form" method="post"> | |
67 | + <input type="hidden" name="ID" id="ID" value="${pd.ID}"/> | |
68 | + <div class="head_box" style="position:relative;"> | |
69 | + <div class="box_header"> | |
70 | + <div class="head_box_l"> | |
71 | + <p> | |
72 | + <span class="right_b"></span>School Management | |
73 | + </p> | |
74 | + </div> | |
75 | + <div class="head_box_r"> | |
76 | + | |
77 | + </div> | |
78 | + <div class="clear"></div> | |
79 | + </div> | |
80 | + </div> | |
81 | + | |
82 | + <div class="col-md-6 school_info" style="margin-left:25%;margin-top:5%;"> | |
83 | + <div class="form-group"> | |
84 | + <label for="enter_title" class="col-sm-4 control-label">School name:</label> | |
85 | + <div class="col-sm-8"> | |
86 | + <input type="text" class="form-control" disabled placeholder="Enter the School name" maxlength="100" minlength="1" name="NAME" id="NAME" value="${pd.NAME}"> | |
87 | + </div> | |
88 | + <div class="clearfix"></div> | |
89 | + </div> | |
90 | + | |
91 | + <div class="form-group"> | |
92 | + <label for="enter_time" class="col-sm-4 control-label">School address:</label> | |
93 | + <div class="col-sm-8"> | |
94 | + <input type="text" class="form-control" disabled placeholder="Enter the school address" name="ADDRESS" id="ADDRESS" value="${pd.ADDRESS}" maxlength="255" > | |
95 | + </div> | |
96 | + <div class="clearfix"></div> | |
97 | + </div> | |
98 | + <div class="form-group"> | |
99 | + <label for="enter_time" class="col-sm-4 control-label">Headmaster:</label> | |
100 | + <div class="col-sm-8"> | |
101 | + <input type="text" class="form-control" disabled placeholder="Enter the Headmaster" name="PRESIDENT" id="PRESIDENT" value="${pd.PRESIDENT}" maxlength="255" > | |
102 | + </div> | |
103 | + <div class="clearfix"></div> | |
104 | + </div> | |
105 | + <div class="form-group"> | |
106 | + <label for="enter_time" class="col-sm-4 control-label">Contact number:</label> | |
107 | + <div class="col-sm-8"> | |
108 | + <input type="text" class="form-control" disabled placeholder="Enter the Contact number" name="PHONE" id="PHONE" value="${pd.PHONE}" maxlength="255" > | |
109 | + </div> | |
110 | + <div class="clearfix"></div> | |
111 | + </div> | |
112 | + <div class="form-group"> | |
113 | + <label for="enter_time" class="col-sm-4 control-label">Remarks:</label> | |
114 | + <div class="col-sm-8"> | |
115 | + <input type="text" class="form-control" disabled placeholder="Enter the Remarks" name="REMARK" id="REMARK" value="${pd.REMARK}" maxlength="255" > | |
116 | + </div> | |
117 | + <div class="clearfix"></div> | |
118 | + </div> | |
119 | + | |
120 | + </div> | |
121 | + <div class="clearfix"></div> | |
122 | + | |
123 | + <div class="edit_btn"> | |
124 | + <input type="button" class="edit_btn_sty" data-state="edit" id="btn" value="Revise" /> | |
125 | + </div> | |
126 | + </form> | |
127 | + | |
128 | + | |
129 | + | |
130 | + <!-- 页面底部js¨ --> | |
131 | + <%@ include file="../../system/index/foot.jsp"%> | |
132 | + <!-- 下拉框 --> | |
133 | + <script src="static/ace/js/chosen.jquery.js"></script> | |
134 | + <!-- 日期框 --> | |
135 | + <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script> | |
136 | + <!--提示框--> | |
137 | + <script type="text/javascript" src="static/js/jquery.tips.js"></script> | |
138 | + <script type="text/javascript"> | |
139 | + $(document).ready(function(){ | |
140 | + window.top.loading.remove(); | |
141 | + }); | |
142 | + | |
143 | + $("#btn").click(function(){ | |
144 | + var state=$(this).attr("data-state"); | |
145 | + if(state=="edit"){ | |
146 | + $(".form-control").removeAttr("disabled"); | |
147 | + $("#btn").val("Save"); | |
148 | + $(this).attr({"class":"save_btn_sty","data-state":"save"}); | |
149 | + }else if(state=="save"){ | |
150 | + $("#Form").submit(); | |
151 | + $(".form-control").attr("disabled","disabled"); | |
152 | + $("#btn").val("Revise"); | |
153 | + $(this).attr({"class":"edit_btn_sty","data-state":"edit"}); | |
154 | + } | |
155 | + }) | |
156 | + | |
157 | + | |
158 | + </script> | |
159 | +</body> | |
160 | +</html> | |
0 | 161 | \ 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">×</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/grade/GradeController.java
... | ... | @@ -150,9 +150,13 @@ public class GradeController extends BaseController { |
150 | 150 | pd.put("keywords", keywords.trim()); |
151 | 151 | } |
152 | 152 | page.setPd(pd); |
153 | - | |
153 | + page.setLangIsChina(isChineseLanguageClient()); | |
154 | 154 | List<PageData> varList = gradeService.datalistPageInSchool(page); //列出Grade列表 |
155 | - mv.setViewName("sunvote/grade/grade_list2"); | |
155 | + if(isChineseLanguageClient()){ | |
156 | + mv.setViewName("sunvote/grade/grade_list2"); | |
157 | + }else{ | |
158 | + mv.setViewName("sunvote/grade/en_grade_list2"); | |
159 | + } | |
156 | 160 | mv.addObject("varList", varList); |
157 | 161 | mv.addObject("pd", pd); |
158 | 162 | mv.addObject("QX",Jurisdiction.getHC()); //按钮权限 |
... | ... | @@ -184,7 +188,11 @@ public class GradeController extends BaseController { |
184 | 188 | pd = this.getPageData(); |
185 | 189 | List<PageData> list = gradeService.listAllNot(pd); |
186 | 190 | mv.addObject("gradeList", list); |
187 | - mv.setViewName("sunvote/grade/grade_edit2"); | |
191 | + if(isChineseLanguageClient()){ | |
192 | + mv.setViewName("sunvote/grade/grade_edit2"); | |
193 | + }else{ | |
194 | + mv.setViewName("sunvote/grade/en_grade_edit2"); | |
195 | + } | |
188 | 196 | mv.addObject("msg", "save2"); |
189 | 197 | mv.addObject("pd", pd); |
190 | 198 | return mv; | ... | ... |
src/com/fh/controller/sunvote/headmaster/HeadmasterController.java
... | ... | @@ -161,8 +161,14 @@ public class HeadmasterController extends BaseController { |
161 | 161 | pd.put("keywords", keywords.trim()); |
162 | 162 | } |
163 | 163 | page.setPd(pd); |
164 | + page.setLangIsChina(isChineseLanguageClient()); | |
164 | 165 | List<PageData> varList = headmasterService.listClass(page); //列出Headmaster列表 |
165 | - mv.setViewName("sunvote/headmaster/headmaster_list2"); | |
166 | + if(isChineseLanguageClient()){ | |
167 | + mv.setViewName("sunvote/headmaster/headmaster_list2"); | |
168 | + }else{ | |
169 | + mv.setViewName("sunvote/headmaster/en_headmaster_list2"); | |
170 | + } | |
171 | + | |
166 | 172 | mv.addObject("varList", varList); |
167 | 173 | mv.addObject("pd", pd); |
168 | 174 | return mv; |
... | ... | @@ -192,7 +198,11 @@ public class HeadmasterController extends BaseController { |
192 | 198 | ModelAndView mv = this.getModelAndView(); |
193 | 199 | PageData pd = new PageData(); |
194 | 200 | pd = this.getPageData(); |
195 | - mv.setViewName("sunvote/headmaster/headmaster_edit2"); | |
201 | + if(isChineseLanguageClient()){ | |
202 | + mv.setViewName("sunvote/headmaster/headmaster_edit2"); | |
203 | + }else{ | |
204 | + mv.setViewName("sunvote/headmaster/en_headmaster_edit2"); | |
205 | + } | |
196 | 206 | List<PageData> classes = headmasterService.listNoHeaderClass(pd); |
197 | 207 | mv.addObject("classes",classes); |
198 | 208 | mv.addObject("msg", "save2"); |
... | ... | @@ -232,7 +242,11 @@ public class HeadmasterController extends BaseController { |
232 | 242 | List<PageData> classes = new ArrayList(); |
233 | 243 | classes.add(classPageData); |
234 | 244 | mv.addObject("classes",classes); |
235 | - mv.setViewName("sunvote/headmaster/headmaster_edit2"); | |
245 | + if(isChineseLanguageClient()){ | |
246 | + mv.setViewName("sunvote/headmaster/headmaster_edit2"); | |
247 | + }else{ | |
248 | + mv.setViewName("sunvote/headmaster/en_headmaster_edit2"); | |
249 | + } | |
236 | 250 | mv.addObject("msg", "edit2"); |
237 | 251 | mv.addObject("pd", pd); |
238 | 252 | return mv; | ... | ... |
src/com/fh/controller/sunvote/homework/HomeworkController.java
... | ... | @@ -141,8 +141,14 @@ public class HomeworkController extends BaseController { |
141 | 141 | pd.put("keywords", keywords.trim()); |
142 | 142 | } |
143 | 143 | page.setPd(pd); |
144 | + page.setLangIsChina(isChineseLanguageClient()); | |
144 | 145 | List<PageData> varList = homeworkService.list(page); // 列出Homework列表 |
145 | - mv.setViewName("sunvote/homework/homework_list"); | |
146 | + if(isChineseLanguageClient()){ | |
147 | + mv.setViewName("sunvote/homework/homework_list"); | |
148 | + }else{ | |
149 | + mv.setViewName("sunvote/homework/en_homework_list"); | |
150 | + } | |
151 | + | |
146 | 152 | mv.addObject("varList", varList); |
147 | 153 | mv.addObject("pd", pd); |
148 | 154 | mv.addObject("QX", Jurisdiction.getHC()); // 按钮权限 |
... | ... | @@ -180,7 +186,11 @@ public class HomeworkController extends BaseController { |
180 | 186 | // 添加科目ID |
181 | 187 | pd.put("TEACHER_ID", getTeacherID()); |
182 | 188 | pd.put("SUBJECT_ID", homeworkService.querySubjectId(pd)); |
183 | - mv.setViewName("sunvote/homework/homework_edit2"); | |
189 | + if(isChineseLanguageClient()){ | |
190 | + mv.setViewName("sunvote/homework/homework_edit2"); | |
191 | + }else{ | |
192 | + mv.setViewName("sunvote/homework/en_homework_edit2"); | |
193 | + } | |
184 | 194 | mv.addObject("msg", "save"); |
185 | 195 | mv.addObject("operation", "add"); |
186 | 196 | mv.addObject("pd", pd); |
... | ... | @@ -219,7 +229,11 @@ public class HomeworkController extends BaseController { |
219 | 229 | pd = homeworkService.findById(pd); // 根据ID读取 |
220 | 230 | pd.put("QUESTIONS", homeworkproblemService.listProblem(pd)); |
221 | 231 | pd.put("TEACHER_ID", getTeacherID()); |
222 | - mv.setViewName("sunvote/homework/homework_edit2"); | |
232 | + if(isChineseLanguageClient()){ | |
233 | + mv.setViewName("sunvote/homework/homework_edit2"); | |
234 | + }else{ | |
235 | + mv.setViewName("sunvote/homework/en_homework_edit2"); | |
236 | + } | |
223 | 237 | mv.addObject("msg", "edit"); |
224 | 238 | mv.addObject("operation", "edit"); |
225 | 239 | mv.addObject("pd", pd); |
... | ... | @@ -240,7 +254,11 @@ public class HomeworkController extends BaseController { |
240 | 254 | pd = homeworkService.findById(pd); // 根据ID读取 |
241 | 255 | pd.put("QUESTIONS", homeworkproblemService.listProblem(pd)); |
242 | 256 | pd.put("TEACHER_ID", getTeacherID()); |
243 | - mv.setViewName("sunvote/homework/homework_view"); | |
257 | + if(isChineseLanguageClient()){ | |
258 | + mv.setViewName("sunvote/homework/homework_view"); | |
259 | + }else{ | |
260 | + mv.setViewName("sunvote/homework/en_homework_view"); | |
261 | + } | |
244 | 262 | mv.addObject("msg", "edit"); |
245 | 263 | mv.addObject("operation", "view"); |
246 | 264 | mv.addObject("pd", pd); |
... | ... | @@ -394,7 +412,11 @@ public class HomeworkController extends BaseController { |
394 | 412 | pd.put("CLASS_ID", ""); |
395 | 413 | } |
396 | 414 | pd.remove("JSON"); |
397 | - mv.setViewName("sunvote/homework/homework_report"); | |
415 | + if(isChineseLanguageClient()){ | |
416 | + mv.setViewName("sunvote/homework/homework_report"); | |
417 | + }else{ | |
418 | + mv.setViewName("sunvote/homework/en_homework_report"); | |
419 | + } | |
398 | 420 | mv.addObject("pd", pd); |
399 | 421 | return mv; |
400 | 422 | } |
... | ... | @@ -434,7 +456,12 @@ public class HomeworkController extends BaseController { |
434 | 456 | } |
435 | 457 | pd.remove("JSON"); |
436 | 458 | pd.put("STUDENT_ID", studentId); |
437 | - mv.setViewName("sunvote/homework/homework_student_report"); | |
459 | + if(isChineseLanguageClient()){ | |
460 | + mv.setViewName("sunvote/homework/homework_student_report"); | |
461 | + }else{ | |
462 | + mv.setViewName("sunvote/homework/en_homework_student_report"); | |
463 | + } | |
464 | + | |
438 | 465 | mv.addObject("pd", pd); |
439 | 466 | Gson gson = new Gson(); |
440 | 467 | mv.addObject("data",gson.toJson(pd)); | ... | ... |
src/com/fh/controller/sunvote/pagetemplate/PageTemplateController.java
... | ... | @@ -179,8 +179,14 @@ public class PageTemplateController extends BaseController { |
179 | 179 | pd.put("keywords", keywords.trim()); |
180 | 180 | } |
181 | 181 | page.setPd(pd); |
182 | + page.setLangIsChina(isChineseLanguageClient()); | |
182 | 183 | List<PageData> varList = pagetemplateService.list(page); //列出PageTemplate列表 |
183 | - mv.setViewName("sunvote/pagetemplate/pagetemplate_list2"); | |
184 | + if(isChineseLanguageClient()){ | |
185 | + mv.setViewName("sunvote/pagetemplate/pagetemplate_list2"); | |
186 | + }else{ | |
187 | + mv.setViewName("sunvote/pagetemplate/en_pagetemplate_list2"); | |
188 | + } | |
189 | + | |
184 | 190 | List<PageData> gradeList = schoolgradesubjectService.listAllGrade(pd); |
185 | 191 | List<PageData> subjectList = schoolgradesubjectService.listAllSubject(pd); |
186 | 192 | mv.addObject("varList", varList); |
... | ... | @@ -201,7 +207,11 @@ public class PageTemplateController extends BaseController { |
201 | 207 | ModelAndView mv = this.getModelAndView(); |
202 | 208 | PageData pd = new PageData(); |
203 | 209 | pd = this.getPageData(); |
204 | - mv.setViewName("sunvote/pagetemplate/pagetemplate_edit"); | |
210 | + if(isChineseLanguageClient()){ | |
211 | + mv.setViewName("sunvote/pagetemplate/pagetemplate_edit"); | |
212 | + }else{ | |
213 | + mv.setViewName("sunvote/pagetemplate/en_pagetemplate_edit"); | |
214 | + } | |
205 | 215 | mv.addObject("msg", "save"); |
206 | 216 | mv.addObject("pd", pd); |
207 | 217 | return mv; |
... | ... | @@ -217,7 +227,11 @@ public class PageTemplateController extends BaseController { |
217 | 227 | PageData pd = new PageData(); |
218 | 228 | pd = this.getPageData(); |
219 | 229 | pd = pagetemplateService.findById(pd); //根据ID读取 |
220 | - mv.setViewName("sunvote/pagetemplate/pagetemplate_edit"); | |
230 | + if(isChineseLanguageClient()){ | |
231 | + mv.setViewName("sunvote/pagetemplate/pagetemplate_edit"); | |
232 | + }else{ | |
233 | + mv.setViewName("sunvote/pagetemplate/en_pagetemplate_edit"); | |
234 | + } | |
221 | 235 | mv.addObject("msg", "edit"); |
222 | 236 | mv.addObject("pd", pd); |
223 | 237 | return mv; | ... | ... |
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/school/SchoolController.java
... | ... | @@ -225,7 +225,11 @@ public class SchoolController extends BaseController { |
225 | 225 | PageData pd = new PageData(); |
226 | 226 | pd = this.getPageData(); |
227 | 227 | pd = schoolService.findById(pd); //根据ID读取 |
228 | - mv.setViewName("sunvote/school/school_edit2"); | |
228 | + if(isChineseLanguageClient()){ | |
229 | + mv.setViewName("sunvote/school/school_edit2"); | |
230 | + }else{ | |
231 | + mv.setViewName("sunvote/school/en_school_edit2"); | |
232 | + } | |
229 | 233 | mv.addObject("msg", "edit2"); |
230 | 234 | mv.addObject("pd", pd); |
231 | 235 | return mv; | ... | ... |
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); | ... | ... |