/
var
/
www
/
html
/
gte
/
blocks
/
course_report
/
Upload File
HOME
<?php require_once('../../config.php'); global $DB; require_login(); function getAproveitamento($label, $name, $valor_de, $valor_ate, $letra){ $output = ''; $output .= html_writer::tag('label', $label); $output .= html_writer::tag('input', '', array('type' => 'text', 'name' => $name . '_de', 'value' => $valor_de)); $output .= ' à '; $output .= html_writer::tag('input', '', array('type' => 'text', 'name' => $name . '_ate', 'value' => $valor_ate)); $output .= ' Letra '; $output .= html_writer::tag('input', '', array('type' => 'text', 'name' => $name . '_letra', 'value' => $letra)); $output .= html_writer::empty_tag('br'); return $output; } $PAGE->set_url('/blocks/course_report/index.php'); $PAGE->set_pagelayout('course-report'); $PAGE->requires->js( new moodle_url($CFG->wwwroot . "/blocks/course_report/js/default.js")); echo $OUTPUT->header(); //echo $OUTPUT->content(); print html_writer::tag('button', 'Voltar', array('class' => 'btn btn-primary', 'onclick' => 'window.location.href = "' . $CFG->wwwroot . '/blocks/course_report/index.php"')); if (is_siteadmin()){ print html_writer::tag('button', 'Carregar DEs', array('onclick' => 'carregaDiretoriasEnsino();', 'id' => 'carregaListaDiretoria')); } else{ print 'Voce não tem as permissões necessárias!'; } echo $OUTPUT->footer();