]> git.mjollnir.org Git - moodle.git/commitdiff
Changes for XHTML and accessibility compliance
authormoodler <moodler>
Thu, 11 Nov 2004 12:07:08 +0000 (12:07 +0000)
committermoodler <moodler>
Thu, 11 Nov 2004 12:07:08 +0000 (12:07 +0000)
18 files changed:
mod/quiz/attempt.php
mod/quiz/category.php
mod/quiz/lib.php
mod/quiz/mod.html
mod/quiz/questiontypes/calculated/calculated.html
mod/quiz/questiontypes/datasetdependent/datasetitems.php
mod/quiz/questiontypes/description/description.html
mod/quiz/questiontypes/match/match.html
mod/quiz/questiontypes/multianswer/multianswer.html
mod/quiz/questiontypes/multichoice/multichoice.html
mod/quiz/questiontypes/multichoice/questiontype.php
mod/quiz/questiontypes/numerical/numerical.html
mod/quiz/questiontypes/random/random.html
mod/quiz/questiontypes/shortanswer/shortanswer.html
mod/quiz/questiontypes/truefalse/truefalse.html
mod/quiz/report/fullstat/report.php
mod/quiz/report/overview/report.php
mod/quiz/view.php

index 13b98ac3621c86f1b15b23bd01d9dc15b0175893..700e4dbeb7d5794afecdc2e0bb3b8d267ea3d274 100644 (file)
@@ -82,7 +82,7 @@
             print_heading($quiz->name);
             print_heading(get_string("attempt", "quiz", $attemptnumber));
             if (trim(strip_tags($quiz->intro))) {
-                print_simple_box(format_text($quiz->intro), "CENTER");
+                print_simple_box(format_text($quiz->intro), "center");
             }
             echo "<br />\n";
         
@@ -92,7 +92,7 @@
             echo "<div align=\"center\">\n";
             print_string("requirepasswordmessage", "quiz");
             echo "<br /><br />\n";
-            echo " <input name=\"quizpassword\" type=\"password\" value=\"\" />";
+            echo " <input name=\"quizpassword\" type=\"password\" value=\"\" alt=\"password\" />";
             echo " <input type=\"submit\" value=\"".get_string("ok")."\" />\n";
             echo "</div>\n";
 
 
     print_heading(get_string("attempt", "quiz", $attemptnumber));
     if (trim(strip_tags($quiz->intro))) {
-        print_simple_box(format_text($quiz->intro), "CENTER");
+        print_simple_box(format_text($quiz->intro), "center");
     }
 
 
index c9267bb9a2e3f67dda81c9fa90a960ee9be8e1ba..c7c2f058f0bc66104514450ecb7c9ab8d24bb332 100644 (file)
 
 /// Print the table of all categories
     $table->head  = array ($strcategory, $strcategoryinfo, $strpublish, $strquestions, $straction);
-    $table->align = array ("LEFT", "LEFT", "CENTER", "CENTER", "CENTER");
+    $table->align = array ("left", "left", "center", "center", "center");
     $table->size = array ("80", "80", "40", "40", "50");
     $table->width = 200;
     $table->nowrap = true;
index 11de7b15d78b328ab20cc9d155f645ff3b6069e3..654b0b75293a07649d60118ba561305588af968d 100644 (file)
@@ -208,14 +208,15 @@ class quiz_default_questiontype {
 
         /// Print question number and grade:
 
-        echo '<p align="center"><b>' . $number . '</b></p>';
+        echo '<center><b>' . $number . '</b></center>';
         if (false !== $grade) {
             $strmarks  = get_string("marks", "quiz");
-            echo '<p align="center"><font size="1">';
+            //echo '<p align="center"><font size="1">';
+            echo '<br /><center><font size="1">';
             if (false !== $actualgrade) {
-                echo "$strmarks: $actualgrade/$grade</font></p>";
+                echo "$strmarks: $actualgrade/$grade</font></center>";
             } else {
-                echo "$grade $strmarks</font></p>";
+                echo "$grade $strmarks</font></center>";
             }
         }
         print_spacer(1,100);
@@ -1172,7 +1173,7 @@ function quiz_category_select_menu($courseid,$published=false,$only_editable=fal
         $cname = quiz_get_category_coursename( $category );
         $seltxt = "";
         if ($cid==$selected) {
-            $seltxt = "selected=\"true\"";
+            $seltxt = "selected=\"selected\"";
         }
         if ((!$only_editable) || isteacheredit($category->course)) {
             echo "    <option value=\"$cid\" $seltxt>$cname</option>\n";
index 07c6f086623626bc42db314b14c3869e6e565715..330f05f58938f1397145da660dcf53b6c9db832d 100644 (file)
 <center>
 <table cellpadding="5">
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("name") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("name") ?>:</b></td>
     <td>
         <input type="text" name="name" size="40" value="<?php p($form->name) ?>" />
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("introduction", "quiz") ?>:</b></p>
+    <td align="right"><b><?php print_string("introduction", "quiz") ?>:</b>
       <br />
-    <font size="1">
+      <span class="editorhelptext">
      <?php
         if ($usehtmleditor) {
            helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
@@ -83,7 +83,7 @@
         } 
       ?>
       <br />
-      </font>
+      </span>
     </td>
     <td>
         <?php 
@@ -92,7 +92,7 @@
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("quizopen", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("quizopen", "quiz") ?>:</b></td>
     <td>
     <?php
         if (!$form->timeopen and $course->format == "weeks") {
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("quizclose", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("quizclose", "quiz") ?>:</b></td>
     <td>
     <?php
         if (!$form->timeclose and $course->format == "weeks") {
 </tr>
 <!-- BEGIN EDIT -->
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("timelimit", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("timelimit", "quiz") ?>:</b></td>
     <td>
     <?php
         print_timer_selector($form->timelimit, get_string("minutes","quiz"));
 </tr>
 <!-- END EDIT -->
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("shufflequestions", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("shufflequestions", "quiz") ?>:</b></td>
     <td>
     <?php
         $options = array();
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("shuffleanswers", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("shuffleanswers", "quiz") ?>:</b></td>
     <td>
     <?php
         $options = array();
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("attemptsallowed", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("attemptsallowed", "quiz") ?>:</b></td>
     <td>
     <?php
         $options = array();
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("eachattemptbuildsonthelast", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("eachattemptbuildsonthelast", "quiz") ?>:</b></td>
     <td>
     <?php
         $options = array();
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("grademethod", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("grademethod", "quiz") ?>:</b></td>
     <td>
     <?php
         $options = array();
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("showfeedback", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("showfeedback", "quiz") ?>:</b></td>
     <td>
     <?php
         $options = array();
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("showcorrectanswer", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("showcorrectanswer", "quiz") ?>:</b></td>
     <td>
     <?php
         $options = array();
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("allowreview", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("allowreview", "quiz") ?>:</b></td>
     <td>
     <?php
         $options = array();
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("maximumgrade") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("maximumgrade") ?>:</b></td>
     <td>
     <?php
         for ($i=100; $i>=1; $i--) {
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("requirepassword", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("requirepassword", "quiz") ?>:</b></td>
     <td>
         <input type="text" name="password" size="40" value="<?php p($form->password) ?>" />
         <?php helpbutton("requirepassword", get_string("requirepassword", "quiz"), "quiz"); ?>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php print_string("requiresubnet", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php print_string("requiresubnet", "quiz") ?>:</b></td>
     <td>
         <input type="text" name="subnet" size="40" value="<?php p($form->subnet) ?>" />
         <?php helpbutton("requiresubnet", get_string("requiresubnet", "quiz"), "quiz"); ?>
index e1c7c26deaac0e12866effd5833eea434bdade21..4a2a264fb2434416afcd21bbf6420c9b42dfd16f 100644 (file)
@@ -4,24 +4,24 @@
 <?php foreach ($calculatedmessages as $message) {formerr("$message<br/>");} ?>
 <table cellpadding="5">
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
     <td>
     <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
     <td>
-        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
+    <td align="right"><b><?php  print_string("question", "quiz") ?>:</b>
     <br />
     <br />
     <br />
-    <p><font size="1">
+    <span class="editorhelptext">
     <?php
            if ($usehtmleditor) {
                helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
@@ -29,7 +29,7 @@
                helpbutton("text", get_string("helptext"), "moodle", true, true);
            }
     ?>
-    </font></p>
+    </span>
     </td>
     <td>
         <?php  if (isset($err["questiontext"])) {
@@ -42,7 +42,7 @@
            if ($usehtmleditor) {   /// Trying this out for a while
                echo '<input type="hidden" name="questiontextformat" value="'.FORMAT_HTML.'" />';
            } else {
-               echo "<div align=\"right\">";
+               echo '<div align="right">';
                print_string("formattexttype");
                echo ":&nbsp;";
                if (!isset($question->questiontextformat)) {
@@ -56,7 +56,7 @@
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("imagedisplay", "quiz") ?>:</b></td>
     <td>
     <?php   if (empty($images)) {
             print_string("noimagesyet");
 </tr>
 
 <tr valign="top">
-<td align="right"><p><b><?php  print_string("correctanswerformula", "quiz") ?>:</b></p></td>
+<td align="right"><b><?php  print_string("correctanswerformula", "quiz") ?>:</b></td>
     <td>
-    <input align="LEFT" type="text" id="formula0" name="answer[]" size="20" value="<?php  p($answers[0]->answer) ?>" />&nbsp;&nbsp;
+    <input align="left" type="text" id="formula0" name="answer[]" size="20" value="<?php  p($answers[0]->answer) ?>" alt="<?php  print_string("correctanswerformula", "quiz") ?>" />&nbsp;&nbsp;
     <input type="hidden" name="fraction[]" value="1.0" />
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("tolerance", "quiz"); ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("tolerance", "quiz"); ?>:</b></td>
     <td>
-    <input align="LEFT" type="text" id="tolerance0" name="tolerance[]" size="15" value="<?php  p($answers[0]->tolerance) ?>" />&plusmn;
+    <input align="left" type="text" id="tolerance0" name="tolerance[]" size="15" value="<?php  p($answers[0]->tolerance) ?>" alt="<?php  print_string("tolerance", "quiz"); ?>" />&plusmn;
     </td>
 </tr>
 <tr valign="top">
-<td align="right"><p><b><?php  print_string("tolerancetype", "quiz"); ?>:</b></p></td>
+<td align="right"><b><?php  print_string("tolerancetype", "quiz"); ?>:</b></td>
     <td>
     <?php choose_from_menu($qtypeobj->tolerance_types(),
             'tolerancetype[]', $answers[0]->tolerancetype, false); ?>
     </td>
 </tr>
 <tr valign="top">
-<td align="right"><p><b><?php  print_string("correctanswerlength", "quiz"); ?>:</b></p></td>
+<td align="right"><b><?php  print_string("correctanswerlength", "quiz"); ?>:</b></td>
     <td>
     <?php choose_from_menu(array('1' => '1', '2' => '2', '3' => '3',
                                  '4' => '4', '5' => '5', '6' => '6',
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("feedback", "quiz") ?>:</b></td>
     <td>
-        <textarea name="feedback[]" rows="2" cols="50" wrap="virtual"><?php  p($answers[0]->feedback) ?></textarea>
+        <textarea name="feedback[]" rows="2" cols="50"><?php  p($answers[0]->feedback) ?></textarea>
     </td>
 </tr>
 <tr valign="top">
-<td align="right"><p><b><?php  print_string("unit", "quiz") ?>:</b></p></td>
+<td align="right"><b><?php  print_string("unit", "quiz") ?>:</b></td>
     <td>
-        <p><input type="HIDDEN" name="multiplier[]" value="1.0" />
-        <input align="LEFT" type="text" id="defaultunit" name="unit[]"
-                size="5" value="<?php  p($units[0]->unit) ?>" />
-        <b>(<?php  print_string("optional", "quiz") ?>)</b></p>
+        <input type="hidden" name="multiplier[]" value="1.0" />
+        <input align="left" type="text" id="defaultunit" name="unit[]"
+                size="5" value="<?php  p($units[0]->unit) ?>" 
+                alt="<?php  print_string("unit", "quiz") ?>" />
+        <b>(<?php  print_string("optional", "quiz") ?>)</b>
     </td>
 </tr>
 <tr valign="top">
 <td></td>
-<td align="left"><p><b><?php  print_string("alternativeunits", "quiz") ?>:</b></p></td>
+<td align="left"><b><?php  print_string("alternativeunits", "quiz") ?>:</b></td>
 <td></td>
 </tr>
 <?php
@@ -125,14 +126,16 @@ for ($i=1; $i<count($units); $i++) {
 <tr valign="top">
 <td></td>
     <td align="left">
-        <p><b><?php  print_string("multiplier", "quiz") ?>:</b>
+        <b><?php  print_string("multiplier", "quiz") ?>:</b>
         <input type="text" id="<?php  p("multiplier$i") ?>" size="10"
-                align="RIGHT" name="multiplier[]"
-                value="<?php  p($unit->multiplier) ?>" />
+                align="right" name="multiplier[]"
+                value="<?php  p($unit->multiplier) ?>" 
+                alt="<?php  print_string("multiplier", "quiz") ?>" />
         <b>&nbsp;&nbsp;&nbsp;<?php  print_string("unit", "quiz") ?>:</b>
-        <input align="LEFT" type="text" id="<?php  p("unit$i") ?>"
+        <input align="left" type="text" id="<?php  p("unit$i") ?>"
                 name="unit[]"
-                size="5" value="<?php  p($unit->unit) ?>" /></p>
+                size="5" value="<?php  p($unit->unit) ?>" 
+                alt="<?php  print_string("unit", "quiz") ?>" />
     </td>
 </tr>
 <?php
@@ -142,10 +145,10 @@ for ($i=1; $i<count($units); $i++) {
 
 <input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 <input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
-<input type="submit" onClick="return determineMinAndMax();"  value="<?php  print_string("savechanges") ?>" />
+<input type="submit" onclick="return determineMinAndMax();"  value="<?php  print_string("savechanges") ?>" />
 </center>
 </form>
-<script language="javascript">
+<script language="javascript" type="text/javascript">
 function determineMinAndMax() {
     // This client-side script will determine the values for min and max
     // based on the input for answer and acceptederror.
index 7d1d6a279c4d64175ae7e4df3bdd926cd42f38cf..a55ac361d931bef26fb8afce1ab0ca0d60166abf 100644 (file)
     }
 
     $table->head = array($straction, $strdatasetnumber);
-    $table->align = array("CENTER", "CENTER");
+    $table->align = array("center", "center");
     $addtable->head = $table->head;
     if ($qtypeobj->supports_dataset_item_generation()) {
         if (isset($form->forceregeneration) && $form->forceregeneration) {
                     . ($qtypeobj->supports_dataset_item_generation()
                     ?  '<br/>' . $qtypeobj->custom_generator_tools($datasetdef)
                     : '');
-            $table->align[] = "CENTER";
+            $table->align[] = "center";
 
             // THE if-statement IS FOR BUT ONE THING
             // - to determine an item value for the input field
     if ($strquestionheader) {
         $table->head[] = $strquestionheader;
         $addtable->head[] = $strquestionheader;
-        $table->align[] = "CENTER";
+        $table->align[] = "center";
         $addline[] = $qtypeobj->comment_on_datasetitems($question, $data, $maxnumber + 1);
     }
 
index dc4f9c641517475128df7d47aae3f947b59d0dc3..8bc406257edb7b06bfd1565fb928469073d12423 100644 (file)
@@ -6,7 +6,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
 
     <td>
 
-        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
@@ -32,7 +32,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
+    <td align="right"><b><?php  print_string("question", "quiz") ?>:</b>
 
     <br />
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font size="1">
+    <font size="1">
 
     <?php
 
@@ -56,7 +56,7 @@
 
     ?>
 
-    </font></p>
+    </font>
 
     </td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("imagedisplay", "quiz") ?>:</b></td>
 
     <td>
 
index ad71ddaf2befdc65b7a8c58f09667aa45d3690d2..bc2de4d3aa14e4381a48ca4318f182a440227356 100644 (file)
@@ -6,7 +6,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
 
     <td>
 
-        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
@@ -32,7 +32,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
+    <td align="right"><b><?php  print_string("question", "quiz") ?>:</b>
 
     <br />
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font size="1">
+    <font size="1">
 
     <?php
 
@@ -56,7 +56,7 @@
 
     ?>
 
-    </font></p>
+    </font>
 
     </td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("imagedisplay", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("choices", "quiz") ?></b>:</p></td>
+    <td align="right"><b><?php  print_string("choices", "quiz") ?></b>:</td>
 
-    <td><p><?php  print_string("filloutthreequestions", "quiz") ?></p>
+    <td><?php  print_string("filloutthreequestions", "quiz") ?>
 
     </td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  echo get_string("question", "quiz")." $i";  ?> :</b></p></td>
+    <td align="right"><b><?php  echo get_string("question", "quiz")." $i";  ?> :</b></td>
 
     <td>
 
 
         <?php  echo get_string("matchanswer", "quiz")." $i";  ?>&nbsp;&nbsp;
 
-        <input type="text" name="subanswers[]" size="50" value="<?php  p($subanswers[$i-1]) ?>" />
+        <input type="text" name="subanswers[]" size="50" value="<?php  p($subanswers[$i-1]) ?>" alt="<?php  echo get_string("matchanswer", "quiz")." $i";  ?>" />
 
     </td>
 
index 1758dd098ddeb93b23688b1edddff5c8140161b0..1935a76a1ef953162953a5ac40846fa7100165e3 100644 (file)
@@ -6,7 +6,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
 
     <td>
 
-        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
@@ -32,7 +32,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("question", "quiz") ?>:</b></td>
 
     <td>
 
@@ -64,7 +64,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("imagedisplay", "quiz") ?>:</b></td>
 
     <td>
 
index 0fb2334e88f43922e818c045215cba69e056533b..3ca8b1dd8988ce0bb7a57906b6e3d0e8677114a7 100644 (file)
@@ -6,7 +6,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
 
     <td>
 
-        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
@@ -32,7 +32,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
+    <td align="right"><b><?php  print_string("question", "quiz") ?>:</b>
 
     <br />
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font size="1">
+    <font size="1">
 
     <?php
 
@@ -56,7 +56,7 @@
 
     ?>
 
-    </font></p>
+    </font>
 
     </td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("imagedisplay", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("answerhowmany", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("answerhowmany", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("choices", "quiz") ?></b>:</p></td>
+    <td align="right"><b><?php  print_string("choices", "quiz") ?></b>:</td>
 
-    <td><p><?php  print_string("fillouttwochoices", "quiz") ?></p>
+    <td><?php  print_string("fillouttwochoices", "quiz") ?>
 
     </td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  echo get_string("choice", "quiz")." $i";  ?>:</b></p></td>
+    <td align="right"><b><?php  echo get_string("choice", "quiz")." $i";  ?>:</b></td>
 
     <td>
 
-        <input type="text" name="answer[]" size="50" maxlength="255" value="<?php  p($answers[$i-1]->answer) ?>" />&nbsp;&nbsp;
+        <input type="text" name="answer[]" size="50" maxlength="255" value="<?php  p($answers[$i-1]->answer) ?>" alt="<?php  echo get_string("choice", "quiz")." $i";  ?>"/>&nbsp;&nbsp;
 
         <?php  print_string("grade");
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("feedback", "quiz") ?>:</b></td>
 
     <td>
 
-        <textarea name="feedback[]" rows="2" cols="50" wrap="virtual"><?php  p($answers[$i-1]->feedback) ?></textarea>
+        <textarea name="feedback[]" rows="2" cols="50"><?php  p($answers[$i-1]->feedback) ?></textarea>
 
     </td>
 
index 921b384409963a9d54289bf9dccdbdab86b77a00..a1c3ba99e8c3a8b2b43d4cc204bf4ef6c04939a9 100644 (file)
@@ -210,10 +210,14 @@ class quiz_multichoice_qtype extends quiz_default_questiontype {
             echo "<input $readonly $name $checked $type  value=\"$answer->id\" />";
            
             echo "</td>";
+            
+            /// remove para tags - not needed
+            $options->para = false;
+            
             if ($readonly and $quiz->correctanswers and !empty($correctanswers[$nameprefix.$aid])) {
-                echo '<td valign="top" class="highlight">'.format_text("$qnumchar. $answer->answer").'</td>';
+                echo '<td valign="top" class="highlight">'.format_text("$qnumchar. $answer->answer", FORMAT_MOODLE , $options).'</td>';
             } else {
-                echo '<td valign="top">'.format_text("$qnumchar. $answer->answer").'</td>';
+                echo '<td valign="top">'.format_text("$qnumchar. $answer->answer", FORMAT_MOODLE, $options).'</td>';
             }
             if ($quiz->feedback) {
                echo "<td valign=\"top\">&nbsp;";
index 772b6bafd60a00974fc753b643b07911faa049ed..92f0d420322c6a860ca87f7c0835bfe6fa28c191 100644 (file)
@@ -2,24 +2,24 @@
 <center>
 <table cellpadding="5">
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
     <td>
     <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
     <td>
-        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
+    <td align="right"><b><?php  print_string("question", "quiz") ?>:</b>
     <br />
     <br />
     <br />
-    <p><font size="1">
+    <font size="1">
     <?php
            if ($usehtmleditor) {
                helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
@@ -27,7 +27,7 @@
                helpbutton("text", get_string("helptext"), "moodle", true, true);
            }
     ?>
-    </font></p>
+    </font>
     </td>
     <td>
         <?php  if (isset($err["questiontext"])) {
@@ -54,7 +54,7 @@
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("imagedisplay", "quiz") ?>:</b></td>
     <td>
     <?php   if (empty($images)) {
             print_string("noimagesyet");
@@ -66,7 +66,7 @@
 </tr>
 
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("correctanswer", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("correctanswer", "quiz") ?>:</b></td>
     <?php
         // Even thou the rest of the module can handle up to six numerical answers,
         // this form will limit the number of numerical answers to one only.
         }
     ?>
     <td>
-        <input align="LEFT" type="text" id="correct0" name="answer[]" size="20" value="<?php  p($answers[0]->answer) ?>" />&nbsp;&nbsp;
+        <input align="left" type="text" id="correct0" name="answer[]" size="20" value="<?php  p($answers[0]->answer) ?>" alt="<?php  print_string("correctanswer", "quiz") ?>" />&nbsp;&nbsp;
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("acceptederror", "quiz"); ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("acceptederror", "quiz"); ?>:</b></td>
     <td>
-        <input align="LEFT" type="text" id="acceptederror0" name="acceptederror[]" size="15" value="<?php  p($acceptederror) ?>" />&plusmn;
+        <input align="left" type="text" id="acceptederror0" name="acceptederror[]" size="15" value="<?php  p($acceptederror) ?>" alt="<?php  print_string("acceptederror", "quiz"); ?>" />&plusmn;
         <!-- Values max and min will be determined when the form is submitted -->
-        <input type="HIDDEN" id="min0" name="min[]" value="" />
-        <input type="HIDDEN" id="max0" name="max[]" value="" />
-        <input type="HIDDEN" name="fraction[]" value="1" />
+        <input type="hidden" id="min0" name="min[]" value="" />
+        <input type="hidden" id="max0" name="max[]" value="" />
+        <input type="hidden" name="fraction[]" value="1" />
         <br/>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("feedback", "quiz") ?>:</b></td>
     <td>
-        <textarea name="feedback[]" rows="2" cols="50" wrap="virtual"><?php  p($answers[0]->feedback) ?></textarea>
+        <textarea name="feedback[]" rows="2" cols="50"><?php  p($answers[0]->feedback) ?></textarea>
     </td>
 </tr>
 <tr valign="top">
-<td align="right"><p><b><?php  print_string("unit", "quiz") ?>:</b></p></td>
+<td align="right"><b><?php  print_string("unit", "quiz") ?>:</b></td>
     <td>
-        <p><input type="HIDDEN" name="multiplier[]" value="1.0" />
-        <input align="LEFT" type="text" id="defaultunit" name="unit[]"
-                size="5" value="<?php  p($units[0]->unit) ?>" />
-        <b>(<?php  print_string("optional", "quiz") ?>)</b></p>
+        <input type="hidden" name="multiplier[]" value="1.0" />
+        <input align="left" type="text" id="defaultunit" name="unit[]"
+                size="5" value="<?php  p($units[0]->unit) ?>" alt="<?php  print_string("unit", "quiz") ?>" />
+        <b>(<?php  print_string("optional", "quiz") ?>)</b>
     </td>
 </tr>
 <tr valign="top">
 <td></td>
-<td align="left"><p><b><?php  print_string("alternativeunits", "quiz") ?>:</b></p></td>
+<td align="left"><b><?php  print_string("alternativeunits", "quiz") ?>:</b></td>
 <td></td>
 </tr>
 <?php
@@ -119,14 +119,15 @@ for ($i=1; $i<count($units); $i++) {
 <tr valign="top">
 <td></td>
     <td align="left">
-        <p><b><?php  print_string("multiplier", "quiz") ?>:</b>
+        <b><?php  print_string("multiplier", "quiz") ?>:</b>
         <input type="text" id="<?php  p("multiplier$i") ?>" size="10"
-                align="RIGHT" name="multiplier[]"
-                value="<?php  p($unit->multiplier) ?>" />
+                align="right" name="multiplier[]"
+                value="<?php  p($unit->multiplier) ?>"
+                alt="<?php  print_string("multiplier", "quiz") ?>" />
         <b>&nbsp;&nbsp;&nbsp;<?php  print_string("unit", "quiz") ?>:</b>
-        <input align="LEFT" type="text" id="<?php  p("unit$i") ?>"
+        <input align="left" type="text" id="<?php  p("unit$i") ?>"
                 name="unit[]"
-                size="5" value="<?php  p($unit->unit) ?>" /></p>
+                size="5" value="<?php  p($unit->unit) ?>" />
     </td>
 </tr>
 <?php
@@ -136,10 +137,10 @@ for ($i=1; $i<count($units); $i++) {
 
 <input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 <input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
-<input type="submit" onClick="return determineMinAndMax();"  value="<?php  print_string("savechanges") ?>" />
+<input type="submit" onclick="return determineMinAndMax();"  value="<?php  print_string("savechanges") ?>" />
 </center>
 </form>
-<script language="JAVASCRIPT">
+<script language="javascript" type="text/javascript">
 function determineMinAndMax() {
     // This client-side script will determine the values for min and max
     // based on the input for answer and acceptederror.
index 26f2c47dcaeddbef302d9d76b097fd5bd70a0739..3e0f6fdcbb5af9db6ad76d18707396111bb0183e 100644 (file)
@@ -8,7 +8,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
 
     <td>
 
@@ -20,7 +20,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
 
     <td>
 
@@ -30,7 +30,7 @@
 
            } ?>
 
-        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
index f55f77dc8b75d2eba2aa4af5a6b3b14a44e1f69f..5b218e292508b18b993c5038e23bc282ac8ec486 100644 (file)
@@ -6,7 +6,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
 
     <td>
 
-        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
@@ -32,7 +32,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
+    <td align="right"><b><?php  print_string("question", "quiz") ?>:</b>
 
     <br />
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font size="1">
+    <font size="1">
 
     <?php
 
@@ -56,7 +56,7 @@
 
     ?>
 
-    </font></p>
+    </font>
 
     </td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("imagedisplay", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("casesensitive", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("casesensitive", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("correctanswers", "quiz") ?></b>:</p></td>
+    <td align="right"><b><?php  print_string("correctanswers", "quiz") ?></b>:</td>
 
     <td>
 
-        <p><?php  print_string("filloutoneanswer", "quiz") ?></p>
+        <?php  print_string("filloutoneanswer", "quiz") ?>
 
     </td>
 
 
-
+</tr>
 
 
 <?php 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  echo get_string("answer", "quiz")." $i";  ?>:</b></p></td>
+    <td align="right"><b><?php  echo get_string("answer", "quiz")." $i";  ?>:</b></td>
 
     <td>
 
-        <input type="text" name="answer[]" size="50" value="<?php  p($answers[$i-1]->answer) ?>" />&nbsp;&nbsp;
+        <input type="text" name="answer[]" size="50" value="<?php  p($answers[$i-1]->answer) ?>" alt="<?php  echo get_string("answer", "quiz")." $i";  ?>" />&nbsp;&nbsp;
 
         <?php  print_string("grade");
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("feedback", "quiz") ?>:</b></td>
 
     <td>
 
-        <textarea name="feedback[]" rows="2" cols="50" wrap="virtual"><?php  p($answers[$i-1]->feedback) ?></textarea>
+        <textarea name="feedback[]" rows="2" cols="50"><?php  p($answers[$i-1]->feedback) ?></textarea>
 
     </td>
 
index f82c3ced18cd4da66d39baf9d6cbf6eb22872d1c..1125e63ea124b2ddfb227747c752a906cfe6d90f 100644 (file)
@@ -6,7 +6,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
 
     <td>
 
-        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>"/>
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
@@ -32,7 +32,7 @@
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
+    <td align="right"><b><?php  print_string("question", "quiz") ?>:</b>
 
     <br />
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font size="1">
+    <font size="1">
 
     <?php
 
@@ -56,7 +56,7 @@
 
     ?>
 
-    </font></p>
+    </font>
 
     </td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("imagedisplay", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("correctanswer", "quiz") ?>:</b></p></td>
+    <td align="right"><b><?php  print_string("correctanswer", "quiz") ?>:</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?> (<?php  print_string("true", "quiz") ?>):</b></p></td>
+    <td align="right"><b><?php  print_string("feedback", "quiz") ?> (<?php  print_string("true", "quiz") ?>):</b></td>
 
     <td>
 
 
 <tr valign="top">
 
-    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?> (<?php  print_string("false", "quiz") ?>):</b></p></td>
+    <td align="right"><b><?php  print_string("feedback", "quiz") ?> (<?php  print_string("false", "quiz") ?>):</b></td>
 
     <td>
 
-        <textarea name="feedbackfalse" rows="2" cols="50" wrap="virtual"><?php  p($false->feedback) ?></textarea>
+        <textarea name="feedbackfalse" rows="2" cols="50"><?php  p($false->feedback) ?></textarea>
 
     </td>
 
index 8ad17a562dcc28dafce32327157f9c2440b31892..3dbe65e9621c44a892dfe0539642f2f7e47519e1 100755 (executable)
@@ -61,7 +61,7 @@ class quiz_report extends quiz_default_report {
             if($quests[$qid]['qtype'] == 8){
                   $thismin[$qid] = get_field("quiz_numerical","min","question","$qid");
                   $thismax[$qid] = get_field("quiz_numerical","max","question","$qid");
-                  $quests[$qid]["correct"] = $thismin[$qid] ."< $choice_data->answer >" .  $thismax[$qid];
+                  $quests[$qid]["correct"] = $thismin[$qid] ."&lt; $choice_data->answer &lt;" .  $thismax[$qid];
             }
             if($quests[$qid]['qtype'] >3) {continue;}
             //only get choices here if type is SHORTANSWER,TRUEFALSE or MULTICHOICE
@@ -659,7 +659,7 @@ class quiz_report extends quiz_default_report {
     //Print user responses
     print ("<table border=\"1\" align=\"center\" width=\"95%\" cellpadding=\"2\" cellspacing=\"0\">\n");
     $totcolcount = $table_colcount+2;
-    print("<tr><th colspan=$totcolcount>$strindivresp</th></tr>");
+    print("<tr><th colspan=\"$totcolcount\">$strindivresp</th></tr>");
     qr_print_headers($data_tally,"$strname","$strgrade");
 
     //now print the lines of answers
@@ -698,15 +698,15 @@ class quiz_report extends quiz_default_report {
         }
     }
      
-    print("</table><p>\n");
+    print("</table><br />\n");
         
     if($debug and !$download){
     print("<h3>Qtally</h3>");
     print_object($qtally);
     }
     //print tally of how many selected each choice
-    print ("<p><table width=\"95%\" border=\"1\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">\n");
-    print("<tr><th colspan=$totcolcount>$stritemanal</th></tr>");
+    print ("<br /><table width=\"95%\" border=\"1\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">\n");
+    print("<tr><th colspan=\"$totcolcount\">$stritemanal</th></tr>");
     qr_print_headers($data_tally,"Item","&nbsp;");
     //display row with correct answers
     print("<tr><th colspan=\"2\" align=\"right\">$strcorrresp:</th>");
@@ -760,7 +760,7 @@ class quiz_report extends quiz_default_report {
 
     //Now printout the questions (and M/C answers if $containsMC
 
-    print ("<p><table width=\"95%\" border=\"1\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">\n");
+    print ("<br /><table width=\"95%\" border=\"1\" align=\"center\" cellpadding=\"2\" cellspacing=\"0\">\n");
     if ($containsMCTF){$ws = " ". $strwithsummary;} else {$ws = "";}
     print("<tr><th colspan=\"3\">QUIZ: $quiz->name&nbsp;&nbsp; -- &nbsp;&nbsp;$strlistitems$ws</th></tr>\n");
     $qcount = 0;
@@ -905,7 +905,7 @@ function qr_print_headers($data_tally,$nm,$gd){
         } else {
             $colcount = 1;
         }
-        print("<th colspan=$colcount>Q-$qcount</th>");
+        print("<th colspan=\"$colcount\">Q-$qcount</th>");
     }
     print("</tr>\n");
 }
@@ -982,7 +982,7 @@ function qr_answer_lookup($qid,$thisanswer){
                 break;
             case 8:  //NUMERICAL
                 $returndata['data'] = $thisanswer;
-//                $returndata['data'] = $thismin . "<" . $thisanswer . ">" . $thismax;
+//                $returndata['data'] = $thismin . "&lt;" . $thisanswer . "&lt;" . $thismax;
                 $qtally[$qid]['response'][$thisanswer]++;
                 if ($thisanswer >= $thismin[$qid] and $thisanswer <= $thismax[$qid]){
                     $qtally[$qid]['correct']++;
index a59d28b33a7176aaf0259169dbb4d02fefa34a6e..2515ac7b88304b74e4eb34ea99761139fc180623 100644 (file)
@@ -107,7 +107,7 @@ class quiz_report extends quiz_default_report {
         }
 
         //Embed script for warning
-        echo "\n<script lang=\"javascript\">\n<!--\nfunction delcheck(){\n ";
+        echo "\n<script language=\"javascript\" type=\"text/javascript\">\n<!--\nfunction delcheck(){\n ";
         echo "if (confirm('$strreallydel')) {\n";
         echo " document.delform.del.value='all';\n return true;\n";
         echo " } else {\n";
@@ -123,8 +123,8 @@ class quiz_report extends quiz_default_report {
         print_table($table);
     
         //There might be a more elegant way than using the <center> tag for this
-        echo "<center><input type=\"submit\" value=\"$strdeleteselected\">&nbsp;";
-        echo "<input type=\"button\" value=\"$strdeleteall\" onClick=\"if(delcheck()){document.delform.submit()}\" />\n</center>\n";
+        echo "<center><input type=\"submit\" value=\"$strdeleteselected\" />&nbsp;";
+        echo "<input type=\"button\" value=\"$strdeleteall\" onclick=\"if(delcheck()){document.delform.submit()}\" />\n</center>\n";
         echo "</form>\n";
 
         return true;
@@ -145,7 +145,7 @@ class quiz_report extends quiz_default_report {
             } else {
                 $attemptlapse = "...";
             }
-            $button = "<input type=\"checkbox\" name=\"box$attempt->id\" value=\"$attempt->id\" />";
+            $button = "<input type=\"checkbox\" name=\"box$attempt->id\" value=\"$attempt->id\" alt=\"box$attempt->id\" />";
             $revurl = "review.php?q=$quiz->id&amp;attempt=$attempt->id";
             if ($attemptgrade == $bestgrade) {
                 $userattempts[] = "$button&nbsp;<span class=\"highlight\">$attemptgrade</span>&nbsp;<a href=\"$revurl\">$attemptdate</a>&nbsp;($attemptlapse)";
index b1db02e3f90828e3765939f08d8337244f3eed2c..b50f8f08bbe59db932025b08feb46182dd456276 100644 (file)
@@ -66,7 +66,7 @@
     print_heading($quiz->name);
 
     if (trim(strip_tags($quiz->intro))) {
-        print_simple_box(format_text($quiz->intro), "CENTER");
+        print_simple_box(format_text($quiz->intro), "center");
     }
 
 
                 }
                 $strconfirmstartattempt = addslashes(get_string("confirmstartattempt","quiz"));
                 echo "<br />";
+                echo "</p>";
                 echo "<div align=\"center\">";
                 if ($quiz->timelimit) {
                     include("view_js.php");
                     print_single_button("attempt.php", $options, get_string("attemptquiznow","quiz"));
                 }
                 echo "</div>\n";
-                echo "</p>";
+                //echo "</p>";
             }
         } else {
             print_heading(get_string("nomoreattempts", "quiz"));