function get_supplier_manage_table_data_rows($suppliers, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($suppliers->result() as $supplier) {
        $table_data_rows .= get_supplier_data_row($supplier, $controller);
    }
    if ($suppliers->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='7'><div class='warning_message' style='padding:7px;'>" . $CI->lang->line('common_no_persons_to_display') . "</div></tr></tr>";
    }
    return $table_data_rows;
}
Beispiel #2
0
 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');
     $suppliers = $this->Supplier->search($search, $limit, $offset, $sort, $order);
     $total_rows = $this->Supplier->get_found_rows($search);
     $data_rows = array();
     foreach ($suppliers->result() as $supplier) {
         $data_rows[] = get_supplier_data_row($supplier, $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_supplier_data_row($this->Supplier->get_info($person_id), $this);
     echo $data_row;
 }
Beispiel #4
0
function get_supplier_manage_table_data_rows($suppliers, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($suppliers->result() as $supplier) {
        $table_data_rows .= get_supplier_data_row($supplier, $controller);
    }
    if ($suppliers->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='8'><span class='col-md-12 text-center text-warning' >" . lang('common_no_persons_to_display') . "</span></tr>";
    }
    return $table_data_rows;
}