File: random.html

package info (click to toggle)
moodle 1.4.4.dfsg.1-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 57,876 kB
  • ctags: 29,496
  • sloc: php: 271,617; sql: 5,084; xml: 702; perl: 638; sh: 403; java: 283; makefile: 42; pascal: 21
file content (30 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<center>
<form name="theform" method="post" action="question.php">

<table cellpadding=5>
<tr valign=top>
    <td align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
    <td>
    <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
    </td>
</tr>
<tr valign=top>
    <td align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
    <td>
        <?php  if (empty($question->name)) {
               $question->name = get_string("random", "quiz");
           } ?>
        <input type="text" name="name" size=40 value="<?php  p($question->name) ?>">
        <?php  if (isset($err["name"])) formerr($err["name"]); ?>
    </td>
</tr>
</table>

<input type="hidden" name=questiontext value="---">

<input type="hidden" name=id value="<?php  p($question->id) ?>">
<input type="hidden" name=qtype value="<?php  p($question->qtype) ?>">
<input type="submit" value="<?php  print_string("savechanges") ?>">
</form>
</center>