-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadministrator_profile.php
executable file
·235 lines (210 loc) · 5.57 KB
/
administrator_profile.php
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?php
session_start();
/* ---------------------------------------------------------------------------------------------- *
* ONLY LOGGED IN USERS CAN ACCESS THESE CONTENT *
* ---------------------------------------------------------------------------------------------- */
if (!isset($_SESSION['role']))
{
header("Location: authentication/login.php");
exit;
}
/* ---------------------------------------------------------------------------------------------- *
* ALLOW ADMINISTRATOR ACCESS ONLY *
* ---------------------------------------------------------------------------------------------- */
if ($_SESSION['role'] !== 'administrator')
{
http_response_code(403);
header("Location: templates/errors/403.php");
exit;
}
$title = "Administrator Dashboard";
$content = <<<_HTML
<style>
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.card {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
width: 200px;
height: 200px;
margin: 20px;
transition: transform 0.3s;
overflow: hidden;
}
.card:hover {
transform: scale(1.1);
}
.card a {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
text-decoration: none;
color: #333;
transition: background-color 0.3s;
}
.card:hover a {
background-color: #FF4500;
}
.card:nth-child(1) {
background-image: linear-gradient(to bottom right, #FF416C, #FF4B2B);
}
.card:nth-child(2) {
background-image: linear-gradient(to bottom right, #1D4350, #A43931);
}
.card:nth-child(3) {
background-image: linear-gradient(to bottom right, #4A569D, #DC2424);
}
.card:nth-child(4) {
background-image: linear-gradient(to bottom right, #333333, #999999);
}
.card:nth-child(5) {
background-image: linear-gradient(to bottom right, #00A8B5, #BEDB39);
}
.card:nth-child(6) {
background-image: linear-gradient(to bottom right, #4C3CDB, #FF5F6D);
}
.card:nth-child(7) {
background-image: linear-gradient(to bottom right, #E71D36, #FF9F1C);
}
.card:nth-child(8) {
background-image: linear-gradient(to bottom right, #4E54C8, #8F94FB);
}
.card:nth-child(9) {
background-image: linear-gradient(to bottom right, #FF512F, #DD2476);
}
.card:nth-child(10) {
background-image: linear-gradient(to bottom right, #833AB4, #E1306C);
}
.card:nth-child(11) {
background-image: linear-gradient(to bottom right, #45B649, #DCE35B);
}
.card:nth-child(12) {
background-image: linear-gradient(to bottom right, #FF4E50, #F9D423);
}
.card:nth-child(13) {
background-image: linear-gradient(to bottom right, #00B4DB, #0083B0);
}
.card:nth-child(14) {
background-image: linear-gradient(to bottom right, #FF512F, #F09819);
}
.card:nth-child(15) {
background-image: linear-gradient(to bottom right, #FC354C, #0ABFBC);
}
.card-content {
text-align: center;
padding: 20px;
}
h3 {
margin-top: 0;
color: #fff;
font-size: 18px;
}
</style>
<div class="container">
<div class="card">
<a href="profiles/list_of_drugs.php">
<div class="card-content">
<h3>List of Drugs</h3>
</div>
</a>
</div>
<div class="card">
<a href="profiles/list_of_patients.php">
<div class="card-content">
<h3>List of Patients</h3>
</div>
</a>
</div>
<div class="card">
<a href="profiles/list_of_pharmaceuticals.php">
<div class="card-content">
<h3>List of Pharmaceuticals</h3>
</div>
</a>
</div>
<div class="card">
<a href="profiles/list_of_pharmacies.php">
<div class="card-content">
<h3>List of Pharmacies</h3>
</div>
</a>
</div>
<div class="card">
<a href="profiles/list_of_practitioners.php">
<div class="card-content">
<h3>List of Practitioners</h3>
</div>
</a>
</div>
<div class="card">
<a href="profiles/list_of_specialties.php">
<div class="card-content">
<h3>List of Specialties</h3>
</div>
</a>
</div>
<div class="card">
<a href="profiles/list_of_supervisors.php">
<div class="card-content">
<h3>List of Supervisors</h3>
</div>
</a>
</div>
<div class="card">
<a href="registration/register_drug.php">
<div class="card-content">
<h3>Register Drug</h3>
</div>
</a>
</div>
<div class="card">
<a href="registration/register_patient.php">
<div class="card-content">
<h3>Register Patient</h3>
</div>
</a>
</div>
<div class="card">
<a href="registration/register_pharmaceutical.php">
<div class="card-content">
<h3>Register Pharmaceutical</h3>
</div>
</a>
</div>
<div class="card">
<a href="registration/register_pharmacy.php">
<div class="card-content">
<h3>Register Pharmacy</h3>
</div>
</a>
</div>
<div class="card">
<a href="registration/register_practitioner.php">
<div class="card-content">
<h3>Register Practitioner</h3>
</div>
</a>
</div>
<div class="card">
<a href="registration/register_specialty.php">
<div class="card-content">
<h3>Register Specialty</h3>
</div>
</a>
</div>
<div class="card">
<a href="registration/register_supervisor.php">
<div class="card-content">
<h3>Register Supervisor</h3>
</div>
</a>
</div>
</div>
_HTML;
require_once('templates/base.php');
?>