public function toolbar_delete() { foreach (form_checkids_ids() as $id => $file) { $this->database_manager->remove_backup_file($file); } redirect(uri_string()); }
function form_checkids_id_value($name = 'checkid') { $checkids = form_checkids_ids($name); if (count($checkids) > 0) { return reset($checkids); } return FALSE; }
public function toolbar_request_attendance() { require_once APPPATH . '/controllers/admin/staff_call' . EXT; $ids = form_checkids_ids('assignment_check_id'); if (count($ids) == 0) { set_message_note($this->lang->line('error_no_staff_check_id', 'request attendance'), MESSAGE_NOTE_WARNING); } $this->load->library('staff_phone_manager'); $staff_ins = new Staff_call(); //var_dump($ids); //exit; foreach ($ids as $id) { $this->staff_assignment_model->load_by_id($id); $next_shift = $this->_get_next_shift_date_time($this->staff_assignment_model->staff_id, $this->staff_assignment_model->site_id, $this->staff_assignment_model->shift_type); // var_dump($next_shift); exit; if ($next_shift) { if ($next_shift->call_type != 'Voice') { $this->staff_phone_manager->request_attendance($next_shift->staff_id, $next_shift->site_id, $next_shift->schedule_id, $next_shift->shift_type, $next_shift->start_time, $next_shift->call_type); } else { $res = $staff_ins->Random_Call($next_shift->staff_id, $next_shift->schedule_id); } } } redirect(uri_string()); jquery_tab_set_tab_index(2); }
public function toolbar_remove_staff() { $ids = form_checkids_ids('assignment_check_id'); if (count($ids) == 0) { set_message_note($this->lang->line('error_no_staff_check_id', 'delete'), MESSAGE_NOTE_WARNING); } foreach ($ids as $id) { $this->staff_assignment_model->delete_id($id); } jquery_tab_set_tab_index(2); }
public function toolbar_delete_point() { $ids = form_checkids_ids(); foreach ($ids as $id) { $this->park_point_model->delete_id($id); } return TRUE; }