function get_row()
 {
     $item_kit_id = $this->input->post('row_id');
     // calculate the total cost and retail price of the Kit so it can be added to the table refresh
     $item_kit = $this->add_totals_to_item_kit($this->Item_kit->get_info($item_kit_id));
     echo get_item_kit_data_row($item_kit, $this);
     $this->_remove_duplicate_cookies();
 }
function get_item_kits_manage_table_data_rows($item_kits, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($item_kits->result() as $item_kit) {
        $table_data_rows .= get_item_kit_data_row($item_kit, $controller);
    }
    if ($item_kits->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='11'><div class='warning_message' style='padding:7px;'>" . $CI->lang->line('item_kits_no_item_kits_to_display') . "</div></tr></tr>";
    }
    return $table_data_rows;
}
Exemple #3
0
 function get_row()
 {
     $item_kit_id = $this->input->post('row_id');
     $data_row = get_item_kit_data_row($this->Item_kit->get_info($item_kit_id), $this);
     echo $data_row;
 }
function get_item_kits_manage_table_data_rows($item_kits, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($item_kits->result() as $item_kit) {
        $table_data_rows .= get_item_kit_data_row($item_kit, $controller);
    }
    if ($item_kits->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='11'><span class='col-md-12 text-center text-warning' >" . lang('item_kits_no_item_kits_to_display') . "</span></tr>";
    }
    return $table_data_rows;
}
Exemple #5
0
 public function get_row($row_id)
 {
     // calculate the total cost and retail price of the Kit so it can be added to the table refresh
     $item_kit = $this->_add_totals_to_item_kit($this->Item_kit->get_info($row_id));
     echo json_encode(get_item_kit_data_row($item_kit, $this));
 }