This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.html
74 lines (64 loc) · 2.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Panel | Dashboard</title>
<!-- Include Bootstrap CSS and DataTables CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css">
<!-- Include Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<!-- Link your external CSS file for custom styles -->
<link rel="stylesheet" href="/dashboardandform.css">
</head>
<body>
<div class="navbar">
<div class="navbar-left">
<h2>Admin Panel</h2>
</div>
<div class="navbar-right">
<a href="/form.html" class="nav-button">Add Student</a>
</div>
</div>
<!-- Modal HTML -->
<div id="customModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<i id="modalIcon" class="fa"></i>
</div>
<div class="modal-body" id="modalMessage">
<!-- Message content will be inserted here -->
</div>
<div class="modal-footer">
<button id="modalCancelBtn">Cancel</button>
<button id="modalConfirmBtn">Confirm</button>
</div>
</div>
</div>
<div class="container mt-5">
<h2 class="text-center">Student List</h2>
<!-- Add a container for the table -->
<div class="table-responsive">
<table id="studentTable" class="table table-striped table-bordered">
<thead>
<tr>
<th>Student ID</th>
<th>Student Name</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<!-- Table rows will be populated here -->
</tbody>
</table>
</div>
</div>
<!-- Include Bootstrap JS and DataTables JS -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<!-- Include your script.js for fetching and displaying data -->
<script src="/dashboard.js"></script>
</body>
</html>