function get_items_manage_table_data_rows($items, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($items->result() as $item) {
        $table_data_rows .= get_item_data_row($item, $controller);
    }
    if ($items->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='8'><div class='warning_message' style='padding:7px;'>" . $CI->lang->line('items_no_items_to_display') . "</div></tr></tr>";
    }
    return $table_data_rows;
}
예제 #2
0
 function get_row()
 {
     $item_id = $this->input->post('row_id');
     $item_info = $this->Item->get_info($item_id);
     $stock_location = $this->item_lib->get_item_location();
     $item_quantity = $this->Item_quantities->get_item_quantity($item_id, $stock_location);
     $item_info->quantity = $item_quantity->quantity;
     $data_row = get_item_data_row($item_info, $this);
     echo $data_row;
     $this->_remove_duplicate_cookies();
 }
예제 #3
0
 function get_row()
 {
     $item_id = $this->input->post('row_id');
     $data_row = get_item_data_row($this->Item->get_info($item_id), $this);
     echo $data_row;
 }
예제 #4
0
function get_items_manage_table_data_rows($items, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($items->result() as $item) {
        $table_data_rows .= get_item_data_row($item, $controller);
    }
    if ($items->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='11'><span class='col-md-12 text-center text-warning' >" . lang('items_no_items_to_display') . "</span></tr>";
    }
    return $table_data_rows;
}
예제 #5
0
 public function get_row($item_ids)
 {
     $item_infos = $this->Item->get_multiple_info(explode(":", $item_ids), $this->item_lib->get_item_location());
     $result = array();
     foreach ($item_infos->result() as $item_info) {
         $result[$item_info->item_id] = $this->xss_clean(get_item_data_row($item_info, $this));
     }
     echo json_encode($result);
 }