]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8205 - Layout of quiz editing screen not right
authortjhunt <tjhunt>
Thu, 18 Jan 2007 17:38:51 +0000 (17:38 +0000)
committertjhunt <tjhunt>
Thu, 18 Jan 2007 17:38:51 +0000 (17:38 +0000)
mod/quiz/edit.php
mod/quiz/editlib.php
question/editlib.php
question/showbank.php

index d07027a9d7600365a2cafb9c76be762307e3f816..9d0d7d3c8bebdf3b284d3d4854984c9f421f5680 100644 (file)
 
     echo '<table border="0" style="width:100%" cellpadding="2" cellspacing="0">';
     echo '<tr><td style="width:50%" valign="top">';
-    print_simple_box_start("center", "100%");
+    print_simple_box_start();
 
     $sumgrades = quiz_print_question_list($modform, true, $SESSION->quiz_showbreaks, $SESSION->quiz_reordertool);
     if (!set_field('quiz', 'sumgrades', $sumgrades, 'id', $modform->instance)) {
index 87db062348b9a5331edb5c06196f3233002e8f7f..4db09e5b11e19efa55ade840c6b59f45764dbf92 100644 (file)
@@ -179,7 +179,7 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r
     echo '<fieldset class="invisiblefieldset">';
     echo "<input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\" />";
 
-    print_simple_box_start('center', '100%', '#ffffff', 0);
+    print_simple_box_start();
     echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" style=\"width:100%;\">\n";
     echo "<tr><th colspan=\"3\" style=\"white-space:nowrap;\" class=\"header\" scope=\"col\">$strorder</th>";
     echo "<th class=\"header\" scope=\"col\">#</th>";
index 7fd276a3ad16115971e28ec90f18e346f0c09294..747960f010c5d1ff61b1bf897a486951fa8c16c2 100644 (file)
@@ -332,7 +332,7 @@ function question_list($course, $categoryid, $quizid=0,
     echo '<form method="post" action="edit.php?courseid='.$course->id.'">';
     echo '<fieldset class="invisiblefieldset">';
     echo '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />';
-    print_simple_box_start('center', '100%', '#ffffff', 0);
+    print_simple_box_start();
     echo '<table id="categoryquestions" cellspacing="0"><tr>';
     $actionwidth = $canedit ? 95 : 70;
     echo "<th style=\"width:$actionwidth; white-space:nowrap;\" class=\"header\" scope=\"col\">$straction</th>";
index 85fb6040b2d4cc28b83af5aee934c15f8c975f9c..14a19c777b8a2085acc155862131c8ce5b269c5f 100644 (file)
@@ -170,7 +170,7 @@ if (empty($SESSION->questioncat) or !count_records_select("question_categories",
 
     // starts with category selection form
     if (has_capability('moodle/question:managecategory', $context)) {
-        print_simple_box_start("center", "100%");
+        print_simple_box_start();
         question_category_form($course, $SESSION->questioncat, $SESSION->questionrecurse, $SESSION->questionshowhidden);
         print_simple_box_end();
         
@@ -178,7 +178,7 @@ if (empty($SESSION->questioncat) or !count_records_select("question_categories",
     }
     
     // continues with list of questions
-    print_simple_box_start("center", "100%");
+    print_simple_box_start();
     question_list($course, $SESSION->questioncat, isset($modform->instance) ? $modform->instance : 0, $SESSION->questionrecurse, $page, $perpage, $SESSION->questionshowhidden, $sortorder);
     print_simple_box_end();