-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_dashboard.php
More file actions
138 lines (122 loc) · 4.03 KB
/
admin_dashboard.php
File metadata and controls
138 lines (122 loc) · 4.03 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
<?php
session_start();
if (!isset($_SESSION['admin_logged_in']) || $_SESSION['admin_logged_in'] !== true) {
header("Location: admin_login.php");
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Admin Dashboard - GuardZone</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
body {
background-color: #121212;
color: #fff;
font-family: 'Segoe UI', sans-serif;
}
.dashboard {
margin: 40px auto;
padding: 30px;
background: rgba(30, 30, 30, 0.9);
border-radius: 16px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
max-width: 1100px;
}
h1 {
color: #ee63e9;
margin-bottom: 30px;
text-align: center;
}
.logout-btn {
background: #ee63e9;
border: none;
color: white;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
float: right;
}
.logout-btn:hover {
background: #833ab4;
}
.card-box {
background: #1e1e1e;
border-radius: 12px;
padding: 30px;
text-align: center;
color: #fff;
transition: transform 0.3s, box-shadow 0.3s;
cursor: pointer;
margin-bottom: 20px;
}
.card-box:hover {
transform: translateY(-5px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
background: #292929;
}
.card-box h3 {
color: #ee63e9;
margin-top: 15px;
}
</style>
</head>
<body>
<div class="dashboard">
<form method="POST" action="logout.php">
<button class="logout-btn">Logout</button>
</form>
<h1>Welcome Admin</h1>
<p style="text-align:center;">Select a module to manage:</p>
<div class="row">
<!-- Manage Guards -->
<div class="col-md-3">
<a href="manage_guards.php" style="text-decoration:none;">
<div class="card-box">
<div style="font-size:40px;">👮</div>
<h3>Manage Guards</h3>
</div>
</a>
</div>
<!-- Event Coordinator -->
<div class="col-md-3">
<a href="manage_event_coordinators.php" style="text-decoration:none;">
<div class="card-box">
<div style="font-size:40px;">🎤</div>
<h3>Event Coordinators</h3>
</div>
</a>
</div>
<!-- View Bookings -->
<div class="col-md-3">
<a href="view_bookings.php" style="text-decoration:none;">
<div class="card-box">
<div style="font-size:40px;">📅</div>
<h3>View Bookings</h3>
</div>
</a>
</div>
<!-- Incident Reports -->
<div class="col-md-3">
<a href="incident_reports.php" style="text-decoration:none;">
<div class="card-box">
<div style="font-size:40px;">⚠️</div>
<h3>Incident Reports</h3>
</div>
</a>
</div>
<!-- Analytics -->
<div class="col-md-3">
<a href="analytics.php" style="text-decoration:none;">
<div class="card-box">
<div style="font-size:40px;">📊</div>
<h3>System Analytics</h3>
</div>
</a>
</div>
</div>
</div>
</body>
</html>