Ejemplo n.º 1
0
 function status()
 {
     $data['pop_up'] = 0;
     $data['page_name'] = '<b>Contract of Service Status</b>';
     $data['msg'] = '';
     $data['error_msg'] = '';
     // Use for office listbox
     $data['options'] = $this->options->office_options();
     $data['selected'] = $this->office_id;
     $this->Employee->fields = array('id', 'employee_id', 'office_id', 'lname', 'fname', 'mname', 'position', 'tax_status', 'dependents');
     $this->Employee->employment_type = 3;
     $data['rows'] = array();
     $data['pop_up_office_id'] = $this->office_id;
     if (Input::get('op')) {
         $data['rows'] = $this->Employee->get_employee_list($this->office_id, '');
         $c = new Cos_status();
         $c->populate($data['rows']);
     }
     $data['main_content'] = 'cos/status';
     return View::make('includes/template', $data);
 }