Employee Monthly Payment Listing

"Jan", "2" => "Feb","3" => "Mar","4" => "Apr","5" => "May","6" => "June","7"=> "July","8"=> "Aug","9" => "Sep","10"=> "Oct","11" => "Nov","12"=>"Dec"); $currentmontharray = array(array($month."-".$year => $monthsoptions[$month]."-".$year)); // For find out Next and previous month and year from current year $aftersix = array(); for ($i = 0; $i <3;$i++){ $month++;; if($month > 12) { $month = 1; $year = $year +1; } $aftersix[]=array($month."-".$year => $monthsoptions[$month]."-".$year); } $year = date("Y"); $month = date("m"); $beforesix = array(); for ($i = 3; $i >0;$i--){ $month--; if($month < 1 ) { $month = 12; $year = $year - 1; } $beforesix[]=array($month."-".$year => $monthsoptions[$month]."-".$year); } $beforesix = array_reverse($beforesix); $options = array_merge($options,$beforesix); //echo count($options); $options = array_merge($options,$currentmontharray); $options = array_merge($options,$aftersix); $ot = array(); foreach($options as $o) { foreach($o as $key => $value) { $ot[$key] = $value; } } ?>
EmpID,$testarray)) { $index--; } else{ array_push($testarray,$record->EmpID); ?>
S.No Employee Id Employee Name LOP Days Paid Leave OT Hours Worked in Hrs Loan Recovered in ₹ Incentives in ₹ Other Deductions in ₹
EmpID ?> FirstName ." ". $record->LastName ?> LOP_Days)){echo $record->LOP_Days;}else{echo "0.00";}?> Paid_leave)){echo $record->Paid_leave;}else { echo number_format(0.00,2,'.','');} ?> OT_Hrs_Worked)){echo $record->OT_Hrs_Worked;}else { echo number_format(0.00,2,'.','');} ?> Loan_Recovered)){if(is_numeric($record->Loan_Recovered)){echo number_format($record->Loan_Recovered,2,'.','');}else {echo $record->Loan_Recovered;}}else{echo number_format(0.00,2,'.','');} ?> Incentives)){echo $record->Incentives;}else{ echo number_format(0.00,2,'.','');;} ?> Other_Deductions)){echo $record->Other_Deductions; }else{ echo number_format(0.00,2,'.','');;} ?>