Browse Source

Início de alteração para pauta digital

MOODLE_311_STABLE
Matheus Garcia 3 years ago
parent
commit
496106cee5
  1. 3
      classes/sessions_page_params.php
  2. 20
      manage.php

3
classes/sessions_page_params.php

@ -61,6 +61,9 @@ class mod_attendance_sessions_page_params {
*/
const ACTION_DELETE_HIDDEN = 6;
const ACTION_ILB_SYNC = 90;
/** @var int view mode of taking attendance page*/
public $action;
}

20
manage.php

@ -31,6 +31,7 @@ $id = required_param('id', PARAM_INT);
$from = optional_param('from', null, PARAM_ALPHANUMEXT);
$pageparams->view = optional_param('view', null, PARAM_INT);
$pageparams->curdate = optional_param('curdate', null, PARAM_INT);
$ilbsync = optional_param('ilbsync', null, PARAM_ALPHANUMEXT);
$pageparams->perpage = get_config('attendance', 'resultsperpage');
$cm = get_coursemodule_from_id('attendance', $id, 0, false, MUST_EXIST);
@ -78,6 +79,10 @@ $PAGE->set_cacheable(true);
$PAGE->force_settings_menu(true);
$PAGE->navbar->add($att->name);
if($ilbsync) {
echo html_writer::tag('p', 'ILB SYNC foi chamado', array());
}
$output = $PAGE->get_renderer('mod_attendance');
$tabs = new attendance_tabs($att, attendance_tabs::TAB_SESSIONS);
$filtercontrols = new attendance_filter_controls($att);
@ -96,5 +101,18 @@ echo $output->render($tabs);
echo $output->render($filtercontrols);
echo $output->render($sesstable);
echo $output->footer();
echo html_writer::start_div();
echo html_writer::start_tag('form', array());
echo html_writer::tag('input', '', array('type' => 'hidden', 'name' => 'id', 'value' => $id));
echo html_writer::tag('input', '',
array(
'type'=>'submit',
'value' => 'Sincronizar frequências',
'name' => 'ilbsync'
));
echo html_writer::end_tag('form');
echo html_writer::end_div();
echo $output->footer();

Loading…
Cancel
Save