-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.html
498 lines (436 loc) · 25.9 KB
/
dashboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>校史竞赛管理系统</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width" />
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="assets/css/animate.min.css" rel="stylesheet" />
<link href="assets/css/dashboard.css" rel="stylesheet" />
<script src="assets/js/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
<script src="assets/js/chartist.js"></script>
<script src="assets/js/bootstrap-notify.js"></script>
<script src="assets/js/dashboard.js"></script>
</head>
<script>
if (window.$ && window.$.ajaxSetup) {
$.ajaxSetup({
beforeSend: function (xhr) {
var match = window.document.cookie.match(/(?:^|\s|;)XSRF-TOKEN\s*=\s*([^;]+)(?:;|$)/);
xhr.setRequestHeader("X-XSRF-TOKEN", match && match[1]);
}
});
}
</script>
<style>
img {
max-width: 100%;
max-height: 100%;
}
#table-undo.restricted,
#table-done.restricted {
max-height: 600px;
overflow-y: auto;
}
.restricted {
max-height: 1000px;
overflow-y: auto;
}
.table>thead>tr>th.score:hover {
color: #1DC7EA;
cursor: pointer;
}
#undo-head th,#table-undo td{
width:33.33%;
}
#done-head th,#table-done td{
width:25%;
}
#general-head th,#table-general td{
width:14%;
}
#general-head tr th:first-child,#table-general td:first-child{
width: 16%!important;
}
</style>
<body>
<div class="wrapper">
<div class="modal fade" id="log-out" tabindex="-1" role="dialog" aria-labelledby="log-out-modal" style="z-index: 100000000">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="log-out-modal">退出</h4>
</div>
<div class="modal-body">
确认退出吗?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary" id="logout">退出</button>
</div>
</div>
</div>
</div>
<div class="sidebar" data-color="blue" data-image="Images/sidebar.png">
<div class="sidebar-wrapper">
<div class="logo">
<img src="Images/logo-including-name.png">
</div>
<ul class="nav nav-pills nav-stacked">
<li class="active" id="tab1">
<a href="#score" data-toggle="tab">
<i class="glyphicon glyphicon-tasks"></i>
<p>成绩统计</p>
</a>
</li>
<li id="tab2">
<a href="#general" data-toggle="tab">
<i class="glyphicon glyphicon-equalizer"></i>
<p>院系概览</p>
</a>
</li>
</ul>
</div>
</div>
<div class="main-panel">
<nav class="navbar navbar-default navbar-fixed">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-example-2">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<p class="navbar-brand">校史校情知识竞赛管理系统 —— <span id="school-name"></span></p>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#" id="refresh-button"><span class="glyphicon glyphicon-refresh"></span> 刷新</a>
</li>
<li>
<a href="#" class="department-excel"><span class="glyphicon glyphicon-th-list"></span>
导出成绩统计EXCEL
</a>
</li>
<li>
<a href="#" class="all-departments"><span class="glyphicon glyphicon-th-list"></span>
导出院系概览EXCEL
</a>
</li>
<li data-toggle="modal" data-target="#log-out">
<a href="#"><span class="glyphicon glyphicon-off"></span>
退出
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="content tab-content" id="tab-content">
<div id="score">
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="header">
<h4 class="title">已完成学生成绩分布情况</h4>
</div>
<div class="content">
<div id="overall-chart" class="ct-chart ct-perfect-fourth"></div>
<div class="footer">
<div class="legend">
<p> <span class="glyphicon glyphicon-record text-info"></span> 90分及以上
<span class="glyphicon glyphicon-record text-warning"></span> 75分至90分
<span class="glyphicon glyphicon-record" style="color:purple"></span> 60分至75分
<span class="glyphicon glyphicon-record text-danger"></span> 不及格
</p>
<!-- <p> <span class="glyphicon glyphicon-record text-warning"></span> 75分至90分</p>
<p> <span class="glyphicon glyphicon-record" style="color:purple"></span> 60分至75分</p>
<p> <span class="glyphicon glyphicon-record text-danger"></span> 不及格</p> -->
</div>
<hr>
<div class="stats">
<p>
<span class="glyphicon glyphicon-stats"></span> 平均分:
<span id="average-score"></span>分
</p>
<p>
<span class="glyphicon glyphicon-flag"></span> 最高分:
<span id="max-score"></span>分
</p>
</div>
</div>
</div>
</div>
<div class="card">
<div class="header">
<h4 class="title">学院学生答题情况</h4>
</div>
<div class="content">
<div id="completion-chart" class="ct-chart ct-perfect-fourth"></div>
<div class="footer">
<div class="legend">
<p> <span class="glyphicon glyphicon-record text-info"></span> 已完成
<span class="glyphicon glyphicon-record text-danger"></span> 未完成
</p>
<!-- <p> <span class="glyphicon glyphicon-record text-danger"></span> 未完成</p> -->
</div>
<hr>
<div class="stats">
<p>
<span class="glyphicon glyphicon-exclamation-sign"></span>
<span id="done-info"></span>
<span id="undo-info"></span>
</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="header">
<div class="row">
<div class="col-md-7">
<h4 class="title">学院未答题学生名单</h4>
<p class="category" id="empty-comment" style="display: none">
表格空空如也,为学院点赞!
</p>
</div>
<div class="col-md-5">
<input type="text" class="form-control" id="search-undo-text" placeholder="在此输入学号、一卡通号或姓名...">
</div>
</div>
<div class="row" style="margin-bottom:0">
<table style="margin-bottom:0" class="table table-hover table-striped table-responsive">
<thead id="undo-head">
<th>学号</th>
<th>姓名</th>
<th>一卡通</th>
</thead>
</table>
</div>
</div>
<div class="content table-full-width restricted" style="padding-top:0" id="table-undo">
<table class="table table-hover table-striped">
<!-- <thead>
<th>学号</th>
<th>姓名</th>
<th>一卡通</th>
</thead> -->
<tbody></tbody>
</table>
</div>
</div>
<div class="card">
<div class="header">
<div class="row">
<div class="col-md-7">
<h4 class="title">学院已答题学生成绩单</h4>
<p class="category">提示:点击“成绩”,可以将表格按成绩排序哦!</p>
</div>
<div class="col-md-5">
<input type="text" class="form-control" id="search-done-text" placeholder="在此输入学号、一卡通号或姓名...">
</div>
</div>
<div class="row" style="margin-bottom:0">
<table class="table table-hover table-striped" style="margin-bottom:0">
<thead id="done-head">
<th>学号</th>
<th>姓名</th>
<th class="score">
<span>成绩</span>
<span class="glyphicon glyphicon-sort" id="sort"></span>
<span class="glyphicon glyphicon-triangle-top" id="triangle-top" style="display:none"></span>
<span class="glyphicon glyphicon-triangle-bottom" id="triangle-bottom" style="display:none"></span>
</th>
<th>一卡通</th>
</thead>
</table>
</div>
</div>
<div class="content table-responsive table-full-width restricted" style="padding-top:0" id="table-done">
<table class="table table-hover table-striped">
<!-- <thead>
<th>学号</th>
<th>姓名</th>
<th class="score">
<span>成绩</span>
<span class="glyphicon glyphicon-sort" id="sort"></span>
<span class="glyphicon glyphicon-triangle-top" id="triangle-top" style="display:none"></span>
<span class="glyphicon glyphicon-triangle-bottom" id="triangle-bottom" style="display:none"></span>
</th>
<th>一卡通</th>
</thead>
-->
<tbody> </tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div style="display: none" id="general">
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="header">
<h4 class="title">全校已完成学生成绩分布情况</h4>
</div>
<div class="content">
<div id="overall-chart-general" class="ct-chart ct-perfect-fourth"></div>
<div class="footer">
<div class="legend">
<p> <span class="glyphicon glyphicon-record text-info"></span> 90分及以上
<span class="glyphicon glyphicon-record text-warning"></span> 75分至90分
<span class="glyphicon glyphicon-record" style="color:purple"></span> 60分至75分
<span class="glyphicon glyphicon-record text-danger"></span> 不及格
</p>
<!-- <p> <span class="glyphicon glyphicon-record text-warning"></span> 75分至90分</p>
<p> <span class="glyphicon glyphicon-record" style="color:purple"></span> 60分至75分</p>
<p> <span class="glyphicon glyphicon-record text-danger"></span> 不及格</p> -->
</div>
<hr>
<div class="stats">
<p>
<span class="glyphicon glyphicon-stats"></span> 平均分:
<span id="average-score-general"></span>分
</p>
<p>
<span class="glyphicon glyphicon-flag"></span> 最高分:
<span id="max-score-general"></span>分
</p>
</div>
</div>
</div>
</div>
<div class="card">
<div class="header">
<h4 class="title">全校学生答题情况</h4>
</div>
<div class="content">
<div id="completion-chart-general" class="ct-chart ct-perfect-fourth"></div>
<div class="footer">
<div class="legend">
<p> <span class="glyphicon glyphicon-record text-info"></span> 已完成
<span class="glyphicon glyphicon-record text-danger"></span> 未完成
</p>
<!-- <p> <span class="glyphicon glyphicon-record text-danger"></span> 未完成</p> -->
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="header">
<div class="row">
<div class="col-md-7">
<h4 class="title">全校各院系概览</h4>
<p class="category">提示:点击相应表头,可以进行排序哦!</p>
</div>
<div class="col-md-5">
<input type="text" class="form-control" id="search-general" placeholder="在此输入院系简称或其他关键字...">
</div>
</div>
<div class="row" style="margin-bottom:0">
<table class="table table-hover table-striped" style="margin-bottom:0">
<thead id="general-head">
<th class="score" id="dpt">
<span>院系</span>
<i class="glyphicon glyphicon-triangle-bottom"></i>
</th>
<th class="score" id="avg">
<span>平均分</span>
<i></i>
</th>
<th class="score" id="cpl">
<span>完成率 (%)</span>
<i></i>
</th>
<th class="score" id="pta">
<span>90分以上 (%)</span>
<i></i>
</th>
<th class="score" id="ptb">
<span>75分至90分 (%)</span>
<i></i>
</th>
<th class="score" id="ptc">
<span>60分至75分 (%)</span>
<i></i>
</th>
<th class="score" id="ptd">
<span>不及格 (%)</span>
<i></i>
</th>
</thead>
</table>
</div>
</div>
<div class="content table-responsive table-full-width restricted" id="table-general" style="padding-top:0">
<table class="table table-hover table-striped">
<!-- <thead>
<th class="score" id="dpt">
<span>院系</span>
<i class="glyphicon glyphicon-triangle-bottom"></i>
</th>
<th class="score" id="avg">
<span>平均分</span>
<i></i>
</th>
<th class="score" id="cpl">
<span>完成率 (%)</span>
<i></i>
</th>
<th class="score" id="pta">
<span>90分以上 (%)</span>
<i></i>
</th>
<th class="score" id="ptb">
<span>75分至90分 (%)</span>
<i></i>
</th>
<th class="score" id="ptc">
<span>60分至75分 (%)</span>
<i></i>
</th>
<th class="score" id="ptd">
<span>不及格 (%)</span>
<i></i>
</th>
</thead> -->
<tbody> </tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container-fluid">
<nav class="pull-left">
<ul>
<li>
<button type="button" class="department-excel btn btn-default navbar-btn">导出成绩统计EXCEL</button>
</li>
<li>
<button type="button" class="all-departments btn btn-default navbar-btn">导出院系概览EXCEL</button>
</li>
</ul>
</nav>
<p class="copyright pull-right">
Copyright © 2017 东南大学计算机科学与工程学院、软件学院
</p>
</div>
</footer>
</div>
</div>
</div>
</body>
</html>