-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwaiting.php
More file actions
241 lines (207 loc) · 8.65 KB
/
waiting.php
File metadata and controls
241 lines (207 loc) · 8.65 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
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
236
237
238
239
240
241
<?php
require_once("includes/config.php");
require_once("includes/classes/Account.php");
// Check if user is logged in
if(!$_SESSION["username"]) {
header("Location: login.php");
exit;
}
$account = new Account($con);
$username = $_SESSION["username"];
$userDetails = $account->getUserDetails($username);
$firstName = $userDetails['firstName'] ?? 'User';
$lastName = $userDetails['lastName'] ?? '';
$avatarID = $userDetails['avatarID'] ?? 0;
$filePath = 'assets/images/faces/6.jpg'; // default avatar
// Get avatar from avatar table
if($avatarID > 0) {
$query = $con->prepare("SELECT filePath FROM avatar WHERE id = :avatarID");
$query->bindValue(":avatarID", $avatarID);
$query->execute();
if($query->rowCount() == 1) {
$avatarRow = $query->fetch(PDO::FETCH_ASSOC);
$filePath = $avatarRow['filePath'] ?? 'assets/images/faces/6.jpg';
}
}
?>
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Awaiting Programme Assignment - Learn Space</title>
<link rel="shortcut icon" type="image/x-icon" href="assets/images/brand/ae_syrma SGS.png"/>
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="assets/css/style.css" rel="stylesheet" />
<link href="assets/css/icons.css" rel="stylesheet" /> <script src="https://unpkg.com/@lottiefiles/dotlottie-wc@0.8.11/dist/dotlottie-wc.js" type="module"></script> <styl>
<style>
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
@keyframes float {
0%, 100% {
transform: translateY(0px);
}
50% {
transform: translateY(-10px);
}
}
@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.logo-container {
animation: fadeInDown 0.8s ease-out;
}
.icon-container {
animation: fadeInUp 0.8s ease-out 0.3s both;
}
.icon-inner {
animation: pulse 2s ease-in-out infinite;
}
.card-main {
animation: fadeInUp 0.8s ease-out 0.5s both;
}
.text-title {
animation: fadeInUp 0.8s ease-out 0.7s both;
}
.text-subtitle {
animation: fadeInUp 0.8s ease-out 0.8s both;
}
.message-box {
animation: slideInLeft 0.8s ease-out 0.9s both;
}
.user-info-box {
animation: slideInRight 0.8s ease-out 1s both;
}
.btn-group {
animation: fadeInUp 0.8s ease-out 1.1s both;
}
.btn-primary {
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}
.btn-outline-secondary:hover {
transform: translateY(-3px);
}
.footer-text {
animation: fadeInUp 0.8s ease-out 1.2s both;
}
</style>
</head>
<body class="ltr bg-light">
<div class="min-vh-100 d-flex align-items-center justify-content-center p-3">
<div class="w-100" style="max-width: 500px;">
<!-- Logo Container -->
<div class="text-center mb-5 logo-container">
<div class="d-flex align-items-center justify-content-center gap-3 mb-4">
<div class="logo-item">
<img src="assets/images/brand/syrma SGS.png" alt="Learn Space" style="height: 50px; object-fit: contain;">
</div>
</div>
</div>
<!-- Main Card -->
<div class="card border-0 shadow card-main">
<div class="card-body p-5 text-center">
<!-- Animated Icon -->
<div class="mb-4 icon-container d-flex justify-content-center">
<dotlottie-wc src="https://lottie.host/471272ec-a48e-4d8c-85e8-b2c4e0b85949/EsDFBicivO.lottie" style="width: 150px; height: 150px;" autoplay loop></dotlottie-wc>
</div>
<!-- Title -->
<h2 class="fw-bold text-dark mb-2 text-title">Pending Assignment</h2>
<!-- Subtitle -->
<p class="text-muted mb-4 text-subtitle" style="font-size: 15px; line-height: 1.6;">
You haven't been assigned to any training programme yet.
</p>
<!-- Message Box -->
<div class="bg-light p-4 rounded-3 mb-4 text-start message-box" style="border-left: 4px solid #667eea;">
<p class="mb-0 text-dark" style="font-size: 14px; line-height: 1.6;">
Your administrator will assign you to a suitable training programme soon. Once assigned, you'll be able to access course materials and start learning. Please check back later or contact your administrator for updates.
</p>
</div>
<!-- User Info -->
<div class="d-flex align-items-center justify-content-center mb-4 p-3 rounded-2 user-info-box" style="background: #f8f9fa;">
<img src="<?php echo htmlspecialchars($filePath); ?>" alt="Profile" class="rounded-circle me-3" style="width: 45px; height: 45px; object-fit: cover;">
<div class="text-start">
<h6 class="mb-0 fw-bold text-dark"><?php echo htmlspecialchars($firstName . ' ' . $lastName); ?></h6>
<small class="text-muted">@<?php echo htmlspecialchars($username); ?></small>
</div>
</div>
<!-- Action Buttons -->
<div class="d-grid gap-2 btn-group">
<a href="profile.php" class="btn btn-primary btn-lg" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none;">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2" style="width: 18px; height: 18px;" enable-background="new 0 0 24 24" viewBox="0 0 24 24"><path fill="white" d="M12,12c2.21,0,4-1.79,4-4c0-2.21-1.79-4-4-4c-2.21,0-4,1.79-4,4C8,10.21,9.79,12,12,12z M12,14c-2.67,0-8,1.34-8,4v2h16v-2C20,15.34,14.67,14,12,14z"/></svg>
View Your Profile
</a>
<a href="logout.php" class="btn btn-outline-secondary btn-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="me-2" style="width: 18px; height: 18px;" enable-background="new 0 0 24 24" viewBox="0 0 24 24"><path fill="currentColor" d="M17,7l-1.41,1.41L18.17,11H8v2h10.17l-2.58,2.58L17,17l5-5L17,7z M4,5h8V3H4C2.9,3,2,3.9,2,5v14c0,1.1,0.9,2,2,2h8v-2H4V5z"/></svg>
Logout
</a>
</div>
</div>
</div>
<!-- Footer -->
<div class="text-center mt-4 footer-text">
<p class="text-muted small">Learn Space Training Portal</p>
</div>
</div>
</div>
<!-- SCRIPTS -->
<script src="assets/plugins/jquery/jquery.min.js"></script>
<script src="assets/plugins/bootstrap/js/popper.min.js"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>