$PAGE->navbar->add(get_string('blocks'), null, 'title'); //block name $url = $CFG->wwwroot . "/admin/settings.php?section=blocksettingilp"; $PAGE->navbar->add(get_string('blockname', 'block_ilp'), $url, 'title'); //section name $PAGE->navbar->add(get_string('reportconfiguration', 'block_ilp'), $CFG->wwwroot . "/blocks/ilp/actions/edit_report_configuration.php", 'title'); //get string for create report $PAGE->navbar->add(get_string('reportpermissions', 'block_ilp'), null, 'title'); // setup the page title and heading $SITE = $dbc->get_course_by_id(SITEID); $PAGE->set_title($SITE->fullname . " : " . get_string('blockname', 'block_ilp')); $PAGE->set_heading($SITE->fullname); $PAGE->set_pagetype('ilp-configuration'); $PAGE->set_pagelayout('ilp'); $PAGE->set_url('/blocks/ilp/actions/edit_report_permissions.php', $PARSER->get_params()); $blockcapabilities = $dbc->get_block_capabilities(); $report = $dbc->get_report_by_id($report_id); //if the report is not found throw an error of if the report has a status of disabled if (empty($report) || !empty($report->deleted)) { print_error('reportnotfouund', 'block_ilp'); } $mform = new edit_report_permissions_mform($report_id); //was the form cancelled? if ($mform->is_cancelled()) { //send the user back to report configuration page $return_url = $CFG->wwwroot . '/blocks/ilp/actions/edit_report_configuration.php?course_id=' . $course_id; redirect($return_url, null, ILP_REDIRECT_DELAY); } //was the form submitted? // has the form been submitted? if ($mform->is_submitted()) {