File: questiondatasets.html

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (35 lines) | stat: -rw-r--r-- 1,275 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
23
24
25
26
27
28
29
30
31
32
33
34
35
<form name="theform" method="post" action="question.php">
<center>
<table cellpadding="5">
<?php if (!empty($datasets)) { ?>
<tr valign="top">
    <td align="right"><b><?php  print_string("wildcard", "quiz") ?> </b></td>
    <td align="right">{<?php foreach($datasets as $name => $tmp){break;} p($name) ?>}</td>
    <td><b> - <?php  print_string("substitutedby", "quiz") ?></b></td>
    <td align="left"><?php echo array_shift($datasets) ?></td>
</tr>
<?php   foreach ($datasets as $name => $menu) { ?>
<tr valign="top">
    <td/>
    <td align="right">{<?php p($name) ?>}</td>
    <td/>
    <td align="left"><?php echo $menu ?>
</tr>
<?php   }
      } else { ?>
<tr>
<td colspan="4"><?php print_string('nopossibledatasets', 'quiz') ?>
<input type="hidden" name="dataset[]" value="0"/>
</td>
</tr>
<?php } ?>
</table>
<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
<input type="hidden" name="category" value="<?php  p($question->category) ?>" />
<input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
<input type="hidden" name="wizardpage" value="datasetdefinitions" />
<input type="submit"      value="<?php  print_string("savechanges") ?>" />
</center>
</form>