Skip to content
Permalink
Browse files

Removing questiontype settings from quiz settings page

  • Loading branch information...
gustav_delius
gustav_delius committed Mar 23, 2006
1 parent 1fc29d8 commit 363773ef87d6de9c70980759592c6c7c77a0aa59
Showing with 0 additions and 61 deletions.
  1. +0 −61 mod/quiz/config.html
@@ -382,67 +382,6 @@
</td>
</tr>

<!-- Table of config options -->
<?php
$table_created = false; // used to make sure that table is only created when needed
$submitbutton = false;
// Include the options from each question type
foreach ($QTYPES as $type) {
$options = $type->get_config_options();
if ($options) {
// Temporary code
if (!$table_created) {
echo '<tr><td colspan="3"><table cellpadding="9" cellspacing="0" align="center">';
echo '<tr><th colspan="3">';
print_heading(get_string('questiontypesetupoptions', 'quiz'));
echo "</th></tr>\n";
$table_created = true;
}
$typename = $type->name();
$strtype = get_string($typename, 'quiz');
echo "<tr valign=\"top\">\n";
echo '<td colspan="3" align="center"><b>' . $strtype . "</b></td>\n";
echo "</tr>\n";
foreach ($options as $option) {
if (!isset($option->name)) {
continue;
}
echo "<tr valign=\"top\">\n";
if (!empty($option->link)) {
echo '<td colspan="3" align="center"><a href="' . s($CFG->wwwroot) . '/mod/quiz/questiontypes/' . s($typename) . '/' . s($option->link) . '?sesskey=' . s(rawurlencode($USER->sesskey)) . '">' . get_string($option->name, 'quiz') . "</a></td>\n";
}
else {
if (!isset($option->code)) {
$option->code = '';
}
echo '<td align="right"><b>';
print_string($option->name, 'quiz');
echo ":</b></td>\n";
echo '<td>' . $option->code . "</td>\n";
if (empty($option->help)) {
echo "<td></td>\n";
}
else {
echo '<td align="left">' . get_string($option->help, 'quiz') . "</td>\n";
}
$submitbutton = 'true';
}
echo "</tr>\n";
}
}
}
if ($table_created) {
echo '</table></td></tr>';
}
if ($submitbutton) {
?>
<tr>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>" />
</td>
</tr>
<?php } ?>

</table>

</form>

0 comments on commit 363773e

Please sign in to comment.
You can’t perform that action at this time.