Make sure attendance entry made before entering data in the screen
input->post('datepi')){ $date = $this->input->post('datepi'); $a=substr($date,0,2); $monthName = date('F', mktime(0, 0, 0, $a, 10)); $year=substr($date,3,6); echo 'Production Salary Cost'.'('.$monthName.'-'.$year.')'; } if($this->input->post('from_date') && $this->input->post('to_date')){ $frm = $this->input->post('from_date'); $t = $this->input->post('to_date'); echo 'Production Salary Cost '. $frm.' to '.$t; } ?>
| SNo | Date | Production/Ton | EmployeePresent | TotalSalaryCost | SalaryCostPerTon | Action |
|---|---|---|---|---|---|---|
| date !='0000-00-00'){ $date = date("d-m-Y",strtotime($ps->date)); }else{ $date = ''; } echo $date; ?> | production ?> | emppresent ?> | totalsalary , 0, '.', ''); ?> | salaryton);?> |