public function leaves_table() { if ($this->input->get('leave_status')) { Leave_request_model::update_leave(); } $data['emp'] = View_employees_list::all(); $data['record'] = View_leaves_request::all(); $data['pageTitle'] = 'Leaves - MSInc.'; $data['content'] = 'employee/leaves_table'; $this->load->view($this->master_layout, $data); $this->display_notif(); }
public function attendance_employee() { if ($this->input->post('btnFilter')) { $post = $this->input->post(); $data['attendance'] = attendance_model::generateAttendanceEmployee($post['cboEmployee'], $post['cboMonth'], $post['cboYear']); } if ($this->input->post('btnPrint')) { $post = $this->input->post(); $attendance = attendance_model::generateAttendanceEmployee($post['cboEmployee'], $post['cboMonth'], $post['cboYear']); $this->print_attendance_employee($attendance); } $data['employees'] = View_employees_list::all(); $data['months'] = $this->generateMonths(); $data['years'] = $this->generateYears(); $data['pageTitle'] = 'Employee Attendance Report - MSInc.'; $data['content'] = 'reports/attendance_employee'; $this->load->view($this->master_layout, $data); }