-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_dashboard.php
More file actions
161 lines (156 loc) · 5.4 KB
/
Copy pathadmin_dashboard.php
File metadata and controls
161 lines (156 loc) · 5.4 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
155
156
157
158
159
160
161
<?php
session_start();
if (!isset($_SESSION['username'])) {
header("Location: login1.php");
exit();
}
?>
<!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>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
body {
background: linear-gradient(135deg, #0f172a, #1e293b);
color: #e2e8f0;
font-family: 'Poppins', sans-serif;
min-height: 100vh;
margin: 0;
padding: 0;
overflow-x: hidden;
}
.dashboard-container {
max-width: 1200px;
width: 100%;
margin: 0 auto;
padding: 1rem;
}
.admin-header {
background: linear-gradient(90deg, #1e293b, #0f172a);
padding: 1.5rem 2rem;
border-radius: 15px 15px 0 0;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
margin-bottom: 1.5rem;
animation: fadeIn 0.5s ease-in;
display: flex;
justify-content: space-between; /* This will push logout to the right */
align-items: center;
}
.admin-header h1 {
color: #3b82f6;
font-weight: 700;
font-size: 2rem;
margin: 0;
}
.logout-btn {
background: linear-gradient(90deg, #ef4444, #f87171);
color: #ffffff;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 50px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.logout-btn:hover {
background: linear-gradient(90deg, #f87171, #ef4444);
transform: scale(1.05);
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}
.admin-nav {
background: rgba(30, 41, 59, 0.95);
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
padding: 1.5rem;
animation: slideIn 0.5s ease-in;
}
.admin-nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 1rem;
}
.admin-nav a {
color: #e2e8f0;
text-decoration: none;
font-size: 1.1rem;
font-weight: 500;
padding: 0.75rem 1.5rem;
border-radius: 10px;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 0.5rem;
background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(30, 41, 59, 0.1));
}
.admin-nav a:hover {
background: linear-gradient(to right, rgba(59, 130, 246, 0.3), rgba(30, 41, 59, 0.3));
color: #60a5fa;
transform: translateX(5px);
box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}
.admin-nav a i {
font-size: 1.2rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.admin-header {
padding: 1rem;
}
.admin-header h1 {
font-size: 1.5rem;
}
.logout-btn {
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
.admin-nav {
padding: 1rem;
}
.admin-nav a {
font-size: 1rem;
padding: 0.5rem 1rem;
}
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(-20px); }
to { opacity: 1; transform: translateX(0); }
}
</style>
</head>
<body>
<div class="dashboard-container">
<header class="admin-header">
<h1><i class="fas fa-tachometer-alt"></i> Admin Dashboard</h1>
<a href="logout.php" class="logout-btn">🚪 Logout</a>
</header>
<nav class="admin-nav">
<ul>
<li><a href="add_book1.php"><i class="fas fa-plus"></i> Add New Book</a></li>
<li><a href="issue_book1.php"><i class="fas fa-book"></i> Issue Book</a></li>
<li><a href="view_books.php"><i class="fas fa-book-open"></i> View All Books</a></li>
<li><a href="view_issued_books.php"><i class="fas fa-book-reader"></i> 📚 View Issued Books</a></li>
<li><a href="add_student1.php"><i class="fas fa-user-plus"></i> Add New Student</a></li>
<li><a href="view_members.php"><i class="fas fa-users"></i> View All Students</a></li>
<li><a href="book_requests.php"><i class="fas fa-clock"></i> Pending Book Requests</a></li>
</ul>
</nav>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>