mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Contests] Added buttons for activate/deactivate all
This commit is contained in:
@@ -134,4 +134,20 @@ class Contesting extends CI_Controller {
|
||||
echo json_encode(array('message' => 'OK'));
|
||||
return;
|
||||
}
|
||||
|
||||
public function deactivateall() {
|
||||
$this->load->model('Contesting_model');
|
||||
$this->Contesting_model->deactivateall();
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('message' => 'OK'));
|
||||
return;
|
||||
}
|
||||
|
||||
public function activateall() {
|
||||
$this->load->model('Contesting_model');
|
||||
$this->Contesting_model->activateall();
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(array('message' => 'OK'));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user