File: editquestion.php

package info (click to toggle)
moodle 1.6.3-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 37,052 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; perl: 638; sh: 441; makefile: 48; pascal: 36
file content (22 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php // $Id: editquestion.php,v 1.1.2.1 2006/07/18 15:27:51 tjhunt Exp $

    if (!empty($options->answers)) {
        $answersraw = get_records_list('question_answers', 'id', $options->answers);

    }

    $answers = array();
    if (!empty($answersraw)) {
        foreach ($answersraw as $answer) {
            $answers[] = $answer;   // insert answers into slots
        }
    }

    $yesnooptions = array();
    $yesnooptions[0] = get_string('no');
    $yesnooptions[1] = get_string('yes');

    print_heading(get_string('warningmissingtype', 'quiz'));
    require("$CFG->dirroot/question/type/missingtype/editquestion.html");

?>