"; // echo count($attendance); // echo "
"; // print_r($emppay); // echo "
"; // echo count($emppay); //print_r($datefordropdown); //print_r($noofpublicholidays);print_r($publicholidaysarray); date_default_timezone_set('Asia/Kolkata'); $currentday = date('d'); // print_r($attendance); // echo "
------------------------------
"; ?>

Daily Batch Card Lisiting -

'att'); echo form_open('dailyListing', $attributes); $today = date('M-Y'); $data = array('type' => 'text','name' => 'month','id' => 'month','class' => 'form-control select2'); echo form_input($data);?>
ddate),'d-m-Y'); $id=$hdata->dailyid; ?> description); $start = explode(':',$auto[0]); $stop = explode(':',$auto[1]); $h = $stop[0] - $start[0]; $m = $stop[1] - $start[1]; if($m > 60) { $h+=1; $m-=60; } else if($m < 0) { $h-=1; if($h < 0 ){$h = 0;} $m+=60; } //$less_mnt = explode('.',$hdata->less_maintenance); $total_running_hrs_hrs = $total_running_hrs_hrs + $h; $total_running_hrs_min = $total_running_hrs_min + $m; // } // else {$auto[0] = '-';$auto[1]="-" ;} //echo $hdata->description; ?>
       Date            Auto Start Auto Stop Total Hrs less up to feeding start less maintenance Less Break down hours Total burner running time Total Feeding Hours ED Details Rotary Dryer TRP Rough Sand TRP Fine Sand Gas for Trip Water Diesel for Bull Diesel for Rotary Dryer Power Consumption No Of Person Worked Worked Done By Approved By             Remarks            
Running Hrs Receipt Issues Input Output Receipt Issues Receipt Issues Receipt Consumption Receipt Consumption Receipt Consumption Running Hrs Receipt Consumption Running Hrs Opening Reading Close Reading Total Engineers Operators Helpers
less_feeding_start; //$total_feeding_start += $hdata->less_feeding_start; $lfs_time = explode('.',$hdata->less_feeding_start); $lfs_hrs += $lfs_time[0]; $lfs_min += $lfs_time[1]; if ($lfs_min >= 60) { $lfs_hours = floor($lfs_min/60); $lfs_minutes = $lfs_min % 60; } if($lfs_minutes != ''){ $final_lfs_hrs = $lfs_hrs+$lfs_hours; if($lfs_minutes == 60){$final_lfs_mins = 00;} else{$final_lfs_mins = round($lfs_minutes);} } else{ $final_lfs_hrs = $lfs_hrs+$lfs_hours; if($lfs_min == 60 || $lfs_minutes == ' '){$final_lfs_mins = 00;} else{$final_lfs_mins = $lfs_min;} } $total_feeding_start = $final_lfs_hrs .'.'. $final_lfs_mins; ?> less_maintenance; //$total_less_maintenance+= $hdata->less_maintenance; $lm_time = explode('.',$hdata->less_maintenance); $lm_hrs += $lm_time[0]; $lm_min += $lm_time[1]; if ($lm_min >= 60) { $lm_hours = floor($lm_min/60); $lm_minutes = $lm_min % 60; } if($lm_minutes != ''){ $final_lm_hrs = $lm_hrs+$lm_hours; //$final_lm_mins = round($lm_minutes); if($lm_minutes == 60){$final_lm_mins = 00;} else{$final_lm_mins = round($lm_minutes);} } else{ $final_lm_hrs = $lm_hrs+$lm_hours; if($lm_min == 60 || $lm_minutes == ' '){$final_lm_mins = 00;} else{$final_lm_mins = $lm_min;} } $total_less_maintenance = $final_lm_hrs .'.'. $final_lm_mins; ?> less_break_down_hrs; //$total_less_break_down_hrs+=$hdata->less_break_down_hrs; $lb_time = explode('.',$hdata->less_break_down_hrs); $lb_hrs += $lb_time[0]; $lb_min += $lb_time[1]; if ($lb_min >= 60) { $lb_hours = floor($lb_min/60); $lb_minutes = $lb_min % 60; } if($lb_minutes != ''){ $final_lb_hrs = $lb_hrs+$lb_hours; //$final_lb_mins = round($lb_minutes); if($lb_minutes == 60){$final_lb_mins = 00;} else{$final_lb_mins = round($lb_minutes);} } else{ $final_lb_hrs = $lb_hrs+$lb_hours; if($lb_min == 60 || $lb_minutes == ' '){$final_lb_mins = '00';} else{$final_lb_mins = $lb_min;} } $total_less_break_down_hrs = $final_lb_hrs .'.'. $final_lb_mins; ?> total_burner_running_time; $tbr_time = explode('.',$hdata->total_burner_running_time); $tbr_hrs += $tbr_time[0]; $tbr_min += $tbr_time[1]; if ($tbr_min >= 60) { $tbr_hours = floor($tbr_min/60); $tbr_minutes = $tbr_min % 60; } if($tbr_minutes != ''){ $final_tbr_hrs = $tbr_hrs+$tbr_hours; if($tbr_minutes == 60){$final_tbr_mins = 00;} else{$final_tbr_mins = round($tbr_minutes);} } else{ $final_tbr_hrs = $tbr_hrs+$tbr_hours; if($tbr_min == 60 || $tbr_minutes == ' '){$final_tbr_mins = 00;} else{$final_tbr_mins = $tbr_min;} } $total_burner_running_time = $final_tbr_hrs .'.'. $final_tbr_mins; //$total_burner_running_time+=$hdata->total_burner_running_time; ?> total_feeding_hrs; $tfh_time = explode('.',$hdata->total_feeding_hrs); $tfh_hrs += $tfh_time[0]; $tfh_min += $tfh_time[1]; if ($tfh_min >= 60) { $tfh_hours = floor($tfh_min/60); $tfh_minutes = $tfh_min % 60; } if($tfh_minutes != ''){ $final_tfh_hrs = $tfh_hrs+$tfh_hours; //$final_tfh_mins = round($tfh_minutes); if($tfh_minutes == 60){$final_tfh_mins = 00;} else{$final_tfh_mins = round($tfh_minutes);} } else{ $final_tfh_hrs = $tfh_hrs+$tfh_hours; if($tfh_min == 60 || $tfh_minutes == ' '){$final_tfh_mins = 00;} else{$final_tfh_mins = $tfh_min;} } $total_feeding_hrs = $final_tfh_hrs .'.'. $final_tfh_mins; //$total_feeding_hrs+=$hdata->total_feeding_hrs; ?> ed_running_hrs; $edrh_time = explode('.',$hdata->ed_running_hrs); $edrh_hrs += $edrh_time[0]; $edrh_min += $edrh_time[1]; if ($edrh_min >= 60) { $edrh_hours = floor($edrh_min/60); $edrh_minutes = $edrh_min % 60; } if($edrh_minutes != ''){ $final_edrh_hrs = $edrh_hrs+$edrh_hours; //$final_edrh_mins = round($edrh_minutes); if($edrh_minutes == 60){$final_edrh_mins = 00;} else{$final_edrh_mins = round($edrh_minutes);} } else{ $final_edrh_hrs = $edrh_hrs+$edrh_hours; //$final_edrh_mins = $edrh_min; if($edrh_min == 60 || $edrh_minutes == ' '){$final_edrh_mins = 00;} else{$final_edrh_mins = round($edrh_min);} } $total_ed_rhrs = $final_edrh_hrs .'.'. $final_edrh_mins; //$total_ed_rhrs+=$hdata->ed_running_hrs; ?> ed_receipt;$total_ed_receipt+=$hdata->ed_receipt;?> ed_issues;$total_ed_issues+=$hdata->ed_issues;?> rotary_input;$total_rotary_input+=$hdata->rotary_input;?> rotary_output;$total_rotary_output+=$hdata->rotary_output;?> trp_roughsand_receipt;$total_rough_sand_r+=$hdata->trp_roughsand_receipt;?> trp_roughsand_issues;$total_rough_sand_i+=$hdata->trp_roughsand_issues;?> trp_finesand_receipt;$total_fine_sand_r+=$hdata->trp_finesand_receipt;?> trp_finesand_issues;$total_fine_sand_i+=$hdata->trp_finesand_issues;?> gas_for_trip_receipt;$total_gas_r+=$hdata->gas_for_trip_receipt;?> gas_for_trip_consumption;$total_gas_c+=$hdata->gas_for_trip_consumption;?> water_receipt;$total_water_r+=$hdata->water_receipt;?> water_consumption;$total_water_c+=$hdata->water_consumption;?> diesel_receipt;$total_diesel_bull_r+=$hdata->diesel_receipt;?> diesel_consumption;$total_diesel_bull_c+=$hdata->diesel_consumption;?> diesel_runninig_hrs; $drh_time = explode('.',$hdata->diesel_runninig_hrs); $drh_hrs += $drh_time[0]; $drh_min += $drh_time[1]; //echo $drh_min; if ($drh_min >= 60) { $drh_hours = floor($drh_min/60); $drh_minutes = $drh_min % 60; } if($drh_minutes != ''){ //echo $drh_minutes; $final_drh_hrs = $drh_hrs+$drh_hours; //$final_drh_mins = round($drh_minutes); if($drh_minutes == 60){$final_drh_mins = 00;} else{$final_drh_mins = round($drh_minutes);} } else{ $final_drh_hrs = $drh_hrs+$drh_hours; //$final_drh_mins = $drh_min; if($drh_min == 60 || $drh_minutes == ' '){$final_drh_mins = 00;} else{$final_drh_mins = $drh_min;} } $total_diesel_bull_rh = $final_drh_hrs .'.'. $final_drh_mins; //$total_diesel_bull_rh+=$hdata->diesel_runninig_hrs; ?> diesel_dryer_receipt;$total_diesel_rotary_bull_r+=$hdata->diesel_dryer_receipt;?> diesel_dryer_consumption;$total_diesel_rotary_bull_c+=$hdata->diesel_dryer_consumption;?> diesel_dryer_runninig_hrs; $ddrh_time = explode('.',$hdata->diesel_dryer_runninig_hrs); $ddrh_hrs += $ddrh_time[0]; $ddrh_min += $ddrh_time[1]; if ($ddrh_min >= 60) { $ddrh_hours = floor($ddrh_min/60); $ddrh_minutes = $ddrh_min % 60; } if($ddrh_minutes != ''){ $final_ddrh_hrs = $ddrh_hrs+$ddrh_hours; //$final_ddrh_mins = round($ddrh_minutes); if($ddrh_minutes == 60){$final_ddrh_mins = 00;} else{$final_ddrh_mins = round($ddrh_minutes);} } else{ $final_ddrh_hrs = $ddrh_hrs+$ddrh_hours; //$final_ddrh_mins = $ddrh_min; if($ddrh_min == 60 || $ddrh_minutes == ' '){$final_ddrh_mins = 00;} else{$final_ddrh_mins = $ddrh_min;} } $total_diesel_rotary_bull_rh = $final_ddrh_hrs .'.'. $final_ddrh_mins; // $total_diesel_rotary_bull_rh = $drr_hr .'.'. $drr_min; ?> power_open_reading;?> power_close_reading;?> power_close_reading - $hdata->power_open_reading);echo $treading;$total_power_total+=$treading;?> engineers;$total_engineers+=$hdata->engineers;?> operators;$total_operators+=$hdata->operators;?> helpers;$total_helpers+=$hdata->helpers;?> FirstName.'-'.$hdata->LastName;?> approvedby;?> remarks;?>
Total     = 60) { $lh = $total_running_hrs_min / 60; $lh = explode('.',$lh); // echo $lh[0]; $total_running_hrs_hrs += $lh[0]; $lm = fmod($total_running_hrs_min , 60); //echo $lm; $total_running_hrs_min = $lm; } $total_running_hrs = $total_running_hrs_hrs.'.'.$total_running_hrs_min; echo $total_running_hrs;?>