process_actions(); // TODO log this page view. $localcss = ''; $context = $contexts->lowest(); $streditingquestions = get_string('editquestions', "quiz"); if ($cm!==null) { $strupdatemodule = has_capability('moodle/course:manageactivities', $contexts->lowest()) ? update_module_button($cm->id, $COURSE->id, get_string('modulename', $cm->modname)) : ""; $PAGE->navbar->add(get_string('modulenameplural', $cm->modname), new moodle_url($CFG->wwwroot.'/mod/'.$cm->modname.'/index.php', array('id'=>$COURSE->id))); $PAGE->navbar->add(format_string($module->name), new moodle_url($CFG->wwwroot.'/mod/'.$cm->modname.'/view.php', array('id'=>$cm->id))); $PAGE->navbar->add($streditingquestions); $PAGE->set_title($streditingquestions); $PAGE->set_button($strupdatemodule); echo $OUTPUT->header(); $currenttab = 'edit'; $mode = 'questions'; ${$cm->modname} = $module; include($CFG->dirroot."/mod/$cm->modname/tabs.php"); } else { // Print basic page layout. $PAGE->navbar->add($streditingquestions); $PAGE->set_title($streditingquestions); echo $OUTPUT->header(); // print tabs $currenttab = 'questions'; include('tabs.php'); } echo '
'; $questionbank->display('questions', $pagevars['qpage'], $pagevars['qperpage'], $pagevars['qsortorder'], $pagevars['qsortorderdecoded'], $pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], $pagevars['showquestiontext']); echo "
\n"; echo $OUTPUT->footer(); ?>