forked from IT-DEPT-ASPL/HRMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdetails_pdf3.php
More file actions
554 lines (484 loc) · 31.2 KB
/
details_pdf3.php
File metadata and controls
554 lines (484 loc) · 31.2 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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
<!DOCTYPE html>
<?php
require_once("dbConfig.php");
$firstDayOfMonth = date("Y-m-01");
$totalDaysInMonth = date("t", strtotime($firstDayOfMonth));
// Fetching Employees
$fetchingEmployees = mysqli_query($db, "SELECT * FROM emp WHERE empemail = '{$_SESSION['user_name']}'") or die(mysqli_error($db));
$totalNumberOfEmployees = mysqli_num_rows($fetchingEmployees);
$EmployeesNamesArray = array();
$EmployeesIDsArray = array();
$counter = 0;
while ($Employees = mysqli_fetch_assoc($fetchingEmployees)) {
$EmployeesNamesArray[] = $Employees['empname'];
$EmployeesIDsArray[] = $Employees['UserID'];
}
// Fetching holidays
$fetchingHolidays = mysqli_query($db, "SELECT value, date FROM holiday") or die(mysqli_error($db));
$holidayDates = array();
while ($holiday = mysqli_fetch_assoc($fetchingHolidays)) {
$holidayDates[$holiday['date']] = $holiday['value'];
}
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Details Pdf</title>
<style>
header{
color:black !important;
}
.badge-success {
background-color: #5cb85c;
}
.badge-warning{
background-color: #f0ad4e;
}
.badge-danger{
background-color: #d9534f;
}
.emage {
display: inline-block;
overflow: hidden;
position: relative;
left:30%;
bottom:1.5%;
width: 100%;
height: 5%;
}
.eemage{
z-index: -100;
position: absolute;
top: 7%;
left: 20%;
}
</style>
</head>
<?php
$currentDateTime = date("Y-m-d H:i:s", strtotime("+5 hours 30 mins"));
echo "<p style='font-family: monospace ;font-size:15px;'>Attendance sheet generated on: $currentDateTime</p>";
?>
<div style='display:block;margin-left:auto;margin-right:auto;width:110px;'>
<img alt='logo' src='https://ik.imagekit.io/akkldfjrf/Anika_logo%20(1).jpg?updatedAt=1691746754121' width=100px height=80px>
</div><br>
<header style="text-align:center;">
<a class="header" href="" style="Font-size:30px;text-decoration:none !important;">Anika Sterilis Private Limited</a>
<p style="text-align:center;">Anika ONE, AMTZ Campus,Pragati Maidan,VM Steel Project S.O,Visakhapatnam,Andhra Pradesh-530031</p>
<p style="text-align:center;">Phone: 0891-5193101 | Email: [email protected]</p>
</header>
<hr>
<body>
<h3 style="text-align: center;"><u>Attendance Sheet</u></h3>
<div style=" position: relative;">
<p> Month: <b><?php echo date("F Y"); ?></b></p><?php
?>
</div>
<form method="post" action="">
<table border="1" style="border-color: rgb(170, 170, 170);scale:0.9; " cellspacing="0" class="table table-bordered table-hover">
<?php
$lastDayOfMonth = date('Y-m-t', strtotime($firstDayOfMonth)). ' 23:59:59';
// Calculate the number of Sundays in the current month
$sundaysCount = 0;
for ($j = 1; $j <= $totalDaysInMonth; $j++) {
$dateOfAttendance = date("Y-m-$j");
$dayOfWeek = date('N', strtotime($dateOfAttendance));
if ($dayOfWeek == 7) {
$sundaysCount++;
}
}
for ($i = 1; $i <= $totalNumberOfEmployees + 2; $i++) {
if ($i == 1) {
echo "<tr>";
echo "<td rowspan='2'>Employee Name</td>";
for ($j = 1; $j <= $totalDaysInMonth; $j++) {
echo "<td>$j</td>";
}
echo "<td colspan='6' style='text-align:center;'>Total</td>";
$currentDate = date('Y-m-d');
$lastDayOfMonth = date('Y-m-t', strtotime($firstDayOfMonth));
if ($currentDate === $lastDayOfMonth) {
echo "<td rowspan='2' >Confirmed by employee</td>";
} else {
echo "";
}
echo "</tr>";
} else if ($i == 2) {
echo "<tr>";
for ($j = 0; $j < $totalDaysInMonth; $j++) {
echo "<td>" . date("D", strtotime("+$j days", strtotime($firstDayOfMonth))) . "</td>";
}
echo "<td>Absent</td>";
echo "<td>Leaves</td>";
echo "<td class='static-cell'>Comp. Off</td>";
echo "<td>Present</td>";
echo "<td>NWD</td>";
echo "<td>AP(%)</td>";
echo "</tr>";
} else {
echo "<tr>";
echo "<td>" . $EmployeesNamesArray[$counter] ."</td>";
$color = "";
for ($j = 1; $j <= $totalDaysInMonth; $j++) {
$dateOfAttendance = date("Y-m-$j");
// Check if the date is a holiday
$fetchingHoliday = mysqli_query($db, "
SELECT value
FROM holiday
WHERE date = '$dateOfAttendance'
") or die(mysqli_error($db));
$isHoliday = mysqli_num_rows($fetchingHoliday);
// Default value for non-holiday
$attendanceText = '';
// Default value for non-holiday
$attendanceText = '';
if ($dayOfWeek != 7) {
// Check for leaves entries
$fetchingLeaves = mysqli_query($db, "
SELECT empname, leavetype
FROM leaves
WHERE empname = '" . $EmployeesNamesArray[$counter] . "'
AND DATE(`from`) <= '$dateOfAttendance'
AND DATE(`to`) >= '$dateOfAttendance'
AND status = 1
AND status1 = 1
") or die(mysqli_error($db));
$isLeavesAdded = mysqli_num_rows($fetchingLeaves);
if ($isLeavesAdded > 0) {
$leaveEntry = mysqli_fetch_assoc($fetchingLeaves);
// Check the leavetype and set the attendance text accordingly
if ($leaveEntry['leavetype'] == 'HALF DAY') {
$attendanceText = '<span style="font-weight: 600; color:rgb(104, 104, 104); padding: 0.1em;">HDL</span>';
// Fetch attendance data for weekdays (excluding Sundays)
$fetchingEmployeesAttendance = mysqli_query($db, "
SELECT CBA.AttendanceType, E.empname
FROM CamsBiometricAttendance AS CBA
INNER JOIN emp AS E ON CBA.UserID = E.UserID
WHERE CBA.UserID = '" . $EmployeesIDsArray[$counter] . "'
AND DATE(CBA.AttendanceTime) = '$dateOfAttendance'
") or die(mysqli_error($db));
$isAttendanceAdded = mysqli_num_rows($fetchingEmployeesAttendance);
// Store the fetched rows in an array
$EmployeeAttendanceArray = array();
while ($row = mysqli_fetch_assoc($fetchingEmployeesAttendance)) {
$EmployeeAttendanceArray[] = $row;
}
$absentText = '';
// Check for absent entries
$fetchingAbsent = mysqli_query($db, "
SELECT empname
FROM absent
WHERE empname = '" . $EmployeesNamesArray[$counter] . "'
AND DATE(AttendanceTime) = '$dateOfAttendance'
") or die(mysqli_error($db));
$isAbsentAdded = mysqli_num_rows($fetchingAbsent);
if ($isAbsentAdded > 0) {
$absentText = '<span style="font-weight: 600; color:rgb(255, 23, 23); padding: 0.1em;">Ab</span>';
}
if ($isAttendanceAdded > 0) {
// Display attendance data for weekdays
$checkInText = '';
$checkOutText = '';
foreach ($EmployeeAttendanceArray as $EmployeeAttendance) {
if ($EmployeeAttendance['AttendanceType'] == 'CheckIn') {
$checkInText = '<span style="font-weight: 600; color:rgb(0, 146, 0); padding: 0.1em;">CI</span>';
} elseif ($EmployeeAttendance['AttendanceType'] == 'CheckOut') {
$checkOutText = '<span style="font-weight: 600; color:rgb(0, 146, 0); padding: 0.1em;">CO</span>';
}
}
// Display attendance data for weekdays
if ($checkInText !== '' && $checkOutText !== '') {
$attendanceText .= $checkInText . ":" . $checkOutText;
} elseif ($checkOutText !== '') {
$attendanceText .= $checkOutText;
} elseif ($checkInText !== '') {
$attendanceText .= $checkInText;
}
$empName = $EmployeeAttendance['empname'];
}
} else {
$attendanceText = '<span style="font-weight: 600; color:rgb(104, 104, 104); padding: 0.1em;">L</span>';
}
} else {
// Fetch attendance data for weekdays (excluding Sundays)
$fetchingEmployeesAttendance = mysqli_query($db, "
SELECT CBA.AttendanceType, E.empname
FROM CamsBiometricAttendance AS CBA
INNER JOIN emp AS E ON CBA.UserID = E.UserID
WHERE CBA.UserID = '" . $EmployeesIDsArray[$counter] . "'
AND DATE(CBA.AttendanceTime) = '$dateOfAttendance'
") or die(mysqli_error($db));
$isAttendanceAdded = mysqli_num_rows($fetchingEmployeesAttendance);
// Store the fetched rows in an array
$EmployeeAttendanceArray = array();
while ($row = mysqli_fetch_assoc($fetchingEmployeesAttendance)) {
$EmployeeAttendanceArray[] = $row;
}
$absentText = '';
// Check for absent entries
$fetchingAbsent = mysqli_query($db, "
SELECT empname
FROM absent
WHERE empname = '" . $EmployeesNamesArray[$counter] . "'
AND DATE(AttendanceTime) = '$dateOfAttendance'
") or die(mysqli_error($db));
$isAbsentAdded = mysqli_num_rows($fetchingAbsent);
if ($isAbsentAdded > 0) {
$absentText = '<span style="font-weight: 600; color:rgb(255, 23, 23); padding: 0.1em;">Ab</span>';
}
if ($isAttendanceAdded > 0) {
// Display attendance data for weekdays
$checkInText = '';
$checkOutText = '';
foreach ($EmployeeAttendanceArray as $EmployeeAttendance) {
if ($EmployeeAttendance['AttendanceType'] == 'CheckIn') {
$checkInText = '<span style="font-weight: 600; color:rgb(0, 146, 0);">CI</span>';
} elseif ($EmployeeAttendance['AttendanceType'] == 'CheckOut') {
$checkOutText = '<span style="font-weight: 600; color:rgb(0, 146, 0);">CO</span>';
}
}
// Display attendance data for weekdays
if ($checkInText !== '' && $checkOutText !== '') {
$attendanceText .= $checkInText . " " . $checkOutText;
} elseif ($checkOutText !== '') {
$attendanceText .= $checkOutText;
} elseif ($checkInText !== '') {
$attendanceText .= $checkInText;
}
$empName = $EmployeeAttendance['empname'];
}
// If absent, override other values
if ($absentText !== '') {
$attendanceText = $absentText;
}
}
}
// Set orange color for 'Sun' only in the current cell
$tdStyle = ($dayOfWeek == 7 && $isHoliday == 0) ? "style='background-color: orange; color: white'" : "";
echo "<td $tdStyle>" . $attendanceText . "</td>";
}
$ciCoColumn = mysqli_query($db, "
SELECT COUNT(DISTINCT DATE(AttendanceTime)) AS count
FROM CamsBiometricAttendance
WHERE UserID = '" . $EmployeesIDsArray[$counter] . "'
AND DATE(AttendanceTime) >= '$firstDayOfMonth'
AND DATE(AttendanceTime) <= '$lastDayOfMonth'
AND DAYOFWEEK(AttendanceTime) != 1 -- Exclude entries on Sunday
AND (
(AttendanceType = 'CheckIn' AND DATE(AttendanceTime) IN (
SELECT DATE(AttendanceTime)
FROM CamsBiometricAttendance
WHERE UserID = '" . $EmployeesIDsArray[$counter] . "'
AND DATE(AttendanceTime) >= '$firstDayOfMonth'
AND DATE(AttendanceTime) <= '$lastDayOfMonth'
AND AttendanceType = 'CheckOut'
AND DAYOFWEEK(AttendanceTime) != 1 -- Exclude entries on Sunday
))
OR (AttendanceType = 'CheckOut' AND DATE(AttendanceTime) IN (
SELECT DATE(AttendanceTime)
FROM CamsBiometricAttendance
WHERE UserID = '" . $EmployeesIDsArray[$counter] . "'
AND DATE(AttendanceTime) >= '$firstDayOfMonth'
AND DATE(AttendanceTime) <= '$lastDayOfMonth'
AND AttendanceType = 'CheckIn'
AND DAYOFWEEK(AttendanceTime) != 1 -- Exclude entries on Sunday
))
)
") or die(mysqli_error($db));
$ciCoColumn1 = mysqli_query($db, "
SELECT COUNT(DISTINCT DATE(AttendanceTime)) AS count
FROM CamsBiometricAttendance
WHERE UserID = '" . $EmployeesIDsArray[$counter] . "'
AND DATE(AttendanceTime) >= '$firstDayOfMonth'
AND DATE(AttendanceTime) <= '$lastDayOfMonth'
AND (
(AttendanceType = 'CheckIn' AND DATE(AttendanceTime) IN (
SELECT DATE(AttendanceTime)
FROM CamsBiometricAttendance
WHERE UserID = '" . $EmployeesIDsArray[$counter] . "'
AND DATE(AttendanceTime) >= '$firstDayOfMonth'
AND DATE(AttendanceTime) <= '$lastDayOfMonth'
AND AttendanceType = 'CheckOut'
AND DAYOFWEEK(AttendanceTime) = 1 -- Select only entries on Sunday
))
OR (AttendanceType = 'CheckOut' AND DATE(AttendanceTime) IN (
SELECT DATE(AttendanceTime)
FROM CamsBiometricAttendance
WHERE UserID = '" . $EmployeesIDsArray[$counter] . "'
AND DATE(AttendanceTime) >= '$firstDayOfMonth'
AND DATE(AttendanceTime) <= '$lastDayOfMonth'
AND AttendanceType = 'CheckIn'
AND DAYOFWEEK(AttendanceTime) = 1 -- Select only entries on Sunday
))
)
") or die(mysqli_error($db));
$firstDayOfMonth = date("Y-m-01");
$lastDayOfMonth = date("Y-m-t");
$absentColumn = mysqli_query($db, "
SELECT COUNT(empname) AS count
FROM absent
WHERE empname = '" . $EmployeesNamesArray[$counter] . "'
AND AttendanceTime >= '$firstDayOfMonth'
AND AttendanceTime <= '$lastDayOfMonth 23:59:59'
") or die(mysqli_error($db));
$leavesData = mysqli_query($db, "
SELECT `from`, `to`
FROM leaves
WHERE empname = '" . $EmployeesNamesArray[$counter] . "'
AND status = 1
AND status1 = 1
AND leavetype != 'HALF DAY'
AND (
(`from` BETWEEN '$firstDayOfMonth' AND '$lastDayOfMonth')
OR (`to` BETWEEN '$firstDayOfMonth' AND '$lastDayOfMonth')
OR (`from` <= '$firstDayOfMonth' AND `to` >= '$lastDayOfMonth')
)
") or die(mysqli_error($db));
$leavesData1 = mysqli_query($db, "
SELECT `from`, `to`
FROM leaves
WHERE empname = '" . $EmployeesNamesArray[$counter] . "'
AND status = 1
AND status1 = 1
AND leavetype = 'HALF DAY'
AND (
(`from` BETWEEN '$firstDayOfMonth' AND '$lastDayOfMonth')
OR (`to` BETWEEN '$firstDayOfMonth' AND '$lastDayOfMonth')
OR (`from` <= '$firstDayOfMonth' AND `to` >= '$lastDayOfMonth')
)
") or die(mysqli_error($db));
$leavesData2 = mysqli_query($db, "
SELECT `from`, `to`
FROM leaves
WHERE leavetype ='OFFICIAL LEAVE'
AND empname = '" . $EmployeesNamesArray[$counter] . "'
AND (
(status = 1 AND status1 = 1) OR
(status = 1 AND status1 = 0)
)
") or die(mysqli_error($db));
$fetchingLeaves1 = mysqli_query($db, "
SELECT empname, leavetype
FROM leaves
WHERE leavetype = 'OFFICIAL LEAVE'
AND empname = '" . $EmployeesNamesArray[$counter] . "'
AND DATE(`from`) <= '$dateOfAttendance'
AND DATE(`to`) >= '$dateOfAttendance'
AND ((status = 1 AND status1 = 1) OR (status = 1 AND status1 = 0))
") or die(mysqli_error($db));
$leaveEntry1 = mysqli_fetch_assoc($fetchingLeaves1);
// Initialize leave count
$leaveCount = 0;
while ($leaveEntry = mysqli_fetch_assoc($leavesData)) {
$from = strtotime($leaveEntry['from']);
$to = strtotime($leaveEntry['to']);
// Calculate leave duration in days, excluding Sundays
for ($k = 0; $k <= $to - $from; $k += 24 * 60 * 60) {
$currentDay = date('N', $from + $k);
if ($currentDay != 7 && $from + $k >= strtotime($firstDayOfMonth) && $from + $k <= strtotime($lastDayOfMonth)) {
$leaveCount++;
}
}
}
$leaveCount1 = 0;
while ($leaveEntry = mysqli_fetch_assoc($leavesData1)) {
$from = strtotime($leaveEntry['from']);
$to = strtotime($leaveEntry['to']);
// Calculate leave duration in days, excluding Sundays
for ($k = 0; $k <= $to - $from; $k += 24 * 60 * 60) {
$currentDay = date('N', $from + $k);
if ($currentDay != 7 && $from + $k >= strtotime($firstDayOfMonth) && $from + $k <= strtotime($lastDayOfMonth)) {
$leaveCount1 += 0.5; // Increment by 0.5 for each valid leave day
}
}
}
$leaveCount2 = 0;
while ($leaveEntry1 = mysqli_fetch_assoc($leavesData2)) {
$from = strtotime($leaveEntry1['from']);
$to = strtotime($leaveEntry1['to']);
for ($k = 0; $k <= $to - $from; $k += 24 * 60 * 60) {
$currentDay = date('N', $from + $k);
if ($currentDay != 7 && $from + $k >= strtotime($firstDayOfMonth) && $from + $k <= strtotime($lastDayOfMonth)) {
$leaveCount2++;
}
}
}
// Calculate the number of working days in the current month, excluding Sundays and holidays
$totalWorkingDays = $totalDaysInMonth - $sundaysCount;
$fetchingHolidays = mysqli_query($db, "
SELECT COUNT(DISTINCT date) AS count
FROM holiday
WHERE date >= '$firstDayOfMonth'
AND date <= '$lastDayOfMonth'
") or die(mysqli_error($db));
$holidaysCount = mysqli_fetch_assoc($fetchingHolidays)['count'];
$absentCount = mysqli_fetch_assoc($absentColumn)['count'];
$ciCoCount = mysqli_fetch_assoc($ciCoColumn)['count'];
$ciCoCount2 = mysqli_fetch_assoc($ciCoColumn1)['count'];
// Calculate the number of working days in the current month
$ciCoCount= $ciCoCount-$leaveCount1;
$totalleavesCount = $leaveCount+$leaveCount1 ;
$ciCoCount1 = $ciCoCount + $leaveCount2;
$totalWorkingDays = $totalDaysInMonth;
$attendancePercentage = ($ciCoCount1 / $totalWorkingDays) * 100;
echo "<td style='background-color:rgb(200, 10, 25);color:white;text-align:center;'> $absentCount</td>";
echo "<td style='background-color:silver;color:black;text-align:center;'>$totalleavesCount</td>";
echo "<td style='background-color:#dcdcdc;color:black;text-align:center;'>$ciCoCount2</td>";
echo "<td style='background-color:rgb(40, 200, 85);color:black;text-align:center;'>$ciCoCount</td>";
echo "<td style='background-color:rgb(1, 100, 255);color:white;text-align:center;'>$ciCoCount1/$totalWorkingDays</td>";
echo "<td style='background-color:rgb(1, 100, 255);color:white;text-align:center;'>" . round($attendancePercentage, 2) . "%</td>";
$caRecord = mysqli_query($db, "
SELECT COUNT(empname) AS count, MAX(confirmed) AS confirmedValue
FROM CA
WHERE empname = '" . $EmployeesNamesArray[$counter] . "'
AND submissionTime >= '$firstDayOfMonth'
AND submissionTime <= '$lastDayOfMonth 23:59:59'
") or die(mysqli_error($db));
$caData = mysqli_fetch_assoc($caRecord);
$caCount = $caData['count'];
$confirmedValue = $caData['confirmedValue'];
if ($caCount > 0) {
// If there are records for the employee in the specified time range
if ($confirmedValue === 'self') {
$confirmedText = 'Yes';
} elseif ($confirmedValue === 'mgr') {
$confirmedText = 'Mgr-C';
} elseif ($confirmedValue === 'hr') {
$confirmedText = 'HR-C';
} else {
// Handle other cases if needed
$confirmedText = ''; // Default case
}
} else {
$confirmedText = ''; // No records for the employee
}
$currentDate = date('Y-m-d');
$lastDayOfMonth = date('Y-m-t', strtotime($firstDayOfMonth));
if ($currentDate === $lastDayOfMonth) {
echo "<td style='background-color: lightgreen;text-align:center;'>$confirmedText</td>";
} else {
echo "";
}
echo "</tr>";
$counter++;
}
}
?>
</table>
</form>
<div style="text-align: center; margin-top: 20px;">
<div style="display: inline-block; margin-right: 10px;">INDICATIONS:</div>
<div style="display: inline-block; margin-right: 10px;">Ab: Absent</div>
<div style="display: inline-block; margin-right: 10px;">CI: CheckedIn</div>
<div style="display: inline-block; margin-right: 10px;">P: Present</div>
<div style="display: inline-block; margin-right: 10px;">Comp. Off: Compensatory Off</div>
<div style="display: inline-block; margin-right: 10px;">HDL: Half Day Leave</div>
<div style="display: inline-block; margin-right: 10px;">L: Leave</div>
<div style="display: inline-block; margin-right: 10px;">!: Check <a href="attendancelog.php" target="_blank">Attendance Log</a></div>
<div style="display: inline-block; margin-right: 10px;">NWD: Net Working Days</div>
<div style="display: inline-block;">AP: Attendance Percentage</div>
<h4 style="text-align: center;">@ANIKA STERILIS | WWW.ANIKASTERILIS.COM</h4>
</div>
</body>
</html>