]> git.mjollnir.org Git - moodle.git/commitdiff
Removing questiontype settings from quiz settings page
authorgustav_delius <gustav_delius>
Thu, 23 Mar 2006 19:56:42 +0000 (19:56 +0000)
committergustav_delius <gustav_delius>
Thu, 23 Mar 2006 19:56:42 +0000 (19:56 +0000)
mod/quiz/config.html

index 77f3356c4ac742f8c24c91ff3e42bf68c00e25ed..695289e579cdfcbcdb8bc21d2b6ed9575afc8dca 100644 (file)
   </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>