-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha.html
More file actions
111 lines (105 loc) · 2.93 KB
/
a.html
File metadata and controls
111 lines (105 loc) · 2.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
min-height: 100vh;
display: flex;
flex-direction: row;
}
/* Sidebar styling */
.sidebar {
width: 250px;
background-color: #343a40;
color: white;
min-height: 100vh;
}
.sidebar a {
color: white;
text-decoration: none;
display: block;
padding: 15px 20px;
}
.sidebar a:hover {
background-color: #495057;
}
/* Topbar styling */
.topbar {
height: 60px;
background-color: #f8f9fa;
display: flex;
justify-content: flex-end;
align-items: center;
padding: 0 20px;
border-bottom: 1px solid #dee2e6;
}
.main-content {
flex: 1;
padding: 20px;
}
.profile-img {
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
}
</style>
</head>
<body>
<!-- Sidebar -->
<div class="sidebar d-flex flex-column">
<h3 class="text-center py-4">Admin Panel</h3>
<a href="/admin/dashboard">Dashboard</a>
<a href="/student/index">Students</a>
<a href="#">Teachers</a>
<a href="#">Courses</a>
<a href="#">Settings</a>
</div>
<!-- Main content -->
<div class="flex-grow-1 d-flex flex-column">
<!-- Topbar -->
<div class="topbar">
<div class="dropdown">
<img src="/images/profile.png" alt="Profile" class="profile-img dropdown-toggle" id="profileDropdown" data-bs-toggle="dropdown" aria-expanded="false">
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="profileDropdown">
<li><a class="dropdown-item" href="/logout">Logout</a></li>
</ul>
</div>
</div>
<!-- Page content -->
<div class="main-content">
<h2>Welcome, <%= user.firstName %></h2>
<p>This is your admin dashboard. Here you can manage students, teachers, courses, and settings.</p>
<!-- Example: Students table -->
<h4 class="mt-4">Students List</h4>
<table class="table table-bordered">
<thead class="table-dark">
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<% students.forEach((student, index) => { %>
<tr>
<td><%= index + 1 %></td>
<td><%= student.firstName %></td>
<td><%= student.lastName %></td>
<td><%= student.email %></td>
</tr>
<% }) %>
</tbody>
</table>
</div>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>