db_smartone = $this->load->database("onedev", true); } function send() { $prm = $this->sys_input; $sql = "CALL sp_sampling_send_to_verification('{$prm['ids']}')"; $query = $this->db_smartone->query($sql); if ($query) { $row = $query->row(); $this->sys_ok($row); } else { $this->sys_error_db("sampling send", $this->db_smartone); exit; } } function remove() { $prm = $this->sys_input; $sql = "CALL sp_sampling_remove_from_verification('{$prm['id']}')"; $query = $this->db_smartone->query($sql); if ($query) { $row = $query->row(); $this->sys_ok($row); } else { $this->sys_error_db("sampling remove", $this->db_smartone); exit; } } } ?>