-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin-dashboard.html
160 lines (135 loc) · 5.35 KB
/
admin-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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://kit.fontawesome.com/64d58efce2.js" crossorigin="anonymous"></script>
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon/favicon-16x16.png">
<!-- CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link rel="stylesheet" href="css/admin-dashboard.css">
<link rel="stylesheet" href="css/loader.css">
<title>DM874 - Autograder</title>
</head>
<body>
<div id="loader" class="loadingio-spinner-spinner-hqnakeojhrn">
<div class="ldio-jaf08a4nsf9">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<header class="bg-dark" >
<div class="container">
<input type="checkbox" name="" id="check">
<div class="logo-container">
<img class="header-logo" src="img/logo.png" alt="logo" />
<a href="./admin-dashboard.html"><h3 class="logo">Auto<span>Grader</span></h3></a>
</div>
<div class="nav-btn">
<div id="username">Hi</div>
<div class="log-sign" style="--i: 1.8s">
<button class="btn btn-info" onclick="getcourses()"> Courses </button>
<button class="btn btn-success" onclick="logs()"> logs </button>
<!-- <a href="index.html" class="btn solid">Sign up</a> -->
</div>
<div class="log-sign" style="--i: 1.8s">
<button class="btn log-out" onclick="logout(event)"> log out </button>
<!-- <a href="index.html" class="btn solid">Sign up</a> -->
</div>
</div>
<div class="hamburger-menu-container">
<div class="hamburger-menu">
<div></div>
</div>
</div>
</div>
</header>
<div class="container">
<div class="table-wrapper">
<div class="table-title">
<div class="row">
<div class="col-sm-8" id="description"><h2> Users <b>Details</b></h2></div>
</div>
</div>
<div class="buttons_to_get_role" id="buttons" style="margin-top: 20px;">
<button type="button" class="btn btn-primary" onclick="get_students()">Students</button>
<button type="button" class="btn btn-secondary" onclick="get_teacher()">Teachers</button>
<button type="button" class="btn btn-success" onclick="get_admin()">Admins</button>
<button type="button" class="btn btn-info" onclick="get_all()">All</button>
</div>
<table class="table table-bordered" style="margin-top: 5px" id="table">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Role</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-wrapper" style="margin-left: 50px; margin-top: 5px">
<div class="table-title">
<div class="row" style="white-space: nowrap">
<div class="col-sm-8" id="courses_des"><h2> Courses <b>Details</b></h2></div>
</div>
</div>
<table class="table table-bordered" style="margin-top: 48px" id="table_course">
<thead>
<tr>
<th>Title</th>
<th>ID</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="table-wrapper" style="margin-left: 50px; margin-top: 5px">
<div class="table-title">
<div class="row" style="white-space: nowrap">
<div class="col-sm-8" id="assignment_des"><h2> Assignment <b>Details</b></h2></div>
</div>
</div>
<table class="table table-bordered" style="margin-top: 48px" id="table_assignment">
<thead>
<tr>
<th>Title</th>
<th>ID</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<script src="js/admin-dashboard.js" defer></script>
<!-- jQuery and JS bundle w/ Popper.js -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"></script>
</body>
</html>