admin.html
5.84 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> Admin </title>
<link rel="icon" href="/static/favicon.ico">
<!-- Bootstrap -->
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<link rel="stylesheet" href="/static/css/bootstrap-theme.min.css"> <!-- optional -->
<link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="/static/css/test.css">
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/admin.js"></script>
</head>
<!-- ===================================================================== -->
<body>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid drop-shadow">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<!-- <span class="glyphicon glyphicon-menu-hamburger"></span> -->
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" id="currenttime" href="#">
--:-- <!-- clock -->
</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-user" aria-hidden="true"></i>
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li class="active"><a href="/test"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span> Teste</a></li>
<li><a href="/logout"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> Sair</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- ===================================================================== -->
<div class="container">
<div class="well drop-shadow">
<big>
<dl class="dl-horizontal">
<dt>Title</dt><dd id="title"></dd>
<dt>Ref</dt><dd id="ref"></dd>
<dt>Test</dt><dd id="filename"></dd>
<dt>Database</dt><dd id="database"></dd>
<dt>Saved tests</dt><dd id="answers_dir"></dd>
</dl>
</big>
</div>
<div class="panel panel-primary drop-shadow">
<div id="online-header" class="panel-heading">
<!-- to be populated -->
</div>
<div class="panel-body">
<table class="table table-condensed">
<thead>
<tr>
<th>Número</th>
<th>Nome</th>
<!-- <th>Data de início</th> -->
<th>Hora de início</th>
<th>IP</th>
<th>Estado</th>
</tr>
</thead>
<tbody id="online_students">
<!-- to be populated -->
</tbody>
</table>
</div>
</div>
<div class="panel panel-primary drop-shadow">
<div id="students-header" class="panel-heading">
<!-- to be populated -->
</div>
<div class="panel-body">
<table class="table table-condensed">
<thead>
<tr>
<th>Perm.</th>
<th>Número</th>
<th>Nome</th>
<!-- <th>Estado</th> -->
<th>Nota</th>
</tr>
</thead>
<tbody id="students">
<!-- to be populated -->
</tbody>
</table>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-sm-4">
Permitir
<button id="allow_all" class="btn btn-xs btn-danger">Todos</button>
<button id="deny_all" class="btn btn-xs btn-danger">Nenhum</button>
</div>
<div class="col-sm-4">
<button id="novo_aluno" class="btn btn-xs btn-danger" data-toggle="modal" data-target="#novo_aluno_modal">Inserir novo aluno</button>
</div>
<div class="col-sm-4">
<div class="input-group input-group-sm">
<input id="reset_number" type="text" class="form-control" placeholder="Número">
<span class="input-group-btn">
<button id="reset_password" class="btn btn-danger" type="button">Reset password!</button>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="novo_aluno_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<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">Inserir novo aluno</h4>
</div>
<div class="modal-body">
Número: <input id="novo_numero" type="text">
Nome: <input id="novo_nome" type="text">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
<button id="inserir_novo_aluno" class="btn btn-danger" role="button" data-dismiss="modal">Inserir</button>
</div>
</div>
</div>
</div>
</div> <!-- container -->
</body>
</html>