function get_people_manage_table_data_rows($people, $controller) { $CI =& get_instance(); $table_data_rows = ''; foreach ($people->result() as $person) { $table_data_rows .= get_person_data_row($person, $controller); } if ($people->num_rows() == 0) { $table_data_rows .= "<tr><td colspan='6'><div class='warning_message' style='padding:7px;'>" . $CI->lang->line('common_no_persons_to_display') . "</div></td></tr>"; } return $table_data_rows; }
function get_people_manage_table_data_rows($people, $controller) { $CI =& get_instance(); $table_data_rows = ''; foreach ($people->result() as $person) { $table_data_rows .= get_person_data_row($person, $controller); } if ($people->num_rows() == 0) { $table_data_rows .= "<tr><td colspan='7'><span class='col-md-12 text-center text-warning' >" . lang('common_no_persons_to_display') . "</span></tr>"; } return $table_data_rows; }
public function search() { $search = $this->input->get('search'); $limit = $this->input->get('limit'); $offset = $this->input->get('offset'); $sort = $this->input->get('sort'); $order = $this->input->get('order'); $employees = $this->Employee->search($search, $limit, $offset, $sort, $order); $total_rows = $this->Employee->get_found_rows($search); $data_rows = array(); foreach ($employees->result() as $person) { $data_rows[] = get_person_data_row($person, $this); } $data_rows = $this->xss_clean($data_rows); echo json_encode(array('total' => $total_rows, 'rows' => $data_rows)); }
function get_row() { $person_id = $this->input->post('row_id'); $data_row = get_person_data_row($this->Person->get_info($person_id), $this); echo $data_row; }
public function get_row($row_id) { $data_row = $this->xss_clean(get_person_data_row($this->Person->get_info($row_id), $this)); echo json_encode($data_row); }