Hello
This is about the attendance system in which I have to make some changes in a company in which i just joined. The previous code which was written by previous employee is following in 1). When attendance category 3 ( 3 for Leave) is selected & Leave category form 1 to 12 is selected this system gives ‘L’. Now i was asked to make change that if attendance category 3 ( 3 for Leave) & leave category 13 is selected it should give result ‘C’, But the code is not working. I wrote the following code which is in 2) and now it is giving me output as ‘L’ ‘C’.
1.
if ($emp_attendance->attendance_status == '3' || $emp_attendance->leave_category_id != NULL) {
if ($emp_attendance->leave_category_id == '2' || $emp_attendance->leave_category_id == '9') {
echo '<span style="padding:2px 4px" class="label label-primary std_p">L<sub>s</sub></span>';
}
else {
echo '<span style="padding:2px 4px" class="label label-primary std_p">L</span>';
}
}
if ($emp_attendance->attendance_status == '3' || $emp_attendance->leave_category_id == '13') {
echo '<span style="padding:2px 4px" class="label label-success std_p">C</span>';
}