dirroot.'/course/lib.php'); require_once($CFG->dirroot.'/course/report/log/lib.php'); if (has_capability('coursereport/log:view', $context)) { echo $OUTPUT->heading(get_string('chooselogs') .':'); print_log_selector_form($course); } if (has_capability('coursereport/log:viewlive', $context)) { echo $OUTPUT->heading(get_string('chooselivelogs') .':'); echo '

'; $link = html_link::make('/course/report/log/live.php?id='. $course->id, get_string('livelogs')); $link->add_action(new popup_action('click', $link->url, 'livelog', array('height' => 500, 'width' => 800))); echo $OUTPUT->link($link); echo '

'; } ?>