|
|
|
@ -40,6 +40,7 @@ class ThematicController { |
|
|
|
|
|
|
|
|
|
|
|
$check = Security::check_token('request'); |
|
|
|
$check = Security::check_token('request'); |
|
|
|
$thematic_id = isset($_REQUEST['thematic_id']) ? intval($_REQUEST['thematic_id']) : null; |
|
|
|
$thematic_id = isset($_REQUEST['thematic_id']) ? intval($_REQUEST['thematic_id']) : null; |
|
|
|
|
|
|
|
$displayHeader = (!empty($_REQUEST['display']) && $_REQUEST['display'] === 'no_header') ? false : true; |
|
|
|
|
|
|
|
|
|
|
|
if ($check) { |
|
|
|
if ($check) { |
|
|
|
switch ($action) { |
|
|
|
switch ($action) { |
|
|
|
@ -248,9 +249,11 @@ class ThematicController { |
|
|
|
$data['default_thematic_plan_title'] = $thematic->get_default_thematic_plan_title(); |
|
|
|
$data['default_thematic_plan_title'] = $thematic->get_default_thematic_plan_title(); |
|
|
|
|
|
|
|
|
|
|
|
$data['action'] = $action; |
|
|
|
$data['action'] = $action; |
|
|
|
|
|
|
|
$layoutName = $displayHeader ? 'layout' : 'layout_no_header'; |
|
|
|
|
|
|
|
|
|
|
|
// render to the view |
|
|
|
// render to the view |
|
|
|
$this->view->set_data($data); |
|
|
|
$this->view->set_data($data); |
|
|
|
$this->view->set_layout('layout'); |
|
|
|
$this->view->set_layout($layoutName); |
|
|
|
$this->view->set_template('thematic'); |
|
|
|
$this->view->set_template('thematic'); |
|
|
|
$this->view->render(); |
|
|
|
$this->view->render(); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -358,6 +361,8 @@ class ThematicController { |
|
|
|
$attendance = new Attendance(); |
|
|
|
$attendance = new Attendance(); |
|
|
|
$data = array(); |
|
|
|
$data = array(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$displayHeader = (!empty($_REQUEST['display']) && $_REQUEST['display'] === 'no_header') ? false : true; |
|
|
|
|
|
|
|
|
|
|
|
// get data for attendance input select |
|
|
|
// get data for attendance input select |
|
|
|
$attendance_list = $attendance->get_attendances_list(); |
|
|
|
$attendance_list = $attendance->get_attendances_list(); |
|
|
|
$attendance_select = array(); |
|
|
|
$attendance_select = array(); |
|
|
|
@ -459,10 +464,11 @@ class ThematicController { |
|
|
|
$data['attendance_select'] = $attendance_select; |
|
|
|
$data['attendance_select'] = $attendance_select; |
|
|
|
$data['thematic_advance_data'] = $thematic_advance_data; |
|
|
|
$data['thematic_advance_data'] = $thematic_advance_data; |
|
|
|
$data['calendar_select'] = $calendar_select; |
|
|
|
$data['calendar_select'] = $calendar_select; |
|
|
|
|
|
|
|
$layoutName = $displayHeader ? 'layout' : 'layout_no_header'; |
|
|
|
|
|
|
|
|
|
|
|
// render to the view |
|
|
|
// render to the view |
|
|
|
$this->view->set_data($data); |
|
|
|
$this->view->set_data($data); |
|
|
|
$this->view->set_layout('layout'); |
|
|
|
$this->view->set_layout($layoutName); |
|
|
|
$this->view->set_template('thematic_advance'); |
|
|
|
$this->view->set_template('thematic_advance'); |
|
|
|
$this->view->render(); |
|
|
|
$this->view->render(); |
|
|
|
} |
|
|
|
} |
|
|
|
|