]> git.mjollnir.org Git - moodle.git/commitdiff
fixed capitalization and quoting of attribute values
authorgustav_delius <gustav_delius>
Sun, 12 Sep 2004 17:34:35 +0000 (17:34 +0000)
committergustav_delius <gustav_delius>
Sun, 12 Sep 2004 17:34:35 +0000 (17:34 +0000)
121 files changed:
mod/quiz/attempt.php
mod/quiz/backuplib.php
mod/quiz/category.php
mod/quiz/db/mysql.php
mod/quiz/db/oci8po.php
mod/quiz/db/postgres7.php
mod/quiz/edit.php
mod/quiz/export.php
mod/quiz/format.php
mod/quiz/format/aiken/format.php
mod/quiz/format/aon/format.php
mod/quiz/format/blackboard/format.php
mod/quiz/format/coursetestmanager/format.php
mod/quiz/format/gift/format.php
mod/quiz/format/missingword/format.php
mod/quiz/format/multianswer/format.php
mod/quiz/format/qti/format.php
mod/quiz/format/webct/format.php
mod/quiz/import.php
mod/quiz/index.php
mod/quiz/lib.php
mod/quiz/mod.html
mod/quiz/multiple.php
mod/quiz/preview.php
mod/quiz/question.php
mod/quiz/questiontypes/calculated/calculated.html
mod/quiz/questiontypes/calculated/editquestion.php
mod/quiz/questiontypes/calculated/modifiednumericalqtype.php
mod/quiz/questiontypes/calculated/questiontype.php
mod/quiz/questiontypes/datasetdependent/abstractqtype.php
mod/quiz/questiontypes/datasetdependent/categorydatasetdefinitions.php
mod/quiz/questiontypes/datasetdependent/datasetitems.php
mod/quiz/questiontypes/datasetdependent/questiondatasets.html
mod/quiz/questiontypes/description/description.html
mod/quiz/questiontypes/description/editquestion.php
mod/quiz/questiontypes/description/questiontype.php
mod/quiz/questiontypes/match/editquestion.php
mod/quiz/questiontypes/match/match.html
mod/quiz/questiontypes/match/questiontype.php
mod/quiz/questiontypes/multianswer/editquestion.php
mod/quiz/questiontypes/multianswer/multianswer.html
mod/quiz/questiontypes/multianswer/questiontype.php
mod/quiz/questiontypes/multichoice/editquestion.php
mod/quiz/questiontypes/multichoice/multichoice.html
mod/quiz/questiontypes/multichoice/questiontype.php
mod/quiz/questiontypes/numerical/editquestion.php
mod/quiz/questiontypes/numerical/numerical.html
mod/quiz/questiontypes/numerical/questiontype.php
mod/quiz/questiontypes/random/editquestion.php
mod/quiz/questiontypes/random/questiontype.php
mod/quiz/questiontypes/random/random.html
mod/quiz/questiontypes/randomsamatch/editquestion.php
mod/quiz/questiontypes/randomsamatch/questiontype.php
mod/quiz/questiontypes/randomsamatch/randomsamatch.html
mod/quiz/questiontypes/shortanswer/editquestion.php
mod/quiz/questiontypes/shortanswer/questiontype.php
mod/quiz/questiontypes/shortanswer/shortanswer.html
mod/quiz/questiontypes/truefalse/editquestion.php
mod/quiz/questiontypes/truefalse/questiontype.php
mod/quiz/questiontypes/truefalse/truefalse.html
mod/quiz/quizfile.php
mod/quiz/report.php
mod/quiz/report/default.php
mod/quiz/report/fullstat/report.php
mod/quiz/report/overview/report.php
mod/quiz/report/regrade/report.php
mod/quiz/report/simplestat/report.php
mod/quiz/restorelib.php
mod/quiz/review.php
mod/quiz/version.php
mod/quiz/view.php
mod/resource/backuplib.php
mod/resource/config.html
mod/resource/coursefiles.php
mod/resource/db/mysql.php
mod/resource/db/oci8po.php
mod/resource/db/postgres7.php
mod/resource/filter.php
mod/resource/index.php
mod/resource/lib.php
mod/resource/restorelib.php
mod/resource/type/common.html
mod/resource/type/directory/directory.html
mod/resource/type/directory/resource.class.php
mod/resource/type/file/file.html
mod/resource/type/file/resource.class.php
mod/resource/type/html/html.html
mod/resource/type/html/resource.class.php
mod/resource/type/text/resource.class.php
mod/resource/type/text/text.html
mod/resource/version.php
mod/resource/view.php
mod/scorm/backuplib.php
mod/scorm/config.html
mod/scorm/coursefiles.php
mod/scorm/db/mysql.php
mod/scorm/db/postgres7.php
mod/scorm/details.php
mod/scorm/index.php
mod/scorm/lib.php
mod/scorm/mod.html
mod/scorm/playscorm.php
mod/scorm/report.php
mod/scorm/restorelib.php
mod/scorm/version.php
mod/scorm/view.php
mod/survey/backuplib.php
mod/survey/db/mysql.php
mod/survey/db/oci8po.php
mod/survey/db/postgres7.php
mod/survey/details.php
mod/survey/download.php
mod/survey/graph.php
mod/survey/index.php
mod/survey/lib.php
mod/survey/mod.html
mod/survey/report.php
mod/survey/restorelib.php
mod/survey/save.php
mod/survey/version.php
mod/survey/view.php

index f2b649708edf70b2cea95848cd322774fdf22d07..cf855cda44b5cc6e311ac95330b4435d5c3a8c2f 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 // This page prints a particular instance of quiz
 
@@ -58,8 +58,8 @@
     $strquiz  = get_string("modulename", "quiz");
 
     print_header_simple("$quiz->name", "",
-                 "<A HREF=index.php?id=$course->id>$strquizzes</A> ->
-                  <A HREF=\"view.php?id=$cm->id\">$quiz->name</A> -> $strattemptnum",
+                 "<a href=\"index.php?id=$course->id\">$strquizzes</a> ->
+                  <a href=\"view.php?id=$cm->id\">$quiz->name</a> -> $strattemptnum",
                   "", "", true);
 
     echo '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>'; // for overlib
index 4ee952bb5d76a3208b96077d4feb2d1fe6627866..a8da7ee5f155a9c4238565bd1b6debe3cc1d0059 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //quiz mods
 
index 9dc2102594d062b3c69ffffb355a9cd370ef5b6b..deb7a88e3c73c46ff5f2ede63ca1f973ebd01970 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
       // Allows a teacher to create, edit and delete categories
 
     require_once("../../config.php");
@@ -40,7 +40,7 @@
     $streditcategories = get_string("editcategories", "quiz");
 
     print_header_simple("$streditcategories", " $streditcategories",
-                 "<A HREF=\"edit.php\">$streditingquiz</A> -> $streditcategories");
+                 "<a href=\"edit.php\">$streditingquiz</a> -> $streditcategories");
 
 
 /// Delete category if the user wants to delete it
                 print_simple_box(get_string("categorymove", "quiz", $vars), "CENTER");
                 $categories = quiz_get_category_menu($course->id);
                 unset($categories[$category->id]);
-                echo "<CENTER><P><FORM ACTION=category.php METHOD=get>";
-                echo "<INPUT TYPE=hidden NAME=id VALUE=\"$course->id\" />";
-                echo "<INPUT TYPE=hidden NAME=delete VALUE=\"$category->id\" />";
+                echo "<center><p><form action=\"category.php\" method=\"get\">";
+                echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\" />";
+                echo "<input type=\"hidden\" name=\"delete\" value=\"$category->id\" />";
                 choose_from_menu($categories, "confirm", "", "");
-                echo "<INPUT TYPE=submit VALUE=\"".get_string("categorymoveto", "quiz")."\" />";
-                echo "<INPUT TYPE=submit NAME=cancel VALUE=\"$strcancel\" />";
-                echo "</FORM></P></CENTER>";
+                echo "<input type=\"submit\" value=\"".get_string("categorymoveto", "quiz")."\" />";
+                echo "<input type=\"submit\" name=\"cancel\" value=\"$strcancel\" />";
+                echo "</form></p></center>";
                 print_footer($course);
                 exit;
             }
 
 /// Print heading
 
-    echo "<P ALIGN=CENTER><FONT SIZE=3>";
+    echo "<p align=\"center\"><font size=\"3\">";
     echo $streditcategories;
     helpbutton("categories", $streditcategories, "quiz");
-    echo "</FONT></P>";
+    echo "</font></p>";
 
 /// If data submitted, then process and store.
 
     $table->width = 200;
     $table->nowrap = true;
 
-    echo "<FORM ACTION=category.php METHOD=post>";
+    echo "<form action=\"category.php\" method=\"post\">";
     foreach ($categories as $category) {
         $count = count_records("quiz_questions", "category", $category->id);
         if ($category->id == $default) { 
             $delete = "";  // Can't delete default category
         } else {
-            $delete = "<A HREF=\"category.php?id=$course->id&delete=$category->id\">$strdelete</A>";
+            $delete = "<a href=\"category.php?id=$course->id&delete=$category->id\">$strdelete</a>";
         }
-        $table->data[] = array ("<INPUT TYPE=text NAME=\"c$category->id\" VALUE=\"$category->name\" SIZE=15 />",
-                                "<INPUT TYPE=text NAME=\"i$category->id\" VALUE=\"$category->info\" SIZE=50 />",
+        $table->data[] = array ("<input type=\"text\" name=\"c$category->id\" value=\"$category->name\" size=\"15\" />",
+                                "<input type=\"text\" name=\"i$category->id\" value=\"$category->info\" size=\"50\" />",
                                 choose_from_menu ($publishoptions, "p$category->id", "$category->publish", "", "", "", true),
                                 "$count", 
                                 $delete);
     }
-    $table->data[] = array ("<INPUT TYPE=text NAME=\"new\" VALUE=\"\" SIZE=15 />", 
-                            "<INPUT TYPE=text NAME=\"newinfo\" VALUE=\"\" SIZE=50 />", 
+    $table->data[] = array ("<input type=\"text\" name=\"new\" value=\"\" size=\"15\" />", 
+                            "<input type=\"text\" name=\"newinfo\" value=\"\" size=\"50\" />", 
                             choose_from_menu ($publishoptions, "newpublish", "", "", "", "", true),
                             "", 
                             "$stradd");
     print_table($table);
-    echo "<INPUT TYPE=hidden NAME=id VALUE=\"$course->id\" />";
-    echo "<CENTER><BR><INPUT TYPE=submit VALUE=\"$strsavechanges\" /> ";
-    echo "<BR><BR><INPUT TYPE=submit NAME=backtoquiz VALUE=\"$strbacktoquiz\" /> ";
-    echo "</CENTER>";
-    echo "</FORM>";
+    echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\" />";
+    echo "<center><br><input type=\"submit\" value=\"$strsavechanges\" /> ";
+    echo "<br><br><input type=\"submit\" name=\"backtoquiz\" value=\"$strbacktoquiz\" /> ";
+    echo "</center>";
+    echo "</form>";
 
     print_footer();
 
index 1f64cc8089bc9e86cb55c116d6f8afc2d2e4c11d..91b6ce97d126192572fe54a597942dff540d8488 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function quiz_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index d2b0461c7f7fca137646096447880282190e01ea..9fda6e7a8b73a86e550a472fbfae5211ca29b008 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP 
+<?php 
 
 function quiz_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 281fe53917d540a8c09ad12749c17d1f4c6c13c4..f2ae99cc1b6b68c275bebd6ac2c3bcc597a7786a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function quiz_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 0291d3bc9657810b1cd106bf1a3dc7a71f267cc4..bcdb60a9fe9336e64dc76037f2cdf27c3b38d6d6 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index 1ec3c52711836e5881f4fe4567a95ece292d64a3..4ad463a513c0a95ee83116461de56cdb3b0ee9bc 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
       // Import quiz questions into the given category
 
     require_once("../../config.php");
 
     print_simple_box_start("center", "", "$THEME->cellheading");
     echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"export.php\">";
-    echo "<table cellpadding=5>";
+    echo "<table cellpadding=\"5\">";
 
-    echo "<tr><td align=right>";
+    echo "<tr><td align=\"right\">";
     print_string("category", "quiz");
     echo ":</td><td>";
     choose_from_menu($categories, "category", "$category->id", "");
     echo "</tr>";
 
-    echo "<tr><td align=right>";
+    echo "<tr><td align=\"right\">";
     print_string("fileformat", "quiz");
     echo ":</td><td>";
     choose_from_menu($fileformatnames, "format", "gift", "");
     echo "</td></tr>";
 
     echo "<tr><td align=\"center\" colspan=\"2\">";
-    echo " <input type=hidden name=category value=\"$category->id\" />";
-    echo " <input type=submit name=save value=\"".get_string("exportquestions","quiz")."\" />";
+    echo " <input type=\"hidden\" name=\"category\" value=\"$category->id\" />";
+    echo " <input type=\"submit\" name=\"save\" value=\"".get_string("exportquestions","quiz")."\" />";
     echo "</td></tr>";
 
     echo "</table>";
index a0bba390f7fd65a2ae4a815787c17707778f15db..131158d64771f5a3b5bcb9b1772a78537cb7742e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 
 ////////////////////////////////////////////////////////////////////
 /// format.php  - Default format class for file imports/exports.  //
index 52613d1440ba8412867c9da585d70a625dd35659..f5ed8a31c7c55123dc1cfb7dd43afeebf3bcd0b7 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 
 ///
 /// Written by Tom Robb <tom@robb.net> 2 November 2003
index c9c39af13717d2475ddd77025f043d3c513f7605..a228c6762900b7f226e355ebe94fedf920f88c20 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 
 ////////////////////////////////////////////////////////////////////////////
 /// Academy of Nursing format
@@ -38,7 +38,7 @@ class quiz_file_format extends quiz_default_format {
         $answerstart = strpos($text, "{");
         if ($answerstart === false) {
             if ($this->displayerrors) {
-                echo "<P>$text<P>Could not find a {";
+                echo "<p>$text<p>Could not find a {";
             }
             return false;
         }
@@ -46,7 +46,7 @@ class quiz_file_format extends quiz_default_format {
         $answerfinish = strpos($text, "}");
         if ($answerfinish === false) {
             if ($this->displayerrors) {
-                echo "<P>$text<P>Could not find a }";
+                echo "<p>$text<p>Could not find a }";
             }
             return false;
         }
@@ -67,7 +67,7 @@ class quiz_file_format extends quiz_default_format {
         switch ($countanswers) {
             case 0:  // invalid question
                 if ($this->displayerrors) {
-                    echo "<P>No answers found in $answertext";
+                    echo "<p>No answers found in $answertext";
                 }
                 return false;
 
index 0d4d40678d3988db1ec0fe23bcfbec2e7cc24e24..16d350fbad7f892b8c808dd41bc79c7c4a572924 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 ////////////////////////////////////////////////////////////////////////////
 /// Blackboard 6.0 Format
 ///
index d1593128eca6cc052c8e47b7c479239f602556ae..8879520971ae75b823b4f1e5d677f6ce0b31f518 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 ////////////////////////////////////////////////////////////////////
 /// Class for importing course test manager questions.            //
 ///                                                               //
@@ -51,25 +51,25 @@ class quiz_file_format {
                    print_simple_box_start("center", "", "$THEME->cellheading");
                                if ($hostname_access_error) { notify("couldn't connect to ODBC Socket Server on " . $hostname_access_error); }
                    echo "<form method=\"post\" action=\"import.php\">";
-                   echo "<table cellpadding=5>";
+                   echo "<table cellpadding=\"5\">";
 
-        echo "<tr><td align=right>";
+        echo "<tr><td align=\"right\">";
                    echo "What is the hostname or IP address of the ODBC Socket Server:</td><td>";
                    echo " <input name=\"hostname\" type=\"text\" size=\"50\" value=\"".stripslashes($hostname_access_error)."\" />";
                    echo " <input name=\"filename\" type=\"hidden\" value=\"".$filename."\" />";
                    echo " <input name=\"category\" type=\"hidden\" value=\"".$category->id."\" />";
                    echo " <input name=\"format\" type=\"hidden\" value=\"".$form->format."\" />";
                    echo "</td><td>&nbsp;</td></tr>";
-        echo "<tr><td align=right>";
+        echo "<tr><td align=\"right\">";
                    echo "What is the location of the database (.mdb file) on the Socket Server:</td><td>";
                    echo " <input name=\"mdbpath\" type=\"text\" size=\"50\" value=\"".stripslashes($mdbpath)."\" />";
                                echo "</td><td>&nbsp;</td></tr>";
-        echo "<tr><td align=right>";
+        echo "<tr><td align=\"right\">";
                    echo "What is the location of the system database (System.mda file) on the Socket Server:</td><td>";
                    echo " <input name=\"mdapath\" type=\"text\" size=\"50\" value=\"".stripslashes($mdapath)."\" />";
                                echo "</td><td>&nbsp;</td></tr>";
                    echo "<tr><td>&nbsp;</td><td>";
-                   echo " <input type=submit name=save value=\"Connect to Server\" />";
+                   echo " <input type=\"submit\" name=\"save\" value=\"Connect to Server\" />";
                    echo "</td></tr>";
                    echo "</table>";
                    echo "</form>";
@@ -112,8 +112,8 @@ class quiz_file_format {
                    print_heading_with_help($strimportquestions, "import", "quiz");
                    print_simple_box_start("center", "", "$THEME->cellheading");
                    echo "<form method=\"post\" action=\"import.php\">";
-                   echo "<table cellpadding=5>";
-        echo "<tr><td align=right>";
+                   echo "<table cellpadding=\"5\">";
+        echo "<tr><td align=\"right\">";
                    echo "Choose a category of questions to import:</td><td>";
                    asort($question_categories);
                    choose_from_menu($question_categories, "question_category","All Categories","All Categories", "", "allcategories");
@@ -127,7 +127,7 @@ class quiz_file_format {
                    }
                    echo "</td><td>&nbsp;</td>";
                    echo "</tr><tr><td>&nbsp;</td><td>";
-                   echo " <input type=submit name=save value=\"Import Questions\" />";
+                   echo " <input type=\"submit\" name=\"save\" value=\"Import Questions\" />";
                    echo "</td></tr>";
                    echo "</table>";
                    echo "</form>";
@@ -265,7 +265,7 @@ class quiz_file_format {
 
          function deletedatabase($filename) {
                if (! $this->fulldelete($filename)) {
-        echo "<BR>Error: Could not delete: $filename";
+        echo "<br>Error: Could not delete: $filename";
         return false;
       }
                        return true;
index 6405fa2feb68210697ef2715868dbf9de9256bff..2835d42276ea96e6613a19c3d86fd83be4476a10 100755 (executable)
@@ -126,7 +126,7 @@ class quiz_file_format extends quiz_default_format {
         $answerstart = strpos($text, "{");
         if ($answerstart === false) {
             if ($this->displayerrors) {
-                echo "<P>$text<P>Could not find a {";
+                echo "<p>$text<p>Could not find a {";
             }
             return false;
         }
@@ -134,7 +134,7 @@ class quiz_file_format extends quiz_default_format {
         $answerfinish = strpos($text, "}");
         if ($answerfinish === false) {
             if ($this->displayerrors) {
-                echo "<P>$text<P>Could not find a }";
+                echo "<p>$text<p>Could not find a }";
             }
             return false;
         }
@@ -193,7 +193,7 @@ class quiz_file_format extends quiz_default_format {
 
         if (!isset($question->qtype)) {
             if ($this->displayerrors) {
-                echo "<P>$text<P>Question type not set.";
+                echo "<p>$text<p>Question type not set.";
                 }
             return false;
         }
@@ -218,7 +218,7 @@ class quiz_file_format extends quiz_default_format {
                 $countanswers = count($answers);
                 if ($countanswers < 2) {
                     if ($this->displayerrors) {
-                        echo "<P>$text<P>Found tilde for multiple choice, 
+                        echo "<p>$text<p>Found tilde for multiple choice, 
                             but too few answers for Multiple Choice.<br />
                             Found <u>$countanswers</u> answers in answertext.";
                     }
@@ -262,7 +262,7 @@ class quiz_file_format extends quiz_default_format {
                 $countanswers = count($answers);
                 if ($countanswers < 3) {
                     if ($this->displayerrors) {
-                        echo "<P>$text<P>Found markers for Matching format 
+                        echo "<p>$text<p>Found markers for Matching format 
                             (= and ->), but too few answers -- must be at least 3.<br />
                             Found <u>$countanswers</u> answers in answertext.";
                     }
@@ -274,7 +274,7 @@ class quiz_file_format extends quiz_default_format {
                     $answer = trim($answer);
                     if (strpos($answer, "->") <= 0) {
                         if ($this->displayerrors) {
-                        echo "<P>$text<P>Error processing Matching question.<br />
+                        echo "<p>$text<p>Error processing Matching question.<br />
                             Improperly formatted answer: $answer";
                         }
                         return false;
@@ -323,7 +323,7 @@ class quiz_file_format extends quiz_default_format {
                 if (count($answers) == 0) {
                     // invalid question
                     if ($this->displayerrors) {
-                        echo "<P>$text<P>Found equals=, but no answers in answertext";
+                        echo "<p>$text<p>Found equals=, but no answers in answertext";
                     }
                     return false;
                     break;
@@ -364,7 +364,7 @@ class quiz_file_format extends quiz_default_format {
                 if (count($answers) == 0) {
                     // invalid question
                     if ($this->displayerrors) {
-                        echo "<P>$text<P>No answers found in answertext (Numerical answer)";
+                        echo "<p>$text<p>No answers found in answertext (Numerical answer)";
                     }
                     return false;
                     break;
@@ -407,8 +407,8 @@ class quiz_file_format extends quiz_default_format {
                      OR !is_numeric($question->max[$key])
                      OR !is_numeric($question->max[$key])) {
                         if ($this->displayerrors) {
-                            echo "<P>$text<P>For numerical questions, answer must be numbers.
-                                <P>Answer: <u>$answer</u><P>ErrorMargin: <u>$errormargin</u> .";
+                            echo "<p>$text<p>For numerical questions, answer must be numbers.
+                                <p>Answer: <u>$answer</u><p>ErrorMargin: <u>$errormargin</u> .";
                         }
                         return false;
                         break;
@@ -423,7 +423,7 @@ class quiz_file_format extends quiz_default_format {
 
                 default:
                 if ($this->displayerrors) {
-                    echo "<P>$text<P> No valid question type. Error in switch(question->qtype)";
+                    echo "<p>$text<p> No valid question type. Error in switch(question->qtype)";
                 }
                 return false;
                 break;                
index 7014b72bf7dda99f304da7caa291708af1992fe2..ea81dcf58a9543bc72a9ff0ca90010166a1c2103 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 /// Modified by Tom Robb 12 June 2003 to include percentage and comment insertion
 /// facility.
 
@@ -43,7 +43,7 @@ class quiz_file_format extends quiz_default_format {
         $answerstart = strpos($text, "{");
         if ($answerstart === false) {
             if ($this->displayerrors) {
-                echo "<P>$text<P>Could not find a {";
+                echo "<p>$text<p>Could not find a {";
             }
             return false;
         }
@@ -51,7 +51,7 @@ class quiz_file_format extends quiz_default_format {
         $answerfinish = strpos($text, "}");
         if ($answerfinish === false) {
             if ($this->displayerrors) {
-                echo "<P>$text<P>Could not find a }";
+                echo "<p>$text<p>Could not find a }";
             }
             return false;
         }
@@ -79,7 +79,7 @@ class quiz_file_format extends quiz_default_format {
         switch ($countanswers) {
             case 0:  // invalid question
                 if ($this->displayerrors) {
-                    echo "<P>No answers found in $answertext";
+                    echo "<p>No answers found in $answertext";
                 }
                 return false;
 
index 6ac834001f1c3b4082e18692588dbca02e693070..25f5972dbdce04b668cfdc9a8fddc2dc17061b62 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 
 ////////////////////////////////////////////////////////////////////////////
 /// MULTIANSWER FORMAT
index 9c0bab3533c53287a8709b2e89a9f1200d796372..c0a3de3955155ce29fcffa0393962d0537b466a5 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 
 ////////////////////////////////////////////////////////////////////////////
 /// IMS QTI FORMAT
index 0688dccac7b240b07184aec185b6ce1c05274afe..7ed94ea330a6a60fcacc1720c3051387ae6c78af 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 ///////////////////////////////////////////////////////////////////////////
 //                                                                       //
 // WebCT FORMAT                                                          //
index 727c24656a8006e93d68ab3eb2c7dd2a946d5c37..c1dbf5888ae16e62f8dc728f5656caec96259e30 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
       // Import quiz questions into the given category
 
     require_once("../../config.php");
     print_heading_with_help($strimportquestions, "import", "quiz");
 
     print_simple_box_start("center", "", "$THEME->cellheading");
-    echo "<form enctype=\"multipart/form-data\" method=\"post\" action=import.php>";
-    echo "<table cellpadding=5>";
+    echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"import.php\">";
+    echo "<table cellpadding=\"5\">";
 
-    echo "<tr><td align=right>";
+    echo "<tr><td align=\"right\">";
     print_string("category", "quiz");
     echo ":</td><td>";
     // choose_from_menu($categories, "category", "$category->id", "");
     echo quiz_get_category_coursename($category);
     echo "</tr>";
 
-    echo "<tr><td align=right>";
+    echo "<tr><td align=\"right\">";
     print_string("fileformat", "quiz");
     echo ":</td><td>";
     choose_from_menu($fileformatnames, "format", "gift", "");
     helpbutton("import", $strimportquestions, "quiz");
     echo "</tr>";
 
-    echo "<tr><td align=right>";
+    echo "<tr><td align=\"right\">";
     print_string("upload");
     echo ":</td><td>";
     echo " <input name=\"newfile\" type=\"file\" size=\"50\" />";
     echo "</tr><tr><td>&nbsp;</td><td>";
-    echo " <input type=hidden name=category value=\"$category->id\" />";
-    echo " <input type=submit name=save value=\"".get_string("uploadthisfile")."\" />";
+    echo " <input type=\"hidden\" name=\"category\" value=\"$category->id\" />";
+    echo " <input type=\"submit\" name=\"save\" value=\"".get_string("uploadthisfile")."\" />";
     echo "</td></tr>";
 
     echo "</table>";
index 1cd1c827530022fb86b7c75f1be9c539ec53c6f3..5a2c48a9c56526fd50f048cab451f8aa3c79583d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 // This page lists all the instances of quiz in a particular course
 
     foreach ($quizzes as $quiz) {
         if (!$quiz->visible) { 
             //Show dimmed if the mod is hidden
-            $link = "<A class=\"dimmed\" HREF=\"view.php?id=$quiz->coursemodule\">$quiz->name</A>";
+            $link = "<a class=\"dimmed\" href=\"view.php?id=$quiz->coursemodule\">$quiz->name</a>";
         } else {
             //Show normal if the mod is visible
-            $link = "<A HREF=\"view.php?id=$quiz->coursemodule\">$quiz->name</A>";
+            $link = "<a href=\"view.php?id=$quiz->coursemodule\">$quiz->name</a>";
         }
 
         $bestgrade = quiz_get_best_grade($quiz->id, $USER->id);
index 932a066f84e5f108328cfd2a3fd6b2d560611517..a6ceb93a87158335d1f8428d0aab3fa9a9745e5d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of function for module quiz
 
@@ -1263,7 +1263,7 @@ function quiz_print_question_list($questionlist, $grades) {
 
         $sumgrade += $grades[$qnum];
     }
-    echo "<tr><td colspan=5 align=\"right\">\n";
+    echo "<tr><td colspan=\"5\" align=\"right\">\n";
     echo "<input type=\"submit\" value=\"$strsavegrades:\" />\n";
     echo "<input type=\"hidden\" name=\"setgrades\" value=\"save\" />\n";
     echo "<td align=\"left\" bgcolor=\"$THEME->cellcontent\">\n";
@@ -1399,11 +1399,11 @@ function quiz_print_cat_question_list($categoryid, $quizselected=true) {
         if ($canedit) {
             echo "<td>\n";
                 echo "<a title=\"$strdelete\" href=\"question.php?id=$question->id&delete=$question->id\">\n<img
-                     src=\"../../pix/t/delete.gif\" border=0></a>&nbsp;";
+                     src=\"../../pix/t/delete.gif\" border=\"0\"></a>&nbsp;";
                 echo "<a title=\"$strpreview\" href=\"#\" onClick=\"openpopup('/mod/quiz/preview.php?id=$question->id','$strpreview','scrollbars=yes,resizable=yes,width=700,height=480', false)\"><img
                       src=\"../../pix/i/search.gif\" border=\"0\"></a>&nbsp;";
                 echo "<a title=\"$stredit\" href=\"question.php?id=$question->id\"><img
-                     src=\"../../pix/t/edit.gif\" border=0></a>";
+                     src=\"../../pix/t/edit.gif\" border=\"0\"></a>";
             echo "</td>\n";// deleted </tr> jm
         }
         echo "</tr>\n";
@@ -1411,7 +1411,7 @@ function quiz_print_cat_question_list($categoryid, $quizselected=true) {
     if ($quizselected) {
         echo "<tr>\n<td colspan=\"3\">";
         echo "<input type=\"submit\" name=\"add\" value=\"<< $straddselectedtoquiz\" />\n";
-        //echo "<input type=submit name=\"delete\" value=\"XX Delete selected\">";
+        //echo "<input type=\"submit\" name=\"delete\" value=\"XX Delete selected\">";
         echo "<input type=\"button\" onclick=\"checkall()\" value=\"$strselectall\" />\n";
         echo "</td></tr>";
     }
@@ -1795,11 +1795,11 @@ function quiz_print_recent_mod_activity($activity, $course, $detail=false) {
 
     echo "<tr><td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostpicture\" width=\"35\" valign=\"top\">";
     print_user_picture($activity->user->userid, $course, $activity->user->picture);
-    echo "</td><td width=\"100%\"><font size=2>";
+    echo "</td><td width=\"100%\"><font size=\"2\">";
 
     if ($detail) {
         echo "<img src=\"$CFG->modpixpath/$activity->type/icon.gif\" ".
-             "height=16 width=16 alt=\"$activity->type\">  ";
+             "height=\"16\" width=\"16\" alt=\"$activity->type\">  ";
         echo "<a href=\"$CFG->wwwroot/mod/quiz/view.php?id=" . $activity->instance . "\">"
              . $activity->name . "</a> - ";
 
index a4dfc748caff0b0179974efac9fc4966338c7f50..07c6f086623626bc42db314b14c3869e6e565715 100644 (file)
 
 <form name="form" method="post" action="../mod/quiz/edit.php">
 <center>
-<table cellpadding=5>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("name") ?>:</b></p></td>
+<table cellpadding="5">
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("name") ?>:</b></p></td>
     <td>
-        <input type="text" name="name" size=40 value="<?php p($form->name) ?>" />
+        <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>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("introduction", "quiz") ?>:</b></p>
       <br />
     <font size="1">
      <?php
@@ -91,8 +91,8 @@
         ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("quizopen", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("quizopen", "quiz") ?>:</b></p></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>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("quizclose", "quiz") ?>:</b></p></td>
     <td>
     <?php
         if (!$form->timeclose and $course->format == "weeks") {
     </td>
 </tr>
 <!-- BEGIN EDIT -->
-<tr valign=top>
-    <td align=right><p><b><?php print_string("timelimit", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("timelimit", "quiz") ?>:</b></p></td>
     <td>
     <?php
         print_timer_selector($form->timelimit, get_string("minutes","quiz"));
     </td>
 </tr>
 <!-- END EDIT -->
-<tr valign=top>
-    <td align=right><p><b><?php print_string("shufflequestions", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("shufflequestions", "quiz") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
      ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("shuffleanswers", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("shuffleanswers", "quiz") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
      ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("attemptsallowed", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("attemptsallowed", "quiz") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
      ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("eachattemptbuildsonthelast", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("eachattemptbuildsonthelast", "quiz") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
     ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("grademethod", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("grademethod", "quiz") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
      ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("showfeedback", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("showfeedback", "quiz") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
      ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("showcorrectanswer", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("showcorrectanswer", "quiz") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
      ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("allowreview", "quiz") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("allowreview", "quiz") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
      ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("maximumgrade") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("maximumgrade") ?>:</b></p></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>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("requirepassword", "quiz") ?>:</b></p></td>
     <td>
-        <input type="text" name="password" size=40 value="<?php p($form->password) ?>" />
+        <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>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("requiresubnet", "quiz") ?>:</b></p></td>
     <td>
-        <input type="text" name="subnet" size=40 value="<?php p($form->subnet) ?>" />
+        <input type="text" name="subnet" size="40" value="<?php p($form->subnet) ?>" />
         <?php helpbutton("requiresubnet", get_string("requiresubnet", "quiz"), "quiz"); ?>
     </td>
 </tr>
     
 </table>
-<input type="hidden" name=questions     value="<?php p($form->questions) ?>" />
+<input type="hidden" name="questions"     value="<?php p($form->questions) ?>" />
 <!-- these hidden variables are always the same -->
-<input type="hidden" name=course        value="<?php p($form->course) ?>" />
-<input type="hidden" name=coursemodule  value="<?php p($form->coursemodule) ?>" />
-<input type="hidden" name=section       value="<?php p($form->section) ?>" />
-<input type="hidden" name=module        value="<?php p($form->module) ?>" />
-<input type="hidden" name=modulename    value="<?php p($form->modulename) ?>" />
-<input type="hidden" name=instance      value="<?php p($form->instance) ?>" />
-<input type="hidden" name=mode          value="<?php p($form->mode) ?>" />
-<input type="hidden" name=destination   value="<?php echo "$CFG->wwwroot/course/mod.php" ?>" />
+<input type="hidden" name="course"        value="<?php p($form->course) ?>" />
+<input type="hidden" name="coursemodule"  value="<?php p($form->coursemodule) ?>" />
+<input type="hidden" name="section"       value="<?php p($form->section) ?>" />
+<input type="hidden" name="module"        value="<?php p($form->module) ?>" />
+<input type="hidden" name="modulename"    value="<?php p($form->modulename) ?>" />
+<input type="hidden" name="instance"      value="<?php p($form->instance) ?>" />
+<input type="hidden" name="mode"          value="<?php p($form->mode) ?>" />
+<input type="hidden" name="destination"   value="<?php echo "$CFG->wwwroot/course/mod.php" ?>" />
 <input type="submit" value="<?php print_string("continue") ?>" />
 </center>
 </form>
index cf56739e29668b419a2eb4ea9299027b05c6a285..c682d8276a27f4b4baad23d0e6736bfb42826872 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
       // A quick way to add lots of questions to a category (and a quiz)
 
     require_once("../../config.php");
     $options[1] = get_string("yes");
 
     print_simple_box_start("center", "", "$THEME->cellheading");
-    echo "<FORM METHOD=\"POST\" ACTION=multiple.php>";
-    echo "<TABLE cellpadding=5>";
-    echo "<TR><TD align=right>";
+    echo "<form method=\"POST\" action=\"multiple.php\">";
+    echo "<table cellpadding="5">";
+    echo "<tr><td align="right">";
     print_string("category", "quiz");
-    echo ":</TD><TD>";
+    echo ":</td><td>";
     // choose_from_menu($categories, "category", "$category->id", "");
     quiz_category_select_menu($course->id, true, true, $category->id );
-    echo "</TR>";
+    echo "</tr>";
 
-    echo "<TR><TD align=right>";
+    echo "<tr><td align="right">";
     print_string("randomcreate", "quiz");
-    echo ":</TD><TD>";
+    echo ":</td><td>";
     choose_from_menu($randomcount, "randomcreate", "10", "");
-    echo "</TR>";
+    echo "</tr>";
 
-    echo "<TR><TD align=right>";
+    echo "<tr><td align="right">";
     print_string("defaultgrade", "quiz");
-    echo ":</TD><TD>";
+    echo ":</td><td>";
     choose_from_menu($gradecount, "randomgrade", "1", "");
-    echo "</TR>";
+    echo "</tr>";
 
-    echo "<TR><TD align=right>";
+    echo "<tr><td align="right">";
     print_string("addquestionstoquiz", "quiz");
-    echo ":</TD><TD>";
+    echo ":</td><td>";
     choose_from_menu($options, "addquestionstoquiz", "1", "");
-    echo "</TR>";
-
-    echo "<TR><TD>&nbsp;</TD><TD>";
-    echo " <INPUT TYPE=hidden NAME=category VALUE=\"$category->id\" />";
-    echo " <INPUT TYPE=submit NAME=save VALUE=\"$strcreatemultiple\" />";
-    echo "</TD></TR>";
-    echo "</TABLE>";
-    echo "</FORM>";
+    echo "</tr>";
+
+    echo "<tr><td>&nbsp;</td><td>";
+    echo " <input type="hidden" name="category" value=\"$category->id\" />";
+    echo " <input type="submit" name="save" value=\"$strcreatemultiple\" />";
+    echo "</td></tr>";
+    echo "</table>";
+    echo "</form>";
     print_simple_box_end();
 
     print_footer();
index ff8daff0c193d8586e64fff5efdae10a840871e8..5f94b4d3d3a22276ef9c0b0536f942d61887d99b 100644 (file)
@@ -61,7 +61,7 @@
     print_header();
     print_heading(get_string("previewquestion","quiz"));
 
-    echo "<p align='center'><input type=\"button\" onClick=\"window.close()\" value=\"" . get_string("close", "quiz") . "\" /></p>";
+    echo "<p align=\"center\"><input type=\"button\" onClick=\"window.close()\" value=\"" . get_string("close", "quiz") . "\" /></p>";
 
     if (empty($question->id)) {
         $question->id = "";
index 02bd2b462ea814dc4ed6c3f1b6ed0e9bd25c08da..c34aae2f19c6990e74a5c8fd2975a11b6a7b4961 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
       /// For creating and editing quiz questions.
 
     require_once("../../config.php");
@@ -93,7 +93,7 @@
             }
             if ($beingused) {
                 $beingused = implode(", ", $beingused);
-                $beingused = get_string("questioninuse", "quiz", "<I>$question->name</I>")."<P>".$beingused;
+                $beingused = get_string("questioninuse", "quiz", "<i>$question->name</i>")."<p>".$beingused;
                 notice($beingused, "edit.php");
 
             } else { // the question is not used in any of the existing quizzes
index 3bed2f9e75658631c11e4df33dabbc6650197c71..e1c7c26deaac0e12866effd5833eea434bdade21 100644 (file)
@@ -1,27 +1,27 @@
-<FORM name="theform" method="post" action="question.php">
-<CENTER>
-<INPUT type="hidden" name="nextwizardpage" value="<?php p($nextwizardpage)?>" />
+<form name="theform" method="post" action="question.php">
+<center>
+<input type="hidden" name="nextwizardpage" value="<?php p($nextwizardpage)?>" />
 <?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>
+<table cellpadding="5">
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></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>
-        <INPUT type="text" name="name" size=50 value="<?php  p($question->name) ?>" />
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td>
+        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" />
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
-    </TD>
-</TR>
-<tr valign=top>
+    </td>
+</tr>
+<tr valign="top">
     <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
     <br />
     <br />
     <br />
-    <p><font SIZE="1">
+    <p><font size="1">
     <?php
            if ($usehtmleditor) {
                helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
@@ -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)) {
         ?>
     </td>
 </tr>
-<TR valign=top>
-    <TD align=right><P><B><?php  print_string("imagedisplay", "quiz") ?>:</B></P></TD>
-    <TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td>
     <?php   if (empty($images)) {
             print_string("noimagesyet");
         } else {
             choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
         }
     ?>
-    </TD>
-</TR>
+    </td>
+</tr>
 
-<TR valign=top>
-<TD align=right><P><B><?php  print_string("correctanswerformula", "quiz") ?>:</B></P></TD>
-    <TD>
-    <INPUT align="LEFT" type="text" id="formula0" name="answer[]" size="20" value="<?php  p($answers[0]->answer) ?>" />&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>
-    <INPUT align="LEFT" type="text" id=tolerance0" name="tolerance[]" size="15" value="<?php  p($answers[0]->tolerance) ?>" />&plusmn;
-    </TD>
-</TR>
-<TR valign=top>
-<TD align=right><P><B><?php  print_string("tolerancetype", "quiz"); ?>:</B></P></TD>
-    <TD>
+<tr valign="top">
+<td align="right"><p><b><?php  print_string("correctanswerformula", "quiz") ?>:</b></p></td>
+    <td>
+    <input align="LEFT" type="text" id="formula0" name="answer[]" size="20" value="<?php  p($answers[0]->answer) ?>" />&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>
+    <input align="LEFT" type="text" id="tolerance0" name="tolerance[]" size="15" value="<?php  p($answers[0]->tolerance) ?>" />&plusmn;
+    </td>
+</tr>
+<tr valign="top">
+<td align="right"><p><b><?php  print_string("tolerancetype", "quiz"); ?>:</b></p></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>
+    </td>
+</tr>
+<tr valign="top">
+<td align="right"><p><b><?php  print_string("correctanswerlength", "quiz"); ?>:</b></p></td>
+    <td>
     <?php choose_from_menu(array('1' => '1', '2' => '2', '3' => '3',
                                  '4' => '4', '5' => '5', '6' => '6',
                                  '7' => '7', '8' => '8', '9' => '9',
                                  '10' => '10'),
                            'correctanswerlength[]',
                            $answers[0]->correctanswerlength, false); ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php  print_string("feedback", "quiz") ?>:</B></P></TD>
-    <TD>
-        <textarea name="feedback[]" rows=2 cols=50 wrap="virtual"><?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>
-        <P><INPUT type="HIDDEN" name="multiplier[]" value="1.0" />
-        <INPUT align="LEFT" type="text" id="defaultunit" name="unit[]"
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?>:</b></p></td>
+    <td>
+        <textarea name="feedback[]" rows="2" cols="50" wrap="virtual"><?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>
+        <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>
-    </TD>
-</TR>
-<TR valign=top>
+        <b>(<?php  print_string("optional", "quiz") ?>)</b></p>
+    </td>
+</tr>
+<tr valign="top">
 <td></td>
-<TD align=left><P><B><?php  print_string("alternativeunits", "quiz") ?>:</B></P></TD>
+<td align="left"><p><b><?php  print_string("alternativeunits", "quiz") ?>:</b></p></td>
 <td></td>
-</TR>
-<?PHP
+</tr>
+<?php
 for ($i=1; $i<count($units); $i++) {
     $unit=$units[$i];
 ?>
-<TR valign=top>
+<tr valign="top">
 <td></td>
-    <TD align=left>
-        <P><B><?php  print_string("multiplier", "quiz") ?>:</B>
-        <INPUT type="text" id="<?php  p("multiplier$i") ?>" size="10"
+    <td align="left">
+        <p><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) ?>" />
-        <B>&nbsp;&nbsp;&nbsp;<?php  print_string("unit", "quiz") ?>:</B>
-        <INPUT align="LEFT" type="text" id="<?php  p("unit$i") ?>"
+        <b>&nbsp;&nbsp;&nbsp;<?php  print_string("unit", "quiz") ?>:</b>
+        <input align="LEFT" type="text" id="<?php  p("unit$i") ?>"
                 name="unit[]"
-                size="5" value="<?php  p($unit->unit) ?>" /></P>
-    </TD>
-</TR>
-<?PHP
+                size="5" value="<?php  p($unit->unit) ?>" /></p>
+    </td>
+</tr>
+<?php
 } /// END for
 ?>
-</TABLE>
+</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="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") ?>" />
 </center>
 </form>
index fcc12d0a9b8c2c7f6cfec5986f79018c8732cec4..475e73c060fd0b4ccd6ec14c95bf1754c19ae8be 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 // Get a handle to the question type we are dealing with here
 $qtypeobj = $QUIZ_QTYPES[CALCULATED];
index 3f908c871676e6a3373bb864d4c80198383685a3..ceee561b63583f6546fe4176ef6f3be0ff27d57d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 ///////////////////////////////
 /// CALCULATED HELPER CLASS ///
index 73c392868af5f6cc0d9822cd5e68ac07ba457c2b..00ae524ac0773e05e8e1bae78559eead14854cfb 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /////////////////
 /// CALCULATED ///
@@ -43,12 +43,12 @@ class quiz_calculated_qtype extends quiz_dataset_dependent_questiontype {
                                                 ? 'decimals'
                                                 : 'significantfigures'), 'quiz', $i);
             }
-            return '<INPUT TYPE="submit" onClick="'
+            return '<input type="submit" onClick="'
                     . "document.addform.regenerateddefid.value='$datasetdef->id'; return true;"
-                    .'" VALUE="'. get_string('generatevalue', 'quiz') . '"/><br/>'
-                    . '<INPUT TYPE="text" SIZE="3" NAME="calcmin[]" '
-                    . " VALUE=\"$regs[2]\"/> &amp; <INPUT NAME=\"calcmax[]\" "
-                    . ' TYPE="text" SIZE="3" VALUE="' . $regs[3] .'"/> '
+                    .'" value="'. get_string('generatevalue', 'quiz') . '"/><br/>'
+                    . '<input type="text" size="3" name="calcmin[]" '
+                    . " value=\"$regs[2]\"/> &amp; <input name=\"calcmax[]\" "
+                    . ' type="text" size="3" value="' . $regs[3] .'"/> '
                     . choose_from_menu($lengthoptions, 'calclength[]',
                                        $regs[4], // Selected
                                        '', '', '', true) . '<br/>'
index b460239226d448e6c03f37ff05727371f5cbe77c..a4b25cb694611d31a5b5beed550c05f7eedf5899 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 ///////////////////////////////////////////////////////////////
 /// ABSTRACT SUPERCLASS FOR QUSTION TYPES THAT USE DATASETS ///
@@ -360,9 +360,9 @@ class quiz_dataset_dependent_questiontype extends quiz_default_questiontype {
                 $value = $item->value;
 
             } else {
-                $icon = "<IMG SRC=\"$CFG->wwwroot/pix/f/"
+                $icon = "<img src=\"$CFG->wwwroot/pix/f/"
                         . mimeinfo('icon', $item->value)
-                        . '" HEIGHT="16" WIDTH="16" BORDER="0" ALT="File" />';
+                        . '" height="16" width="16" border="0" alt="File" />';
                 if (substr(strtolower($item->value), 0, 7)=='http://') {
                     $link = $item->value;
                         
index 835275fb0f09c370b7c58ef40553f218901a0cae..cef314e436489109a25c4bcc1a792317c94f206a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     /////////////////////////////////////////////////////////////////////
     ///// This page offers a way to define category level datasets  /////
@@ -32,7 +32,7 @@
     $strquestions = get_string("questions", "quiz");
 
     print_header_simple("$strdefinedataset", "$strdefinedataset",
-                 "<A HREF=\"../../edit.php\">$streditingquiz</A> -> $strdefinedataset");
+                 "<a href=\"../../edit.php\">$streditingquiz</a> -> $strdefinedataset");
 
     if ($form = data_submitted()) {   /// Filename
 
@@ -74,7 +74,7 @@
         echo "<input type=\"hidden\" name=\"question\" value=\"$question\" />";
     }
     
-    echo "<table cellpadding=5>";
+    echo "<table cellpadding=\"5\">";
 
     $definitions = get_records('quiz_dataset_definitions',
                                'category',
@@ -86,7 +86,7 @@
             $definition = NULL;
         }
 
-        echo "<tr><td align=right>";
+        echo "<tr><td align=\"right\">";
         print_string("itemdefinition", "quiz");
         echo ":</td><td>";
         echo "<input name=\"name[]\" type=\"text\" size=\"20\" value=\"$definition->name\" />";
@@ -96,7 +96,7 @@
         echo "</td></tr>\n";
     }
 
-    echo "<tr><td align=\"CENTER\" colspan=\"3\"><input type=submit value=\"".get_string("continue")."\" /></td></tr>";
+    echo "<tr><td align=\"CENTER\" colspan=\"3\"><input type=\"submit\" value=\"".get_string("continue")."\" /></td></tr>";
     echo "</table>";
     echo "</form>";
     print_simple_box_end();
index 3bbff7b399e242c3ebda10ccc798ea6329fd1edf..c12312624782bec1d28e9a10cec40bad036dc9ec 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 // Allows a teacher to create, edit and delete datasets
 
         $columns = array();
         if ($maxnumber == $number) {
             $columns[] =
-                    "<INPUT TYPE=\"hidden\" name=\"numbertodelete\" value=\"$number\"/>
-                     <INPUT TYPE=\"submit\" name=\"deletebutton\" value=\"$strdelete\"/>";
+                    "<input type=\"hidden\" name=\"numbertodelete\" value=\"$number\"/>
+                     <input type=\"submit\" name=\"deletebutton\" value=\"$strdelete\"/>";
         } else {
             $columns[] = '';
         }
         $columns[] = $number;
         foreach ($datasetdefs as $datasetdef) {
             $columns[] =
-                    '<INPUT TYPE="hidden" name="itemid[]" value="'. $datasetdef->items[$number]->id .'"/>'
-                    . "<INPUT TYPE=\"hidden\" name=\"number[]\" value=\"$number\"/>
-                    <INPUT TYPE=\"hidden\" name=\"definition[]\" value=\"$datasetdef->id\"/>"
+                    '<input type="hidden" name="itemid[]" value="'. $datasetdef->items[$number]->id .'"/>'
+                    . "<input type=\"hidden\" name=\"number[]\" value=\"$number\"/>
+                    <input type=\"hidden\" name=\"definition[]\" value=\"$datasetdef->id\"/>"
                     . // Set $data:
                     ($data[$datasetdef->name] = $datasetdef->items[$number]->value) ;
 
             $force = '';
             $reuse = ' checked="checked" ';
         }
-        $forceregeneration = '<br/><INPUT type="radio" name="forceregeneration" '
+        $forceregeneration = '<br/><input type="radio" name="forceregeneration" '
                 . $reuse . ' value="0"/>' . $strreuseifpossible
-                . '<br/><INPUT type="radio" name="forceregeneration" value="1" '
+                . '<br/><input type="radio" name="forceregeneration" value="1" '
                 . $force . ' />' . $strforceregeneration;
     } else {
         $forceregeneration = '';
     }
-    $addline = array('<INPUT TYPE="hidden" name="numbertoadd" value="'
+    $addline = array('<input type="hidden" name="numbertoadd" value="'
             . ($maxnumber+1)
-            . "\"/><INPUT TYPE=\"submit\" name=\"addbutton\" value=\"$stradd\"/>"
+            . "\"/><input type=\"submit\" name=\"addbutton\" value=\"$stradd\"/>"
             . $forceregeneration
             , $maxnumber+1);
     foreach ($datasetdefs as $datasetdef) {
             }
 
             $addline[] = 
-                    '<INPUT TYPE="hidden" name="itemid[]" value="'.$itemid.'"/>'
-                    . "<INPUT TYPE=\"hidden\" name=\"definition[]\" value=\"$datasetdef->id\"/>"
+                    '<input type="hidden" name="itemid[]" value="'.$itemid.'"/>'
+                    . "<input type=\"hidden\" name=\"definition[]\" value=\"$datasetdef->id\"/>"
                     . ( 2 != $datasetdef->type
-                      ? '<INPUT TYPE="text" size="20" name="value[]" value="'
+                      ? '<input type="text" size="20" name="value[]" value="'
                             . $itemvalue
                             . '"/>'
                       : choose_from_menu($coursefiles, 'value[]',
 // Print form for adding one more dataset
     $addtable->align = $table->align;
     $addtable->data = array($addline);
-    echo "<FORM NAME=\"addform\" METHOD=\"post\" ACTION=\"question.php\">
-            <INPUT TYPE=\"hidden\" NAME=\"regenerateddefid\" VALUE=\"0\"/>
-            <INPUT TYPE=\"hidden\" NAME=\"id\" VALUE=\"$question->id\"/>
-            <INPUT TYPE=\"hidden\" NAME=\"editdatasets\" VALUE=\"1\"/>";
+    echo "<form name=\"addform\" method=\"post\" action=\"question.php\">
+            <input type=\"hidden\" name=\"regenerateddefid\" value=\"0\"/>
+            <input type=\"hidden\" name=\"id\" value=\"$question->id\"/>
+            <input type=\"hidden\" name=\"editdatasets\" value=\"1\"/>";
     print_table($addtable);
-    echo '</FORM>';
+    echo '</form>';
     
 // Print form with current datasets
     if ($table->data) {
-        echo "<FORM METHOD=\"post\" ACTION=\"question.php\">
-            <INPUT TYPE=\"hidden\" NAME=\"id\" VALUE=\"$question->id\"/>
-            <INPUT TYPE=\"hidden\" NAME=\"editdatasets\" VALUE=\"1\"/>";
+        echo "<form method=\"post\" action=\"question.php\">
+            <input type=\"hidden\" name=\"id\" value=\"$question->id\"/>
+            <input type=\"hidden\" name=\"editdatasets\" value=\"1\"/>";
         print_table($table);
-        echo '</FORM>';
+        echo '</form>';
     }
 
-    echo "<center><BR><BR><FORM METHOD=\"get\" ACTION=\"edit.php\"><INPUT TYPE=\"hidden\" NAME=\"question\" VALUE=\"$question->id\"/><INPUT TYPE=submit NAME=backtoquiz VALUE=\"$strbacktoquiz\"></FORM></center>\n";
+    echo "<center><br><br><form method=\"get\" action=\"edit.php\"><input type=\"hidden\" name=\"question\" value=\"$question->id\"/><input type=\"submit\" name=\"backtoquiz\" value=\"$strbacktoquiz\"></form></center>\n";
 
     print_footer();
 
index df269be04ab57eac3d46eea0f90e25f164c095f9..cfc6af576194309801befc8dc679bba344799737 100644 (file)
@@ -1,58 +1,58 @@
-<FORM name="theform" method="post" action="question.php">
-<CENTER>
-<INPUT type="hidden" name="nextwizardpage" value="calculated.html"/>
-<TABLE cellpadding=5>
+<form name="theform" method="post" action="question.php">
+<center>
+<input type="hidden" name="nextwizardpage" value="calculated.html"/>
+<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>
+<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>
+<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>
+<tr>
+<td colspan="4"><?php print_string('nopossibledatasets', 'quiz') ?>
+<input type="hidden" name="dataset[]" value="0"/>
+</td>
+</tr>
 <?php } ?>
-<TR valign=top>
-    <TD/>
-    <TD/>
-    <TD/>
-    <TD>
-        <INPUT type="hidden" name="name"               value="<?php  p($question->name) ?>" />
-        <INPUT type="hidden" name="questiontext"       value="<?php  p($question->questiontext) ?>" />
-        <INPUT type="hidden" name="questiontextformat" value="<?php  p($question->questiontextformat) ?>" />
-        <INPUT type="hidden" name="image"              value="<?php  p($question->image) ?>" />
+<tr valign="top">
+    <td/>
+    <td/>
+    <td/>
+    <td>
+        <input type="hidden" name="name"               value="<?php  p($question->name) ?>" />
+        <input type="hidden" name="questiontext"       value="<?php  p($question->questiontext) ?>" />
+        <input type="hidden" name="questiontextformat" value="<?php  p($question->questiontextformat) ?>" />
+        <input type="hidden" name="image"              value="<?php  p($question->image) ?>" />
         <?php foreach ($answers as $answer) { ?>
-        <INPUT type="hidden" name="answer[]"              value="<?php  p($answer->answer) ?>" />
-        <INPUT type="hidden" name="fraction[]"            value="<?php  p($answer->fraction) ?>" />
-        <INPUT type="hidden" name="feedback[]"            value="<?php  p($answer->feedback) ?>" />
-        <INPUT type="hidden" name="tolerance[]"           value="<?php  p($answer->tolerance) ?>" />
-        <INPUT type="hidden" name="tolerancetype[]"       value="<?php  p($answer->tolerancetype) ?>" />
-        <INPUT type="hidden" name="correctanswerlength[]" value="<?php  p($answer->correctanswerlength) ?>" />
+        <input type="hidden" name="answer[]"              value="<?php  p($answer->answer) ?>" />
+        <input type="hidden" name="fraction[]"            value="<?php  p($answer->fraction) ?>" />
+        <input type="hidden" name="feedback[]"            value="<?php  p($answer->feedback) ?>" />
+        <input type="hidden" name="tolerance[]"           value="<?php  p($answer->tolerance) ?>" />
+        <input type="hidden" name="tolerancetype[]"       value="<?php  p($answer->tolerancetype) ?>" />
+        <input type="hidden" name="correctanswerlength[]" value="<?php  p($answer->correctanswerlength) ?>" />
         <?php } ?>
         <?php foreach ($units as $unit) { ?>
-        <INPUT type="hidden" name="multiplier[]"   value="<?php  p($unit->multiplier) ?>" />
-        <INPUT type="hidden" name="unit[]"         value="<?php  p($unit->unit) ?>" />
+        <input type="hidden" name="multiplier[]"   value="<?php  p($unit->multiplier) ?>" />
+        <input type="hidden" name="unit[]"         value="<?php  p($unit->unit) ?>" />
         <?php } ?>
-    </TD>
-</TR>
-</TABLE>
+    </td>
+</tr>
+</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="submit"      value="<?php  print_string("savechanges") ?>" />
-</CENTER>
-</FORM>
+<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="submit"      value="<?php  print_string("savechanges") ?>" />
+</center>
+</form>
 
index 761b606b9f094162d0602d71a66ec20cbbf2ec1a..dc4f9c641517475128df7d47aae3f947b59d0dc3 100644 (file)
@@ -1,36 +1,36 @@
-<FORM name="theform" method="post" action="question.php">
+<form name="theform" method="post" action="question.php">
 
-<CENTER>
+<center>
 
-<TABLE cellpadding=5>
+<table cellpadding="5">
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
 
-    <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) ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<tr valign=top>
+<tr valign="top">
 
     <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font SIZE="1">
+    <p><font size="1">
 
     <?php
 
@@ -82,7 +82,7 @@
 
            } else {
 
-               echo "<div align=right>";
+               echo "<div align=\"right\">";
 
                print_string("formattexttype");
 
 
 </tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   if (empty($images)) {
 
 
     ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-</TABLE>
+</table>
 
 
 
-<INPUT type="hidden" name=id value="<?php  p($question->id) ?>" />
+<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 
-<INPUT type="hidden" name=qtype value="<?php  p($question->qtype) ?>" />
+<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
 
-<INPUT type="hidden" name=defaultgrade value="0" />
+<input type="hidden" name="defaultgrade" value="0" />
 
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
 
 
 
-</CENTER>
+</center>
 
-</FORM>
+</form>
 
index 4d7a67ee5f5cb9468da9396fe11e4a8ed536b9b4..eb2bb14539f858d26ac805badd40d43ae689d0b7 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     print_heading_with_help(get_string("editingdescription", "quiz"), "description", "quiz");
     require("description.html");
index dba6997ea66222b5dd778589b02e3cecb3339937..2e90d0a785abb39fe0ded285958889512a3d359b 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 ///////////////////
 /// DESCRIPTION ///
index d6204f03a4a53b242a73e9f119e972abe28fdf12..f96fc4e34f36f31956d6510735c890c319e91a81 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     if (!empty($question->id)) {
         $options = get_record("quiz_match", "question", $question->id);
@@ -7,7 +7,7 @@
         }
     }
     if (empty($subquestions) and empty($subanswers)) {
-        for ($i=0; $i<QUIZ_MAX_NUMBER_ANSWERS; $i++) {
+        for ($i=0; $i<quiz_MAX_NUMBER_ANSWERS; $i++) {
             $subquestions[] = "";   // Make question slots, default as blank
             $subanswers[] = "";     // Make answer slots, default as blank
         }
index d7ca373c5571d8f97cf26414daaf0e67ea5f4c7e..ad71ddaf2befdc65b7a8c58f09667aa45d3690d2 100644 (file)
@@ -1,36 +1,36 @@
-<FORM name="theform" method="post" action="question.php">
+<form name="theform" method="post" action="question.php">
 
-<CENTER>
+<center>
 
-<TABLE cellpadding=5>
+<table cellpadding="5">
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
 
-    <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) ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<tr valign=top>
+<tr valign="top">
 
     <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font SIZE="1">
+    <p><font size="1">
 
     <?php
 
@@ -82,7 +82,7 @@
 
            } else {
 
-               echo "<div align=right>";
+               echo "<div align=\"right\">";
 
                print_string("formattexttype");
 
 
 </tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   if (empty($images)) {
 
 
     ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
 
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("choices", "quiz") ?></B>:</P></TD>
+    <td align="right"><p><b><?php  print_string("choices", "quiz") ?></b>:</p></td>
 
-    <TD><P><?php  print_string("filloutthreequestions", "quiz") ?></P>
+    <td><p><?php  print_string("filloutthreequestions", "quiz") ?></p>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
 
 
-<?PHP 
+<?php 
 
     for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
 
 
 
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  echo get_string("question", "quiz")." $i";  ?> :</B></P></TD>
+    <td align="right"><p><b><?php  echo get_string("question", "quiz")." $i";  ?> :</b></p></td>
 
-    <TD>
+    <td>
 
-        <textarea name="subquestions[]" rows=5 cols=50><?php  p($subquestions[$i-1]) ?></textarea>
+        <textarea name="subquestions[]" rows="5" cols="50"><?php  p($subquestions[$i-1]) ?></textarea>
 
         <br />
 
         <?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]) ?>" />
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
 
 
-<?PHP
+<?php
 
     }
 
 
 
 
-</TABLE>
+</table>
 
 
 
-<INPUT type="hidden" name=id value="<?php  p($question->id) ?>" />
+<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 
-<INPUT type="hidden" name=qtype value="<?php  p($question->qtype) ?>" />
+<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
 
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
 
 
 
-</CENTER>
+</center>
 
-</FORM>
+</form>
 
index 369f350963f9200731d5c223c26538ef4615bf58..5ca4bf877a1a6c08905ec7130e7ff9966ff9dbe3 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /////////////
 /// MATCH ///
index 0e58937b527208ef9753784cede482a547c3e316..17b1d7b1461ff56078462553d674f3d55eaa49db 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
     if ($question->questiontext and $question->id) {
         $answers = quiz_get_answers($question);
 
index 25586f7ef7368351400c17848687f4ffa90ef096..1758dd098ddeb93b23688b1edddff5c8140161b0 100644 (file)
@@ -1,46 +1,46 @@
-<FORM name="theform" method="post"  action="question.php">
+<form name="theform" method="post"  action="question.php">
 
-<CENTER>
+<center>
 
-<TABLE cellpadding=5>
+<table cellpadding="5">
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
 
-    <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) ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("question", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
         <?php  if (isset($err["questiontext"])) {
 
                formerr($err["questiontext"]); 
 
-               echo "<BR />";
+               echo "<br />";
 
            }
 
 
         ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   if (empty($images)) {
 
 
     ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-</TABLE>
+</table>
 
 
 
-<INPUT type="hidden" name=id value="<?php  p($question->id) ?>" />
+<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 
-<INPUT type="hidden" name=qtype value="<?php  p($question->qtype) ?>" />
+<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
 
-<INPUT type="hidden" name=defaultgrade value="<?php  p($question->defaultgrade) ?>" />
+<input type="hidden" name="defaultgrade" value="<?php  p($question->defaultgrade) ?>" />
 
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
 
 
 
-</CENTER>
+</center>
 
-</FORM>
+</form>
index a1e029ea3a68326a1cdf4d7e7ccb78e025e582db..fb89a42ff520f034f140592b79efe4c43cc13f40 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 ///////////////////
 /// MULTIANSWER /// (Embedded - cloze)
index 224607002d19a97b08a7909f14aa7768678609ae..cc41411266edc37e79a896a1044c3d66ff1a30cc 100644 (file)
@@ -8,7 +8,7 @@
     if (!empty($options->answers)) {
         $answersraw = get_records_list("quiz_answers", "id", $options->answers);
     }
-    for ($i=0; $i<QUIZ_MAX_NUMBER_ANSWERS; $i++) {
+    for ($i=0; $i<quiz_MAX_NUMBER_ANSWERS; $i++) {
         $answers[] = "";   // Make answer slots, default as blank
     }
     if (!empty($answersraw)) {
index a13fbb4b5fcdab3a6f83e228c260716477571e34..c239a6b540893876e57a9420eda20aab2ff31930 100644 (file)
@@ -1,36 +1,36 @@
-<FORM name="theform" method="post" action="question.php">
+<form name="theform" method="post" action="question.php">
 
-<CENTER>
+<center>
 
-<TABLE cellpadding=5>
+<table cellpadding="5">
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
 
-    <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) ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<tr valign=top>
+<tr valign="top">
 
     <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font SIZE="1">
+    <p><font size="1">
 
     <?php
 
@@ -82,7 +82,7 @@
 
            } else {
 
-               echo "<div align=right>";
+               echo "<div align=\"right\">";
 
                print_string("formattexttype");
 
 
 </tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   if (empty($images)) {
 
 
     ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("answerhowmany", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("answerhowmany", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php 
 
 
      ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
 
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("choices", "quiz") ?></B>:</P></TD>
+    <td align="right"><p><b><?php  print_string("choices", "quiz") ?></b>:</p></td>
 
-    <TD><P><?php  print_string("fillouttwochoices", "quiz") ?></P>
+    <td><p><?php  print_string("fillouttwochoices", "quiz") ?></p>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
 
 
-<?PHP 
+<?php 
 
     for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
 
 
 ?>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  echo get_string("choice", "quiz")." $i";  ?>:</B></P></TD>
+    <td align="right"><p><b><?php  echo get_string("choice", "quiz")." $i";  ?>:</b></p></td>
 
-    <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) ?>" />&nbsp;&nbsp;
 
         <?php  print_string("grade");
 
 
            choose_from_menu($gradeoptionsfull, "fraction[]", $answers[$i-1]->fraction, ""); ?>
 
-        <BR>
+        <br>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("feedback", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?>:</b></p></td>
 
-    <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" wrap="virtual"><?php  p($answers[$i-1]->feedback) ?></textarea>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
 
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD colspan=2>&nbsp;</TD>
+    <td colspan="2">&nbsp;</td>
 
-</TR>
+</tr>
 
 
 
 
 ?>
 
-</TABLE>
+</table>
 
 
 
-<INPUT type="hidden" name=id value="<?php  p($question->id) ?>" />
+<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 
-<INPUT type="hidden" name=qtype value="<?php  p($question->qtype) ?>" />
+<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
 
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
 
 
 
-</CENTER>
+</center>
 
-</FORM>
+</form>
 
index c1a8a14f871ff862fdcc2560b709c1034fa60ed7..921b384409963a9d54289bf9dccdbdab86b77a00 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 ///////////////////
 /// MULTICHOICE ///
index 72c977627dd1119a97843c71dfdcb0bb27acea67..35eaddec6e76acd533e3e6915c62284858a2541c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     // This will only support one answer of the type NUMERICAL
     // However, lib.php has support for multiple answers
index 359fafc4d10b569e1f0ae4c53c3bc5a65c089bba..772b6bafd60a00974fc753b643b07911faa049ed 100644 (file)
@@ -1,25 +1,25 @@
-<FORM name="theform" method="post" action="question.php">
-<CENTER>
-<TABLE cellpadding=5>
-<TR valign=top>
-    <TD align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
-    <TD>
+<form name="theform" method="post" action="question.php">
+<center>
+<table cellpadding="5">
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></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>
-        <INPUT type="text" name="name" size=50 value="<?php  p($question->name) ?>" />
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
+    <td>
+        <input type="text" name="name" size="50" value="<?php  p($question->name) ?>" />
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
-    </TD>
-</TR>
-<tr valign=top>
+    </td>
+</tr>
+<tr valign="top">
     <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
     <br />
     <br />
     <br />
-    <p><font SIZE="1">
+    <p><font size="1">
     <?php
            if ($usehtmleditor) {
                helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
@@ -40,7 +40,7 @@
            if ($usehtmleditor) {
                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)) {
         ?>
     </td>
 </tr>
-<TR valign=top>
-    <TD align=right><P><B><?php  print_string("imagedisplay", "quiz") ?>:</B></P></TD>
-    <TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
+    <td>
     <?php   if (empty($images)) {
             print_string("noimagesyet");
         } else {
             choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
         }
     ?>
-    </TD>
-</TR>
+    </td>
+</tr>
 
-<TR valign=top>
-    <TD align=right><P><B><?php  print_string("correctanswer", "quiz") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("correctanswer", "quiz") ?>:</b></p></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.
             $acceptederror = "";
         }
     ?>
-    <TD>
-        <INPUT align="LEFT" type="text" id="correct0" name="answer[]" size="20" value="<?php  p($answers[0]->answer) ?>" />&nbsp;&nbsp;
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php  print_string("acceptederror", "quiz"); ?>:</B></P></TD>
-    <TD>
-        <INPUT align="LEFT" type="text" id="acceptederror0" name="acceptederror[]" size="15" value="<?php  p($acceptederror) ?>" />&plusmn;
+    <td>
+        <input align="LEFT" type="text" id="correct0" name="answer[]" size="20" value="<?php  p($answers[0]->answer) ?>" />&nbsp;&nbsp;
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("acceptederror", "quiz"); ?>:</b></p></td>
+    <td>
+        <input align="LEFT" type="text" id="acceptederror0" name="acceptederror[]" size="15" value="<?php  p($acceptederror) ?>" />&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" />
-        <BR/>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php  print_string("feedback", "quiz") ?>:</B></P></TD>
-    <TD>
-        <textarea name="feedback[]" rows=2 cols=50 wrap="virtual"><?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>
-        <P><INPUT type="HIDDEN" name="multiplier[]" value="1.0" />
-        <INPUT align="LEFT" type="text" id="defaultunit" name="unit[]"
+        <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>
+        <textarea name="feedback[]" rows="2" cols="50" wrap="virtual"><?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>
+        <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>
-    </TD>
-</TR>
-<TR valign=top>
+        <b>(<?php  print_string("optional", "quiz") ?>)</b></p>
+    </td>
+</tr>
+<tr valign="top">
 <td></td>
-<TD align=left><P><B><?php  print_string("alternativeunits", "quiz") ?>:</B></P></TD>
+<td align="left"><p><b><?php  print_string("alternativeunits", "quiz") ?>:</b></p></td>
 <td></td>
-</TR>
-<?PHP
+</tr>
+<?php
 for ($i=1; $i<count($units); $i++) {
     $unit=$units[$i];
 ?>
-<TR valign=top>
+<tr valign="top">
 <td></td>
-    <TD align=left>
-        <P><B><?php  print_string("multiplier", "quiz") ?>:</B>
-        <INPUT type="text" id="<?php  p("multiplier$i") ?>" size="10"
+    <td align="left">
+        <p><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) ?>" />
-        <B>&nbsp;&nbsp;&nbsp;<?php  print_string("unit", "quiz") ?>:</B>
-        <INPUT align="LEFT" type="text" id="<?php  p("unit$i") ?>"
+        <b>&nbsp;&nbsp;&nbsp;<?php  print_string("unit", "quiz") ?>:</b>
+        <input align="LEFT" type="text" id="<?php  p("unit$i") ?>"
                 name="unit[]"
-                size="5" value="<?php  p($unit->unit) ?>" /></P>
-    </TD>
-</TR>
-<?PHP
+                size="5" value="<?php  p($unit->unit) ?>" /></p>
+    </td>
+</tr>
+<?php
 } /// END for
 ?>
-</TABLE>
+</table>
 
-<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") ?>" />
-</CENTER>
-</FORM>
-<SCRIPT language="JAVASCRIPT">
+<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") ?>" />
+</center>
+</form>
+<script language="JAVASCRIPT">
 function determineMinAndMax() {
     // This client-side script will determine the values for min and max
     // based on the input for answer and acceptederror.
@@ -174,4 +174,4 @@ function determineMinAndMax() {
         }
     }
 }
-</SCRIPT>
+</script>
index cc3ddb763fdcbd99cfe449ad7857c5acfda9ba04..5afbd93d7030b9e3c9d45af277f6693f53d5200e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /////////////////
 /// NUMERICAL ///
index 1c67423c649ec13897fbae780f2a41262001e964..bb5f8859ca0cb8ef90b870c664ea89a48e3efa4b 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     print_heading_with_help(get_string("editingrandom", "quiz"), "random", "quiz");
     require("random.html");
index f4c5575be095f46696e0ab4a0628a2bba4fdb27d..7293c1283c529781e15e4af5043996b96a60c4ce 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 //////////////
 /// RANDOM ///
index 8b9b2e3c083105f270eaa3ce0cb08f5c94e8200c..26f2c47dcaeddbef302d9d76b097fd5bd70a0739 100644 (file)
@@ -4,11 +4,11 @@
 
 
 
-<table cellpadding=5>
+<table cellpadding="5">
 
-<tr valign=top>
+<tr valign="top">
 
-    <td align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
 
     <td>
 
@@ -18,9 +18,9 @@
 
 </tr>
 
-<tr valign=top>
+<tr valign="top">
 
-    <td align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></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) ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
 
 
 
-<input type="hidden" name=questiontext value="---" />
+<input type="hidden" name="questiontext" value="---" />
 
 
 
-<input type="hidden" name=id value="<?php  p($question->id) ?>" />
+<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 
-<input type="hidden" name=qtype value="<?php  p($question->qtype) ?>" />
+<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
 
 <input type="submit" value="<?php  print_string("savechanges") ?>" />
 
index 87045a9cab2e65a3dad6a4d68e719f2e4d312e22..7f89013d62287c6edab13923438577ec16aa79b8 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
     if (!empty($question->id)) {
         $options = get_record("quiz_randomsamatch", "question", $question->id);
     } else {
index d84cfbd8a3627f1c2f7ae1e0114666649f68fad1..06dddeb45bb56b72d302167caa04dec40bd703f5 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /////////////////////
 /// RANDOMSAMATCH ///
index 98bc22c76bc2302d802688d60dec620f9f0084fa..59d7aea26871b30c96c1bc029c03f2c6f53e5fb0 100644 (file)
@@ -1,30 +1,30 @@
-<FORM name="theform" method="post" action="question.php">
+<form name="theform" method="post" action="question.php">
 
-<CENTER>
+<center>
 
-<TABLE cellpadding=5>
+<table cellpadding="5">
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
-    <?PHP echo $categories[$question->category]; ?>
+    <?php echo $categories[$question->category]; ?>
 
-    <input type="hidden" name="category" value="<?PHP echo "$question->category"; ?>" />
+    <input type="hidden" name="category" value="<?php echo "$question->category"; ?>" />
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
-        <?PHP
+        <?php
 
            if (empty($question->name)) {
 
 
         ?>
 
-        <INPUT type="text" name="name" size=40 value="<?php  p($question->name) ?>" />
+        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<tr valign=top>
+<tr valign="top">
 
-    <td align=right><p><b><?php  print_string("introduction", "quiz") ?>:</b></p>
+    <td align="right"><p><b><?php  print_string("introduction", "quiz") ?>:</b></p>
 
     <br />
 
-    <p><font SIZE="1">
+    <p><font size="1">
 
     <?php
 
@@ -96,7 +96,7 @@
 
            } else {
 
-               echo "<div align=right>";
+               echo "<div align="right">";
 
                print_string("formattexttype");
 
 
 </tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("randomsamatchnumber", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("randomsamatchnumber", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php 
 
 
      ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-</TABLE>
+</table>
 
 
 
-<INPUT type="hidden" name=id value="<?php  p($question->id) ?>" />
+<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 
-<INPUT type="hidden" name=qtype value="<?php  p($question->qtype) ?>" />
+<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
 
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
 
 
 
-</CENTER>
+</center>
 
-</FORM>
+</form>
 
index 670830ce323bc58e69493476e517d7d021cfc27b..6c240f4d857ac09e6c853976effa409a60310dbc 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
     if (!empty($question->id)) {
         $options = get_record("quiz_shortanswer", "question", $question->id);
     } else {
@@ -7,7 +7,7 @@
     if (!empty($options->answers)) {
         $answersraw = get_records_list("quiz_answers", "id", $options->answers);
     }
-    for ($i=0; $i<QUIZ_MAX_NUMBER_ANSWERS; $i++) {
+    for ($i=0; $i<quiz_MAX_NUMBER_ANSWERS; $i++) {
         $answers[] = "";   // Make answer slots, default as blank
     }
     if (!empty($answersraw)) {
index 9a9e93242d3a01b56e5cdc0c717bebae4e2823e9..2c14d15c26750674d77abb515f712d6a25994335 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 ///////////////////
 /// SHORTANSWER ///
index 3fe70b7de92e7bb4da96a8c4f88960b214e06a3a..6f83bc9c1b032964a5a877978ad81f3d9ee4549e 100644 (file)
@@ -1,36 +1,36 @@
-<FORM name="theform" method="post" action="question.php">
+<form name="theform" method="post" action="question.php">
 
-<CENTER>
+<center>
 
-<TABLE cellpadding=5>
+<table cellpadding="5">
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
 
-    <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) ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<tr valign=top>
+<tr valign="top">
 
     <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font SIZE="1">
+    <p><font size="1">
 
     <?php
 
@@ -82,7 +82,7 @@
 
            } else {
 
-               echo "<div align=right>";
+               echo "<div align=\"right\">";
 
                print_string("formattexttype");
 
 
 </tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   if (empty($images)) {
 
 
     ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("casesensitive", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("casesensitive", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php 
 
 
      ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("correctanswers", "quiz") ?></B>:</P></TD>
+    <td align="right"><p><b><?php  print_string("correctanswers", "quiz") ?></b>:</p></td>
 
-    <TD>
+    <td>
 
-        <P><?php  print_string("filloutoneanswer", "quiz") ?></P>
+        <p><?php  print_string("filloutoneanswer", "quiz") ?></p>
 
-    </TD>
+    </td>
 
 
 
 
 
-<?PHP 
+<?php 
 
     for ($i=1; $i<=QUIZ_MAX_NUMBER_ANSWERS; $i++) {
 
 
 
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  echo get_string("answer", "quiz")." $i";  ?>:</B></P></TD>
+    <td align="right"><p><b><?php  echo get_string("answer", "quiz")." $i";  ?>:</b></p></td>
 
-    <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) ?>" />&nbsp;&nbsp;
 
         <?php  print_string("grade");
 
 
            choose_from_menu($gradeoptions, "fraction[]", $answers[$i-1]->fraction,""); ?>
 
-        <BR>
+        <br>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("feedback", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?>:</b></p></td>
 
-    <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" wrap="virtual"><?php  p($answers[$i-1]->feedback) ?></textarea>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
 
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD colspan=2>&nbsp;</TD>
+    <td colspan="2">&nbsp;</td>
 
-</TR>
+</tr>
 
 
 
-<?PHP
+<?php
 
     }
 
 
 
 
-</TABLE>
+</table>
 
 
 
-<INPUT type="hidden" name=id value="<?php  p($question->id) ?>" />
+<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 
-<INPUT type="hidden" name=qtype value="<?php  p($question->qtype) ?>" />
+<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
 
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
 
 
 
-</CENTER>
+</center>
 
-</FORM>
+</form>
 
index e113ffbed317cab1a9f7df5de83a3e9596518a39..9ffe39f6c93203be3f02f43be33360e13e7b7df7 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     if (!empty($question->id)) {
         $options = get_record("quiz_truefalse", "question", "$question->id");
index 30e8f6472ec514c05fa5d1cba8361782edc943d1..8f2416acdc1db27f26fc36f7cdc17cd04f1c20da 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /////////////////
 /// TRUEFALSE ///
@@ -142,7 +142,7 @@ class quiz_truefalse_qtype extends quiz_default_questiontype {
         echo "<input $truechecked type=\"radio\" $readonly $inputname value=\"$true->id\" />$true->answer";
         echo "</td><td $falsecorrect>";
         echo "<input $falsechecked type=\"radio\"  $readonly $inputname value=\"$false->id\" />$false->answer";
-        echo "</td></tr></table><br clear=\"all\">";// changed from CLEAR=ALL jm
+        echo "</td></tr></table><br clear=\"all\">";// changed from clear=ALL jm
         if ($quiz->feedback && isset($answers[$nameprefix])
                 && $feedback = $answers[$nameprefix]->feedback) {
            quiz_print_comment(
index a9ec8ff788024019187511c2d849bb7f8b8ce12e..92bd6c99163ccbcf2aa279ad0689db3ad9cce21b 100644 (file)
@@ -1,36 +1,36 @@
-<FORM name="theform" method="post" action="question.php">
+<form name="theform" method="post" action="question.php">
 
-<CENTER>
+<center>
 
-<TABLE cellpadding=5>
+<table cellpadding="5">
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("category", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("category", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("questionname", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("questionname", "quiz") ?>:</b></p></td>
 
-    <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) ?>" />
 
         <?php  if (isset($err["name"])) formerr($err["name"]); ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<tr valign=top>
+<tr valign="top">
 
     <td align="right"><p><b><?php  print_string("question", "quiz") ?>:</b></p>
 
@@ -40,7 +40,7 @@
 
     <br />
 
-    <p><font SIZE="1">
+    <p><font size="1">
 
     <?php
 
@@ -82,7 +82,7 @@
 
            } else {
 
-               echo "<div align=right>";
+               echo "<div align=\"right\">";
 
                print_string("formattexttype");
 
 
 </tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("imagedisplay", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("imagedisplay", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
     <?php   if (empty($images)) {
 
 
     ?>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
 
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("correctanswer", "quiz") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("correctanswer", "quiz") ?>:</b></p></td>
 
-    <TD>
+    <td>
 
         <?php  $menu[0] = get_string("false", "quiz");
 
 
            choose_from_menu($menu, "answer", "$question->answer", ""); ?>
 
-        <BR>
+        <br>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("feedback", "quiz") ?> (<?php  print_string("true", "quiz") ?>):</B></P></TD>
+    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?> (<?php  print_string("true", "quiz") ?>):</b></p></td>
 
-    <TD>
+    <td>
 
-        <textarea name="feedbacktrue" rows=2 cols=50 wrap="virtual"><?php  p($true->feedback) ?></textarea>
+        <textarea name="feedbacktrue" rows="2" cols="50" wrap="virtual"><?php  p($true->feedback) ?></textarea>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-<TR valign=top>
+<tr valign="top">
 
-    <TD align=right><P><B><?php  print_string("feedback", "quiz") ?> (<?php  print_string("false", "quiz") ?>):</B></P></TD>
+    <td align="right"><p><b><?php  print_string("feedback", "quiz") ?> (<?php  print_string("false", "quiz") ?>):</b></p></td>
 
-    <TD>
+    <td>
 
-        <textarea name="feedbackfalse" rows=2 cols=50 wrap="virtual"><?php  p($false->feedback) ?></textarea>
+        <textarea name="feedbackfalse" rows="2" cols="50" wrap="virtual"><?php  p($false->feedback) ?></textarea>
 
-    </TD>
+    </td>
 
-</TR>
+</tr>
 
-</TABLE>
+</table>
 
 
 
-<INPUT type="hidden" name=id value="<?php  p($question->id) ?>" />
+<input type="hidden" name="id" value="<?php  p($question->id) ?>" />
 
-<INPUT type="hidden" name=qtype value="<?php  p($question->qtype) ?>" />
+<input type="hidden" name="qtype" value="<?php  p($question->qtype) ?>" />
 
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
 
 
 
-</CENTER>
+</center>
 
-</FORM>
+</form>
 
index 74583a91c056e9555fb419f183d83a8147ca2914..af1a11be6e8e3c666f9414f1e1b3e4420c81cdeb 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
       // This function fetches files from the data directory
       // Syntax:   quizfile.php/quiz id/question id/dir/.../dir/filename.ext
       // It is supposed to be used by the quiz module only
index c7c1053a4d9743319fddd4cb5965eac71ba96fe9..c2fa5c7b6f7d56dabd4effbdef0ccf424ac3d05c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 // This script uses installed report plugins to print quiz reports
 
@@ -51,7 +51,7 @@
         $strreport  = get_string("report", "quiz");
     
         print_header_simple("$quiz->name", "",
-                     "<A HREF=index.php?id=$course->id>$strquizzes</A
+                     "<a href=\"index.php?id=$course->id\">$strquizzes</a
                       -> <a href=\"view.php?id=$cm->id\">$quiz->name</a> -> $strreport", 
                      "", "", true, update_module_button($cm->id, $course->id, $strquiz), navmenu($course, $cm));
     
@@ -69,7 +69,7 @@
             }
         }
 
-        echo "<table cellpadding=10 align=center><tr>";
+        echo "<table cellpadding=\"10\" align=\"center\"><tr>";
         foreach ($reportlist as $report) {
             $strreport = get_string("report$report", "quiz");
             if ($report == $mode) {
index 083ec06a017b4bebc7c9d8f91b544af1da24f888..48f9f2920715bff6299a346f7a8975361451cd1c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 
 ////////////////////////////////////////////////////////////////////
 /// Default class for report plugins                            
index 6b7a5c79216830055dca63c433b6f3225401e1f1..8ad17a562dcc28dafce32327157f9c2440b31892 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP  // $Id: report.php,
+<?php  // $Id: report.php,
 //  created from the above 2003/11/20 by Tom Robb tom@robb.net
 // Version 2.5  Modified 2004/01/18
 //  Further errorsin percentage calculations corrected
@@ -657,7 +657,7 @@ class quiz_report extends quiz_default_report {
         }
         ////////--------------------------- If it falls through both of the $download choices, print on screen
     //Print user responses
-    print ("<table border=1 align=center width=95% cellpadding=2 cellspacing=0>\n");
+    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>");
     qr_print_headers($data_tally,"$strname","$strgrade");
@@ -674,23 +674,23 @@ class quiz_report extends quiz_default_report {
                 //else the data to be printed is in $thisitem['data'] and $thisitem['score'] == 1 shows that the item was correct
                     if ($thisitem['score'] < 1) {$thiscolor = "ff0000";} else {$thiscolor = "000000";}
                     if ($thisitemkey == 0){
-                        print("<th align='left'>$thisitem&nbsp;</th>");
+                        print("<th align=\"left\">$thisitem&nbsp;</th>");
                     } elseif ($thisitemkey == 1){
-                        print("<td align='right'>&nbsp;$thisitem%&nbsp;&nbsp;</td>");
+                        print("<td align=\"right\">&nbsp;$thisitem%&nbsp;&nbsp;</td>");
                     } elseif ($thisitemkey['qtype'] == 2){
                         print("<td>&nbsp;&nbsp;$thisitem[data][answer]&nbsp;&nbsp;</td>");
                     } elseif ($thisitem['qtype'] == 5) {
                         if ($thisitem['score'] == 1) {$thiscolor = "blue";}
                         if(!$thisitem['data'][1]){$thisitem['data'][1]="($strnoresponse)";}
-                        print("<td align=center><font size=-2>{$thisitem['data'][0]}<br /><font color='$thiscolor'>{$thisitem['data'][1]}</font></font></td>");
+                        print("<td align=\"center\"><font size=\"-2\">{$thisitem['data'][0]}<br /><font color='$thiscolor'>{$thisitem['data'][1]}</font></font></td>");
                     } elseif  ($thisitem['qtype'] == 3) {
                         if ($showtext) {
-                            print("<td align=center><font color='$thiscolor' size=-2>&nbsp;&nbsp;{$thisitem['data']}&nbsp;&nbsp;</font></td>");
+                            print("<td align=\"center\"><font color='$thiscolor' size=\"-2\">&nbsp;&nbsp;{$thisitem['data']}&nbsp;&nbsp;</font></td>");
                         } else {
-                            print("<td align=center><font color='$thiscolor'>&nbsp;&nbsp;{$thisitem['data']}&nbsp;&nbsp;</font></td>");
+                            print("<td align=\"center\"><font color='$thiscolor'>&nbsp;&nbsp;{$thisitem['data']}&nbsp;&nbsp;</font></td>");
                         }
                     } else {
-                        print("<td align=center><font color='$thiscolor'>&nbsp;&nbsp;{$thisitem['data']}&nbsp;&nbsp;</font></td>");
+                        print("<td align=\"center\"><font color='$thiscolor'>&nbsp;&nbsp;{$thisitem['data']}&nbsp;&nbsp;</font></td>");
                     }
                 }
             }
@@ -705,44 +705,44 @@ class quiz_report extends quiz_default_report {
     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 ("<p><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>");
+    print("<tr><th colspan=\"2\" align=\"right\">$strcorrresp:</th>");
     foreach ($qs_in_order as $qid){
         if ($quests[$qid]['qtype'] == 5) {
             foreach($match_answers[$qid] as $thisans){
-                print("<th align='center'>&nbsp;$thisans&nbsp;</th>");
+                print("<th align=\"center\">&nbsp;$thisans&nbsp;</th>");
             }
         } else {
-            print("<th align='center'>&nbsp;{$quests[$qid]['correct']}&nbsp;</th>");
+            print("<th align=\"center\">&nbsp;{$quests[$qid]['correct']}&nbsp;</th>");
         }
     }
     print("</tr>\n");
 
     //display a row for each possible multiple choice with $max_choices being highest row,$table_colcount is the width
     for ($i = 1; $i<= $max_choices;$i++){
-        print("<tr valign=top><th colspan=2 align=right>&nbsp;M/C #$i</td>");
+        print("<tr valign=\"top\"><th colspan=\"2\" align=\"right\">&nbsp;M/C #$i</td>");
         //display answer tallies
         for ($j = 1; $j <= $table_colcount; $j++){
            //substitute "<br />" for a "//"
            $nowdata = $analysis[$i][$j];
            if (strpos($nowdata,"//")>0) {$nowdata = str_replace("//","<br />",$nowdata);}
-           print("<td align='center'>&nbsp;$nowdata</td>");
+           print("<td align=\"center\">&nbsp;$nowdata</td>");
         
         }
     }
     print("</tr>\n");
     //Display the total percent correct
-    print("<tr valign=top><th align=right colspan=2>$strpercentcorrect:</th>");
+    print("<tr valign=\"top\"><th align=\"right\" colspan=\"2\">$strpercentcorrect:</th>");
 
     for ($i = 0; $i< $table_colcount;$i++){
         print ("<th>{$pct_correct[$i]}</th> ");
     }
     print("</tr>\n");
     //Finally display the itemanalysis
-    print("<tr valign=top valign='middle'><th align=right colspan=2>");
+    print("<tr valign=\"top\" valign=\"middle\"><th align=\"right\" colspan=\"2\">");
     helpbutton("discrimination", "", "quiz");
     print(" $strdiscrimination:</th>");
     for ($i = 1; $i<= $table_colcount;$i++){
@@ -753,30 +753,30 @@ class quiz_report extends quiz_default_report {
         } else {
             $val = 0;
         }
-        print ("<th valign='middle'><font size=-1>$val ({$top_scores[$i]}/{$bott_scores[$i]})</font></th> ");
+        print ("<th valign=\"middle\"><font size=\"-1\">$val ({$top_scores[$i]}/{$bott_scores[$i]})</font></th> ");
     }
     print("</tr>\n");
     print("</table>\n");
 
     //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 ("<p><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");
+    print("<tr><th colspan=\"3\">QUIZ: $quiz->name&nbsp;&nbsp; -- &nbsp;&nbsp;$strlistitems$ws</th></tr>\n");
     $qcount = 0;
     $itemcount = 0; //needed since matching Qs adds additional columns of data in $analysis
     foreach ($qs_in_order as $qid){
         $qcount++;
         if ($quests[$qid]['qtype']==5) { $itemcount = $itemcount + $match_number[$qid];} else {$itemcount++;}
-        print("<tr valign=top><th  width='10%'>Q-$qcount</th><td colspan=2>{$quests[$qid]['qtext']}</td></tr>\n");
+        print("<tr valign=\"top\"><th  width='10%'>Q-$qcount</th><td colspan=\"2\">{$quests[$qid]['qtext']}</td></tr>\n");
         if($quests[$qid]['qtype']==3){
             $nowchoices = $quests[$qid]['choice'];
             foreach($nowchoices as $thischoice){
                 $cno = $thischoice['choiceno'];
                 $nowstat =  $analysis[$cno][$itemcount];
                 $pct_cor = qr_make_pct($nowstat,$total_user_count);
-                print("<tr valign=top><td align='right' width='10%'>$nowstat ($pct_cor%)&nbsp;</td>");
-                print("<td width='5%' align='center'><b>A-$cno</b></td><td>{$thischoice['answer']}</td></tr>\n");
+                print("<tr valign=\"top\"><td align=\"right\" width=\"10%\">$nowstat ($pct_cor%)&nbsp;</td>");
+                print("<td width=\"5%\" align=\"center\"><b>A-$cno</b></td><td>{$thischoice['answer']}</td></tr>\n");
             }
         }
         if($quests[$qid]['qtype']==2){
@@ -785,21 +785,21 @@ class quiz_report extends quiz_default_report {
             $colpos = strpos($nowstat,":");
             $nowresp = substr($nowstat,$colpos+1);
             $pct_cor = qr_make_pct($nowresp,$total_user_count);
-            print("<tr valign=top><td align='right'>$nowresp ($pct_cor%)&nbsp;</td>");
-            print("<td colspan=2 align=left>True</td></tr>\n");
+            print("<tr valign=\"top\"><td align=\"right\">$nowresp ($pct_cor%)&nbsp;</td>");
+            print("<td colspan=\"2\" align=\"left\">True</td></tr>\n");
             //"False" responses
             $nowstat =  $analysis[2][$itemcount];
             $colpos = strpos($nowstat,":");
             $nowresp = substr($nowstat,$colpos+1);
             $pct_cor = qr_make_pct($nowresp,$total_user_count);
-            print("<tr valign=top><td align='right'>$nowresp ($pct_cor%)&nbsp;</td>");
-            print("<td colspan=2 align=left>False</td></tr>\n");
+            print("<tr valign=\"top\"><td align=\"right\">$nowresp ($pct_cor%)&nbsp;</td>");
+            print("<td colspan=\"2\" align=\"left\">False</td></tr>\n");
         }
     }
     print("</table>\n");
     
     echo "<br />\n";
-    echo "<table border=0 align=center><tr>\n";
+    echo "<table border=\"0\" align=\"center\"><tr>\n";
     echo "<td>";
     unset($options);
     $options["id"] = "$cm->id";
@@ -894,7 +894,7 @@ function qr_print_headers($data_tally,$nm,$gd){
     global  $qs_in_order,$qtally,$quests,$total_user_count,$match_number,$strquestion;
     $qcount = 0;
     if($nm == "Item") {
-        print("<tr><th colspan=2 align=right>$strquestion:</th>");
+        print("<tr><th colspan=\"2\" align=\"right\">$strquestion:</th>");
     } else {
         print("<tr><th>$nm</th><th width='5%'>$gd</th>");
     }
@@ -1025,20 +1025,20 @@ function qr_match_array($nowQ){
 
 function qr_match_table($resplist){
     global $quiz_matches;
-    $tbl = "\n<table border=0 cellspacing=0 cellpadding=2 align=center><tr valign='middle' align='center'>";
+    $tbl = "\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" align=\"center\"><tr valign=\"middle\" align=\"center\">";
     $resp_array = explode(",",$resplist);
     $q_cnt=0;
     foreach ($resp_array as $resp_pair){
         $q_cnt++;
         $tbl = $tbl ."<td><font size-1> $q_cnt</font></td>";
     }
-    $tbl = $tbl . "</tr>\n<tr valign=middle>";
+    $tbl = $tbl . "</tr>\n<tr valign=\"middle\">";
     foreach ($resp_array as $resp_pair){
         $resp_QA = explode("-",$resp_pair);
         if ($resp_QA[0] == $resp_QA[1]){
-          $qa = "<b> <font size=-2>{$quiz_matches[$resp_QA[0]]['Q']}</font>&nbsp;- <font color='blue' size=-2>{$quiz_matches[$resp_QA[1]]['A']}</font></b>";
+          $qa = "<b> <font size=\"-2\">{$quiz_matches[$resp_QA[0]]['Q']}</font>&nbsp;- <font color=\"blue\" size=\"-2\">{$quiz_matches[$resp_QA[1]]['A']}</font></b>";
         } else{
-          $qa = "<b><font size=-2> {$quiz_matches[$resp_QA[0]]['Q']}</font>&nbsp;- <font color='red' size=-2> {$quiz_matches[$resp_QA[1]]['A']}</font></b>";
+          $qa = "<b><font size=\"-2\"> {$quiz_matches[$resp_QA[0]]['Q']}</font>&nbsp;- <font color=\"red\" size=\"-2\"> {$quiz_matches[$resp_QA[1]]['A']}</font></b>";
         }
 //        $qa = $resp_QA[0]  . "=" . $resp_QA[1] ;
         $tbl = $tbl . "<td>$qa</td>";
index 9c60f5d191e03f62819a9116978baea7908503e2..0a10130505713beafed97718aba5ec5364673850 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 lang=\"javascript\">\n<!--\nfunction delcheck(){\n ";
         echo "if (confirm('$strreallydel')) {\n";
         echo " document.delform.del.value='all';\n return true;\n";
         echo " } else {\n";
@@ -124,7 +124,7 @@ class quiz_report extends quiz_default_report {
     
         //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 "<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\" />";
             $revurl = "review.php?q=$quiz->id&attempt=$attempt->id";
             if ($attemptgrade == $bestgrade) {
                 $userattempts[] = "$button&nbsp;<span class=\"highlight\">$attemptgrade</span>&nbsp;<a href=\"$revurl\">$attemptdate</a>&nbsp;($attemptlapse)";
index 890b74cf85547b48e7f01cd838043d39e2ec1bee..9c13cb5e5333a3e4d4f30a0d9a1a194cc87e2092 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Overview report just displays a big table of all the attempts
 
index b2e9723874e689c2d2f96b143e7349e3a9b3788d..8c82b8f3974a95a0329327919a78c8a9887e0054 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Overview report just displays a big table of all the attempts
 
@@ -642,7 +642,7 @@ class quiz_report extends quiz_default_report {
 
     /// Otherwise, display the table as HTML
 
-        echo "<table border=1 align=\"center\">";
+        echo "<table border=\"1\" align=\"center\">";
         echo "<tr>";
         echo "<td>&nbsp;</td>";
         for ($i=1; $i<=$count; $i++) {
@@ -679,7 +679,7 @@ class quiz_report extends quiz_default_report {
         echo "</table>";
 
         echo "<br />";
-        echo "<table border=0 align=center><tr>";
+        echo "<table border=\"0\" align=\"center\"><tr>";
         echo "<td>";
         unset($options);
         $options["id"] = "$cm->id";
index cc8da679bdf5c0176a17bf120f3c95ed16e3bf83..9808b58fdf5afc99bc0db1abc2c2f23ff7b3c50e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //quiz mods
 
index e5ba48552ce67da628998a960f150692f5922e7c..72383cfb0c82c0ca18e2cfca00f1ba16dd2fb3f9 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 // This page prints a review of a particular quiz attempt
 
@@ -73,7 +73,7 @@
     $stroverdue = get_string("overdue", "quiz");
 
     print_header_simple("$quiz->name", "",
-                 "<A HREF=index.php?id=$course->id>$strquizzes</A
+                 "<a href=\"index.php?id=$course->id\">$strquizzes</a
                   -> <a href=\"view.php?id=$cm->id\">$quiz->name</a> -> $strreview", 
                  "", "", true);
 
index c62882ee05ab6385837472be1621726dcab22758..0e8bb40ceef666b53859c8b6b6c9ab8ca917e699 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the version of quiz
index 0e358d87697f5f9e7d17d40d5b15509c95dfeca1..1f6b3bbc5f5d6cdcc18a06f7a6035c6da4cd3b8e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 // This page prints a particular instance of quiz
 
@@ -46,7 +46,7 @@
     $strquiz  = get_string("modulename", "quiz");
 
     print_header_simple("$quiz->name", "",
-                 "<A HREF=index.php?id=$course->id>$strquizzes</A> -> $quiz->name", 
+                 "<a href=\"index.php?id=$course->id\">$strquizzes</a> -> $quiz->name", 
                  "", "", true, update_module_button($cm->id, $course->id, $strquiz), navmenu($course, $cm));
 
     if (isteacher($course->id)) {
@@ -54,7 +54,7 @@
         $usercount = count_records("quiz_grades", "quiz", "$quiz->id");
         $strusers  = get_string("users");
         $strviewallanswers  = get_string("viewallanswers","quiz",$attemptcount);
-        echo "<p align=right><a href=\"report.php?id=$cm->id\">$strviewallanswers ($usercount $strusers)</a></p>";
+        echo "<p align=\"right\"><a href=\"report.php?id=$cm->id\">$strviewallanswers ($usercount $strusers)</a></p>";
     } else if (!$cm->visible) {
         notice(get_string("activityiscurrentlyhidden"));
     }
@@ -83,8 +83,8 @@
     }
 
     if ($quiz->attempts > 1) {
-        echo "<p align=center>".get_string("attemptsallowed", "quiz").": $quiz->attempts</p>";
-        echo "<p align=center>".get_string("grademethod", "quiz").": ".$QUIZ_GRADE_METHOD[$quiz->grademethod]."</p>";
+        echo "<p align=\"center\">".get_string("attemptsallowed", "quiz").": $quiz->attempts</p>";
+        echo "<p align=\"center\">".get_string("grademethod", "quiz").": ".$QUIZ_GRADE_METHOD[$quiz->grademethod]."</p>";
     } else {
         echo "<br />";
     }
             if ($quiz->grade) {
                 $attemptgrade = format_float(($attempt->sumgrades/$quiz->sumgrades)*$quiz->grade);
                 if ($attemptgrade == $mygrade) {
-                    $attemptgrade = "<span class=highlight>$attemptgrade</span>";
+                    $attemptgrade = "<span class=\"highlight\">$attemptgrade</span>";
                 }
                 if (!$available and $quiz->review) {
                     $attemptgrade = "<a href=\"review.php?q=$quiz->id&attempt=$attempt->id\">$attemptgrade</a>";
index 109192d60ddf564010eae87f75166c72b8c273ac..307888a0c60ed2a5f13769612f6e3937775b5285 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //resource mods
 
index cd195544c86ac3c16e1acf9f2c856e3923a944a0..0ca20db9137b337ec46d9b70a6463c9a95133b97 100644 (file)
@@ -1,44 +1,44 @@
 <form method="post" action="module.php" name="form">
 
-<table cellpadding=9 cellspacing=0 >
-<tr valign=top>
-       <td align=right><p>resource_framesize:</td>
+<table cellpadding="9" cellspacing="0" >
+<tr valign="top">
+       <td align="right"><p>resource_framesize:</td>
        <td>
-    <input name=resource_framesize type=text size=5 value="<?php p($CFG->resource_framesize) ?>" />
+    <input name="resource_framesize" type="text" size="5" value="<?php p($CFG->resource_framesize) ?>" />
     </td>
     <td>
     <?php print_string("configframesize", "resource") ?>
     </td>
 </tr>
-<tr valign=top>
-       <td align=right><p>resource_websearch:</td>
+<tr valign="top">
+       <td align="right"><p>resource_websearch:</td>
        <td>
-    <input name=resource_websearch type=text size=30 value="<?php p($CFG->resource_websearch) ?>" />
+    <input name="resource_websearch" type="text" size="30" value="<?php p($CFG->resource_websearch) ?>" />
     </td>
     <td>
     <?php print_string("configwebsearch", "resource") ?>
     </td>
 </tr>
-<tr valign=top>
-       <td align=right><p>resource_defaulturl:</td>
+<tr valign="top">
+       <td align="right"><p>resource_defaulturl:</td>
        <td>
-    <input name=resource_defaulturl type=text size=30 value="<?php p($CFG->resource_defaulturl) ?>" />
+    <input name="resource_defaulturl" type="text" size="30" value="<?php p($CFG->resource_defaulturl) ?>" />
     </td>
     <td>
     <?php print_string("configdefaulturl", "resource") ?>
     </td>
 </tr>
-<tr valign=top>
-       <td align=right><p>resource_secretphrase:</td>
+<tr valign="top">
+       <td align="right"><p>resource_secretphrase:</td>
        <td>
-    <input name=resource_secretphrase type=text size=30 value="<?php p($CFG->resource_secretphrase) ?>" />
+    <input name="resource_secretphrase" type="text" size="30" value="<?php p($CFG->resource_secretphrase) ?>" />
     </td>
     <td>
     <?php print_string("configsecretphrase", "resource") ?>
     </td>
 </tr>
-<tr valign=top>
-       <td align=right><p>resource_filterexternalpages:</td>
+<tr valign="top">
+       <td align="right"><p>resource_filterexternalpages:</td>
        <td>
     <?php
         unset($choices);
@@ -51,8 +51,8 @@
     <?php print_string("configfilterexternalpages", "resource") ?>
     </td>
 </tr>
-<tr valign=top>
-       <td align=right><p>resource_popup:</td>
+<tr valign="top">
+       <td align="right"><p>resource_popup:</td>
        <td>
     <?php
         unset($choices);
 </tr>
 <?php foreach ($RESOURCE_WINDOW_OPTIONS as $optionname) {
           $defaultvalue = "resource_popup$optionname";
-          echo "<tr valign=top>";
-             echo "<td align=right><p>$defaultvalue:</td>";
+          echo "<tr valign=\"top\">";
+             echo "<td align=\"right\"><p>$defaultvalue:</td>";
              echo "<td>";
           if ($optionname == "height" or $optionname == "width") {
-              echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\" />";
+              echo "<input name=$defaultvalue type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
           } else {
               choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
           }
@@ -82,8 +82,8 @@
           echo "</tr>";
       }
 ?>
-<tr valign=top>
-       <td align=right><p>resource_windowsettings:</td>
+<tr valign="top">
+       <td align="right"><p>resource_windowsettings:</td>
        <td>
     <?php
         unset($choices);
@@ -96,8 +96,8 @@
     <?php print_string("configwindowsettings", "resource") ?>
     </td>
 </tr>
-<tr valign=top>
-       <td align=right><p>resource_parametersettings:</td>
+<tr valign="top">
+       <td align="right"><p>resource_parametersettings:</td>
        <td>
     <?php
         unset($choices);
     </td>
 </tr>
 <tr>
-    <td colspan=3 align=center>
+    <td colspan="3" align="center">
        <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
 </tr>
 </table>
index 9317c1c55871c8ca5884718d299eb683ca3cf53c..a873a90d9318ac8b6edb669a9634eee1bd223c9f 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 //  Manage all uploaded files in a course file area
 
@@ -82,7 +82,7 @@
             print_heading(get_string("publicsitefileswarning"), "center", 2);
         }
 
-        echo "<table border=0 align=center cellspacing=3 cellpadding=3 width=640>";
+        echo "<table border=\"0\" align=\"center\" cellspacing=\"3\" cellpadding=\"3\" width=\"640\">";
         echo "<tr>";
         echo "<td colspan=\"2\">";
     }
                 $strmaxsize = get_string("maxsize", "", $filesize);
                 $strcancel = get_string("cancel");
 
-                echo "<P>$struploadafile ($strmaxsize) --> <B>$wdir</B>";
-                echo "<TABLE><TR><TD COLSPAN=2>";
-                echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"post\" ACTION=\"".$ME."\">";
-                echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
-                echo " <INPUT NAME=\"userfile\" TYPE=\"file\" size=\"60\" />";
-                echo " </TD><TR><TD WIDTH=10>";
-                echo " <INPUT TYPE=submit NAME=save VALUE=\"$struploadthisfile\" />";
-                echo "</FORM>";
-                echo "</TD><TD WIDTH=100%>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=\"get\">";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$struploadafile ($strmaxsize) --> <b>$wdir</b>";
+                echo "<table><tr><td colspan=\"2\">";
+                echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"".$ME."\">";
+                echo " <input type=\"hidden\" name=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
+                echo " <input name=\"userfile\" type=\"file\" size=\"60\" />";
+                echo " </td><tr><td width=\"10\">";
+                echo " <input type=\"submit\" name=\"save\" value=\"$struploadthisfile\" />";
+                echo "</form>";
+                echo "</td><td width=\"100%\">";
+                echo "<form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 foreach ($USER->filelist as $file) {
                     $fullfile = $basedir.$file;
                     if (! fulldelete($fullfile)) {
-                        echo "<BR>Error: Could not delete: $fullfile";
+                        echo "<br />Error: Could not delete: $fullfile";
                     }
                 }
                 clearfilelist();
             } else {
                 html_header($course, $wdir);
                 if (setfilelist($_POST)) {
-                    echo "<p align=center>".get_string("deletecheckwarning").":</p>";
+                    echo "<p align=\"center\">".get_string("deletecheckwarning").":</p>";
                     print_simple_box_start("center");
                     printfilelist($USER->filelist);
                     print_simple_box_end();
             if ($count = setfilelist($_POST)) {
                 $USER->fileop     = $action;
                 $USER->filesource = $wdir;
-                echo "<p align=center>";
+                echo "<p align=\"center\">";
                 print_string("selectednowmove", "moodle", $count);
                 echo "</p>";
             }
                     $oldfile = $basedir.$file;
                     $newfile = $basedir.$wdir."/".$shortfile;
                     if (!rename($oldfile, $newfile)) {
-                        echo "<P>Error: $shortfile not moved";
+                        echo "<p>Error: $shortfile not moved";
                     }
                 }
             }
                 $strcancel = get_string("cancel");
                 $strrenamefileto = get_string("renamefileto", "moodle", $file);
                 html_header($course, $wdir, "form.name");
-                echo "<P>$strrenamefileto:";
-                echo "<TABLE><TR><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\">";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=rename />";
-                echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\" />";
-                echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\" />";
-                echo " <INPUT TYPE=submit VALUE=\"$strrename\" />";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$strrenamefileto:";
+                echo "<table><tr><td>";
+                echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"rename\" />";
+                echo " <input type=\"hidden\" name=\"oldname\" value=\"$file\" />";
+                echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"$file\" />";
+                echo " <input type=\"submit\" value=\"$strrename\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 $strcancel = get_string("cancel");
                 $strcreatefolder = get_string("createfolder", "moodle", $wdir);
                 html_header($course, $wdir, "form.name");
-                echo "<P>$strcreatefolder:";
-                echo "<TABLE><TR><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
-                echo " <INPUT TYPE=text NAME=name SIZE=35 />";
-                echo " <INPUT TYPE=submit VALUE=\"$strcreate\" />";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$strcreatefolder:";
+                echo "<table><tr><td>";
+                echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
+                echo " <input type=\"text\" name=\"name\" size=\"35\" />";
+                echo " <input type=\"submit\" value=\"$strcreate\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 displaydir($wdir);
 
             } else {
-                $streditfile = get_string("edit", "", "<B>$file</B>");
+                $streditfile = get_string("edit", "", "<b>$file</b>");
                 $fileptr  = fopen($basedir.$file, "r");
                 $contents = fread($fileptr, filesize($basedir.$file));
                 fclose($fileptr);
 
                 print_heading("$streditfile");
 
-                echo "<TABLE><TR><TD COLSPAN=2>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\" $onsubmit>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-                echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\" />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=edit />";
+                echo "<table><tr><td colspan=\"2\">";
+                echo "<form action=\"".$ME."\" method=\"post\" name=\"form\" $onsubmit>";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"file\" value=\"$file\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"edit\" />";
                 print_textarea($usehtmleditor, 25, 80, 680, 400, "text", $contents);
-                echo "</TD></TR><TR><TD>";
-                echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\" />";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "</td></tr><tr><td>";
+                echo " <input type=\"submit\" value=\"".get_string("savechanges")."\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
 
                 if ($usehtmleditor) {
                     print_richedit_javascript("form", "text", "yes");
                 html_header($course, $wdir, "form.name");
 
                 if (setfilelist($_POST)) {
-                    echo "<P ALIGN=CENTER>".get_string("youareabouttocreatezip").":</P>";
+                    echo "<p align=\"center\">".get_string("youareabouttocreatezip").":</p>";
                     print_simple_box_start("center");
                     printfilelist($USER->filelist);
                     print_simple_box_end();
-                    echo "<BR>";
-                    echo "<P ALIGN=CENTER>".get_string("whattocallzip");
-                    echo "<TABLE><TR><TD>";
-                    echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
-                    echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                    echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-                    echo " <INPUT TYPE=hidden NAME=action VALUE=zip />";
-                    echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\" />";
-                    echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\" />";
-                    echo "</FORM>";
-                    echo "</TD><TD>";
-                    echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-                    echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                    echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                    echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                    echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
-                    echo "</FORM>";
-                    echo "</TD></TR></TABLE>";
+                    echo "<br />";
+                    echo "<p align=\"center\">".get_string("whattocallzip");
+                    echo "<table><tr><td>";
+                    echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
+                    echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                    echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                    echo " <input type=\"hidden\" name=\"action\" value=\"zip\" />";
+                    echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"new.zip\" />";
+                    echo " <input type=\"submit\" value=\"".get_string("createziparchive")."\" />";
+                    echo "</form>";
+                    echo "</td><td>";
+                    echo "<form action=\"".$ME."\" method=\"get\">";
+                    echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                    echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                    echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                    echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
+                    echo "</form>";
+                    echo "</td></tr></table>";
                 } else {
                     displaydir($wdir);
                     clearfilelist();
                 $strok = get_string("ok");
                 $strunpacking = get_string("unpacking", "", $file);
 
-                echo "<P ALIGN=CENTER>$strunpacking:</P>";
+                echo "<p align=\"center\">$strunpacking:</p>";
 
                 $file = basename($file);
 
                     if (!$list = $archive->extract("$basedir/$wdir")) {
                         error($archive->errorInfo(true));
                     } else {  // print some output
-                        echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
-                        echo "<tr><th align=left>$strname</th>";
-                        echo "<th align=right>$strsize</th>";
-                        echo "<th align=right>$strmodified</th>";
-                        echo "<th align=right>$strstatus</th></tr>";
+                        echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\">";
+                        echo "<tr><th align=\"left\">$strname</th>";
+                        echo "<th align=\"right\">$strsize</th>";
+                        echo "<th align=\"right\">$strmodified</th>";
+                        echo "<th align=\"right\">$strstatus</th></tr>";
                         foreach ($list as $item) {
                             echo "<tr>";
                             $item['filename'] = str_replace("$basedir/$wdir/", "", $item['filename']);
 
                 } else {                     // Use external unzip program
                     print_simple_box_start("center");
-                    echo "<PRE>";
+                    echo "<pre>";
                     $command = "cd $basedir/$wdir ; $CFG->unzip -o $file 2>&1";
                     passthru($command);
-                    echo "</PRE>";
+                    echo "</pre>";
                     print_simple_box_end();
                 }
 
-                echo "<CENTER><FORM ACTION=\"".$ME."\" METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
-                echo "</FORM>";
-                echo "</CENTER>";
+                echo "<center><form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strok\" />";
+                echo "</form>";
+                echo "</center>";
             } else {
                 displaydir($wdir);
             }
                 $strok = get_string("ok");
                 $strlistfiles = get_string("listfiles", "", $file);
 
-                echo "<P ALIGN=CENTER>$strlistfiles:</P>";
+                echo "<p align=\"center\">$strlistfiles:</p>";
                 $file = basename($file);
 
                 include_once($CFG->libdir.'/pclzip/pclzip.lib.php');
                     notify($archive->errorInfo(true));
 
                 } else {
-                    echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
-                    echo "<tr><th align=left>$strname</th><th align=right>$strsize</th><th align=right>$strmodified</th></tr>";
+                    echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\">";
+                    echo "<tr><th align=\"left\">$strname</th><th align=\"right\">$strsize</th><th align=\"right\">$strmodified</th></tr>";
                     foreach ($list as $item) {
                         echo "<tr>";
                         print_cell("left", $item['filename']);
                     }
                     echo "</table>";
                 }
-                echo "<br /><center><form action=\"".$ME."\" method=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
-                echo "</FORM>";
-                echo "</CENTER>";
+                echo "<br /><center><form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strok\" />";
+                echo "</form>";
+                echo "</center>";
             } else {
                 displaydir($wdir);
             }
@@ -636,7 +636,7 @@ function printfilelist($filelist) {
 
     foreach ($filelist as $file) {
         if (is_dir($basedir.$file)) {
-            echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=16 width=16> $file<br />";
+            echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\"> $file<br />";
             $subfilelist = array();
             $currdir = opendir($basedir.$file);
             while ($subfile = readdir($currdir)) {
@@ -648,18 +648,18 @@ function printfilelist($filelist) {
 
         } else {
             $icon = mimeinfo("icon", $file);
-            echo "<img src=\"$CFG->pixpath/f/$icon\"  height=16 width=16> $file<br />";
+            echo "<img src=\"$CFG->pixpath/f/$icon\"  height=\"16\" width=\"16\"> $file<br />";
         }
     }
 }
 
 
 function print_cell($alignment="center", $text="&nbsp;") {
-    echo "<TD ALIGN=\"$alignment\" NOWRAP>";
-    echo "<FONT SIZE=\"-1\" FACE=\"Arial, Helvetica\">";
+    echo "<td align=\"$alignment\" nowrap=\"nowrap\">";
+    echo "<font size=\"-1\" face=\"Arial, Helvetica\">";
     echo "$text";
-    echo "</FONT>";
-    echo "</TD>\n";
+    echo "</font>";
+    echo "</td>\n";
 }
 
 function displaydir ($wdir) {
@@ -703,15 +703,15 @@ function displaydir ($wdir) {
     $strchoose   = get_string("choose");
 
 
-    echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=dirform>";
-    echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";
-    echo "<TR>";
-    echo "<TH WIDTH=5></TH>";
-    echo "<TH ALIGN=left>$strname</TH>";
-    echo "<TH ALIGN=right>$strsize</TH>";
-    echo "<TH ALIGN=right>$strmodified</TH>";
-    echo "<TH ALIGN=right>$straction</TH>";
-    echo "</TR>\n";
+    echo "<form action=\"".$ME."\" method=\"post\" name=\"dirform\">";
+    echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\">";
+    echo "<tr>";
+    echo "<th width=\"5\"></th>";
+    echo "<th align=\"left\">$strname</th>";
+    echo "<th align=\"right\">$strsize</th>";
+    echo "<th align=\"right\">$strmodified</th>";
+    echo "<th align=\"right\">$straction</th>";
+    echo "</tr>\n";
 
     if ($wdir == "/") {
         $wdir = "";
@@ -730,15 +730,15 @@ function displaydir ($wdir) {
             $filesafe = rawurlencode($dir);
             $filedate = userdate(filectime($filename), "%d %b %Y, %I:%M %p");
 
-            echo "<TR>";
+            echo "<tr>";
 
-            print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\" />");
-            print_cell("left", "<A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\"><IMG SRC=\"$CFG->pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"></A> <A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</A>");
+            print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
+            print_cell("left", "<a href=\"".basename($ME)."?id=$id&wdir=$fileurl\"><img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"Folder\"></a> <a href=\"".basename($ME)."?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</a>");
             print_cell("right", "-");
             print_cell("right", $filedate);
-            print_cell("right", "<A HREF=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</A>");
+            print_cell("right", "<a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</a>");
 
-            echo "</TR>";
+            echo "</tr>";
         }
     }
 
@@ -771,9 +771,9 @@ function displaydir ($wdir) {
 
             print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
 
-            echo "<td align=left nowrap>";
+            echo "<td align=\"left\" nowrap=\"nowrap\">";
             link_to_popup_window ($ffurl, "display",
-                                  "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16 border=0 alt=\"file\">",
+                                  "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"file\">",
                                   480, 640);
             echo "<font size=\"-1\" face=\"Arial, Helvetica\">";
             link_to_popup_window ($ffurl, "display", htmlspecialchars($file), 480, 640);
@@ -792,22 +792,22 @@ function displaydir ($wdir) {
                 $edittext .= "<a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$fileurl&action=listzip\">$strlist</a> ";
             }
 
-            print_cell("right", "$edittext <A HREF=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</A>");
+            print_cell("right", "$edittext <a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</a>");
 
             echo "</tr>";
         }
     }
     echo "</table>";
-    echo "<hr width=640 align=center noshade size=1>";
+    echo "<hr width=\"640\" align=\"center\" noshade size=\"1\" />";
 
     if (empty($wdir)) {
         $wdir = "/";
     }
 
-    echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";
-    echo "<TR><TD>";
-    echo "<INPUT TYPE=hidden NAME=id VALUE=\"$id\" />";
-    echo "<INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" /> ";
+    echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\">";
+    echo "<tr><td>";
+    echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
+    echo "<input type=\"hidden\" name=\"wdir\" value=\"$wdir\" /> ";
     $options = array (
                    "move" => "$strmovetoanotherfolder",
                    "delete" => "$strdeletecompletely",
@@ -817,34 +817,34 @@ function displaydir ($wdir) {
         choose_from_menu ($options, "action", "", "$strwithchosenfiles...", "javascript:document.dirform.submit()");
     }
 
-    echo "</FORM>";
-    echo "<TD ALIGN=center>";
+    echo "</form>";
+    echo "<td align=\"center\">";
     if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) {
-        echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=paste />";
-        echo " <INPUT TYPE=submit VALUE=\"$strmovefilestohere\" />";
-        echo "</FORM>";
+        echo "<form action=\"".$ME."\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=$id />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"paste\" />";
+        echo " <input type=\"submit\" value=\"$strmovefilestohere\" />";
+        echo "</form>";
     }
-    echo "<TD ALIGN=right>";
-        echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
-        echo " <INPUT TYPE=submit VALUE=\"$strmakeafolder\" />";
-        echo "</FORM>";
-    echo "</TD>";
-    echo "<TD ALIGN=right>";
-        echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
-        echo " <INPUT TYPE=submit VALUE=\"$struploadafile\" />";
-        echo "</FORM>";
-    echo "</TD></TR>";
-    echo "</TABLE>";
-    echo "<HR WIDTH=640 ALIGN=CENTER NOSHADE SIZE=1>";
+    echo "<td align=\"right\">";
+        echo "<form action=\"".$ME."\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=$id />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
+        echo " <input type=\"submit\" value=\"$strmakeafolder\" />";
+        echo "</form>";
+    echo "</td>";
+    echo "<td align=\"right\">";
+        echo "<form action=\"".$ME."\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=$id />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
+        echo " <input type=\"submit\" value=\"$struploadafile\" />";
+        echo "</form>";
+    echo "</td></tr>";
+    echo "</table>";
+    echo "<hr width=\"640\" align=\"center\" NOSHADE size=\"1\">";
 
 }
 
index be5020bbde92a2f9bcda908e31ef9eb8c5498b1b..064724759f7cb5662bbc97f449b98f363832b2b3 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function resource_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index a86cc98b6891f22d2b4dda8576d04d08be3d9c03..6bf08b2b69f9f7ab87b4442e22664371da1532d5 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP 
+<?php 
 
 function resource_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 1caea28dd5aa7d080ff14ed8aa6830ba481a803a..9392f337ea3d429182140805874f1e4309585821 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function resource_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 5b59d5303d63ccb704a0f99ac5bc0b6fdc4a84ab..9f30c03ea5effdb498ad490ab8c694fd1e3733b0 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
     //This function provides automatic linking to
     //resources when its name (title) is found inside every Moodle text
     //It's based in the glosssary filter by Williams Castillo
@@ -94,7 +94,7 @@
 
         //Now avoid searching inside links
         $links = array();
-        preg_match_all('/<A[\s](.+?)>(.+?)<\/A>/is',$text,$list_of_links);
+        preg_match_all('/<a[\s](.+?)>(.+?)<\/A>/is',$text,$list_of_links);
         foreach (array_unique($list_of_links[0]) as $key=>$value) {
             $links['<@'.$key.'@>'] = $value;
         }
index a6468c4e87e7b339b8279515a4d700b6b753207a..0dc4f684031a951ccc635540490e8004325d8907 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
 
@@ -14,7 +14,7 @@
 
     if ($course->category) {
         require_login($course->id);
-        $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
+        $navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
     } else {
         $navigation = '';
     }
index 1dc6eb051dfd895c75c38560324b4b3b477ca822..cc3a1a1caf69e55607f11e446f26184d0ffd8c28 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 if (!isset($CFG->resource_framesize)) {
     set_config("resource_framesize", 130);
index 7d51a7165972e9e090c951004629955508023e72..100d3a927a5b23fe6a06cf188e399fc2097d0272 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //resource mods
 
index c155fa99b3022b4dabb9cd470163157f7882dad6..b9d849812e940bf0877ce4a81c8419c7776c68a8 100644 (file)
@@ -9,15 +9,15 @@
 <input type="hidden" name="instance"     value="<?php p($form->instance) ?>" />
 <input type="hidden" name="mode"         value="<?php p($form->mode) ?>" />
 
-<table cellpadding=5>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("name") ?>:</b></p></td>
+<table cellpadding="5">
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("name") ?>:</b></p></td>
     <td>
-        <input type="text" name="name" size=65 value="<?php p($form->name) ?>" />
+        <input type="text" name="name" size="65" value="<?php p($form->name) ?>" />
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("summary") ?>:</b></p>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("summary") ?>:</b></p>
      <font size="1">
      <?php
         helpbutton("summary", get_string("summary"), "resource", true, true);
index 0d7a79b47150bd2bb29dea5cef58329733e8e07e..7939af5e195bb8a0de4465e1c9c88b8ae5f61146 100644 (file)
@@ -1,12 +1,12 @@
 <tr valign="top">
-    <td align="right" nowrap>
+    <td align="right" nowrap="nowrap">
         <p><b><?php print_string("resourcetypedirectory", "resource") ?>:</b></p>
     </td>
     <td>
         <?php choose_from_menu($dirs, "reference", $form->reference, get_string("maindirectory", "resource"), '', '') ?>
     </td>
 </tr>
-<tr valign="top">                                                                                                           <td align="right" nowrap>&nbsp;
+<tr valign="top">                                                                                                           <td align="right" nowrap="nowrap">&nbsp;
     </td>
     <td>
         <p><?php print_string("directoryinfo", "resource") ?></p>
index 379699a57eb76acce9d5c4a31b791459ce62a3e3..d03ff86b13ae2d86af37b5e5b4884d5a74cf8552 100644 (file)
@@ -68,7 +68,7 @@ function display() {
             navmenu($course, $this->cm));
 
     if (isteacheredit($course->id)) {
-        echo "<div align=\"right\"><img src=\"$CFG->pixpath/i/files.gif\" height=16 width=16 alt=\"\">&nbsp".
+        echo "<div align=\"right\"><img src=\"$CFG->pixpath/i/files.gif\" height=\"16\" width=\"16\" alt=\"\">&nbsp".
             "<a href=\"$CFG->wwwroot/files/index.php?id={$course->id}&wdir=/{$resource->reference}$subdir\">".
             get_string("editfiles")."...</a></div>";
     }
index f6db2da4592c6cde71ada1c0dc12ad66c09b16e6..c3431884500c1c18e91753ec58e088da7c881891 100644 (file)
@@ -29,7 +29,7 @@
 
 
 <tr valign="top">
-    <td align="right" nowrap>
+    <td align="right" nowrap="nowrap">
         <p><b><?php echo $strfilename ?>:</b></p>
     </td>
     <td>
             var frameitem = [<?php echo $frameoption; ?>];
             var allitems = [<?php echo $alloptions; ?>];
         </script>
-        <input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?> 
+        <input type="radio" name="windowpopup" value="0" <?php echo ($windowtype != "popup") ? "checked" : "" ?> 
         onClick="lockoptions('form', 'windowpopup[0]', frameitem); 
         return lockoptions('form', 'windowpopup[1]', popupitems);" />
         <b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
         <ul>
-            <input type="hidden" name="hframepage" value=0 />
-            <input type="checkbox" name="framepage" value=1 <?php echo ($form->options == "frame") ? "checked" : "" ?> />
+            <input type="hidden" name="hframepage" value="0" />
+            <input type="checkbox" name="framepage" value="1" <?php echo ($form->options == "frame") ? "checked" : "" ?> />
             <?php print_string("frameifpossible", "resource") ?>
         </ul>
     </td>
@@ -83,7 +83,7 @@
 <tr valign="top">
     
     <td colspan="2">
-        <input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
+        <input name="windowpopup" type="radio" value="1" <?php echo ($windowtype == "popup") ? "checked" : "" ?>
         onclick="lockoptions('form', 'windowpopup[0]', frameitem); 
         return lockoptions('form', 'windowpopup[1]', popupitems);" />
         <b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
                 if ($name == "height" or $name == "width") {
                     continue;
                 }
-                echo "<input name=\"h$name\" type=hidden value=0 />";
-                echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
+                echo "<input name=\"h$name\" type="hidden" value="0" />";
+                echo "<input name=\"$name\" type="checkbox" value="1" ".$window->$name." />";
                 $stringname = "str$name";
                 echo $$stringname."<br />";
             }
         ?>
 
-        <input name="hwidth" type=hidden value=0 />
-        <input name="width" type=text size=4 value="<?php p($window->width) ?>" />
+        <input name="hwidth" type="hidden" value="0" />
+        <input name="width" type="text" size="4" value="<?php p($window->width) ?>" />
         <?php p($strwidth) ?><br />
 
-        <input name="hheight" type=hidden value=0 />
-        <input name="height" type=text size=4 value="<?php p($window->height) ?>" />
+        <input name="hheight" type="hidden" value="0" />
+        <input name="height" type="text" size="4" value="<?php p($window->height) ?>" />
         <?php p($strheight) ?><br />
         <?php
             if ($windowtype == "page") {
index 1e161e7d8d97429dcbc3d3c2b5516fa43562788c..47b126575c5291f493fc6f29b3fbfead094f15c2 100644 (file)
@@ -337,7 +337,7 @@ function display() {
     if (!empty($_GET['frameset']) and $_GET['frameset'] == "top") {
         print_header($pagetitle, $course->fullname, "$navigation <a target=\"$CFG->framename\" href=\"$fullurl\">{$resource->name}</a>", "", "", true, update_module_button($this->cm->id, $course->id, $strresource), navmenu($course, $this->cm, "parent"));
 
-        echo "<center><font size=-1>".text_to_html($resource->summary, true, false)."</font></center>";
+        echo "<center><font size=\"-1\">".text_to_html($resource->summary, true, false)."</font></center>";
         echo "</body></html>";
         exit;
     }
@@ -365,11 +365,11 @@ function display() {
             echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
             echo '        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
             echo '        width="600" height="70" id="mp3player" align="">';
-            echo "<param name=movie value=\"$CFG->wwwroot/lib/mp3player/mp3player.swf?src=$fullurl&autostart=yes\">";
-            echo '<param name=quality value=high>';
-            echo '<param name=bgcolor value="#333333">';
+            echo "<param name=\"movie\" value=\"$CFG->wwwroot/lib/mp3player/mp3player.swf?src=$fullurl&autostart=yes\">";
+            echo '<param name="quality" value="high">';
+            echo '<param name="bgcolor" value="#333333">';
             echo "<embed src=\"$CFG->wwwroot/lib/mp3player/mp3player.swf?src=$fullurl&autostart=yes\" ";
-            echo " quality=high bgcolor=\"#333333\" width=\"600\" height=\"70\" name=\"mp3player\" ";
+            echo " quality=\"high\" bgcolor=\"#333333\" width=\"600\" height=\"70\" name=\"mp3player\" ";
             echo ' type="application/x-shockwave-flash" ';
             echo ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
             echo '</embed>';
@@ -383,15 +383,15 @@ function display() {
             echo '        standby="Loading Microsoft® Windows® Media Player components..." ';
             echo '        id="msplayer" align="" type="application/x-oleobject">';
             echo "<param name=\"Filename\" value=\"$fullurl\">";
-            echo '<param name="ShowControls" value=true />';
-            echo '<param name="AutoRewind" value=true />';
-            echo '<param name="AutoStart" value=true />';
-            echo '<param name="Autosize" value=true />';
-            echo '<param name="EnableContextMenu" value=true />';
-            echo '<param name="TransparentAtStart" value=false />';
-            echo '<param name="AnimationAtStart" value=false />';
-            echo '<param name="ShowGotoBar" value=false />';
-            echo '<param name="EnableFullScreenControls" value=true />';
+            echo '<param name="ShowControls" value="true" />';
+            echo '<param name="AutoRewind" value="true" />';
+            echo '<param name="AutoStart" value="true" />';
+            echo '<param name="Autosize" value="true" />';
+            echo '<param name="EnableContextMenu" value="true" />';
+            echo '<param name="TransparentAtStart" value="false" />';
+            echo '<param name="AnimationAtStart" value="false" />';
+            echo '<param name="ShowGotoBar" value="false" />';
+            echo '<param name="EnableFullScreenControls" value="true" />';
             echo "\n<embed src=\"$fullurl\" name=\"msplayer\" type=\"$mimetype\" ";
             echo ' ShowControls="1" AutoRewind="1" AutoStart="1" Autosize="0" EnableContextMenu="1"';
             echo ' TransparentAtStart="0" AnimationAtStart="0" ShowGotoBar="0" EnableFullScreenControls="1"';
@@ -408,9 +408,9 @@ function display() {
             echo '        height="450" width="600"';
             echo '        id="quicktime" align="" type="application/x-oleobject">';
             echo "<param name=\"src\" value=\"$fullurl\" />";
-            echo '<param name="autoplay" value=true />';
-            echo '<param name="loop" value=true />';
-            echo '<param name="controller" value=true />';
+            echo '<param name="autoplay" value="true" />';
+            echo '<param name="loop" value="true" />';
+            echo '<param name="controller" value="true" />';
             echo '<param name="scale" value="aspect" />';
             echo "\n<embed src=\"$fullurl\" name=\"quicktime\" type=\"$mimetype\" ";
             echo ' height="450" width="600" scale="aspect"';
index 18a5598dfbfb0969c63513d2960f2eb6882f301f..c9d50b3a418d52c1acfd756b4141c59a7d0bb4aa 100644 (file)
@@ -27,7 +27,7 @@
 
 
 <tr valign="top">
-    <td align="right" nowrap>
+    <td align="right" nowrap="nowrap">
         <p><b><?php print_string("fulltext", "resource") ?>:</b></p><br />
         <font size="1">
             <?php  helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
@@ -65,7 +65,7 @@
             var popupitems = [<?php echo $popupoptions; ?>];
             var allitems = [<?php echo $alloptions; ?>];
         </script>
-        <input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?> 
+        <input type="radio" name="windowpopup" value="0" <?php echo ($windowtype != "popup") ? "checked" : "" ?> 
         onClick="return lockoptions('form', 'windowpopup[1]', popupitems);" />
         <b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
     </td>
@@ -74,7 +74,7 @@
 <tr valign="top">
     
     <td colspan="2">
-        <input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
+        <input name="windowpopup" type="radio" value="1" <?php echo ($windowtype == "popup") ? "checked" : "" ?>
         onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);" />
         <b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
         <ul>
                 if ($name == "height" or $name == "width") {
                     continue;
                 }
-                echo "<input name=\"h$name\" type=hidden value=0 />";
-                echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
+                echo "<input name=\"h$name\" type="hidden" value="0" />";
+                echo "<input name=\"$name\" type="checkbox" value="1" ".$window->$name." />";
                 $stringname = "str$name";
                 echo $$stringname."<br />";
             }
         ?>
 
-        <input name="hwidth" type=hidden value=0 />
-        <input name="width" type=text size=4 value="<?php p($window->width) ?>" />
+        <input name="hwidth" type="hidden" value="0" />
+        <input name="width" type="text" size="4" value="<?php p($window->width) ?>" />
         <?php p($strwidth) ?><br />
 
-        <input name="hheight" type=hidden value=0 />
-        <input name="height" type=text size=4 value="<?php p($window->height) ?>" />
+        <input name="hheight" type="hidden" value="0" />
+        <input name="height" type="text" size="4" value="<?php p($window->height) ?>" />
         <?php p($strheight) ?><br />
         <?php
             if ($windowtype == "page") {
index e1facc826636fb5da20372dd94c71eedea62b18e..da758833969537da657bd23c23aa44ad72b03f11 100644 (file)
@@ -140,7 +140,7 @@ function display() {
     
         print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "$THEME->cellcontent", "20");
     
-        echo "<center><p><font size=1>$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
+        echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
     
         print_footer($course);
     }
index 8447440a1f25f2dc9dcc3baa6e914494516385ae..ac9856230b1d5dfb221063017a05d30d5f9acb5a 100644 (file)
@@ -139,7 +139,7 @@ function display() {
         print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id), 
                          "center", "", "$THEME->cellcontent", "20");
     
-        echo "<center><p><font size=1>$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
+        echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
     
         print_footer($course);
     }
index f0e036b8ddd8061af20147dfbc02bfe300dbaa8a..78d02f4f46ef987d0c7048cad24dd13e12f69353 100644 (file)
@@ -28,7 +28,7 @@
 
 
 <tr valign="top">
-    <td align="right" nowrap>
+    <td align="right" nowrap="nowrap">
         <p><b><?php print_string("fulltext", "resource") ?>:</b></p><br />
         <font size="1">
             <?php  helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
@@ -40,7 +40,7 @@
     </td>
 </tr> 
 <tr valign="top">
-    <td align="right" nowrap>
+    <td align="right" nowrap="nowrap">
         <p><b><?php print_string("formattexttype") ?>:</b></p><br />
     </td>
     <td>
@@ -77,7 +77,7 @@
             var popupitems = [<?php echo $popupoptions; ?>];
             var allitems = [<?php echo $alloptions; ?>];
         </script>
-        <input type="radio" name="windowpopup" value=0 <?php echo ($windowtype != "popup") ? "checked" : "" ?> 
+        <input type="radio" name="windowpopup" value="0" <?php echo ($windowtype != "popup") ? "checked" : "" ?> 
         onClick="return lockoptions('form', 'windowpopup[1]', popupitems);" />
         <b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
         <?php print_string("pagedisplay", "resource") ?>
@@ -87,7 +87,7 @@
 <tr valign="top">
     
     <td colspan="2">
-        <input name="windowpopup" type=radio value=1 <?php echo ($windowtype == "popup") ? "checked" : "" ?>
+        <input name="windowpopup" type="radio" value="1" <?php echo ($windowtype == "popup") ? "checked" : "" ?>
         onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);" />
         <b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
         <?php p($strnewwindowopen) ?>
                 if ($name == "height" or $name == "width") {
                     continue;
                 }
-                echo "<input name=\"h$name\" type=hidden value=0 />";
-                echo "<input name=\"$name\" type=checkbox value=1 ".$window->$name." />";
+                echo "<input name=\"h$name\" type="hidden" value="0" />";
+                echo "<input name=\"$name\" type="checkbox" value="1" ".$window->$name." />";
                 $stringname = "str$name";
                 echo $$stringname."<br />";
             }
         ?>
 
-        <input name="hwidth" type=hidden value=0 />
-        <input name="width" type=text size=4 value="<?php p($window->width) ?>" />
+        <input name="hwidth" type="hidden" value="0" />
+        <input name="width" type="text" size="4" value="<?php p($window->width) ?>" />
         <?php p($strwidth) ?><br />
 
-        <input name="hheight" type=hidden value=0 />
-        <input name="height" type=text size=4 value="<?php p($window->height) ?>" />
+        <input name="hheight" type="hidden" value="0" />
+        <input name="height" type="text" size="4" value="<?php p($window->height) ?>" />
         <?php p($strheight) ?><br />
         <?php
             if ($windowtype == "page") {
index 9dee2d7c1fe0ad0da148dbaa440c5a4f2c489919..1db9b873e1a8a600cd1c39feb2c55406aa5af3b9 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
index e8ff0028f747c1c7bdfd3ab79d73082b2885bd92..b95519b9fdea437ef11b86b6b20e84b4459609c2 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index 8075e53da7dd6bab8f114393c2b933c9ae74a8cb..5cc60e570d42a2a70a3e2f11d0807458de201ec5 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //scorm mods
 
index ea0f464a015266ddc712b7ceb09a0e6a42ee5b4f..23e60b919fed0563f4854801e60af2ad57252169 100755 (executable)
@@ -1,8 +1,8 @@
 <form method="post" action="module.php" name="form">
 
-<table cellpadding=9 cellspacing=0 >
-<tr valign=top>
-    <td align=right><p>scorm_validate:</td>
+<table cellpadding="9" cellspacing="0" >
+<tr valign="top">
+    <td align="right"><p>scorm_validate:</td>
     <td>
     <?php
         unset($choices);
     <?php print_string("validationtype", "scorm") ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p>scorm_framesize:</td>
+<tr valign="top">
+    <td align="right"><p>scorm_framesize:</td>
     <td>
-       <input name=scorm_framesize type=text size=5 value="<?php p($CFG->scorm_framesize) ?>" />
+       <input name="scorm_framesize" type="text" size="5" value="<?php p($CFG->scorm_framesize) ?>" />
     </td>
     <td>
     <?php print_string("configframesize", "scorm") ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p>scorm_popup:</td>
+<tr valign="top">
+    <td align="right"><p>scorm_popup:</td>
     <td>
     <?php
         unset($choices);
 </tr>
 <?php foreach ($SCORM_WINDOW_OPTIONS as $optionname) {
           $defaultvalue = "scorm_popup$optionname";
-          echo "<tr valign=top>";
-             echo "<td align=right><p>$defaultvalue:</td>";
+          echo "<tr valign=\"top\">";
+             echo "<td align=\"right\"><p>$defaultvalue:</td>";
              echo "<td>";
           if ($optionname == "height" or $optionname == "width") {
-              echo "<input name=$defaultvalue type=text size=5 value=\"".$CFG->$defaultvalue."\" />";
+              echo "<input name=$defaultvalue type=\"text\" size=\"5\" value=\"".$CFG->$defaultvalue."\" />";
           } else {
               choose_from_menu ($choices, $defaultvalue, $CFG->$defaultvalue, "");
           }
@@ -61,7 +61,7 @@
       }
 ?>
 <tr>
-    <td colspan=3 align=center>
+    <td colspan="3" align="center">
        <input type="submit" value="<?php print_string("savechanges") ?>" />
     </td>
 </tr>
index ede9fce8a724659d376f2c65f5a4f8366748842b..c111014a8fcee7f33b42788d88fe8dee83471c1f 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 //  Manage ONLY ZIP & PIF uploaded files in a course file area
 
@@ -82,7 +82,7 @@
             print_heading(get_string("publicsitefileswarning"), "center", 2);
         }
 
-        echo "<table border=0 align=center cellspacing=3 cellpadding=3 width=640>";
+        echo "<table border=\"0\" align=\"center\" cellspacing=\"3\" cellpadding=\"3\" width=\"640\">";
         echo "<tr>";
         echo "<td colspan=\"2\">";
     }
                 $strmaxsize = get_string("maxsize", "", $filesize);
                 $strcancel = get_string("cancel");
 
-                echo "<P>$struploadafile ($strmaxsize) --> <B>$wdir</B>";
-                echo "<TABLE><TR><TD COLSPAN=2>";
-                echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"post\" ACTION=\"".$ME."\">";
-                echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
-                echo " <INPUT NAME=\"userfile\" TYPE=\"file\" size=\"60\" />";
-                echo " </TD><TR><TD WIDTH=10>";
-                echo " <INPUT TYPE=submit NAME=save VALUE=\"$struploadthisfile\" />";
-                echo "</FORM>";
-                echo "</TD><TD WIDTH=100%>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=\"get\">";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$struploadafile ($strmaxsize) --> <b>$wdir</b>";
+                echo "<table><tr><td colspan=\"2\">";
+                echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"".$ME."\">";
+                echo " <input type=\"hidden\" name=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
+                echo " <input name=\"userfile\" type=\"file\" size=\"60\" />";
+                echo " </td><tr><td width=\"10\">";
+                echo " <input type=\"submit\" name=\"save\" value=\"$struploadthisfile\" />";
+                echo "</form>";
+                echo "</td><td width=\"100%\">";
+                echo "<form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 foreach ($USER->filelist as $file) {
                     $fullfile = $basedir.$file;
                     if (! fulldelete($fullfile)) {
-                        echo "<BR>Error: Could not delete: $fullfile";
+                        echo "<br>Error: Could not delete: $fullfile";
                     }
                 }
                 clearfilelist();
             } else {
                 html_header($course, $wdir);
                 if (setfilelist($_POST)) {
-                    echo "<p align=center>".get_string("deletecheckwarning").":</p>";
+                    echo "<p align=\"center\">".get_string("deletecheckwarning").":</p>";
                     print_simple_box_start("center");
                     printfilelist($USER->filelist);
                     print_simple_box_end();
             if ($count = setfilelist($_POST)) {
                 $USER->fileop     = $action;
                 $USER->filesource = $wdir;
-                echo "<p align=center>";
+                echo "<p align=\"center\">";
                 print_string("selectednowmove", "moodle", $count);
                 echo "</p>";
             }
                     $oldfile = $basedir.$file;
                     $newfile = $basedir.$wdir."/".$shortfile;
                     if (!rename($oldfile, $newfile)) {
-                        echo "<P>Error: $shortfile not moved";
+                        echo "<p>Error: $shortfile not moved";
                     }
                 }
             }
                 $strcancel = get_string("cancel");
                 $strrenamefileto = get_string("renamefileto", "moodle", $file);
                 html_header($course, $wdir, "form.name");
-                echo "<P>$strrenamefileto:";
-                echo "<TABLE><TR><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\">";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=rename />";
-                echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\" />";
-                echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\" />";
-                echo " <INPUT TYPE=submit VALUE=\"$strrename\" />";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$strrenamefileto:";
+                echo "<table><tr><td>";
+                echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"rename\" />";
+                echo " <input type=\"hidden\" name=\"oldname\" value=\"$file\" />";
+                echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"$file\" />";
+                echo " <input type=\"submit\" value=\"$strrename\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 $strcancel = get_string("cancel");
                 $strcreatefolder = get_string("createfolder", "moodle", $wdir);
                 html_header($course, $wdir, "form.name");
-                echo "<P>$strcreatefolder:";
-                echo "<TABLE><TR><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
-                echo " <INPUT TYPE=text NAME=name SIZE=35 />";
-                echo " <INPUT TYPE=submit VALUE=\"$strcreate\" />";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\" />";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$strcreatefolder:";
+                echo "<table><tr><td>";
+                echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
+                echo " <input type=\"text\" name=\"name\" size=\"35\" />";
+                echo " <input type=\"submit\" value=\"$strcreate\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 displaydir($wdir);
                     
             } else {
-                $streditfile = get_string("edit", "", "<B>$file</B>");
+                $streditfile = get_string("edit", "", "<b>$file</b>");
                 $fileptr  = fopen($basedir.$file, "r");
                 $contents = fread($fileptr, filesize($basedir.$file));
                 fclose($fileptr);
 
                 print_heading("$streditfile");
 
-                echo "<TABLE><TR><TD COLSPAN=2>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=\"post\" NAME=\"form\" $onsubmit>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-                echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\" />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=edit />";
+                echo "<table><tr><td colspan=\"2\">";
+                echo "<form action=\"".$ME."\" method=\"post\" name=\"form\" $onsubmit>";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"file\" value=\"$file\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"edit\" />";
                 print_textarea($usehtmleditor, 25, 80, 680, 400, "text", $contents);
-                echo "</TD></TR><TR><TD>";
-                echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\" />";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "</td></tr><tr><td>";
+                echo " <input type=\"submit\" value=\"".get_string("savechanges")."\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
 
                 if ($usehtmleditor) { 
                     print_richedit_javascript("form", "text", "yes");
                 html_header($course, $wdir, "form.name");
 
                 if (setfilelist($_POST)) {
-                    echo "<P ALIGN=CENTER>".get_string("youareabouttocreatezip").":</P>";
+                    echo "<p align=\"center\">".get_string("youareabouttocreatezip").":</p>";
                     print_simple_box_start("center");
                     printfilelist($USER->filelist);
                     print_simple_box_end();
-                    echo "<BR>";
-                    echo "<P ALIGN=CENTER>".get_string("whattocallzip");
-                    echo "<TABLE><TR><TD>";
-                    echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=form>";
-                    echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                    echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-                    echo " <INPUT TYPE=hidden NAME=action VALUE=zip />";
-                    echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\" />";
-                    echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\" />";
-                    echo "</FORM>";
-                    echo "</TD><TD>";
-                    echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-                    echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                    echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                    echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                    echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\" />";
-                    echo "</FORM>";
-                    echo "</TD></TR></TABLE>";
+                    echo "<br>";
+                    echo "<p align=\"center\">".get_string("whattocallzip");
+                    echo "<table><tr><td>";
+                    echo "<form action=\"".$ME."\" method=\"post\" name=\"form\">";
+                    echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                    echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                    echo " <input type=\"hidden\" name=\"action\" value=\"zip\" />";
+                    echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"new.zip\" />";
+                    echo " <input type=\"submit\" value=\"".get_string("createziparchive")."\" />";
+                    echo "</form>";
+                    echo "</td><td>";
+                    echo "<form action=\"".$ME."\" method=\"get\">";
+                    echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                    echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                    echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                    echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
+                    echo "</form>";
+                    echo "</td></tr></table>";
                 } else {
                     displaydir($wdir);
                     clearfilelist();
                 $strok = get_string("ok");
                 $strunpacking = get_string("unpacking", "", $file);
 
-                echo "<P ALIGN=CENTER>$strunpacking:</P>";
+                echo "<p align=\"center\">$strunpacking:</p>";
 
                 $file = basename($file);
 
                     if (!$list = $archive->extract("$basedir/$wdir")) {
                         error($archive->errorInfo(true));
                     } else {  // print some output
-                        echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
-                        echo "<tr><th align=left>$strname</th>";
-                        echo "<th align=right>$strsize</th>";
-                        echo "<th align=right>$strmodified</th>";
-                        echo "<th align=right>$strstatus</th></tr>";
+                        echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\">";
+                        echo "<tr><th align=\"left\">$strname</th>";
+                        echo "<th align=\"right\">$strsize</th>";
+                        echo "<th align=\"right\">$strmodified</th>";
+                        echo "<th align=\"right\">$strstatus</th></tr>";
                         foreach ($list as $item) {
                             echo "<tr>";
                             $item['filename'] = str_replace("$basedir/$wdir/", "", $item['filename']);
                     
                 } else {                     // Use external unzip program
                     print_simple_box_start("center");
-                    echo "<PRE>";
+                    echo "<pre>";
                     $command = "cd $basedir/$wdir ; $CFG->unzip -o $file 2>&1";
                     passthru($command);
-                    echo "</PRE>";
+                    echo "</pre>";
                     print_simple_box_end();
                 }
 
-                echo "<CENTER><FORM ACTION=\"".$ME."\" METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
-                echo "</FORM>";
-                echo "</CENTER>";
+                echo "<center><form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strok\" />";
+                echo "</form>";
+                echo "</center>";
             } else {
                 displaydir($wdir);
             }
                 $strok = get_string("ok");
                 $strlistfiles = get_string("listfiles", "", $file);
 
-                echo "<P ALIGN=CENTER>$strlistfiles:</P>";
+                echo "<p align=\"center\">$strlistfiles:</p>";
                 $file = basename($file);
 
                 include_once($CFG->libdir.'/pclzip/pclzip.lib.php');
                     notify($archive->errorInfo(true));
 
                 } else {
-                    echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
-                    echo "<tr><th align=left>$strname</th><th align=right>$strsize</th><th align=right>$strmodified</th></tr>";
+                    echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\">";
+                    echo "<tr><th align=\"left\">$strname</th><th align=\"right\">$strsize</th><th align=\"right\">$strmodified</th></tr>";
                     foreach ($list as $item) {
                         echo "<tr>";
                         print_cell("left", $item['filename']);
                     }
                     echo "</table>";
                 }
-                echo "<br /><center><form action=\"".$ME."\" method=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir />";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel />";
-                echo " <INPUT TYPE=submit VALUE=\"$strok\" />";
-                echo "</FORM>";
-                echo "</CENTER>";
+                echo "<br /><center><form action=\"".$ME."\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=$id />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=$wdir />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strok\" />";
+                echo "</form>";
+                echo "</center>";
             } else {
                 displaydir($wdir);
             }
@@ -636,7 +636,7 @@ function printfilelist($filelist) {
 
     foreach ($filelist as $file) {
         if (is_dir($basedir.$file)) {
-            echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=16 width=16> $file<br />";
+            echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\"> $file<br />";
             $subfilelist = array();
             $currdir = opendir($basedir.$file);
             while ($subfile = readdir($currdir)) { 
@@ -648,18 +648,18 @@ function printfilelist($filelist) {
 
         } else { 
             $icon = mimeinfo("icon", $file);
-            echo "<img src=\"$CFG->pixpath/f/$icon\"  height=16 width=16> $file<br />";
+            echo "<img src=\"$CFG->pixpath/f/$icon\"  height=\"16\" width=\"16\"> $file<br />";
         }
     }
 }
 
 
 function print_cell($alignment="center", $text="&nbsp;") {
-    echo "<TD ALIGN=\"$alignment\" NOWRAP>";
-    echo "<FONT SIZE=\"-1\" FACE=\"Arial, Helvetica\">";
+    echo "<td align=\"$alignment\" nowrap=\"nowrap\">";
+    echo "<font size=\"-1\" face=\"Arial, Helvetica\">";
     echo "$text";
-    echo "</FONT>";
-    echo "</TD>\n";
+    echo "</font>";
+    echo "</td>\n";
 }
 
 function displaydir ($wdir) {
@@ -704,15 +704,15 @@ function displaydir ($wdir) {
     $strchoose   = get_string("choose");
 
 
-    echo "<FORM ACTION=\"".$ME."\" METHOD=post NAME=dirform>";
-    echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";    
-    echo "<TR>";
-    echo "<TH WIDTH=5></TH>";
-    echo "<TH ALIGN=left>$strname</TH>";
-    echo "<TH ALIGN=right>$strsize</TH>";
-    echo "<TH ALIGN=right>$strmodified</TH>";
-    echo "<TH ALIGN=right>$straction</TH>";
-    echo "</TR>\n";
+    echo "<form action=\"".$ME."\" method=\"post\" name=\"dirform\">";
+    echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\">";    
+    echo "<tr>";
+    echo "<th width=\"5\"></th>";
+    echo "<th align=\"left\">$strname</th>";
+    echo "<th align=\"right\">$strsize</th>";
+    echo "<th align=\"right\">$strmodified</th>";
+    echo "<th align=\"right\">$straction</th>";
+    echo "</tr>\n";
 
     if ($wdir == "/") {
         $wdir = "";
@@ -731,15 +731,15 @@ function displaydir ($wdir) {
             $filesafe = rawurlencode($dir);
             $filedate = userdate(filectime($filename), "%d %b %Y, %I:%M %p");
     
-            echo "<TR>";
+            echo "<tr>";
 
-            print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\" />");
-            print_cell("left", "<A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\"><IMG SRC=\"$CFG->pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"></A> <A HREF=\"".basename($ME)."?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</A>");
+            print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
+            print_cell("left", "<a href=\"".basename($ME)."?id=$id&wdir=$fileurl\"><img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"Folder\"></a> <a href=\"".basename($ME)."?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</a>");
             print_cell("right", "-");
             print_cell("right", $filedate);
-            print_cell("right", "<A HREF=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</A>");
+            print_cell("right", "<a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</a>");
     
-            echo "</TR>";
+            echo "</tr>";
         }
     }
 
@@ -772,9 +772,9 @@ function displaydir ($wdir) {
 
             print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
 
-            echo "<td align=left nowrap>";
+            echo "<td align=\"left\" nowrap=\"nowrap\">";
             link_to_popup_window ($ffurl, "display", 
-                                  "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16 border=0 alt=\"file\">", 
+                                  "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"file\">", 
                                   480, 640);
             echo "<font size=\"-1\" face=\"Arial, Helvetica\">";
             link_to_popup_window ($ffurl, "display", htmlspecialchars($file), 480, 640);
@@ -793,22 +793,22 @@ function displaydir ($wdir) {
                 $edittext .= "<a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$fileurl&action=listzip\">$strlist</a> ";
             }
 
-            print_cell("right", "$edittext <A HREF=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</A>");
+            print_cell("right", "$edittext <a href=\"".basename($ME)."?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</a>");
     
             echo "</tr>";
         }
     }
     echo "</table>";
-    echo "<hr width=640 align=center noshade size=1>";
+    echo "<hr width=\"640\" align=\"center\" noshade=\"noshade\" size=\"1\">";
 
     if (empty($wdir)) {
         $wdir = "/";
     }
 
-    echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";    
-    echo "<TR><TD>";
-    echo "<INPUT TYPE=hidden NAME=id VALUE=\"$id\" />";
-    echo "<INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" /> ";
+    echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\">";    
+    echo "<tr><td>";
+    echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
+    echo "<input type=\"hidden\" name=\"wdir\" value=\"$wdir\" /> ";
     $options = array (
                    "move" => "$strmovetoanotherfolder",
                    "delete" => "$strdeletecompletely",
@@ -818,34 +818,34 @@ function displaydir ($wdir) {
         choose_from_menu ($options, "action", "", "$strwithchosenfiles...", "javascript:document.dirform.submit()");
     }
 
-    echo "</FORM>";
-    echo "<TD ALIGN=center>";
+    echo "</form>";
+    echo "<td align=\"center\">";
     if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) {
-        echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=paste />";
-        echo " <INPUT TYPE=submit VALUE=\"$strmovefilestohere\" />";
-        echo "</FORM>";
+        echo "<form action=\"".$ME."\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=$id />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"paste\" />";
+        echo " <input type=\"submit\" value=\"$strmovefilestohere\" />";
+        echo "</form>";
     }
-    echo "<TD ALIGN=right>";
-        echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir />";
-        echo " <INPUT TYPE=submit VALUE=\"$strmakeafolder\" />";
-        echo "</FORM>";
-    echo "</TD>";
-    echo "<TD ALIGN=right>";
-        echo "<FORM ACTION=\"".$ME."\" METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id />";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\" />";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=upload />";
-        echo " <INPUT TYPE=submit VALUE=\"$struploadafile\" />";
-        echo "</FORM>";
-    echo "</TD></TR>";
-    echo "</TABLE>";
-    echo "<HR WIDTH=640 ALIGN=CENTER NOSHADE SIZE=1>";
+    echo "<td align=\"right\">";
+        echo "<form action=\"".$ME."\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=$id />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
+        echo " <input type=\"submit\" value=\"$strmakeafolder\" />";
+        echo "</form>";
+    echo "</td>";
+    echo "<td align=\"right\">";
+        echo "<form action=\"".$ME."\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=$id />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
+        echo " <input type=\"submit\" value=\"$struploadafile\" />";
+        echo "</form>";
+    echo "</td></tr>";
+    echo "</table>";
+    echo "<hr width=\"640\" align=\"center\" noshade=\"noshade\" size=\"1\">";
 
 }
 
index 12866432771aead55bc3ea739c82d8514af8c8ac..640c9d826471831b6554d62b2b549baaf4ec2fae 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function scorm_upgrade($oldversion) {
 /// This function does anything necessary to upgrade
index 4ac8e0146f126cba6879620b3fc88185187b6d69..8f594648f5658db8f6454a2c652306c27cad5283 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function scorm_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index cf30fcacacc9e6bb7b0e790d457ff94e7ef091a5..f0500a600685e3d378f88560cf550275cf11489c 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
         //
         print_simple_box_start("center", "", "$THEME->cellheading");
         echo "<table cellpadding=\"5\" align=\"center\">\n";
-        echo "    <tr><td align=\"right\" nowrap><p><b>$strname:</b></p></td><td><p>$form->name</p></a></td></tr>\n";
-        echo "    <tr><td align=\"right\" nowrap><p><b>".get_string("validation","scorm").":</b></p></td><td><p>".get_string($result,"scorm")."</p></a></td></tr>\n";
+        echo "    <tr><td align=\"right\" nowrap=\"nowrap\"><p><b>$strname:</b></p></td><td><p>$form->name</p></a></td></tr>\n";
+        echo "    <tr><td align=\"right\" nowrap=\"nowrap\"><p><b>".get_string("validation","scorm").":</b></p></td><td><p>".get_string($result,"scorm")."</p></a></td></tr>\n";
         if ($errorlogs != '') {
             $lines = round(count($errors)/4);
             if ($lines < 5) {
                 $lines = 5;
             }
-            echo "    <tr><td align=\"right\" nowrap><p><b>".get_string("errorlogs","scorm").":</b></p></td><td><textarea rows=\"".$lines."\" cols=\"30\" readonly>".$errorlogs."</textarea></a></td></tr>\n";
+            echo "    <tr><td align=\"right\" nowrap=\"nowrap\"><p><b>".get_string("errorlogs","scorm").":</b></p></td><td><textarea rows=\"".$lines."\" cols=\"30\" readonly>".$errorlogs."</textarea></a></td></tr>\n";
         }
         if (($form->mode == "update") && ($form->launch == 0) && (get_records("scorm_sco_users","scormid",$form->instance)))
-        echo "    <tr><td align=\"center\" colspan=\"2\" nowrap><p><b>".get_string("trackingloose","scorm")."</b></p></td></tr>\n";
+        echo "    <tr><td align=\"center\" colspan=\"2\" nowrap=\"nowrap\"><p><b>".get_string("trackingloose","scorm")."</b></p></td></tr>\n";
         echo "</table>\n";
         if (($result == "regular") || ($result == "found")){
             if (empty($form->auto)) {
         
 ?>
     <table cellpadding="5" align="center">
-      <tr valign=top>
-            <td align=right><p><b><?php print_string("grademethod", "scorm") ?>:</b></p></td>
+      <tr valign="top">
+            <td align="right"><p><b><?php print_string("grademethod", "scorm") ?>:</b></p></td>
             <td>
               <?php
             $options = array();
               ?>
             </td>
       </tr>
-      <tr valign=top>
-            <td align=right><p><b><?php print_string("maximumgrade") ?>:</b></p></td>
+      <tr valign="top">
+            <td align="right"><p><b><?php print_string("maximumgrade") ?>:</b></p></td>
             <td>
               <?php
             for ($i=100; $i>=1; $i--) {
               ?>
             </td>
       </tr>
-      <tr valign=top>
-        <td align=right><p><b><?php print_string("autocontinue","scorm") ?>:</b></p></td>
+      <tr valign="top">
+        <td align="right"><p><b><?php print_string("autocontinue","scorm") ?>:</b></p></td>
         <td>
         <?php
             $options = array();
         </td>
       </tr>
       <tr valign="top">
-            <td align="right" nowrap>
+            <td align="right" nowrap="nowrap">
                 <p><b><?php p($strnewwindow) ?></b></p>
             </td>
             <td>
                             echo "document.theform.auto.disabled=true;\n";
                     ?>
                 </script>
-                <input name="setnewwindow" type=hidden value=1 />
-                <input name="newwindow" type=checkbox value=1 <?php p($newwindow) ?> onclick="autowindow();return lockoptions('theform','newwindow', subitems);" /> 
+                <input name="setnewwindow" type="hidden" value="1" />
+                <input name="newwindow" type="checkbox" value="1" <?php p($newwindow) ?> onclick="autowindow();return lockoptions('theform','newwindow', subitems);" /> 
                 <?php p($strnewwindowopen) ?>
                 <ul>
                 <?php
                      }
                 ?>
 
-                <input name="hwidth" type=hidden value="0" />
-                <input name="width" type=text size=4 value="<?php p($window->width) ?>" /> <?php p($strwidth) ?><br />
-                <input name="hheight" type=hidden value="0" />
-                <input name="height" type=text size=4 value="<?php p($window->height) ?>" /> <?php p($strheight) ?><br />
+                <input name="hwidth" type="hidden" value="0" />
+                <input name="width" type="text" size="4" value="<?php p($window->width) ?>" /> <?php p($strwidth) ?><br />
+                <input name="hheight" type="hidden" value="0" />
+                <input name="height" type="text" size="4" value="<?php p($window->height) ?>" /> <?php p($strheight) ?><br />
                  <?php
                      if (!$newwindow) {
                          echo "<script>\n<!--\n";
         <input type="hidden" name="mode"    value="<?php p($form->mode) ?>" />
     <div align="center">
         <input type="submit" value="<?php print_string("savechanges") ?>" />
-        <input type="submit" name=cancel value="<?php print_string("cancel") ?>" />
+        <input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
     </div>
         </form>
 <?php
index 48f5c8b2ebfecd4dad3452fed39533a50224a465..b19568101a728a07a1785b16d7fcfe6f4cfba23c 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
 
@@ -10,7 +10,7 @@
 
     if ($course->category) {
         require_login($course->id);
-        $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
+        $navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
     } else {
         $navigation = '';
     }
                 $tt = "$scorm->section";
             }
         } else {
-            $tt = "<FONT SIZE=1>".userdate($scorm->timemodified);
+            $tt = "<font size=\"1\">".userdate($scorm->timemodified);
         }
         if (!$scorm->visible) {
            //Show dimmed if the mod is hidden
-           $table->data[] = array ($tt, "<A class=\"dimmed\" HREF=\"view.php?id=$scorm->coursemodule\">$scorm->name</A>",
+           $table->data[] = array ($tt, "<a class=\"dimmed\" href=\"view.php?id=$scorm->coursemodule\">$scorm->name</a>",
                                    text_to_html($scorm->summary) );
         } else {
            //Show normal if the mod is visible
-           $table->data[] = array ($tt, "<A HREF=\"view.php?id=$scorm->coursemodule\">$scorm->name</A>",
+           $table->data[] = array ($tt, "<a href=\"view.php?id=$scorm->coursemodule\">$scorm->name</a>",
                                    text_to_html($scorm->summary) );
         }
     }
 
-    echo "<BR>";
+    echo "<br>";
 
     print_table($table);
 
index ba6c67359a2e7dd8f69cc391f3a9e77145b42841..403f716accffa2d8e3ef5b165fc32ed4fea162cd 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of functions and constants for module scorm
 /// (replace scorm with the name of your module and delete this line)
@@ -588,7 +588,7 @@ function scorm_string_round($stringa) {
 // Crop a string to $len character and set an anchor title to the full string
     $len=11;
     if ( strlen($stringa)>$len ) {
-    return "<A name=\"\" title=\"$stringa\">".substr($stringa,0,$len-4).'...'.substr($stringa,strlen($stringa)-1,1).'</A>';
+    return "<a name=\"\" title=\"$stringa\">".substr($stringa,0,$len-4).'...'.substr($stringa,strlen($stringa)-1,1).'</a>';
     } else
     return $stringa;
 }
index 9148540b959cecbef24ab3a60feba7e57ca0b51a..a6e08600ae2b9ae217bcee1ce6141bd4fbdb7e94 100755 (executable)
 
 
 <form name="form" method="post" action="<?php echo $CFG->wwwroot ?>/mod/scorm/details.php">
-    <table cellpadding=5>
-       <tr valign=top>
-           <td align=right><p><b><?php print_string("name") ?>:</b></p></td>
+    <table cellpadding="5">
+       <tr valign="top">
+           <td align="right"><p><b><?php print_string("name") ?>:</b></p></td>
            <td>
-               <input type="text" name="name" size=50 value="<?php p($form->name) ?>" />
+               <input type="text" name="name" size="50" value="<?php p($form->name) ?>" />
            </td>
        </tr>
 <?php 
@@ -27,7 +27,7 @@
     $strchooseafile = get_string("chooseapacket", "scorm");
 ?>
        <tr valign="top">
-           <td align="right" nowrap>
+           <td align="right" nowrap="nowrap">
                <p><b><?php echo $strfilename?>:</b></p>
            </td>
            <td>
@@ -38,8 +38,8 @@
                ?>
            </td>
        </tr>
-       <tr valign=top>
-           <td align=right><p><b><?php print_string("summary") ?>:</b></p>
+       <tr valign="top">
+           <td align="right"><p><b><?php print_string("summary") ?>:</b></p>
                <font size="1">
                <?php
                    helpbutton("summary", get_string("summary"), "scorm", true, true);
            </td>
        </tr>
     </table>
-    <input type="hidden" name=course   value="<?php p($form->course) ?>" />
-    <input type="hidden" name=coursemodule     value="<?php p($form->coursemodule) ?>" />
-    <input type="hidden" name=datadir  value="<?php p($form->datadir) ?>" />
-    <input type="hidden" name=launch   value="<?php p($form->launch) ?>" />
-    <input type="hidden" name=popup    value="<?php p($form->popup) ?>" />
-    <input type="hidden" name=auto     value="<?php p($form->auto) ?>" />
+    <input type="hidden" name="course" value="<?php p($form->course) ?>" />
+    <input type="hidden" name="coursemodule"   value="<?php p($form->coursemodule) ?>" />
+    <input type="hidden" name="datadir"        value="<?php p($form->datadir) ?>" />
+    <input type="hidden" name="launch" value="<?php p($form->launch) ?>" />
+    <input type="hidden" name="popup"  value="<?php p($form->popup) ?>" />
+    <input type="hidden" name="auto"   value="<?php p($form->auto) ?>" />
     <input type="hidden" name="maxgrade"       value="<?php p($form->maxgrade) ?>" />
     <input type="hidden" name="grademethod"    value="<?php p($form->grademethod) ?>" />
-    <input type="hidden" name=section  value="<?php p($form->section) ?>" />
-    <input type="hidden" name=module   value="<?php p($form->module) ?>" />
-    <input type="hidden" name=modulename       value="<?php p($form->modulename) ?>" />
-    <input type="hidden" name=instance value="<?php p($form->instance) ?>" />
-    <input type="hidden" name=mode             value="<?php p($form->mode) ?>" />
-    <input type="hidden" name=destination      value="<?php echo $ME ?>" />
+    <input type="hidden" name="section"        value="<?php p($form->section) ?>" />
+    <input type="hidden" name="module" value="<?php p($form->module) ?>" />
+    <input type="hidden" name="modulename"     value="<?php p($form->modulename) ?>" />
+    <input type="hidden" name="instance"       value="<?php p($form->instance) ?>" />
+    <input type="hidden" name="mode"           value="<?php p($form->mode) ?>" />
+    <input type="hidden" name="destination"    value="<?php echo $ME ?>" />
     <center>
        <input type="submit" value="<?php print_string("continue") ?>" />
     </center>
index d16c81ab87368c4219b8c36d9f61e27e82c20419..470494cb67b016199fcb9d9d872a2b49c3b2d592 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// This page prints a particular instance of scorm
 /// (Replace scorm with the name of your module)
@@ -81,7 +81,7 @@
        
        echo "<table width=\"100%\">\n    <tr><td align=\"center\">".text_to_html($scorm->summary, true, false)."</td>\n";
        if ($mode == "browse")
-           echo "<td align=\"right\" width=\"10%\" nowrap>".get_string("browsemode","scorm")."</td>\n";
+           echo "<td align=\"right\" width=\"10%\" nowrap=\"nowrap\">".get_string("browsemode","scorm")."</td>\n";
        echo "     </tr>\n</table>\n";
        
        if ($scorm->popup != "") {
             print_simple_box_start("CENTER");
            echo "<table>\n";
            echo "  <tr><th>".get_string("coursestruct","scorm")."</th></tr>\n";
-           echo "  <tr><td nowrap>\n<ul class=\"scormlist\"'>\n";
+           echo "  <tr><td nowrap=\"nowrap\">\n<ul class=\"scormlist\"'>\n";
            $incomplete = false;
            if ($scoes = get_records_select("scorm_scoes","scorm='$scorm->id' AND organization='$currentorg' order by id ASC")){
                $level=0;
         }
            
        echo "<table width=\"100%\">\n    <tr>\n";
-       echo "          <td align=\"center\" nowrap>
+       echo "          <td align=\"center\" nowrap=\"nowrap\">
                     <iframe name=\"cmi\" width=\"1\" height=\"1\" src=\"cmi.php?id=$cm->id\" style=\"visibility: hidden\"></iframe>
                     <form name=\"navform\" method=\"POST\" action=\"playscorm.php?id=$cm->id\" target=\"_top\">
                        <input name=\"scoid\" type=\"hidden\" />
index ca0bc7a66fd745e12a1c80d70ce8e4cf468c2e5d..4f57bc2d2083c2475732266b86d9beb96f835b64 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 // This script uses installed report plugins to print quiz reports
 
@@ -52,7 +52,7 @@
         $strreport  = get_string("report", "scorm");
     
         print_header("$course->shortname: $scorm->name", "$course->fullname",
-                     "$navigation <A HREF=index.php?id=$course->id>$strscorms</A
+                     "$navigation <a href=\"index.php?id=$course->id\">$strscorms</a
                       -> <a href=\"view.php?id=$cm->id\">$scorm->name</a> -> $strreport", 
                      "", "", true);
     
index 7518b2bf4b3084a22dabd471ab03c636c2fce17e..672d4cd656133c159a49ff245f849e0e8e7b759a 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //reservation mods
 
index f665e38b57a062597e627581aa4e93ddd569cf78..55fa8b064bc2d0e72ec8592f3d8e76b8bdc36097 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 /////////////////////////////////////////////////////////////////////////////////
 ///  Code fragment to define the version of scorm
index 0b2849e20c7fca4037e14470d310deee37d73b18..293243ed0fad55af3031d508e922fdfb0dcb4cf8 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// This page prints a particular instance of scorm
 /// (Replace scorm with the name of your module)
@@ -72,9 +72,9 @@
         
        if (isteacher($course->id)) {
            if ($sco_users = get_records_select("scorm_sco_users", "scormid='$scorm->id' GROUP BY userid")) {
-               echo "<p align=right><a target=\"{$CFG->framename}\" href=\"report.php?id=$cm->id\">".get_string("viewallreports","scorm",count($sco_users))."</a></p>";
+               echo "<p align=\"right\"><a target=\"{$CFG->framename}\" href=\"report.php?id=$cm->id\">".get_string("viewallreports","scorm",count($sco_users))."</a></p>";
             } else {
-               echo "<p align=right>".get_string("noreports","scorm")."</p>";
+               echo "<p align=\"right\">".get_string("noreports","scorm")."</p>";
             }
        }
        // Print the main part of the page
                $orgidentifier = $org->organization;
            }
        }
-       echo "  <tr><td nowrap>\n<ul class=\"scormlist\"'>\n";
+       echo "  <tr><td nowrap=\"nowrap\">\n<ul class=\"scormlist\"'>\n";
        $incomplete = false;
        if ($scoes = get_records_select("scorm_scoes","scorm='$scorm->id' AND organization='$orgidentifier' order by id ASC")){
            $level=0;
index d3a61357103bdee2c262ce7189d3a98980d3a01a..78423af1342aae7c3254258e7a51baeafe0d6bde 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //survey mods
 
index 6ed3c66515eef9b56f1490c14e39e9e2e0d01718..b92616ec14837d748cdd60c4e690ffd1690e09a1 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function survey_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index c8d3f09c6137f041a629151831f7db7dc165bf53..b24c215d20d573829abb9604afcd51deb52e0ba8 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 function survey_upgrade($oldversion) {
 // This function does anything necessary to upgrade
 // older versions to match current functionality
index 3748daa273a4d8e9017840f4638dfac8a3c0bf1a..52fe958f930257552f6a27986d9cee657b95eaad 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function survey_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 75e3577bd1e490eafa99ccd2358d3b88141def25..b3fdde0cde23230cd71fb8b999a0b06953862df7 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
 
 
         print_simple_box_start("center", "", "$THEME->cellheading");
         ?>
-        <form name=form method=post action="<?php p($form->destination)?>">
-        <table cellpadding=5 align=center>
-        <tr><td align=right nowrap><p><b><?php print_string("name") ?>:</b></p></td>
+        <form name="form" method="post" action="<?php p($form->destination)?>">
+        <table cellpadding="5" align="center">
+        <tr><td align="right" nowrap="nowrap"><p><b><?php print_string("name") ?>:</b></p></td>
             <td><p><?php p($form->name) ?></p></a></td></tr>
 
-        <tr valign=top>
-            <td align=right nowrap>
+        <tr valign="top">
+            <td align="right" nowrap="nowrap">
                 <p><b><?php print_string("introtext", "survey") ?>:</b></p><br />
                 <font size="1">
                 <?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?> <br />
@@ -42,7 +42,7 @@
                 </font>
             </td>
             <td>
-                <textarea name="intro" rows=20 cols=50 wrap="virtual"><?php 
+                <textarea name="intro" rows="20" cols="50" wrap="virtual"><?php 
                 if ($form->intro) {
                     p($form->intro);
                 } else {
             </td>
         </tr>
         </table>
-        <input type="hidden" name=name       value="<?php p($form->name) ?>" />
-        <input type="hidden" name=template   value="<?php p($form->template) ?>" />
+        <input type="hidden" name="name"       value="<?php p($form->name) ?>" />
+        <input type="hidden" name="template"   value="<?php p($form->template) ?>" />
 
-        <input type="hidden" name=course     value="<?php p($form->course) ?>" />
-        <input type="hidden" name=coursemodule     value="<?php p($form->coursemodule) ?>" />
-        <input type="hidden" name=section       value="<?php p($form->section) ?>" />
-        <input type="hidden" name=module     value="<?php p($form->module) ?>" />
-        <input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
-        <input type="hidden" name=instance   value="<?php p($form->instance) ?>" />
-        <input type="hidden" name=mode       value="<?php p($form->mode) ?>" />
+        <input type="hidden" name="course"     value="<?php p($form->course) ?>" />
+        <input type="hidden" name="coursemodule"     value="<?php p($form->coursemodule) ?>" />
+        <input type="hidden" name="section"       value="<?php p($form->section) ?>" />
+        <input type="hidden" name="module"     value="<?php p($form->module) ?>" />
+        <input type="hidden" name="modulename" value="<?php p($form->modulename) ?>" />
+        <input type="hidden" name="instance"   value="<?php p($form->instance) ?>" />
+        <input type="hidden" name="mode"       value="<?php p($form->mode) ?>" />
         <center>
         <input type="submit" value="<?php print_string("savechanges") ?>" />
         </center>
index a434f290d1ff9925e533e954ef0e503ef7ce1805..6b396273f7edaea691ad1e99e45cb6341a502500 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require ("../../config.php");
 
index 7c3716772666e0d2d3e44a8580a94ee69825caf3..a9bf87b6964fa72cb410ddea56ef861726281e8d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("$CFG->libdir/graphlib.php");
index cf5d76cd41d4c4aec53d5adffe073b39f9228730..31f1163cd91c7caa8f695eb60e12b9a2b72caf9a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
         //Calculate the href
         if (!$survey->visible) {
             //Show dimmed if the mod is hidden
-            $tt_href = "<A class=\"dimmed\" HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>";
+            $tt_href = "<a class=\"dimmed\" href=\"view.php?id=$survey->coursemodule\">$survey->name</a>";
         } else {
             //Show normal if the mod is visible
-            $tt_href = "<A HREF=\"view.php?id=$survey->coursemodule\">$survey->name</A>";
+            $tt_href = "<a href=\"view.php?id=$survey->coursemodule\">$survey->name</a>";
         }
 
         if ($course->format == "weeks" or $course->format == "topics") {
-            $table->data[] = array ($printsection, $tt_href, "<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
+            $table->data[] = array ($printsection, $tt_href, "<a href=\"view.php?id=$survey->coursemodule\">$ss</a>");
         } else {
-            $table->data[] = array ($tt_href, "<A HREF=\"view.php?id=$survey->coursemodule\">$ss</A>");
+            $table->data[] = array ($tt_href, "<a href=\"view.php?id=$survey->coursemodule\">$ss</a>");
         }
     }
 
-    echo "<BR>";
+    echo "<br />";
     print_table($table);
     print_footer($course);
 
index c3a8a6238d9e4297b082320558e860d157a63989..687298e2e093c7ba94f55a5db9c9e3695302d3ac 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 // Graph size
 $SURVEY_GHEIGHT = 500;
@@ -166,7 +166,7 @@ function survey_print_recent_activity($course, $isteacher, $timestart) {
         print_headline(get_string("newsurveyresponses", "survey").":");
         foreach ($surveys as $survey) {
             $date = userdate($survey->time, $strftimerecent);
-            echo "<p><font size=1>$date - ".fullname($survey)."<br />";
+            echo "<p><font size=\"1\">$date - ".fullname($survey)."<br />";
             echo "\"<a href=\"$CFG->wwwroot/mod/survey/$survey->url\">";
             echo "$survey->name";
             echo "</a>\"</font></p>";
@@ -358,10 +358,10 @@ function survey_print_multi($question) {
 
     $stripreferthat = get_string("ipreferthat", "survey");
     $strifoundthat = get_string("ifoundthat", "survey");
-    echo "<P>&nbsp</P>\n";
-       echo "<P><FONT SIZE=4><B>$question->text</B></FONT></P>";
+    echo "<p>&nbsp</p>\n";
+       echo "<p><font size=\"4\"><b>$question->text</b></font></p>";
 
-       echo "<TABLE ALIGN=CENTER WIDTH=90% CELLPADDING=4 CELLSPACING=1 BORDER=0>";
+       echo "<table align=\"center\" width=\"90%\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\">";
 
     $options = explode( ",", $question->options);
     $numoptions = count($options);
@@ -374,15 +374,15 @@ function survey_print_multi($question) {
        }
    
     if ($oneanswer) { 
-        echo "<TR WIDTH=100% ><TD COLSPAN=2><P>$question->intro</P></TD>";
+        echo "<tr width=\"100%\" ><td colspan=\"2\"><p>$question->intro</p></td>";
     } else {
-        echo "<TR WIDTH=100% ><TD COLSPAN=3><P>$question->intro</P></TD>"; 
+        echo "<tr width=\"100%\" ><td colspan=\"3\"><p>$question->intro</p></td>"; 
     }
 
     while (list ($key, $val) = each ($options)) {
-        echo "<TD width=10% ALIGN=CENTER><FONT SIZE=1><P>$val</P></FONT></TD>\n";
+        echo "<td width=\"10%\" align=\"center\"><font size=\"1\"><p>$val</p></font></td>\n";
     }
-    echo "<TD ALIGN=CENTER BGCOLOR=\"$THEME->body\">&nbsp</TD></TR>\n";
+    echo "<td align=\"center\" bgcolor=\"$THEME->body\">&nbsp</td></tr>\n";
 
     $subquestions = get_records_list("survey_questions", "id", $question->multi);
 
@@ -394,38 +394,38 @@ function survey_print_multi($question) {
             $q->text = get_string($q->text, "survey");
         }
 
-        echo "<TR BGCOLOR=$bgcolor>";
+        echo "<tr bgcolor=$bgcolor>";
         if ($oneanswer) {
-            echo "<TD WIDTH=10 VALIGN=top><P><B>$qnum</B></P></TD>";
-            echo "<TD VALIGN=top><P>$q->text</P></TD>";
+            echo "<td width=\"10\" valign=\"top\"><p><b>$qnum</b></p></td>";
+            echo "<td valign=\"top\"><p>$q->text</p></td>";
             for ($i=1;$i<=$numoptions;$i++) {
-                echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=q$P$q->id VALUE=$i /></TD>";
+                echo "<td width=\"10%\" align=\"center\"><input type=\"radio\" name=\"q$P$q->id\" value=\"$i\" /></td>";
             }
-            echo "<TD BGCOLOR=white><INPUT TYPE=radio NAME=q$P$q->id VALUE=0 checked=\"checked\" /></TD>";
+            echo "<td bgcolor=\"white\"><input type=\"radio\" name=\"q$P$q->id\" value=\"0\" checked=\"checked\" /></td>";
             $checklist["q$P$q->id"] = $numoptions;
         
         } else {
-            echo "<TD WIDTH=10 VALIGN=middle rowspan=2><P><B>$qnum</B></P></TD>";
-            echo "<TD WIDTH=10% NOWRAP><P><FONT SIZE=1>$stripreferthat&nbsp;</FONT></P></TD>";
-            echo "<TD WIDTH=40% VALIGN=middle rowspan=2><P>$q->text</P></TD>";
+            echo "<td width=\"10\" valign=\"middle\" rowspan=\"2\"><p><b>$qnum</b></p></td>";
+            echo "<td width=\"10%\" nowrap=\"nowrap\"><p><font size=\"1\">$stripreferthat&nbsp;</font></p></td>";
+            echo "<td width=\"40%\" valign=\"middle\" rowspan=\"2\"><p>$q->text</p></td>";
             for ($i=1;$i<=$numoptions;$i++) {
-                echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=qP$q->id VALUE=$i /></TD>";
+                echo "<td width=\"10%\" align=\"center\"><input type=\"radio\" name=\"qP$q->id\" value=\"$i\" /></td>";
             }
-            echo "<TD BGCOLOR=\"$THEME->body\"><INPUT TYPE=radio NAME=qP$q->id VALUE=0 checked=\"checked\" /></TD>";
-            echo "</TR>";
+            echo "<td bgcolor=\"$THEME->body\"><input type=\"radio\" name=\"qP$q->id\" value=\"0\" checked=\"checked\" /></td>";
+            echo "</tr>";
 
-            echo "<TR BGCOLOR=$bgcolor>";
-            echo "<TD WIDTH=10% NOWRAP><P><FONT SIZE=1>$strifoundthat&nbsp;</P></TD>";
+            echo "<tr bgcolor=$bgcolor>";
+            echo "<td width=\"10%\" nowrap=\"nowrap\"><p><font size=\"1\">$strifoundthat&nbsp;</p></td>";
             for ($i=1;$i<=$numoptions;$i++) {
-                echo "<TD WIDTH=10% ALIGN=CENTER><INPUT TYPE=radio NAME=q$q->id VALUE=$i /></TD>";
+                echo "<td width=\"10%\" align=\"center\"><input type=\"radio\" name=\"q$q->id\" value=\"$i\" /></td>";
             }
-            echo "<TD WIDTH=5% BGCOLOR=\"$THEME->body\"><INPUT TYPE=radio NAME=q$q->id VALUE=0 checked=\"checked\" /></TD>";
+            echo "<td width=\"5%\" bgcolor=\"$THEME->body\"><input type=\"radio\" name=\"q$q->id\" value=\"0\" checked=\"checked\" /></td>";
             $checklist["qP$q->id"] = $numoptions;
             $checklist["q$q->id"] = $numoptions;
         }
-        echo "</TR>\n";
+        echo "</tr>\n";
     }
-    echo "</TABLE>";
+    echo "</table>";
 }
 
 
@@ -437,34 +437,34 @@ function survey_print_single($question) {
 
     $qnum++;
 
-    echo "<P>&nbsp</P>\n";
-    echo "<TABLE ALIGN=CENTER WIDTH=90% CELLPADDING=4 CELLSPACING=0>\n";
-    echo "<TR BGCOLOR=$bgcolor>";
-    echo "<TD VALIGN=top><B>$qnum</B></TD>";
-    echo "<TD WIDTH=50% VALIGN=top><P>$question->text</P></TD>\n";
-    echo "<TD WIDTH=50% VALIGN=top><P><FONT SIZE=+1>\n";
+    echo "<p>&nbsp</p>\n";
+    echo "<table align=\"center\" width=\"90%\" cellpadding=\"4\" cellspacing=\"0\">\n";
+    echo "<tr bgcolor=$bgcolor>";
+    echo "<td valign=\"top\"><b>$qnum</b></td>";
+    echo "<td width=\"50%\" valign=\"top\"><p>$question->text</p></td>\n";
+    echo "<td width=\"50%\" valign=\"top\"><p><font size=+1>\n";
 
 
     if ($question->type == 0) {           // Plain text field
-        echo "<TEXTAREA ROWS=3 COLS=30 WRAP=virtual NAME=\"$question->id\">$question->options</TEXTAREA>";
+        echo "<textarea rows=\"3\" cols=\"30\" wrap=\"virtual\" name=\"$question->id\">$question->options</textarea>";
 
     } else if ($question->type > 0) {     // Choose one of a number
         $strchoose = get_string("choose");
-        echo "<SELECT NAME=$question->id>";
-        echo "<OPTION VALUE=0 SELECTED>$strchoose...</OPTION>";
+        echo "<select name=$question->id>";
+        echo "<option value=\"0\" SELECTED>$strchoose...</option>";
         $options = explode( ",", $question->options);
         foreach ($options as $key => $val) {
             $key++;
-            echo "<OPTION VALUE=\"$key\">$val</OPTION>";
+            echo "<option value=\"$key\">$val</option>";
         }
-        echo "</SELECT>";
+        echo "</select>";
 
     } else if ($question->type < 0) {     // Choose several of a number
         $options = explode( ",", $question->options);
         notify("This question type not supported yet");
     }
 
-    echo "</FONT></TD></TR></TABLE>";
+    echo "</font></td></tr></table>";
 
 }
 
index 001db3702d2e6b4d585f0859d6d09a3f9aa13ec2..790383d345ae5db0f64692915ffcd77b445c4dc2 100644 (file)
 ?>
 
 <form name="form" method="post" action="../mod/survey/details.php">
-<table cellpadding=5>
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("surveyname", "survey") ?>:</B></P></TD>
+<table cellpadding="5">
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("surveyname", "survey") ?>:</b></p></td>
     <td>
-        <input type="text" name="name" size=30 value="<?php p($form->name) ?>" />
+        <input type="text" name="name" size="30" value="<?php p($form->name) ?>" />
     </td>
 </tr>
 <tr>
-    <td align=right><P><B><?php print_string("surveytype", "survey") ?>:</B></P></TD>
+    <td align="right"><p><b><?php print_string("surveytype", "survey") ?>:</b></p></td>
     <td>
     <?php
         if ($options = get_records_menu("survey", "template", 0, "name", "id, name")) {
     </td>
 </tr>
 </table>
-<CENTER>
-<input type="hidden" name=intro   value="<?php p($form->intro) ?>" />
-<input type="hidden" name=destination   value="<?php echo "$CFG->wwwroot/course/mod.php" ?>" />
+<center>
+<input type="hidden" name="intro"   value="<?php p($form->intro) ?>" />
+<input type="hidden" name="destination"   value="<?php echo "$CFG->wwwroot/course/mod.php" ?>" />
 
-<input type="hidden" name=course     value="<?php p($form->course) ?>" />
-<input type="hidden" name=coursemodule  value="<?php p($form->coursemodule) ?>" />
-<input type="hidden" name=section       value="<?php p($form->section) ?>" />
-<input type="hidden" name=module     value="<?php p($form->module) ?>" />
-<input type="hidden" name=modulename value="<?php p($form->modulename) ?>" />
-<input type="hidden" name=instance   value="<?php p($form->instance) ?>" />
-<input type="hidden" name=mode       value="<?php p($form->mode) ?>" />
+<input type="hidden" name="course"     value="<?php p($form->course) ?>" />
+<input type="hidden" name="coursemodule"  value="<?php p($form->coursemodule) ?>" />
+<input type="hidden" name="section"       value="<?php p($form->section) ?>" />
+<input type="hidden" name="module"     value="<?php p($form->module) ?>" />
+<input type="hidden" name="modulename" value="<?php p($form->modulename) ?>" />
+<input type="hidden" name="instance"   value="<?php p($form->instance) ?>" />
+<input type="hidden" name="mode"       value="<?php p($form->mode) ?>" />
 <input type="submit" value="<?php print_string("savechanges") ?>" />
-<input type="submit" name=cancel value="<?php print_string("cancel") ?>" />
-</CENTER>
-</FORM>
+<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
+</center>
+</form>
index 53e93fd01f857567272d041dc091182d55faba27..0dd7c980d8ffe12bb1f46602a0c578e71fc52726 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
         print_heading($strsummary);
 
         if (survey_count_responses($survey->id, $currentgroup)) {
-            echo "<p align=center><a href=\"report.php?action=scales&id=$id\">";
+            echo "<p align=\"center\"><a href=\"report.php?action=scales&id=$id\">";
             survey_print_graph("id=$id&group=$currentgroup&type=overall.png");
             echo "</a>";
         } else {
                     if ($virtualscales && $question->type > 0) {  // Don't show non-virtual scales if virtual
                         continue;
                     }
-                    echo "<p align=center><a title=\"$strseemoredetail\" href=report.php?action=questions&id=$id&qid=$question->multi>";
+                    echo "<p align=\"center\"><a title=\"$strseemoredetail\" href=\"report.php?action=questions&id=$id&qid=$question->multi\">";
                     survey_print_graph("id=$id&qid=$question->id&group=$currentgroup&type=multiquestion.png");
                     echo "</a></p><br />";
                 } 
                     foreach ($subquestionorder as $key => $val) {
                         $subquestion = $subquestions[$val];
                         if ($subquestion->type > 0) {
-                            echo "<p align=center>";
+                            echo "<p align=\"center\">";
                             echo "<a title=\"$strseemoredetail\" href=\"report.php?action=question&id=$id&qid=$subquestion->id\">";
                             survey_print_graph("id=$id&qid=$subquestion->id&group=$currentgroup&type=question.png");
                             echo "</a></p>";
                         }
                     }
                 } else if ($question->type > 0 ) {
-                    echo "<p align=center>";
+                    echo "<p align=\"center\">";
                     echo "<a title=\"$strseemoredetail\" href=\"report.php?action=question&id=$id&qid=$question->id\">";
                     survey_print_graph("id=$id&qid=$question->id&group=$currentgroup&type=question.png");
                     echo "</a></p>";
              }
          }
 
-         echo "<p align=center>";
+         echo "<p align=\"center\">";
          print_user_picture($user->id, $course->id, $user->picture, true);
          echo "</p>";
 
 
          if ($showscales) {
              // Print overall summary
-             echo "<p align=center>";
+             echo "<p align=\"center\">";
              survey_print_graph("id=$id&sid=$student&type=student.png");
              echo "</p>";
          
                      if ($virtualscales && $question->type > 0) {  // Don't show non-virtual scales if virtual
                          continue;
                      }
-                     echo "<p align=center>";
-                     echo "<a title=\"$strseemoredetail\" href=report.php?action=questions&id=$id&qid=$question->multi>";
+                     echo "<p align=\"center\">";
+                     echo "<a title=\"$strseemoredetail\" href=\"report.php?action=questions&id=$id&qid=$question->multi\">";
                      survey_print_graph("id=$id&qid=$question->id&sid=$student&type=studentmultiquestion.png");
                      echo "</a></p><br />";
                  } 
          } else {
             $notes = "";
          }
-         echo "<hr noshade size=1>";
+         echo "<hr noshade=\"noshade\" size=\"1\" />";
          echo "<center>";
-         echo "<form action=report.php method=post name=form>";
+         echo "<form action=\"report.php\" method=\"post\" name=\"form\">";
          echo "<h3>$strnotes:</h3>";
          echo "<blockquote>";
-         echo "<textarea name=notes rows=10 cols=60>";
+         echo "<textarea name=\"notes\" rows=\"10\" cols=\"60\">";
          p($notes);
          echo "</textarea><br />";
-         echo "<input type=hidden name=action value=student />";
-         echo "<input type=hidden name=student value=\"$student\" />";
-         echo "<input type=hidden name=id value=\"$cm->id\" />";
-         echo "<input type=submit value=\"".get_string("savechanges")."\" />";
+         echo "<input type=\"hidden\" name=\"action\" value=\"student\" />";
+         echo "<input type=\"hidden\" name=\"student\" value=\"$student\" />";
+         echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />";
+         echo "<input type=\"submit\" value=\"".get_string("savechanges")."\" />";
          echo "</blockquote>";
          echo "</form>";
          echo "</center>";
index aa54474eb8982e700acab94b24f1a45678c81571..5715a0e3d2ee2f107ba5d219ef7b1246f21c3466 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //survey mods
 
index 1c270b3a244503bfa83619eca775c9c18d1793bb..55f748859bd1d3fe13da006396e2be8111e8a3ea 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once('../../config.php');
     require_once('lib.php');
index 0ca9a4e10138a228ed0e69caf378658458c03183..eb88dbacf504e1105090f3a47be9336d670cf6fa 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
index 621021dcfd50033fdfda767629d635f27a4b7ed1..3b2e6c3928c817e11331e5b162d5ffa8843e46a2 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
@@ -29,7 +29,7 @@
     $strsurvey = get_string("modulename", "survey");
 
     print_header_simple("$survey->name", "",
-                 "<A HREF=index.php?id=$course->id>$strsurveys</A> -> $survey->name", "", "", true,
+                 "<a href=\"index.php?id=$course->id\">$strsurveys</a> -> $survey->name", "", "", true,
                   update_module_button($cm->id, $course->id, $strsurvey), navmenu($course, $cm));
 
 /// Check to see if groups are being used in this survey
@@ -45,8 +45,8 @@
 
     if (isteacher($course->id)) {
         $numusers = survey_count_responses($survey->id, $currentgroup);
-        echo "<p align=right><a href=\"report.php?id=$cm->id\">".
-              get_string("viewsurveyresponses", "survey", $numusers)."</A></P>";
+        echo "<p align=\"right\"><a href=\"report.php?id=$cm->id\">".
+              get_string("viewsurveyresponses", "survey", $numusers)."</a></p>";
     } else if (!$cm->visible) {
         notice(get_string("activityiscurrentlyhidden"));
     }
@@ -99,8 +99,8 @@
 //  Start the survey form
     add_to_log($course->id, "survey", "view form", "view.php?id=$cm->id", $survey->id, $cm->id);
 
-    echo "<form name=form method=post action=save.php>";
-    echo "<input type=hidden name=id value=\"$id\" />";
+    echo "<form name=\"form\" method=\"post\" action=\"save.php\">";
+    echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
 
     print_simple_box(format_text($survey->intro), "center", "80%");
 
@@ -176,10 +176,10 @@ function checkform() {
     }
 }
 
-<?php echo "document.write('<INPUT TYPE=button VALUE=\"".get_string("clicktocontinuecheck", "survey")."\" onClick=\"checkform()\" />');";  ?>
+<?php echo "document.write('<input type=\"button\" value=\"".get_string("clicktocontinuecheck", "survey")."\" onClick=\"checkform()\" />');";  ?>
 
 // END -->
-</SCRIPT>
+</script>
 
 <noscript>
     <!-- Without Javascript, no checking is done -->