コード例 #1
0
 public function deleteEmployee()
 {
     $id = $this->input->get('emp_id');
     $emp = Emp_info_model::find($id);
     $info = Emp_info_model::find($id);
     //Tab 1a - Personal Tab
     $gov_id = Gov_id_model::find($id);
     //Tab 1b - Gov ID Tab
     $address = Emp_address_model::find($id);
     //Tab 2a - Contact Tab
     $contact = Emp_contact_model::find($id);
     //Tab 2b - Contact Tab
     $contactP = Emp_contact_person::find($id);
     //Tab 2c - Contact Tab
     $school = Emp_school_model::find($id);
     //Tab 3 - School Tab
     $emp_hist = Emp_history_model::find($id);
     //Tab 5 - Employment Tab
     $account = Users::find_by_employee_id($id);
     //Tab 9 - Users Tab
     $emp->delete();
     $info->delete();
     $gov_id->delete();
     $address->delete();
     $contact->delete();
     $contactP->delete();
     $school->delete();
     $emp_hist->delete();
     $account->delete();
     $this->session->set_userdata('deleted', 1);
     Audit_trail_model::auditDeleteEmp($id);
     redirect('ems/employees');
 }
コード例 #2
0
ファイル: ems.php プロジェクト: ardendeveloper/system_draft
 public function evaluate_performance()
 {
     if ($this->input->post('txtEmployee')) {
         $data['selected'] = Emp_info_model::find($this->input->post('txtEmployee'));
     }
     $data['employee'] = Emp_info_model::all();
     $data['criteria'] = Criteria_model::all();
     $data['pageTitle'] = 'Evaluate Employee- MSInc.';
     $data['content'] = 'employee/evaluate_performance';
     $this->load->view($this->master_layout, $data);
 }