[Contests] Added buttons for activate/deactivate all

This commit is contained in:
Andreas
2021-10-23 19:44:41 +02:00
parent b324aba559
commit 93b6cba00e
4 changed files with 109 additions and 22 deletions

View File

@@ -122,4 +122,24 @@ class Contesting_model extends CI_Model {
$this->db->where('id', $id);
$this->db->update('contest', $data);
}
function activateall() {
$data = array(
'active' => '1',
);
$this->db->update('contest', $data);
return true;
}
function deactivateall() {
$data = array(
'active' => '0',
);
$this->db->update('contest', $data);
return true;
}
}