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>
|