Fixed some typos
[moodle.git] / question / edit.php
CommitLineData
516cf3eb 1<?php // $Id$
2/**
e586cfb4 3* Page to edit the question bank
516cf3eb 4*
e586cfb4 5* TODO: add logging
516cf3eb 6*
7* @version $Id$
8* @author Martin Dougiamas and many others. This has recently been extensively
9* rewritten by Gustav Delius and other members of the Serving Mathematics project
10* {@link http://maths.york.ac.uk/serving_maths}
11* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
e586cfb4 12* @package question
516cf3eb 13*/
e586cfb4 14 require_once("../config.php");
516cf3eb 15 require_once("editlib.php");
16
17 require_login();
18
e586cfb4 19 $courseid = required_param('courseid', 0, PARAM_INT);
516cf3eb 20
e586cfb4 21 if (! $course = get_record("course", "id", $courseid)) {
516cf3eb 22 error("This course doesn't exist");
23 }
24
25 require_login($course->id, false);
26
27 if (!isteacheredit($course->id)) {
28 error("You can't modify this course!");
29 }
30
516cf3eb 31 // Print basic page layout.
32
e586cfb4 33 $streditingquestions = get_string('editquestions', "quiz");
34 print_header_simple($streditingquestions, '',
35 "$streditingquestions");
567709c4 36
37 // print tabs
38 $currenttab = 'editq';
39 include('tabs.php');
40
e586cfb4 41 echo '<table align="center" border="0" cellpadding="2" cellspacing="0">';
42 echo '<tr><td valign="top">';
516cf3eb 43
e586cfb4 44 include($CFG->dirroot.'/question/showbank.php');
516cf3eb 45
46 echo '</td></tr>';
47 echo '</table>';
48
516cf3eb 49 print_footer($course);
50?>