-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin-options.php
More file actions
162 lines (144 loc) · 4.98 KB
/
admin-options.php
File metadata and controls
162 lines (144 loc) · 4.98 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
162
<?php include 'security-check.php';?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard - Hostel System</title>
<?php include 'session-monitor-header.php'; ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<script src="uppercase-input-solution.js"></script>
<style>
/* ── Microsoft Fluent Override ── */
:root {
--ms-blue: #0078d4;
--ms-bg: #faf9f7;
--ms-card: #ffffff;
--ms-border: #e1dfdd;
--ms-text: #201f1e;
--ms-muted: #8a8886;
--ms-shadow: 0 1.6px 3.6px rgba(0,0,0,.07), 0 0.3px 0.9px rgba(0,0,0,.05);
}
body {
background: var(--ms-bg) !important;
color: var(--ms-text) !important;
font-family: 'Segoe UI', 'DM Sans', sans-serif !important;
}
.card, .action-card, .staff-card, .role-card, .stat-card, .choice-card {
background: var(--ms-card) !important;
border: 1px solid var(--ms-border) !important;
border-radius: 8px !important;
box-shadow: var(--ms-shadow) !important;
color: var(--ms-text) !important;
}
.card:hover, .action-card:hover, .staff-card:hover {
box-shadow: 0 3.2px 7.2px rgba(0,0,0,.09) !important;
transform: translateY(-2px) !important;
}
.welcome-banner, .dashboard-header {
background: linear-gradient(135deg, #0f3460, #16213e) !important;
}
thead tr, thead th {
background: #0078d4 !important;
}
.btn-primary, button[type="submit"]:not(.btn-danger):not(.btn-warning) {
background: #0078d4 !important;
border-color: #0078d4 !important;
}
.btn-primary:hover, button[type="submit"]:not(.btn-danger):not(.btn-warning):hover {
background: #106ebe !important;
}
a { color: #0078d4; }
a:hover { color: #005a9e; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #f4f7f9; min-height: 100vh; display: flex; flex-direction: column; }
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 40px;
background: #ffffff;
border-bottom: 3px solid #d9534f; /* Admin Red */
}
.container {
flex-grow: 1;
padding: 40px;
max-width: 1200px;
margin: 0 auto;
}
.welcome-msg {
margin-bottom: 30px;
color: #333;
}
.admin-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.admin-card {
background: white;
padding: 30px;
border-radius: 10px;
text-align: center;
text-decoration: none;
color: #333;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
transition: 0.3s;
border-left: 5px solid #d9534f;
}
.admin-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.admin-card i {
font-size: 40px;
color: #d9534f;
margin-bottom: 15px;
}
.admin-card h3 { margin-bottom: 10px; }
.admin-card p { font-size: 14px; color: #666; }
.btn-logout {
background: #d9534f;
color: white;
padding: 8px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
}
</style>
</head>
<body>
<?php include 'navbar.php'; ?>
<?php include 'lang-switcher.php'; ?>
<?php include 'sidebar.php'; ?>
<div class="container">
<div class="welcome-msg">
<h2>Welcome, System Administrator</h2>
<p>Manage users, view system-wide logs, and handle gatepass approvals.</p>
</div>
<div class="admin-grid">
<a href="manage-users.php" class="admin-card">
<i class="fas fa-users-cog"></i>
<h3>Manage Users</h3>
<p>Add, edit, or remove Students, Staff, and Teachers.</p>
</a>
<a href="all-logs.php" class="admin-card">
<i class="fas fa-clipboard-list"></i>
<h3>System Logs</h3>
<p>View all entry/exit history across all hostels.</p>
</a>
<a href="admin-approvals.php" class="admin-card">
<i class="fas fa-check-double"></i>
<h3>Pending Approvals</h3>
<p>Review and authorize extended stay or faculty gatepasses.</p>
</a>
<a href="generate-reports.php" class="admin-card">
<i class="fas fa-file-invoice"></i>
<h3>Reports</h3>
<p>Export weekly/monthly attendance and movement data.</p>
</a>
</div>
</div>
<?php include 'staff-footer.php'; ?>
</body>
</html>