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)) : ""; $navlinks = array(); $navlinks[] = array('name' => get_string('modulenameplural', $cm->modname), 'link' => "$CFG->wwwroot/mod/{$cm->modname}/index.php?id=$COURSE->id", 'type' => 'activity'); $navlinks[] = array('name' => format_string($module->name), 'link' => "$CFG->wwwroot/mod/{$cm->modname}/view.php?id={$cm->id}", 'type' => 'title'); $navlinks[] = array('name' => $streditingquestions, 'link' => '', 'type' => 'title'); $navigation = build_navigation($navlinks); print_header_simple($streditingquestions, '', $navigation, "", "", true, $strupdatemodule); $currenttab = 'edit'; $mode = 'questions'; ${$cm->modname} = $module; include($CFG->dirroot."/mod/$cm->modname/tabs.php"); } else { // Print basic page layout. $navlinks = array(); $navlinks[] = array('name' => $streditingquestions, 'link' => '', 'type' => 'title'); $navigation = build_navigation($navlinks); print_header_simple($streditingquestions, '', $navigation); // print tabs $currenttab = 'questions'; include('tabs.php'); } echo '
'; question_showbank('questions', $contexts, $thispageurl, $cm, $pagevars['qpage'], $pagevars['qperpage'], $pagevars['qsortorder'], $pagevars['qsortorderdecoded'], $pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], $pagevars['showquestiontext']); echo ' |