------------------------------
"; ?>
'atten'); echo form_open('attendance', $attributes); ?>
EmpID, $testarray)) { //$index--; } else { array_push($testarray, $record->EmpID); array_push($finalarray, $record); } } } ?>
H_Date; $temp = substr($temp, 8); if ($temp == $col) { $flag2 = 1; //$title ="Public Holiday-" . str_replace(" ","_",$h->H_Name); $title = str_replace(" ", "_", $h->H_Name); //echo $title; } } if($col > $currentday && $datefordropdown == date('M-Y')){ continue; } ?> EmpID, $b->EmpID); }); foreach ($finalarray as $a) { $row++; $index++; ?> H_Date; $temp = substr($temp, 8); $title = ''; //echo $temp.'-'.$col.'/'; if ($temp == $col) { $flag2 = 1; //$title ="Public_Holiday-" . str_replace(" ","_",$h->H_Name); $title = str_replace(" ", "_", $h->H_Name); //echo $title; } } $WH = 'WH' . $col; $OT = 'OT' . $col; foreach ($employeeleavedate as $eid => $absentdate){ if($a->EmpID == $eid){ foreach ($absentdate as $particulardate){ // echo " $eid particulardate = ".$particulardate ." col = ".$col; if($col === $particulardate){ $absent = 1; // echo "1) empid = $a->EmpID, date = $col, absent = $absent"; }// else $absent = 0; } } } if($col > $currentday && $datefordropdown == date('M-Y')){ continue; } // echo "
"."empid = $a->EmpID, date = $col, absent = $absent"."
"; // echo "
"."2) all Flags : flag2 = $flag2, flag = $flag2, absent = $absent"."
"; ?>
S.NO EmpID Employee Name title=" " title="sunday" class="celda_encabezado_general" > " . $col . "W"; } else { echo $col . "W"; } ?> title=" " title="sunday" class="celda_encabezado_general" > " . $col . "OT"; } else { echo $col . "OT"; } ?> Days Worked Absent Paid Leave Sunday Worked Hrs OT Hrs
EmpID; ?> FirstName; ?> title=" " title="sunday" title="absent" class="celda_normal" onkeyup="myFunction(this.parentNode.id,this.id,this.textContent);" id="" tabindex=""> $WH)) { echo $a->$WH; } else { echo ''; } ?> title=" " title="sunday" title="absent" class="celda_normal" onkeyup="myFunction(this.parentNode.id,this.id,this.textContent);" id="" tabindex=""> $OT)) { echo $a->$OT; } else { echo ''; } ?> Days_Worked)) { echo $a->Days_Worked; } else { echo "0.00"; } ?> Absent)) { echo $a->Absent; } else { echo "0.00"; } ?> Total_WHrs)) { echo $a->Total_WHrs; } else { echo "0.00"; } ?> Total_OTHrs)) { echo $a->Total_OTHrs; } else { echo "0.00"; } ?>