]> git.mjollnir.org Git - moodle.git/commitdiff
fixed capitalization and quoting of attribute values
authorgustav_delius <gustav_delius>
Sun, 12 Sep 2004 16:24:41 +0000 (16:24 +0000)
committergustav_delius <gustav_delius>
Sun, 12 Sep 2004 16:24:41 +0000 (16:24 +0000)
107 files changed:
mod/exercise/assessments.php
mod/exercise/backuplib.php
mod/exercise/db/mysql.php
mod/exercise/db/postgres7.php
mod/exercise/index.php
mod/exercise/lib.php
mod/exercise/locallib.php
mod/exercise/mod.html
mod/exercise/restorelib.php
mod/exercise/submissions.php
mod/exercise/upload.php
mod/exercise/version.php
mod/exercise/view.php
mod/forum/backuplib.php
mod/forum/config.html
mod/forum/db/mysql.php
mod/forum/db/oci8po.php
mod/forum/db/postgres7.php
mod/forum/delete.php
mod/forum/discuss.php
mod/forum/index.php
mod/forum/lib.php
mod/forum/mod.html
mod/forum/post.html
mod/forum/post.php
mod/forum/prune.html
mod/forum/rate.php
mod/forum/report.php
mod/forum/restorelib.php
mod/forum/rsslib.php
mod/forum/search.php
mod/forum/subscribe.php
mod/forum/subscribers.php
mod/forum/version.php
mod/forum/view.php
mod/glossary/backuplib.php
mod/glossary/comment.html
mod/glossary/comment.php
mod/glossary/comments.php
mod/glossary/config.html
mod/glossary/db/mysql.php
mod/glossary/db/oci8po.php
mod/glossary/deleteentry.php
mod/glossary/edit.html
mod/glossary/edit.php
mod/glossary/editcategories.html
mod/glossary/editcategories.php
mod/glossary/export.php
mod/glossary/exportentry.php
mod/glossary/filter.php
mod/glossary/formats.php
mod/glossary/formats/TEMPLATE/TEMPLATE_format.php
mod/glossary/formats/continuous/continuous_format.php
mod/glossary/formats/dictionary/dictionary_format.php
mod/glossary/formats/encyclopedia/encyclopedia_format.php
mod/glossary/formats/entrylist/entrylist_format.php
mod/glossary/formats/faq/faq_format.php
mod/glossary/formats/fullwithauthor/fullwithauthor_format.php
mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php
mod/glossary/import.html
mod/glossary/import.php
mod/glossary/index.php
mod/glossary/lib.php
mod/glossary/mod.html
mod/glossary/print.php
mod/glossary/rate.php
mod/glossary/report.php
mod/glossary/restorelib.php
mod/glossary/rsslib.php
mod/glossary/showentry.php
mod/glossary/tabs.html
mod/glossary/version.php
mod/glossary/view.php
mod/journal/backuplib.php
mod/journal/db/mysql.php
mod/journal/db/oci8po.php
mod/journal/db/postgres7.php
mod/journal/edit.html
mod/journal/edit.php
mod/journal/index.php
mod/journal/lib.php
mod/journal/mod.html
mod/journal/report.php
mod/journal/restorelib.php
mod/journal/version.php
mod/journal/view.php
mod/label/backuplib.php
mod/label/db/mysql.php
mod/label/db/postgres7.php
mod/label/index.php
mod/label/lib.php
mod/label/mod.html
mod/label/restorelib.php
mod/label/version.php
mod/label/view.php
mod/lesson/backuplib.php
mod/lesson/db/mysql.php
mod/lesson/db/postgres7.php
mod/lesson/format.php
mod/lesson/import.php
mod/lesson/index.php
mod/lesson/lesson.php
mod/lesson/lib.php
mod/lesson/mod.html
mod/lesson/restorelib.php
mod/lesson/version.php
mod/lesson/view.php

index 4664559ed27c34f98712ff35bff8fadc798b15ee..c831344032388550cb1ef510b616c80b74e0c946 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id: lib.php,v 1.1 22 Aug 2003
+<?php  // $Id: lib.php,v 1.1 22 Aug 2003
 
 /*************************************************
     ACTIONS handled are:
@@ -57,8 +57,8 @@
     
     // ... print the header and...
     print_header_simple("$exercise->name", "",
-                 "<A HREF=index.php?id=$course->id>$strexercises</A> -> 
-                  <A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strassessments", 
+                 "<a href=\"index.php?id=$course->id\">$strexercises</a> -> 
+                  <a href=\"view.php?id=$cm->id\">$exercise->name</a> -> $strassessments", 
                   "", "", true);
 
     //...get the action 
                 number_format($exercise->gradinggrade * $assessment->gradinggrade / 100, 0), "");
         echo "</td></tr>\n";
         echo "<tr><td colspan=\"2\" align=\"center\">"; 
-        echo "<INPUT TYPE=submit VALUE=\"".get_string("amend", "exercise")."\" />\n";
+        echo "<input type=\"submit\" value=\"".get_string("amend", "exercise")."\" />\n";
         echo "</td></tr>\n";
         echo "</table>\n";
-        echo "</CENTER>";
-        echo "</FORM>\n";
+        echo "</center>";
+        echo "</form>\n";
     }
     
 
         print_heading_with_help(get_string("editingassessmentelements", "exercise"), "elements", "exercise");
         ?>
         <form name="form" method="post" action="assessments.php">
-        <input type="hidden" name="id" value="<?PHP echo $cm->id ?>">
+        <input type="hidden" name="id" value="<?php echo $cm->id ?>">
         <input type="hidden" name="action" value="insertelements">
-        <CENTER><TABLE cellpadding=5 border=1>
-        <?PHP
+        <center><table cellpadding="5" border="1">
+        <?php
         
         // get existing elements, if none set up appropriate default ones
         if ($elementsraw = get_records("exercise_elements", "exerciseid", $exercise->id, "elementno ASC" )) {
             case 0: // no grading
                 for ($i=0; $i<$exercise->nelements; $i++) {
                     $iplus1 = $i+1;
-                    echo "<TR valign=top>\n";
-                    echo "  <TD ALIGN=RIGHT><P><B>". get_string("element","exercise")." $iplus1:</B></TD>\n";
-                    echo "<TD><textarea name=\"description[]\" rows=3 cols=75 wrap=\"virtual\">".
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></td>\n";
+                    echo "<td><textarea name=\"description[]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">".
                         $elements[$i]->description."</textarea>\n";
-                    echo "  </TD></TR>\n";
-                    echo "<TR valign=top>\n";
-                    echo "  <TD colspan=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                    echo "</TR>\n";
+                    echo "  </td></tr>\n";
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                    echo "</tr>\n";
                 }
                 break;
 
                      
                 for ($i=0; $i<$exercise->nelements; $i++) {
                     $iplus1 = $i+1;
-                    echo "<TR valign=top>\n";
-                    echo "  <TD ALIGN=RIGHT><P><B>". get_string("element","exercise")." $iplus1:</B></TD>\n";
-                    echo "<TD><textarea name=\"description[]\" rows=3 cols=75 wrap=\"virtual\">".
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></td>\n";
+                    echo "<td><textarea name=\"description[]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">".
                         $elements[$i]->description."</textarea>\n";
-                    echo "  </TD></TR>\n";
-                    echo "<TR valign=top>\n";
-                    echo "  <TD align=right><P><B>". get_string("typeofscale", "exercise"). ":</B></P></TD>\n";
-                    echo "<TD valign=\"top\">\n";
+                    echo "  </td></tr>\n";
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td align=\"right\"><p><b>". get_string("typeofscale", "exercise"). ":</b></p></td>\n";
+                    echo "<td valign=\"top\">\n";
                     choose_from_menu($SCALES, "scale[]", $elements[$i]->scale, "");
                     if ($elements[$i]->weight == '') { // not set
                         $elements[$i]->weight = 11; // unity
                     }
-                    echo "</TR>\n";
-                    echo "<TR valign=top><TD ALIGN=RIGHT><B>".get_string("elementweight", "exercise").
-                        ":</B></TD><TD>\n";
+                    echo "</tr>\n";
+                    echo "<tr valign=\"top\"><td align=\"right\"><b>".get_string("elementweight", "exercise").
+                        ":</b></td><td>\n";
                     exercise_choose_from_menu($EXERCISE_EWEIGHTS, "weight[]", $elements[$i]->weight, "");
-                    echo "      </TD>\n";
-                    echo "</TR>\n";
-                    echo "<TR valign=top>\n";
-                    echo "  <TD colspan=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                    echo "</TR>\n";
+                    echo "      </td>\n";
+                    echo "</tr>\n";
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                    echo "</tr>\n";
                 }
                 break;
                 
             case 2: // error banded grading
                 for ($i=0; $i<$exercise->nelements; $i++) {
                     $iplus1 = $i+1;
-                    echo "<TR valign=top>\n";
-                    echo "  <TD ALIGN=RIGHT><P><B>". get_string("element","exercise")." $iplus1:</B></TD>\n";
-                    echo "<TD><textarea name=\"description[$i]\" rows=3 cols=75 wrap=\"virtual\">".
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></td>\n";
+                    echo "<td><textarea name=\"description[$i]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">".
                         $elements[$i]->description."</textarea>\n";
-                    echo "  </TD></TR>\n";
+                    echo "  </td></tr>\n";
                     if ($elements[$i]->weight == '') { // not set
                         $elements[$i]->weight = 11; // unity
                     }
-                    echo "</TR>\n";
-                    echo "<TR valign=top><TD ALIGN=RIGHT><B>".get_string("elementweight", "exercise").
-                        ":</B></TD><TD>\n";
+                    echo "</tr>\n";
+                    echo "<tr valign=\"top\"><td align=\"right\"><b>".get_string("elementweight", "exercise").
+                        ":</b></td><td>\n";
                     exercise_choose_from_menu($EXERCISE_EWEIGHTS, "weight[]", $elements[$i]->weight, "");
-                    echo "      </TD>\n";
-                    echo "</TR>\n";
-                    echo "<TR valign=top>\n";
-                    echo "  <TD colspan=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                    echo "</TR>\n";
+                    echo "      </td>\n";
+                    echo "</tr>\n";
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                    echo "</tr>\n";
                 }
-                echo "</CENTER></TABLE><BR>\n";
-                echo "<P><CENTER><B>".get_string("gradetable","exercise")."</B></CENTER>\n";
-                echo "<CENTER><TABLE cellpadding=5 border=1><TR><TD ALIGN=\"CENTER\">".
+                echo "</center></table><br />\n";
+                echo "<p><center><b>".get_string("gradetable","exercise")."</b></center>\n";
+                echo "<center><table cellpadding=\"5\" border=\"1\"><tr><td align=\"CENTER\">".
                     get_string("numberofnegativeresponses", "exercise");
-                echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n";
+                echo "</td><td>". get_string("suggestedgrade", "exercise")."</td></tr>\n";
                 for ($j = $exercise->grade; $j >= 0; $j--) {
                     $numbers[$j] = $j;
                 }
                 for ($i=0; $i<=$exercise->nelements; $i++) {
-                    echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">";
+                    echo "<tr><td align=\"CENTER\">$i</td><td align=\"CENTER\">";
                     if (!isset($elements[$i])) {  // the "last one" will be!
                         $elements[$i]->description = "";
                         $elements[$i]->maxscore = 0;
                     }
                     choose_from_menu($numbers, "maxscore[$i]", $elements[$i]->maxscore, "");
-                    echo "</TD></TR>\n";
+                    echo "</td></tr>\n";
                 }
                 break;
                 
                 }
                 for ($i=0; $i<$exercise->nelements; $i++) {
                     $iplus1 = $i+1;
-                    echo "<TR valign=top>\n";
+                    echo "<tr valign=\"top\">\n";
 
-                    echo "  <TD ALIGN=RIGHT><P><B>". get_string("criterion","exercise")." $iplus1:</B></TD>\n";
-                    echo "<TD><textarea name=\"description[$i]\" rows=3 cols=75 wrap=\"virtual\">".
+                    echo "  <td align=\"right\"><p><b>". get_string("criterion","exercise")." $iplus1:</b></td>\n";
+                    echo "<td><textarea name=\"description[$i]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">".
                         $elements[$i]->description."</textarea>\n";
-                    echo "  </TD></TR>\n";
-                    echo "<TR><TD><B>". get_string("suggestedgrade", "exercise").":</B></TD><TD>\n";
+                    echo "  </td></tr>\n";
+                    echo "<tr><td><b>". get_string("suggestedgrade", "exercise").":</b></td><td>\n";
                     choose_from_menu($numbers, "maxscore[$i]", $elements[$i]->maxscore, "");
-                    echo "</TD></TR>\n";
-                    echo "<TR valign=top>\n";
+                    echo "</td></tr>\n";
+                    echo "<tr valign=\"top\">\n";
 
-                    echo "  <TD colspan=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                    echo "</TR>\n";
+                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                    echo "</tr>\n";
                 }
                 break;
 
                 }
                 for ($i=0; $i<$exercise->nelements; $i++) {
                     $iplus1 = $i+1;
-                    echo "<TR valign=top>\n";
-                    echo "  <TD ALIGN=RIGHT><P><B>". get_string("element","exercise")." $iplus1:</B></TD>\n";
-                    echo "<TD><textarea name=\"description[$i]\" rows=3 cols=75 wrap=\"virtual\">".
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></td>\n";
+                    echo "<td><textarea name=\"description[$i]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">".
                         $elements[$i]->description."</textarea>\n";
-                    echo "  </TD></TR>\n";
-                    echo "<TR valign=top><TD ALIGN=RIGHT><B>".get_string("elementweight", "exercise").
-                        ":</B></TD><TD>\n";
+                    echo "  </td></tr>\n";
+                    echo "<tr valign=\"top\"><td align=\"right\"><b>".get_string("elementweight", "exercise").
+                        ":</b></td><td>\n";
                     exercise_choose_from_menu($EXERCISE_EWEIGHTS, "weight[]", $elements[$i]->weight, "");
-                    echo "      </TD>\n";
-                    echo "</TR>\n";
+                    echo "      </td>\n";
+                    echo "</tr>\n";
 
                     for ($j=0; $j<5; $j++) {
                         $jplus1 = $j+1;
                         if (empty($rubrics[$i][$j])) {
                             $rubrics[$i][$j] = "";
                         }
-                        echo "<TR valign=top>\n";
-                        echo "  <TD ALIGN=RIGHT><P><B>". get_string("grade")." $j:</B></TD>\n";
-                        echo "<TD><textarea name=\"rubric[$i][$j]\" rows=3 cols=75 wrap=\"virtual\">".
+                        echo "<tr valign=\"top\">\n";
+                        echo "  <td align=\"right\"><p><b>". get_string("grade")." $j:</b></td>\n";
+                        echo "<td><textarea name=\"rubric[$i][$j]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">".
                             $rubrics[$i][$j]."</textarea>\n";
-                        echo "  </TD></TR>\n";
+                        echo "  </td></tr>\n";
                     }
-                    echo "<TR valign=top>\n";
-                    echo "  <TD colspan=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                    echo "</TR>\n";
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                    echo "</tr>\n";
                 }
                 break;
         }
         ?>
         </table><br />
         <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") ?>">
         </center>
 
         </form>
-        <?PHP
+        <?php
     }
     
     
                         $totalweight += $weight;
                     }
                     $rawgrade += ($grade / $maxscore) * $weight;
-                    // echo "\$key, \$maxscore, \$weight, \$totalweight, \$grade, \$rawgrade : $key, $maxscore, $weight, $totalweight, $grade, $rawgrade<BR>";
+                    // echo "\$key, \$maxscore, \$weight, \$totalweight, \$grade, \$rawgrade : $key, $maxscore, $weight, $totalweight, $grade, $rawgrade<br />";
                 }
                 $grade = 100.0 * ($rawgrade / $totalweight);
                 break;
                 }
                 $grade = ($elements[intval($error + 0.5)]->maxscore + $form->grade[$i])
                     * 100.0 / $exercise->grade;
-                // echo "<P><B>".get_string("weightederrorcount", "exercise", intval($error + 0.5)).
-                //  " ".get_string("adjustment", "exercise").": ".$form->grade[$i]."</B>\n";
+                // echo "<p><b>".get_string("weightederrorcount", "exercise", intval($error + 0.5)).
+                //  " ".get_string("adjustment", "exercise").": ".$form->grade[$i]."</b>\n";
                 // check the grade for sanity!
                 if ($grade > 100.0) {
                     $grade = 100.0;
                         $totalweight += $weight;
                     }
                     $rawgrade += ($grade / $maxscore) * $weight;
-                    // echo "\$key, \$maxscore, \$weight, \$totalweight, \$grade, \$rawgrade : $key, $maxscore, $weight, $totalweight, $grade, $rawgrade<BR>";
+                    // echo "\$key, \$maxscore, \$weight, \$totalweight, \$grade, \$rawgrade : $key, $maxscore, $weight, $totalweight, $grade, $rawgrade<br />";
                 }
                 $grade = 100.0 * ($rawgrade / $totalweight);
                 break;
                     error("Could not insert exercise element!");
                 }
                 $grade = ($elements[intval($error + 0.5)]->maxscore + $form->grade[$i]) * 100 / $exercise->grade;
-                echo "<P><B>".get_string("weightederrorcount", "exercise", intval($error + 0.5))."</B>\n";
+                echo "<p><b>".get_string("weightederrorcount", "exercise", intval($error + 0.5))."</b>\n";
                 break;
             
             case 3: // criteria grading
         set_field("exercise_assessments", "gradinggrade", $gradinggrade, "id", $stassessment->id);
         set_field("exercise_assessments", "timegraded", $timenow, "id", $stassessment->id);
         set_field("exercise_assessments", "mailed", 0, "id", $stassessment->id);
-        echo "<CENTRE><B>".get_string("savedok", "exercise")."</B></CENTRE><BR>\n";
+        echo "<centre><b>".get_string("savedok", "exercise")."</b></centre><br />\n";
 
         add_to_log($course->id, "exercise", "grade", "view.php?id=$cm->id", "$stassessment->id");
         
index 041ec50e1452f9aaa26eb5cc40bf2493deb7a219..d660bb2c0e15a7faab27253fb35ecb7560c20a81 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //exercise mods
 
index 50388c00cd897c5277b0c53ad763fa02a715d605..24da494dc249e3a2678a127dfeee6de467c3a892 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function exercise_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 950d33595619d33b4374f283149df45a32d2f103..64d09eea450adfe8455d86da6ea7cab26fd322dc 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function exercise_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 8fd99cf8187f7744a7bda021486e9716b3b000ac..10fb68b5b16d891a55fa52ead9fe5a0c347d4c89 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require("../../config.php");
     require("lib.php");
         } else {
             $table->head  = array ($strweek, $strname, $strtitle, $strgrade, $strsubmitted, $strdeadline);
         }
-        $table->align = array ("CENTER", "LEFT", "LEFT","center","LEFT", "LEFT");
+        $table->align = array ("center", "left", "left","center","left", "left");
     } else if ($course->format == "topics") {
         if (isteacher($course->id)) {
             $table->head  = array ($strtopic, $strname, $strtitle, $strphase, $strsubmitted, $strdeadline);
         } else {
             $table->head  = array ($strtopic, $strname, $strtitle, $strgrade, $strsubmitted, $strdeadline);
         }
-        $table->align = array ("CENTER", "LEFT", "LEFT", "center", "LEFT", "LEFT");
+        $table->align = array ("center", "left", "left", "center", "left", "left");
     } else {
         $table->head  = array ($strname, $strsubmitted, $strdeadline);
-        $table->align = array ("LEFT", "LEFT", "LEFT");
+        $table->align = array ("left", "left", "left");
     }
 
     foreach ($exercises as $exercise) {
         if ($exercise->deadline > $timenow) {
             $due = userdate($exercise->deadline);
         } else {
-            $due = "<FONT COLOR=\"red\">".userdate($exercise->deadline)."</FONT>";
+            $due = "<font color=\"red\">".userdate($exercise->deadline)."</font>";
         }
         if ($submissions = exercise_get_user_submissions($exercise, $USER)) {
             foreach ($submissions as $submission) {
                 if ($submission->late) {
-                    $submitted = "<FONT COLOR=\"red\">".userdate($submission->timecreated)."</FONT>";
+                    $submitted = "<font color=\"red\">".userdate($submission->timecreated)."</font>";
                     } 
                 else {
                     $submitted = userdate($submission->timecreated);
                     }
-                $link = "<A HREF=\"view.php?id=$exercise->coursemodule\">$exercise->name</A>";
+                $link = "<a href=\"view.php?id=$exercise->coursemodule\">$exercise->name</a>";
                 $title = $submission->title;
                 if ($course->format == "weeks" or $course->format == "topics") {
                     if (isteacher($course->id)) {
         } else {
             $submitted = get_string("no");
             $title = '';
-            $link = "<A HREF=\"view.php?id=$exercise->coursemodule\">$exercise->name</A>";
+            $link = "<a href=\"view.php?id=$exercise->coursemodule\">$exercise->name</a>";
             if ($course->format == "weeks" or $course->format == "topics") {
                 if (isteacher($course->id)) {
                     $table->data[] = array ($exercise->section, $link, $title, $exercise->phase, 
             }
         }
     }
-    echo "<BR>";
+    echo "<br />";
 
     print_table($table);
 
index 2068f4d586c7f23a7fa04fd5aa774110b52bdae9..59e44883a5eb4ff04485306b49efdcec5a8cb4e4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id: lib.php,v 1.1 23 Aug 2003
+<?php  // $Id: lib.php,v 1.1 23 Aug 2003
 
 // exercise constants and standard moodle functions plus those functions called directly
 // see locallib.php for other non-standard exercise functions
@@ -86,31 +86,31 @@ function exercise_choose_from_menu ($options, $name, $selected="", $nothing="cho
         $javascript = "";
     }
 
-    $output = "<SELECT NAME=$name $javascript>\n";
+    $output = "<select name=$name $javascript>\n";
     if ($nothing) {
-        $output .= "   <OPTION VALUE=\"$nothingvalue\"\n";
+        $output .= "   <option value=\"$nothingvalue\"\n";
         if ($nothingvalue == $selected) {
             $output .= " SELECTED";
         }
-        $output .= ">$nothing</OPTION>\n";
+        $output .= ">$nothing</option>\n";
     }
     if (!empty($options)) {
         foreach ($options as $value => $label) {
-            $output .= "   <OPTION VALUE=\"$value\"";
+            $output .= "   <option value=\"$value\"";
             if ($value == $selected) {
                 $output .= " SELECTED";
             }
             // stop zero label being replaced by array index value
             // if ($label) {
-            //    $output .= ">$label</OPTION>\n";
+            //    $output .= ">$label</option>\n";
             // } else {
-            //     $output .= ">$value</OPTION>\n";
+            //     $output .= ">$value</option>\n";
             //  }
-            $output .= ">$label</OPTION>\n";
+            $output .= ">$label</option>\n";
             
         }
     }
-    $output .= "</SELECT>\n";
+    $output .= "</select>\n";
 
     if ($return) {
         return $output;
@@ -195,14 +195,14 @@ function exercise_cron() {
             $posttext .= "   $CFG->wwwroot/mod/exercise/view.php?id=$cm->id\n";
             $posttext .= "---------------------------------------------------------------------\n";
             if ($sendto->mailformat == 1) {  // HTML
-                $posthtml = "<P><FONT FACE=sans-serif>".
-              "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> ->".
-              "<A HREF=\"$CFG->wwwroot/mod/exercise/index.php?id=$course->id\">$strexercises</A> ->".
-              "<A HREF=\"$CFG->wwwroot/mod/exercise/view.php?id=$cm->id\">$exercise->name</A></FONT></P>";
-              $posthtml .= "<HR><FONT FACE=sans-serif>";
-              $posthtml .= "<P>$msg</P>";
-              $posthtml .= "<P>".get_string("mail3", "exercise").
-                  " <A HREF=\"$CFG->wwwroot/mod/exercise/view.php?id=$cm->id\">$exercise->name</A>.</P></FONT><HR>";
+                $posthtml = "<p><font face=\"sans-serif\">".
+              "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->".
+              "<a href=\"$CFG->wwwroot/mod/exercise/index.php?id=$course->id\">$strexercises</a> ->".
+              "<a href=\"$CFG->wwwroot/mod/exercise/view.php?id=$cm->id\">$exercise->name</a></font></p>";
+              $posthtml .= "<hr /><font face=\"sans-serif\">";
+              $posthtml .= "<p>$msg</p>";
+              $posthtml .= "<p>".get_string("mail3", "exercise").
+                  " <a href=\"$CFG->wwwroot/mod/exercise/view.php?id=$cm->id\">$exercise->name</a>.</p></font><hr />";
             } else {
               $posthtml = "";
             }
@@ -709,8 +709,8 @@ function exercise_print_submission_title($exercise, $submission) {
             } else {
                 $ffurl = "file.php?file=/$filearea/$file";
             }
-            return "<IMG SRC=\"$CFG->pixpath/f/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">".
-                "&nbsp;<A TARGET=\"uploadedfile\" HREF=\"$CFG->wwwroot/$ffurl\">$submission->title</A>";
+            return "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"File\">".
+                "&nbsp;<a target=\"uploadedfile\" href=\"$CFG->wwwroot/$ffurl\">$submission->title</a>";
         }
     }
 }
index db0ce701d76d0e1604dc2795c880480f2df1982b..dca2313ad6d5142598a5f6faa62022b61db350cf 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of extra functions for the exercise module
 
@@ -711,7 +711,7 @@ function exercise_list_all_ungraded_assessments($exercise) {
     global $CFG;
     
     $table->head = array (get_string("title", "exercise"), get_string("timeassessed", "exercise"), get_string("action", "exercise"));
-    $table->align = array ("LEFT", "LEFT", "LEFT");
+    $table->align = array ("left", "left", "left");
     $table->size = array ("*", "*", "*");
     $table->cellpadding = 2;
     $table->cellspacing = 0;
@@ -721,12 +721,12 @@ function exercise_list_all_ungraded_assessments($exercise) {
         foreach ($assessments as $assessment) {
             if (!isteacher($exercise->course, $assessment->userid)) {
                 if (($timenow - $assessment->timegraded) < $CFG->maxeditingtime) {
-                    $action = "<A HREF=\"assessments.php?action=gradeassessment&a=$exercise->id&aid=$assessment->id\">".
-                        get_string("edit", "exercise")."</A>";
+                    $action = "<a href=\"assessments.php?action=gradeassessment&a=$exercise->id&aid=$assessment->id\">".
+                        get_string("edit", "exercise")."</a>";
                     }
                 else {
-                    $action = "<A HREF=\"assessments.php?action=gradeassessment&a=$exercise->id&aid=$assessment->id\">".
-                        get_string("gradeassessment", "exercise")."</A>";
+                    $action = "<a href=\"assessments.php?action=gradeassessment&a=$exercise->id&aid=$assessment->id\">".
+                        get_string("gradeassessment", "exercise")."</a>";
                     }
                 $submission = get_record("exercise_submissions", "id", $assessment->submissionid);
                 $table->data[] = array(exercise_print_submission_title($exercise, $submission), 
@@ -1000,7 +1000,7 @@ function exercise_list_teacher_assessments($exercise, $user) {
         error("Course is misconfigured");
         }
     $table->head = array (get_string("title", "exercise"), get_string("action", "exercise"), get_string("comment", "exercise"));
-    $table->align = array ("LEFT", "LEFT", "LEFT");
+    $table->align = array ("left", "left", "left");
     $table->size = array ("*", "*", "*");
     $table->cellpadding = 2;
     $table->cellspacing = 0;
@@ -1012,8 +1012,8 @@ function exercise_list_teacher_assessments($exercise, $user) {
             if ($assessments = exercise_get_assessments($submission)) {
                 foreach ($assessments as $assessment) {
                     if (isteacher($exercise->course, $assessment->userid)) { // assessments by teachers only
-                        $action = "<A HREF=\"assessments.php?action=viewassessment&a=$exercise->id&aid=$assessment->id\">".
-                            get_string("view", "exercise")."</A>";
+                        $action = "<a href=\"assessments.php?action=viewassessment&a=$exercise->id&aid=$assessment->id\">".
+                            get_string("view", "exercise")."</a>";
                         // has teacher commented on teacher's assessment? shouldn't happen but leave test in
                         if ($assessment->timegraded and ($timenow - $assessment->timegraded > $CFG->maxeditingtime)) {
                             $comment = get_string("gradedbyteacher", "exercise", $course->teacher);
@@ -1031,7 +1031,7 @@ function exercise_list_teacher_assessments($exercise, $user) {
         print_table($table);
         }
     else {
-        echo "<CENTER>".get_string("noassessmentsdone", "exercise")."</CENTER>\n";
+        echo "<center>".get_string("noassessmentsdone", "exercise")."</center>\n";
         }
     }
 
@@ -1103,7 +1103,7 @@ function exercise_list_teacher_submissions($exercise, $user, $reassess = false)
  
     $table->head = array (get_string("action", "exercise"), get_string("assessed", "exercise"),
         get_string("comment", "exercise"));
-    $table->align = array ("LEFT", "LEFT", "LEFT");
+    $table->align = array ("left", "left", "left");
     $table->size = array ("*", "*", "*");
     $table->cellpadding = 2;
     $table->cellspacing = 0;
@@ -1121,25 +1121,25 @@ function exercise_list_teacher_submissions($exercise, $user, $reassess = false)
             if ($submission->isexercise) {
                 $comment = '';
                 if ($reassess) {  // just show re-assess
-                    $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                        get_string("reassess", "exercise")."</A>";
+                    $action = "<a href=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("reassess", "exercise")."</a>";
                 }
                 else { // reassess is false - assessment is a "normal state"
                     // user assessment has three states: record created but not assessed (date created 
                     // in the future); just assessed but still editable; and "static" (may or may not 
                     // have been graded by teacher, that is shown in the comment) 
                     if ($assessment->timecreated > $timenow) { // user needs to assess this submission
-                        $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                            get_string("assess", "exercise")."</A>";
+                        $action = "<a href=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                            get_string("assess", "exercise")."</a>";
                     }
                     elseif ($assessment->timecreated > ($timenow - $CFG->maxeditingtime)) { 
                         // there's still time left to edit...
-                        $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                            get_string("edit", "exercise")."</A>";
+                        $action = "<a href=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                            get_string("edit", "exercise")."</a>";
                     }
                     else { 
-                        $action = "<A HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">"
-                            .get_string("view", "exercise")."</A>";
+                        $action = "<a href=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">"
+                            .get_string("view", "exercise")."</a>";
                     }
                 }
                 // show the date if in the past (otherwise the user hasn't done the assessment yet
@@ -1187,7 +1187,7 @@ function exercise_list_unassessed_student_submissions($exercise, $user) {
     $table->head = array (get_string("title", "exercise"), get_string("submittedby", "exercise"),
         get_string("submitted", "exercise"), get_string("action", "exercise"), 
         get_string("comment", "exercise"));
-    $table->align = array ("LEFT", "LEFT", "LEFT", "LEFT", "LEFT");
+    $table->align = array ("left", "left", "left", "left", "left");
     $table->size = array ("*", "*", "*", "*", "*");
     $table->cellpadding = 2;
     $table->cellspacing = 0;
@@ -1237,14 +1237,14 @@ function exercise_list_unassessed_student_submissions($exercise, $user) {
                             }
                             if ($warm) {
                                 // last chance salon
-                                $action = "<A HREF=\"assessments.php?action=teacherassessment&id=$cm->id&aid=$studentassessment->id&sid=$submission->id\">".
-                                    get_string("edit", "exercise")."</A>";
+                                $action = "<a href=\"assessments.php?action=teacherassessment&id=$cm->id&aid=$studentassessment->id&sid=$submission->id\">".
+                                    get_string("edit", "exercise")."</a>";
                                 $table->data[] = array(exercise_print_submission_title($exercise, $submission), 
                                         fullname($submissionowner), 
                                         $timegap, $action, $comment);
                             } else {
-                                $action = "<A HREF=\"assessments.php?action=teacherassessment&id=$cm->id&aid=$studentassessment->id&sid=$submission->id\">".
-                                    get_string("assess", "exercise")."</A>";
+                                $action = "<a href=\"assessments.php?action=teacherassessment&id=$cm->id&aid=$studentassessment->id&sid=$submission->id\">".
+                                    get_string("assess", "exercise")."</a>";
                                 $table->data[] = array(exercise_print_submission_title($exercise, $submission), 
                                         fullname($submissionowner), 
                                         $timegap, $action, $comment);
@@ -1276,8 +1276,8 @@ function exercise_list_unassessed_student_submissions($exercise, $user) {
                     }
                     if ($teacherassessed and $warm) {
                         // last chance salon
-                        $action = "<A HREF=\"assessments.php?action=assessresubmission&id=$cm->id&sid=$submission->id\">".
-                            get_string("edit", "exercise")."</A>";
+                        $action = "<a href=\"assessments.php?action=assessresubmission&id=$cm->id&sid=$submission->id\">".
+                            get_string("edit", "exercise")."</a>";
                         $timegap = get_string("ago", "exercise", format_time($submission->timecreated -
                                     $timenow));
                         if ($submission->late) {
@@ -1313,8 +1313,8 @@ function exercise_list_unassessed_student_submissions($exercise, $user) {
                                 }
                             }
                         }
-                        $action = "<A HREF=\"assessments.php?action=assessresubmission&id=$cm->id&sid=$submission->id\">".
-                            get_string("assess", "exercise")."</A>";
+                        $action = "<a href=\"assessments.php?action=assessresubmission&id=$cm->id&sid=$submission->id\">".
+                            get_string("assess", "exercise")."</a>";
                         $timegap = get_string("ago", "exercise", format_time($submission->timecreated -
                                     $timenow));
                         if ($submission->late) {
@@ -1340,7 +1340,7 @@ function exercise_list_unassessed_teacher_submissions($exercise, $user) {
     global $CFG;
     
     $table->head = array (get_string("title", "exercise"), get_string("action", "exercise"), get_string("comment", "exercise"));
-    $table->align = array ("LEFT", "LEFT", "LEFT");
+    $table->align = array ("left", "left", "left");
     $table->size = array ("*", "*", "*");
     $table->cellpadding = 2;
     $table->cellspacing = 0;
@@ -1354,14 +1354,14 @@ function exercise_list_unassessed_teacher_submissions($exercise, $user) {
                 $timenow = time();
                 if (($timenow - $assessment->timecreated < $CFG->maxeditingtime)) {
                     // last chance salon
-                    $action = "<A HREF=\"assessments.php?action=assesssubmission&a=$exercise->id&sid=$submission->id\">".
-                        get_string("edit", "exercise")."</A>";
+                    $action = "<a href=\"assessments.php?action=assesssubmission&a=$exercise->id&sid=$submission->id\">".
+                        get_string("edit", "exercise")."</a>";
                     $table->data[] = array(exercise_print_submission_title($exercise, $submission), $action, $comment);
                     }
                 }
             else { // no assessment
-                $action = "<A HREF=\"assessments.php?action=assesssubmission&a=$exercise->id&sid=$submission->id\">".
-                    get_string("assess", "exercise")."</A>";
+                $action = "<a href=\"assessments.php?action=assesssubmission&a=$exercise->id&sid=$submission->id\">".
+                    get_string("assess", "exercise")."</a>";
                 $table->data[] = array(exercise_print_submission_title($exercise, $submission), $action, $comment);
                 }
             }
@@ -1386,7 +1386,7 @@ function exercise_list_ungraded_assessments($exercise, $stype) {
     // lists all the assessments of student submissions for grading by teacher
     $table->head = array (get_string("title", "exercise"), get_string("submittedby", "exercise"),
     get_string("assessor", "exercise"), get_string("timeassessed", "exercise"), get_string("action", "exercise"));
-    $table->align = array ("LEFT", "LEFT", "LEFT", "LEFT");
+    $table->align = array ("left", "left", "left", "left");
     $table->size = array ("*", "*", "*", "*");
     $table->cellpadding = 2;
     $table->cellspacing = 0;
@@ -1404,12 +1404,12 @@ function exercise_list_ungraded_assessments($exercise, $stype) {
         foreach ($assessments as $assessment) {
             if (!isteacher($exercise->course, $assessment->userid)) { // don't let teacher grade their own assessments
                 if (($timenow - $assessment->timegraded) < $CFG->maxeditingtime) {
-                    $action = "<A HREF=\"assessments.php?action=gradeassessment&id=$cm->id&stype=$stype&aid=$assessment->id\">".
-                        get_string("edit", "exercise")."</A>";
+                    $action = "<a href=\"assessments.php?action=gradeassessment&id=$cm->id&stype=$stype&aid=$assessment->id\">".
+                        get_string("edit", "exercise")."</a>";
                     }
                 else {
-                    $action = "<A HREF=\"assessments.php?action=gradeassessment&id=$cm->id&stype=$stype&aid=$assessment->id\">".
-                        get_string("grade")."</A>";
+                    $action = "<a href=\"assessments.php?action=gradeassessment&id=$cm->id&stype=$stype&aid=$assessment->id\">".
+                        get_string("grade")."</a>";
                     }
                 $submission = get_record("exercise_submissions", "id", $assessment->submissionid);
                 $submissionowner = get_record("user", "id", $submission->userid);
@@ -1440,7 +1440,7 @@ function exercise_list_user_submissions($exercise, $user) {
     $timenow = time();
     $table->head = array (get_string("title", "exercise"),  get_string("action", "exercise"),
         get_string("submitted", "exercise"),  get_string("assessment", "exercise"));
-    $table->align = array ("LEFT", "LEFT", "LEFT", "LEFT");
+    $table->align = array ("left", "left", "left", "left");
     $table->size = array ("*", "*", "*", "*");
     $table->cellpadding = 2;
     $table->cellspacing = 0;
@@ -1537,10 +1537,10 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
             if ($exercisefound) {
                 print_heading(get_string("theexerciseandthesubmissionby", "exercise", 
                     fullname($submissionowner)));
-                echo "<CENTER><TABLE BORDER=\"1\" WIDTH=\"30%\"><TR>
-                    <TD ALIGN=CENTER BGCOLOR=\"$THEME->cellcontent\">\n";
+                echo "<center><table border=\"1\" width=\"30%\"><tr>
+                    <td align=\"center\" bgcolor=\"$THEME->cellcontent\">\n";
                 echo exercise_print_submission_title($exercise, $teachersubmission);
-                echo "</TD></TR></TABLE><BR CLEAR=ALL>\n";
+                echo "</td></tr></table><br clear=\"all\">\n";
                 }
             }
         else { 
@@ -1550,17 +1550,17 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                 }
             }
             
-        echo "<CENTER><TABLE BORDER=\"1\" WIDTH=\"30%\"><TR>
-            <TD ALIGN=CENTER BGCOLOR=\"$THEME->cellcontent\">\n";
+        echo "<center><table border=\"1\" width=\"30%\"><tr>
+            <td align=\"center\" bgcolor=\"$THEME->cellcontent\">\n";
         echo exercise_print_submission_title($exercise, $submission);
-        echo "</TD></TR></TABLE><BR CLEAR=ALL>\n";
+        echo "</td></tr></table><br clear=\"all\">\n";
         
         // only show the grade if grading strategy > 0 and the grade is positive
         if ($exercise->gradingstrategy and $assessment->grade >= 0) { 
 
-            echo "<CENTER><B>".get_string("thegradeis", "exercise").": ".
+            echo "<center><b>".get_string("thegradeis", "exercise").": ".
                 number_format($assessment->grade * $exercise->grade / 100.0, 2)." (".
-                get_string("maximumgrade")." ".number_format($exercise->grade, 0).")</B></CENTER><BR CLEAR=ALL>\n";
+                get_string("maximumgrade")." ".number_format($exercise->grade, 0).")</b></center><br clear=\"all\">\n";
             }
         }
         
@@ -1568,12 +1568,12 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
     // FORM is needed for Mozilla browsers, else radio bttons are not checked
         ?>
     <form name="assessmentform" method="post" action="assessments.php">
-    <INPUT TYPE="hidden" NAME="id" VALUE="<?PHP echo $cm->id ?>" />
-    <input type="hidden" name="aid" value="<?PHP echo $assessment->id ?>" />
+    <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
+    <input type="hidden" name="aid" value="<?php echo $assessment->id ?>" />
     <input type="hidden" name="action" value="updateassessment" />
     <input type="hidden" name="resubmit" value="0" />
-    <input type="hidden" name="returnto" value="<?PHP echo $returnto ?>" />
-    <?PHP
+    <input type="hidden" name="returnto" value="<?php echo $returnto ?>" />
+    <?php
     if ($assessment) {
         if (!$assessmentowner = get_record("user", "id", $assessment->userid)) {
             error("Exercise_print_assessment_form: could not find user record");
@@ -1589,7 +1589,7 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
         $formtitle = get_string("assessmentform", "exercise");
         }
     echo "<center><table cellpadding=\"2\" border=\"1\">\n";
-    echo "<tr valign=top>\n";
+    echo "<tr valign=\"top\">\n";
 
     echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\"><center><b>$formtitle</b></center></td>\n";
 
@@ -1627,15 +1627,15 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
             // now print the form
             for ($i=0; $i < count($elements); $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("element","exercise")." $iplus1:</B></P></TD>\n";
-                echo "  <TD>".text_to_html($elements[$i]->description);
-                echo "</TD></TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("feedback").":</B></P></TD>\n";
-                echo "  <TD>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></p></td>\n";
+                echo "  <td>".text_to_html($elements[$i]->description);
+                echo "</td></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
+                echo "  <td>\n";
                 if ($allowchanges) {
-                    echo "      <textarea name=\"feedback[]\" rows=3 cols=75 wrap=\"virtual\">\n";
+                    echo "      <textarea name=\"feedback[]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
                     if (isset($grades[$i]->feedback)) {
                         echo $grades[$i]->feedback;
                         }
@@ -1644,11 +1644,11 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                 else {
                     echo text_to_html($grades[$i]->feedback);
                     }
-                echo "  </TD>\n";
-                echo "</TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD COLSPAN=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                echo "</TR>\n";
+                echo "  </td>\n";
+                echo "</tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                echo "</tr>\n";
                 }
             break;
             
@@ -1656,16 +1656,16 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
             // now print the form
             for ($i=0; $i < count($elements); $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("element","exercise")." $iplus1:</B></P></TD>\n";
-
-                echo "  <TD>".text_to_html($elements[$i]->description);
-                echo "<P align=right><FONT size=1>Weight: "
-                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</FONT>\n";
-                echo "</TD></TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("grade"). ":</B></P></TD>\n";
-                echo "  <TD valign=\"top\">\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></p></td>\n";
+
+                echo "  <td>".text_to_html($elements[$i]->description);
+                echo "<p align=\"right\"><font size=\"1\">Weight: "
+                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</font>\n";
+                echo "</td></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("grade"). ":</b></p></td>\n";
+                echo "  <td valign=\"top\">\n";
                 
                 // get the appropriate scale
                 $scalenumber=$elements[$i]->scale;
@@ -1673,7 +1673,7 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                 switch ($SCALE->type) {
                     case 'radio' :
                             // show selections highest first
-                            echo "<CENTER><B>$SCALE->start</B>&nbsp;&nbsp;&nbsp;";
+                            echo "<center><b>$SCALE->start</b>&nbsp;&nbsp;&nbsp;";
                             for ($j = $SCALE->size - 1; $j >= 0 ; $j--) {
                                 $checked = false;
                                 if (isset($grades[$i]->grade)) { 
@@ -1687,13 +1687,13 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                                         }
                                     }
                                 if ($checked) {
-                                    echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
+                                    echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
                                     }
                                 else {
-                                    echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
+                                    echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
                                     }
                                 }
-                            echo "&nbsp;&nbsp;&nbsp;<B>$SCALE->end</B></CENTER>\n";
+                            echo "&nbsp;&nbsp;&nbsp;<b>$SCALE->end</b></center>\n";
                             break;
                     case 'selection' :  
                             unset($numbers);
@@ -1708,14 +1708,14 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                                 }
                             break;
                         
-                    echo "  </TD>\n";
-                    echo "</TR>\n";
+                    echo "  </td>\n";
+                    echo "</tr>\n";
                     }
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("feedback").":</B></P></TD>\n";
-                echo "  <TD>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
+                echo "  <td>\n";
                 if ($allowchanges) {
-                    echo "      <textarea name=\"feedback[]\" rows=3 cols=75 wrap=\"virtual\">\n";
+                    echo "      <textarea name=\"feedback[]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
                     if (isset($grades[$i]->feedback)) {
                         echo $grades[$i]->feedback;
                         }
@@ -1724,11 +1724,11 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                 else {
                     echo text_to_html($grades[$i]->feedback);
                     }
-                echo "  </TD>\n";
-                echo "</TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD COLSPAN=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                echo "</TR>\n";
+                echo "  </td>\n";
+                echo "</tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                echo "</tr>\n";
                 }
             break;
             
@@ -1737,24 +1737,24 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
             $error = 0;
             for ($i=0; $i < count($elements) - 1; $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=top>\n";
+                echo "<tr valign=\"top\">\n";
 
-                echo "  <TD align=right><P><B>". get_string("element","exercise")." $iplus1:</B></P></TD>\n";
+                echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></p></td>\n";
 
-                echo "  <TD>".text_to_html($elements[$i]->description);
-                echo "<P align=right><FONT size=1>Weight: "
-                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</FONT>\n";
-                echo "</TD></TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("grade"). ":</B></P></TD>\n";
-                echo "  <TD valign=\"top\">\n";
+                echo "  <td>".text_to_html($elements[$i]->description);
+                echo "<p align=\"right\"><font size=\"1\">Weight: "
+                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</font>\n";
+                echo "</td></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("grade"). ":</b></p></td>\n";
+                echo "  <td valign=\"top\">\n";
                     
                 // get the appropriate scale - yes/no scale (0)
                 $SCALE = (object) $EXERCISE_SCALES[0];
                 switch ($SCALE->type) {
                     case 'radio' :
                             // show selections highest first
-                            echo "<CENTER><B>$SCALE->start</B>&nbsp;&nbsp;&nbsp;";
+                            echo "<center><b>$SCALE->start</b>&nbsp;&nbsp;&nbsp;";
                             for ($j = $SCALE->size - 1; $j >= 0 ; $j--) {
                                 $checked = false;
                                 if (isset($grades[$i]->grade)) { 
@@ -1768,13 +1768,13 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                                         }
                                     }
                                 if ($checked) {
-                                    echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
+                                    echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
                                     }
                                 else {
-                                    echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
+                                    echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
                                     }
                                 }
-                            echo "&nbsp;&nbsp;&nbsp;<B>$SCALE->end</B></CENTER>\n";
+                            echo "&nbsp;&nbsp;&nbsp;<b>$SCALE->end</b></center>\n";
                             break;
                     case 'selection' :  
                             unset($numbers);
@@ -1790,13 +1790,13 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                             break;
                     }
         
-                echo "  </TD>\n";
-                echo "</TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("feedback").":</B></P></TD>\n";
-                echo "  <TD>\n";
+                echo "  </td>\n";
+                echo "</tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
+                echo "  <td>\n";
                 if ($allowchanges) {
-                    echo "      <textarea name=\"feedback[$i]\" rows=3 cols=75 wrap=\"virtual\">\n";
+                    echo "      <textarea name=\"feedback[$i]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
                     if (isset($grades[$i]->feedback)) {
                         echo $grades[$i]->feedback;
                         }
@@ -1807,36 +1807,36 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                         echo text_to_html($grades[$i]->feedback);
                         }
                     }
-                echo "&nbsp;</TD>\n";
-                echo "</TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD COLSPAN=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                echo "</TR>\n";
+                echo "&nbsp;</td>\n";
+                echo "</tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                echo "</tr>\n";
                 if (empty($grades[$i]->grade)) {
                     $error += $EXERCISE_EWEIGHTS[$elements[$i]->weight];
                     }
                 }
             // print the number of negative elements
-            // echo "<TR><TD>".get_string("numberofnegativeitems", "exercise")."</TD><TD>$negativecount</TD></TR>\n";
-            // echo "<TR valign=top>\n";
-            // echo "   <TD COLSPAN=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-            echo "</TABLE></CENTER>\n";
+            // echo "<tr><td>".get_string("numberofnegativeitems", "exercise")."</td><td>$negativecount</td></tr>\n";
+            // echo "<tr valign=\"top\">\n";
+            // echo "   <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+            echo "</table></center>\n";
             // now print the grade table
-            echo "<P><CENTER><B>".get_string("gradetable","exercise")."</B></CENTER>\n";
-            echo "<CENTER><TABLE cellpadding=5 border=1><TR><TD ALIGN=\"CENTER\">".
+            echo "<p><center><b>".get_string("gradetable","exercise")."</b></center>\n";
+            echo "<center><table cellpadding=\"5\" border=\"1\"><tr><td align=\"CENTER\">".
                 get_string("numberofnegativeresponses", "exercise");
-            echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n";
+            echo "</td><td>". get_string("suggestedgrade", "exercise")."</td></tr>\n";
             for ($i=0; $i<=$exercise->nelements; $i++) {
                 if ($i == intval($error + 0.5)) {
-                    echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"$CFG->pixpath/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
+                    echo "<tr><td align=\"CENTER\"><img src=\"$CFG->pixpath/t/right.gif\"> $i</td><td align=\"CENTER\">{$elements[$i]->maxscore}</td></tr>\n";
                     }
                 else {
-                    echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
+                    echo "<tr><td align=\"CENTER\">$i</td><td align=\"CENTER\">{$elements[$i]->maxscore}</td></tr>\n";
                     }
                 }
-            echo "</TABLE></CENTER>\n";
-            echo "<P><CENTER><TABLE cellpadding=5 border=1><TR><TD align=\"right\"><b>".
-                get_string("optionaladjustment", "exercise").":</b></TD><TD>\n";
+            echo "</table></center>\n";
+            echo "<p><center><table cellpadding=\"5\" border=\"1\"><tr><td align=\"right\"><b>".
+                get_string("optionaladjustment", "exercise").":</b></td><td>\n";
             unset($numbers);
             for ($j = 20; $j >= -20; $j--) {
                 $numbers[$j] = $j;
@@ -1847,18 +1847,18 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
             else {
                 choose_from_menu($numbers, "grade[$exercise->nelements]", 0, "");
                 }
-            echo "</TD></TR>\n";
+            echo "</td></tr>\n";
             break;
             
         case 3: // criteria grading
-            echo "<TR valign=top>\n";
+            echo "<tr valign=\"top\">\n";
 
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
+            echo "  <td bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
 
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>". get_string("criterion","exercise")."</B></TD>\n";
+            echo "  <td bgcolor=\"$THEME->cellheading2\"><b>". get_string("criterion","exercise")."</b></td>\n";
 
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>".get_string("select")."</B></TD>\n";
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>".get_string("suggestedgrade", "exercise")."</B></TD>\n";
+            echo "  <td bgcolor=\"$THEME->cellheading2\"><b>".get_string("select")."</b></td>\n";
+            echo "  <td bgcolor=\"$THEME->cellheading2\"><b>".get_string("suggestedgrade", "exercise")."</b></td>\n";
             // find which criteria has been selected (saved in the zero element), if any
             if (isset($grades[0]->grade)) {
                 $selection = $grades[0]->grade;
@@ -1869,20 +1869,20 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
             // now run through the elements
             for ($i=0; $i < count($elements); $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=top>\n";
+                echo "<tr valign=\"top\">\n";
 
-                echo "  <TD>$iplus1</TD><TD>".text_to_html($elements[$i]->description)."</TD>\n";
+                echo "  <td>$iplus1</td><td>".text_to_html($elements[$i]->description)."</td>\n";
                 if ($selection == $i) {
-                    echo "  <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[0]\" VALUE=\"$i\" CHECKED=\"checked\" /></TD>\n";
+                    echo "  <td align=\"center\"><input type=\"RADIO\" name=\"grade[0]\" value=\"$i\" checked=\"checked\" /></td>\n";
                     }
                 else {
-                    echo "  <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[0]\" VALUE=\"$i\" /></TD>\n";
+                    echo "  <td align=\"center\"><input type=\"RADIO\" name=\"grade[0]\" value=\"$i\" /></td>\n";
                     }
-                echo "<TD align=center>{$elements[$i]->maxscore}</TD></TR>\n";
+                echo "<td align=\"center\">{$elements[$i]->maxscore}</td></tr>\n";
                 }
-            echo "</TABLE></CENTER>\n";
-            echo "<P><CENTER><TABLE cellpadding=5 border=1><TR><TD align=\"right\"><b>".
-                get_string("optionaladjustment", "exercise")."</b></TD><TD>\n";
+            echo "</table></center>\n";
+            echo "<p><center><table cellpadding=\"5\" border=\"1\"><tr><td align=\"right\"><b>".
+                get_string("optionaladjustment", "exercise")."</b></td><td>\n";
             unset($numbers);
             for ($j = 20; $j >= -20; $j--) {
                 $numbers[$j] = $j;
@@ -1893,23 +1893,23 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
             else {
                 choose_from_menu($numbers, "grade[1]", 0, "");
                 }
-            echo "</TD></TR>\n";
+            echo "</td></tr>\n";
             break;
             
         case 4: // rubric grading
             // now run through the elements...
             for ($i=0; $i < count($elements); $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=\"top\">\n";
+                echo "<tr valign=\"top\">\n";
 
-                echo "<TD align=\"right\"><b>".get_string("element", "exercise")." $iplus1:</b></TD>\n";
-                echo "<TD>".text_to_html($elements[$i]->description).
-                     "<P align=\"right\"><font size=\"1\">Weight: "
-                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</font></TD></tr>\n";
-                echo "<TR valign=\"top\">\n";
+                echo "<td align=\"right\"><b>".get_string("element", "exercise")." $iplus1:</b></td>\n";
+                echo "<td>".text_to_html($elements[$i]->description).
+                     "<p align=\"right\"><font size=\"1\">Weight: "
+                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</font></td></tr>\n";
+                echo "<tr valign=\"top\">\n";
 
-                echo "  <TD BGCOLOR=\"$THEME->cellheading2\" align=\"center\"><B>".get_string("select")."</B></TD>\n";
-                echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>". get_string("criterion","exercise")."</B></TD></tr>\n";
+                echo "  <td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("select")."</b></td>\n";
+                echo "  <td bgcolor=\"$THEME->cellheading2\"><b>". get_string("criterion","exercise")."</b></td></tr>\n";
 
                 if (isset($grades[$i])) {
                     $selection = $grades[$i]->grade;
@@ -1927,20 +1927,20 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                         if (empty($rubrics[$j]->description)) {
                             break; // out of inner for loop
                             }
-                        echo "<TR valign=top>\n";
+                        echo "<tr valign=\"top\">\n";
 
                         if ($selection == $j) {
-                            echo "  <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /></TD>\n";
+                            echo "  <td align=\"center\"><input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" /></td>\n";
                             }else {
-                            echo "  <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /></TD>\n";
+                            echo "  <td align=\"center\"><input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" /></td>\n";
                             }
-                        echo "<TD>".text_to_html($rubrics[$j]->description)."</TD>\n";
+                        echo "<td>".text_to_html($rubrics[$j]->description)."</td>\n";
                         }
-                    echo "<TR valign=top>\n";
-                    echo "  <TD align=right><P><B>". get_string("feedback").":</B></P></TD>\n";
-                    echo "  <TD>\n";
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
+                    echo "  <td>\n";
                     if ($allowchanges) {
-                        echo "      <textarea name=\"feedback[]\" rows=3 cols=75 wrap=\"virtual\">\n";
+                        echo "      <textarea name=\"feedback[]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
                         if (isset($grades[$i]->feedback)) {
                             echo $grades[$i]->feedback;
                             }
@@ -1952,7 +1952,7 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
                     echo "  </td>\n";
                     echo "</tr>\n";
                     echo "<tr valign=\"top\">\n";
-                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</TD>\n";
+                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
                     echo "</tr>\n";
                     }
                 }
@@ -1965,14 +1965,14 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
         case 0:
         case 1:
         case 4 : // no grading, accumulative and rubic
-            echo "  <td align=\"right\"><P><B>". get_string("generalcomment", "exercise").":</B></P></TD>\n";
+            echo "  <td align=\"right\"><p><b>". get_string("generalcomment", "exercise").":</b></p></td>\n";
             break; 
         default : 
-            echo "  <td align=\"right\"><P><B>". get_string("reasonforadjustment", "exercise").":</B></P></TD>\n";
+            echo "  <td align=\"right\"><p><b>". get_string("reasonforadjustment", "exercise").":</b></p></td>\n";
         }
     echo "  <td>\n";
     if ($allowchanges) {
-        echo "      <textarea name=\"generalcomment\" rows=5 cols=75 wrap=\"virtual\">\n";
+        echo "      <textarea name=\"generalcomment\" rows=\"5\" cols=\"75\" wrap=\"virtual\">\n";
         if (isset($assessment->generalcomment)) {
             echo $assessment->generalcomment;
             }
@@ -1995,7 +1995,7 @@ function exercise_print_assessment_form($exercise, $assessment = false, $allowch
 
     echo "<tr valign=\"top\">\n";
 
-    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</TD>\n";
+    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
 
     echo "</tr>\n";
     
@@ -2118,7 +2118,7 @@ function exercise_print_assignment_info($exercise) {
 function exercise_print_difference($time) {
     if ($time < 0) {
         $timetext = get_string("late", "assignment", format_time($time));
-        return " (<FONT COLOR=RED>$timetext</FONT>)";
+        return " (<font color=\"red\">$timetext</font>)";
     } else {
         $timetext = get_string("early", "assignment", format_time($time));
         return " ($timetext)";
@@ -2134,30 +2134,30 @@ function exercise_print_feedback($course, $submission) {
         error("Weird exercise error");
     }
 
-    echo "\n<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=1 ALIGN=CENTER><TR><TD BGCOLOR=#888888>";
-    echo "\n<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 VALIGN=TOP>";
+    echo "\n<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" align=\"center\"><tr><td bgcolor=#888888>";
+    echo "\n<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" valign=\"top\">";
 
-    echo "\n<TR>";
-    echo "\n<TD ROWSPAN=3 BGCOLOR=\"$THEME->body\" WIDTH=35 VALIGN=TOP>";
+    echo "\n<tr>";
+    echo "\n<td rowspan=\"3\" bgcolor=\"$THEME->body\" width=\"35\" valign=\"top\">";
     print_user_picture($teacher->id, $course->id, $teacher->picture);
-    echo "</TD>";
-    echo "<TD NOWRAP WIDTH=100% BGCOLOR=\"$THEME->cellheading\">".fullname($teacher);
-    echo "&nbsp;&nbsp;<FONT SIZE=2><I>".userdate($submission->timemarked)."</I>";
-    echo "</TR>";
+    echo "</td>";
+    echo "<td nowrap=\"nowrap\" width=\"100%\" bgcolor=\"$THEME->cellheading\">".fullname($teacher);
+    echo "&nbsp;&nbsp;<font size=\"2\"><i>".userdate($submission->timemarked)."</i>";
+    echo "</tr>";
 
-    echo "\n<TR><TD WIDTH=100% BGCOLOR=\"$THEME->cellcontent\">";
+    echo "\n<tr><td width=\"100%\" bgcolor=\"$THEME->cellcontent\">";
 
-    echo "<P ALIGN=RIGHT><FONT SIZE=-1><I>";
+    echo "<p align=\"right\"><font size=-1><i>";
     if ($submission->grade) {
         echo get_string("grade").": $submission->grade";
     } else {
         echo get_string("nograde");
     }
-    echo "</I></FONT></P>";
+    echo "</i></font></p>";
 
     echo text_to_html($submission->assessorcomment);
-    echo "</TD></TR></TABLE>";
-    echo "</TD></TR></TABLE>";
+    echo "</td></tr></table>";
+    echo "</td></tr></table>";
 }
 
 
@@ -2309,9 +2309,9 @@ function exercise_print_tabbed_heading($tabs) {
                 $wrapping = "";
             }
             if ($key == $tabs->highlight) {
-                echo "<td valign=top class=\"generaltabselected\" $alignment $width $wrapping bgcolor=\"$THEME->cellheading2\">$tab</td>\n";
+                echo "<td valign=\"top\" class=\"generaltabselected\" $alignment $width $wrapping bgcolor=\"$THEME->cellheading2\">$tab</td>\n";
             } else {
-                echo "<td valign=top class=\"generaltab\" $alignment $width $wrapping bgcolor=\"$THEME->cellheading\">$tab</td>\n";
+                echo "<td valign=\"top\" class=\"generaltab\" $alignment $width $wrapping bgcolor=\"$THEME->cellheading\">$tab</td>\n";
             }
         echo "<td  class=\"generaltablecell\">".
             "<img width=\"10\" src=\"$CFG->wwwroot/pix/spacer.gif\" alt=\"\"></td>\n";
@@ -2352,28 +2352,28 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
         error("Print teacher assessment form: User record not found");
     }
 
-    echo "<CENTER><TABLE BORDER=\"1\" WIDTH=\"30%\"><TR>
-        <TD ALIGN=CENTER BGCOLOR=\"$THEME->cellcontent\">\n";
+    echo "<center><table border=\"1\" width=\"30%\"><tr>
+        <td align=\"center\" bgcolor=\"$THEME->cellcontent\">\n";
     if (!$teachersubmission = get_record("exercise_submissions", "id", $assessment->submissionid)) {
         error ("Print teacher assessment form: Submission record not found");
     }
     echo exercise_print_submission_title($exercise, $teachersubmission);
-    echo "</TD></TR></TABLE><BR CLEAR=ALL>\n";
+    echo "</td></tr></table><br clear=\"all\">\n";
     
-    echo "<CENTER><TABLE BORDER=\"1\" WIDTH=\"30%\"><TR>
-        <TD ALIGN=CENTER BGCOLOR=\"$THEME->cellcontent\">\n";
+    echo "<center><table border=\"1\" width=\"30%\"><tr>
+        <td align=\"center\" bgcolor=\"$THEME->cellcontent\">\n";
     echo exercise_print_submission_title($exercise, $submission);
-    echo "</TD></TR></TABLE></center><BR CLEAR=ALL>\n";
+    echo "</td></tr></table></center><br clear=\"all\">\n";
 
     ?>
     <form name="assessmentform" method="post" action="assessments.php">
-    <INPUT TYPE="hidden" NAME="id" VALUE="<?PHP echo $cm->id ?>" />
-    <input type="hidden" name="said" value="<?PHP echo $assessment->id ?>" />
-    <input type="hidden" name="sid" value="<?PHP echo $submission->id ?>" />
+    <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
+    <input type="hidden" name="said" value="<?php echo $assessment->id ?>" />
+    <input type="hidden" name="sid" value="<?php echo $submission->id ?>" />
     <input type="hidden" name="action" value="updateteacherassessment" />
     <input type="hidden" name="resubmit" value="0" />
-    <input type="hidden" name="returnto" value="<?PHP echo $returnto ?>" />
-    <?PHP
+    <input type="hidden" name="returnto" value="<?php echo $returnto ?>" />
+    <?php
 
     // now print a normal assessment form based on the student's assessment for this submission 
     // and allow the teacher to grade and add additional comments
@@ -2391,13 +2391,13 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
 
     // only show the grade if grading strategy > 0 and the grade is positive
     if ($exercise->gradingstrategy and $assessment->grade >= 0) { 
-        echo "<CENTER><B>".get_string("thegradeis", "exercise").": ".
+        echo "<center><b>".get_string("thegradeis", "exercise").": ".
             number_format($assessment->grade * $exercise->grade / 100.0, 2)." (".
-            get_string("maximumgrade")." ".number_format($exercise->grade, 0).")</B></CENTER><BR CLEAR=ALL>\n";
+            get_string("maximumgrade")." ".number_format($exercise->grade, 0).")</b></center><br clear=\"all\">\n";
         }
         
     echo "<center><table cellpadding=\"2\" border=\"1\">\n";
-    echo "<tr valign=top>\n";
+    echo "<tr valign=\"top\">\n";
     echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\"><center><b>".get_string("yourassessment", "exercise").
         "</b></center></td>\n";
     echo "</tr>\n";
@@ -2423,15 +2423,15 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
             // now print the form
             for ($i=0; $i < count($elements); $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("element","exercise")." $iplus1:</B></P></TD>\n";
-                echo "  <TD>".text_to_html($elements[$i]->description);
-                echo "</TD></TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("feedback").":</B></P></TD>\n";
-                echo "  <TD>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></p></td>\n";
+                echo "  <td>".text_to_html($elements[$i]->description);
+                echo "</td></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
+                echo "  <td>\n";
                 if ($allowchanges) {
-                    echo "      <textarea name=\"feedback[]\" rows=3 cols=75 wrap=\"virtual\">\n";
+                    echo "      <textarea name=\"feedback[]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
                     if (isset($grades[$i]->feedback)) {
                         echo $grades[$i]->feedback;
                     }
@@ -2440,11 +2440,11 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                 else {
                     echo text_to_html($grades[$i]->feedback);
                 }
-                echo "  </TD>\n";
-                echo "</TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD COLSPAN=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                echo "</TR>\n";
+                echo "  </td>\n";
+                echo "</tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                echo "</tr>\n";
             }
             break;
             
@@ -2452,15 +2452,15 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
             // now print the form
             for ($i=0; $i < count($elements); $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("element","exercise")." $iplus1:</B></P></TD>\n";
-                echo "  <TD>".text_to_html($elements[$i]->description);
-                echo "<P align=right><FONT size=1>Weight: "
-                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</FONT>\n";
-                echo "</TD></TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("grade"). ":</B></P></TD>\n";
-                echo "  <TD valign=\"top\">\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></p></td>\n";
+                echo "  <td>".text_to_html($elements[$i]->description);
+                echo "<p align=\"right\"><font size=\"1\">Weight: "
+                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</font>\n";
+                echo "</td></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("grade"). ":</b></p></td>\n";
+                echo "  <td valign=\"top\">\n";
                 
                 // get the appropriate scale
                 $scalenumber=$elements[$i]->scale;
@@ -2468,7 +2468,7 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                 switch ($SCALE->type) {
                     case 'radio' :
                             // show selections highest first
-                            echo "<CENTER><B>$SCALE->start</B>&nbsp;&nbsp;&nbsp;";
+                            echo "<center><b>$SCALE->start</b>&nbsp;&nbsp;&nbsp;";
                             for ($j = $SCALE->size - 1; $j >= 0 ; $j--) {
                                 $checked = false;
                                 if (isset($grades[$i]->grade)) { 
@@ -2482,13 +2482,13 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                                     }
                                 }
                                 if ($checked) {
-                                    echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
+                                    echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
                                 }
                                 else {
-                                    echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
+                                    echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
                                 }
                             }
-                            echo "&nbsp;&nbsp;&nbsp;<B>$SCALE->end</B></CENTER>\n";
+                            echo "&nbsp;&nbsp;&nbsp;<b>$SCALE->end</b></center>\n";
                             break;
                     case 'selection' :  
                             unset($numbers);
@@ -2503,14 +2503,14 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                             }
                             break;
         
-                    echo "  </TD>\n";
-                    echo "</TR>\n";
+                    echo "  </td>\n";
+                    echo "</tr>\n";
                 }
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("feedback").":</B></P></TD>\n";
-                echo "  <TD>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
+                echo "  <td>\n";
                 if ($allowchanges) {
-                    echo "      <textarea name=\"feedback[]\" rows=3 cols=75 wrap=\"virtual\">\n";
+                    echo "      <textarea name=\"feedback[]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
                     if (isset($grades[$i]->feedback)) {
                         echo $grades[$i]->feedback;
                     }
@@ -2519,11 +2519,11 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                 else {
                     echo text_to_html($grades[$i]->feedback);
                 }
-                echo "  </TD>\n";
-                echo "</TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD COLSPAN=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                echo "</TR>\n";
+                echo "  </td>\n";
+                echo "</tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                echo "</tr>\n";
             }
             break;
             
@@ -2532,22 +2532,22 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
             $error = 0;
             for ($i=0; $i < count($elements) - 1; $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("element","exercise")." $iplus1:</B></P></TD>\n";
-                echo "  <TD>".text_to_html($elements[$i]->description);
-                echo "<P align=right><FONT size=1>Weight: "
-                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</FONT>\n";
-                echo "</TD></TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("grade"). ":</B></P></TD>\n";
-                echo "  <TD valign=\"top\">\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("element","exercise")." $iplus1:</b></p></td>\n";
+                echo "  <td>".text_to_html($elements[$i]->description);
+                echo "<p align=\"right\"><font size=\"1\">Weight: "
+                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</font>\n";
+                echo "</td></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("grade"). ":</b></p></td>\n";
+                echo "  <td valign=\"top\">\n";
                     
                 // get the appropriate scale - yes/no scale (0)
                 $SCALE = (object) $EXERCISE_SCALES[0];
                 switch ($SCALE->type) {
                     case 'radio' :
                             // show selections highest first
-                            echo "<CENTER><B>$SCALE->start</B>&nbsp;&nbsp;&nbsp;";
+                            echo "<center><b>$SCALE->start</b>&nbsp;&nbsp;&nbsp;";
                             for ($j = $SCALE->size - 1; $j >= 0 ; $j--) {
                                 $checked = false;
                                 if (isset($grades[$i]->grade)) { 
@@ -2561,13 +2561,13 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                                     }
                                 }
                                 if ($checked) {
-                                    echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
+                                    echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" /> &nbsp;&nbsp;&nbsp;\n";
                                 }
                                 else {
-                                    echo " <INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
+                                    echo " <input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" /> &nbsp;&nbsp;&nbsp;\n";
                                 }
                             }
-                            echo "&nbsp;&nbsp;&nbsp;<B>$SCALE->end</B></CENTER>\n";
+                            echo "&nbsp;&nbsp;&nbsp;<b>$SCALE->end</b></center>\n";
                             break;
                     case 'selection' :  
                             unset($numbers);
@@ -2583,13 +2583,13 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                             break;
                 }
         
-                echo "  </TD>\n";
-                echo "</TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD align=right><P><B>". get_string("feedback").":</B></P></TD>\n";
-                echo "  <TD>\n";
+                echo "  </td>\n";
+                echo "</tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
+                echo "  <td>\n";
                 if ($allowchanges) {
-                    echo "      <textarea name=\"feedback[$i]\" rows=3 cols=75 wrap=\"virtual\">\n";
+                    echo "      <textarea name=\"feedback[$i]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
                     if (isset($grades[$i]->feedback)) {
                         echo $grades[$i]->feedback;
                     }
@@ -2600,36 +2600,36 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                         echo text_to_html($grades[$i]->feedback);
                     }
                 }
-                echo "&nbsp;</TD>\n";
-                echo "</TR>\n";
-                echo "<TR valign=top>\n";
-                echo "  <TD COLSPAN=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-                echo "</TR>\n";
+                echo "&nbsp;</td>\n";
+                echo "</tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+                echo "</tr>\n";
                 if (empty($grades[$i]->grade)) {
                         $error += $EXERCISE_EWEIGHTS[$elements[$i]->weight];
                 }
             }
             // print the number of negative elements
-            // echo "<TR><TD>".get_string("numberofnegativeitems", "exercise")."</TD><TD>$negativecount</TD></TR>\n";
-            // echo "<TR valign=top>\n";
-            // echo "   <TD COLSPAN=2 BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-            echo "</TABLE></CENTER>\n";
+            // echo "<tr><td>".get_string("numberofnegativeitems", "exercise")."</td><td>$negativecount</td></tr>\n";
+            // echo "<tr valign=\"top\">\n";
+            // echo "   <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+            echo "</table></center>\n";
             // now print the grade table
-            echo "<P><CENTER><B>".get_string("gradetable","exercise")."</B></CENTER>\n";
-            echo "<CENTER><TABLE cellpadding=5 border=1><TR><TD ALIGN=\"CENTER\">".
+            echo "<p><center><b>".get_string("gradetable","exercise")."</b></center>\n";
+            echo "<center><table cellpadding=\"5\" border=\"1\"><tr><td align=\"CENTER\">".
                 get_string("numberofnegativeresponses", "exercise");
-            echo "</TD><TD>". get_string("suggestedgrade", "exercise")."</TD></TR>\n";
+            echo "</td><td>". get_string("suggestedgrade", "exercise")."</td></tr>\n";
             for ($i=0; $i<=$exercise->nelements; $i++) {
                 if ($i == intval($error + 0.5)) {
-                    echo "<TR><TD ALIGN=\"CENTER\"><IMG SRC=\"$CFG->pixpath/t/right.gif\"> $i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
+                    echo "<tr><td align=\"CENTER\"><img src=\"$CFG->pixpath/t/right.gif\"> $i</td><td align=\"CENTER\">{$elements[$i]->maxscore}</td></tr>\n";
                 }
                 else {
-                    echo "<TR><TD ALIGN=\"CENTER\">$i</TD><TD ALIGN=\"CENTER\">{$elements[$i]->maxscore}</TD></TR>\n";
+                    echo "<tr><td align=\"CENTER\">$i</td><td align=\"CENTER\">{$elements[$i]->maxscore}</td></tr>\n";
                 }
             }
-            echo "</TABLE></CENTER>\n";
-            echo "<P><CENTER><TABLE cellpadding=5 border=1><TR><TD align=\"right\"><b>".
-                get_string("optionaladjustment", "exercise")."</b></TD><TD>\n";
+            echo "</table></center>\n";
+            echo "<p><center><table cellpadding=\"5\" border=\"1\"><tr><td align=\"right\"><b>".
+                get_string("optionaladjustment", "exercise")."</b></td><td>\n";
             unset($numbers);
             for ($j = 20; $j >= -20; $j--) {
                 $numbers[$j] = $j;
@@ -2640,15 +2640,15 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
             else {
                 choose_from_menu($numbers, "grade[$exercise->nelements]", 0, "");
             }
-            echo "</TD></TR>\n";
+            echo "</td></tr>\n";
             break;
             
         case 3: // criteria grading
-            echo "<TR valign=top>\n";
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\">&nbsp;</TD>\n";
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>". get_string("criterion","exercise")."</B></TD>\n";
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>".get_string("select")."</B></TD>\n";
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>".get_string("suggestedgrade", "exercise")."</B></TD>\n";
+            echo "<tr valign=\"top\">\n";
+            echo "  <td bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
+            echo "  <td bgcolor=\"$THEME->cellheading2\"><b>". get_string("criterion","exercise")."</b></td>\n";
+            echo "  <td bgcolor=\"$THEME->cellheading2\"><b>".get_string("select")."</b></td>\n";
+            echo "  <td bgcolor=\"$THEME->cellheading2\"><b>".get_string("suggestedgrade", "exercise")."</b></td>\n";
             // find which criteria has been selected (saved in the zero element), if any
             if (isset($grades[0]->grade)) {
                 $selection = $grades[0]->grade;
@@ -2659,19 +2659,19 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
             // now run through the elements
             for ($i=0; $i < count($elements); $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=top>\n";
-                echo "  <TD>$iplus1</TD><TD>".text_to_html($elements[$i]->description)."</TD>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td>$iplus1</td><td>".text_to_html($elements[$i]->description)."</td>\n";
                 if ($selection == $i) {
-                    echo "  <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[0]\" VALUE=\"$i\" CHECKED=\"checked\" /></TD>\n";
+                    echo "  <td align=\"center\"><input type=\"RADIO\" name=\"grade[0]\" value=\"$i\" checked=\"checked\" /></td>\n";
                 }
                 else {
-                    echo "  <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[0]\" VALUE=\"$i\" /></TD>\n";
+                    echo "  <td align=\"center\"><input type=\"RADIO\" name=\"grade[0]\" value=\"$i\" /></td>\n";
                 }
-                echo "<TD align=center>{$elements[$i]->maxscore}</TD></TR>\n";
+                echo "<td align=\"center\">{$elements[$i]->maxscore}</td></tr>\n";
             }
-            echo "</TABLE></CENTER>\n";
-            echo "<P><CENTER><TABLE cellpadding=5 border=1><TR><TD align=\"right\"><b>".
-                get_string("optionaladjustment", "exercise")."</b></TD><TD>\n";
+            echo "</table></center>\n";
+            echo "<p><center><table cellpadding=\"5\" border=\"1\"><tr><td align=\"right\"><b>".
+                get_string("optionaladjustment", "exercise")."</b></td><td>\n";
             unset($numbers);
             for ($j = 20; $j >= -20; $j--) {
                 $numbers[$j] = $j;
@@ -2682,21 +2682,21 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
             else {
                 choose_from_menu($numbers, "grade[1]", 0, "");
             }
-            echo "</TD></TR>\n";
+            echo "</td></tr>\n";
             break;
             
         case 4: // rubric grading
             // now run through the elements...
             for ($i=0; $i < count($elements); $i++) {
                 $iplus1 = $i+1;
-                echo "<TR valign=\"top\">\n";
-                echo "<TD align=\"right\"><b>".get_string("element", "exercise")." $iplus1:</b></TD>\n";
-                echo "<TD>".text_to_html($elements[$i]->description).
-                     "<P align=\"right\"><font size=\"1\">Weight: "
-                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</font></TD></tr>\n";
-                echo "<TR valign=\"top\">\n";
-                echo "  <TD BGCOLOR=\"$THEME->cellheading2\" align=\"center\"><B>".get_string("select")."</B></TD>\n";
-                echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>". get_string("criterion","exercise")."</B></TD></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "<td align=\"right\"><b>".get_string("element", "exercise")." $iplus1:</b></td>\n";
+                echo "<td>".text_to_html($elements[$i]->description).
+                     "<p align=\"right\"><font size=\"1\">Weight: "
+                    .number_format($EXERCISE_EWEIGHTS[$elements[$i]->weight], 2)."</font></td></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "  <td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("select")."</b></td>\n";
+                echo "  <td bgcolor=\"$THEME->cellheading2\"><b>". get_string("criterion","exercise")."</b></td></tr>\n";
                 if (isset($grades[$i])) {
                     $selection = $grades[$i]->grade;
                 } else {
@@ -2713,19 +2713,19 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                         if (empty($rubrics[$j]->description)) {
                             break; // out of inner for loop
                         }
-                        echo "<TR valign=top>\n";
+                        echo "<tr valign=\"top\">\n";
                         if ($selection == $j) {
-                            echo "  <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" CHECKED=\"checked\" /></TD>\n";
+                            echo "  <td align=\"center\"><input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" checked=\"checked\" /></td>\n";
                         } else {
-                            echo "  <TD align=center><INPUT TYPE=\"RADIO\" NAME=\"grade[$i]\" VALUE=\"$j\" /></TD>\n";
+                            echo "  <td align=\"center\"><input type=\"RADIO\" name=\"grade[$i]\" value=\"$j\" /></td>\n";
                         }
-                        echo "<TD>".text_to_html($rubrics[$j]->description)."</TD>\n";
+                        echo "<td>".text_to_html($rubrics[$j]->description)."</td>\n";
                     }
-                    echo "<TR valign=top>\n";
-                    echo "  <TD align=right><P><B>". get_string("feedback").":</B></P></TD>\n";
-                    echo "  <TD>\n";
+                    echo "<tr valign=\"top\">\n";
+                    echo "  <td align=\"right\"><p><b>". get_string("feedback").":</b></p></td>\n";
+                    echo "  <td>\n";
                     if ($allowchanges) {
-                        echo "      <textarea name=\"feedback[]\" rows=3 cols=75 wrap=\"virtual\">\n";
+                        echo "      <textarea name=\"feedback[]\" rows=\"3\" cols=\"75\" wrap=\"virtual\">\n";
                         if (isset($grades[$i]->feedback)) {
                             echo $grades[$i]->feedback;
                         }
@@ -2737,7 +2737,7 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
                     echo "  </td>\n";
                     echo "</tr>\n";
                     echo "<tr valign=\"top\">\n";
-                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</TD>\n";
+                    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
                     echo "</tr>\n";
                 }
             }
@@ -2750,14 +2750,14 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
         case 0:
         case 1:
         case 4 : // no grading, accumulative and rubic
-            echo "  <td align=\"right\"><P><B>". get_string("generalcomment", "exercise").":</B></P></TD>\n";
+            echo "  <td align=\"right\"><p><b>". get_string("generalcomment", "exercise").":</b></p></td>\n";
             break; 
         default : 
-            echo "  <td align=\"right\"><P><B>". get_string("reasonforadjustment", "exercise").":</B></P></TD>\n";
+            echo "  <td align=\"right\"><p><b>". get_string("reasonforadjustment", "exercise").":</b></p></td>\n";
     }
     echo "  <td>\n";
     if ($allowchanges) {
-        echo "      <textarea name=\"generalcomment\" rows=5 cols=75 wrap=\"virtual\">\n";
+        echo "      <textarea name=\"generalcomment\" rows=\"5\" cols=\"75\" wrap=\"virtual\">\n";
         if (isset($assessment->generalcomment)) {
             echo $assessment->generalcomment;
         }
@@ -2776,7 +2776,7 @@ function exercise_print_teacher_assessment_form($exercise, $assessment, $submiss
     echo "&nbsp;</td>\n";
     echo "</tr>\n";
     echo "<tr valign=\"top\">\n";
-    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</TD>\n";
+    echo "  <td colspan=\"2\" bgcolor=\"$THEME->cellheading2\">&nbsp;</td>\n";
     echo "</tr>\n";
     
     // ...and close the table and show two buttons...to resubmit or not to resubmit
@@ -2845,7 +2845,7 @@ function exercise_print_teacher_table($course) {
 function exercise_print_time_to_deadline($time) {
     if ($time < 0) {
         $timetext = get_string("afterdeadline", "exercise", format_time($time));
-        return " (<FONT COLOR=RED>$timetext</FONT>)";
+        return " (<font color=\"red\">$timetext</font>)";
     } else {
         $timetext = get_string("beforedeadline", "exercise", format_time($time));
         return " ($timetext)";
@@ -2863,16 +2863,16 @@ function exercise_print_upload_form($exercise) {
         error("Course Module ID was incorrect");
         }
 
-    echo "<DIV ALIGN=CENTER>";
-    echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"POST\" ACTION=upload.php>";
-    echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$exercise->maxbytes\" />";
-    echo " <INPUT TYPE=hidden NAME=id VALUE=\"$cm->id\" />";
-    echo "<b>".get_string("title", "exercise")."</b>: <INPUT NAME=\"title\" TYPE=\"text\" SIZE=\"60\" MAXSIZE=\"100\" /><BR><BR>\n";
-    echo " <INPUT NAME=\"newfile\" TYPE=\"file\" size=\"50\" />";
-    echo " <INPUT TYPE=submit NAME=save VALUE=\"".get_string("uploadthisfile")."\" />";
+    echo "<div align=\"center\">";
+    echo "<form enctype=\"multipart/form-data\" method=\"POST\" action=\"upload.php\">";
+    echo " <input type=\"hidden\" name=\"maxbytes\" value=\"$exercise->maxbytes\" />";
+    echo " <input type=\"hidden\" name=\"id\" value=\"$cm->id\" />";
+    echo "<b>".get_string("title", "exercise")."</b>: <input name=\"title\" type=\"text\" size=\"60\" maxsize=\"100\" /><br /><br />\n";
+    echo " <input name=\"newfile\" type=\"file\" size=\"50\" />";
+    echo " <input type=\"submit\" name=\"save\" value=\"".get_string("uploadthisfile")."\" />";
     echo " (".get_string("maximumupload").": ".display_size($exercise->maxbytes).")\n"; 
-    echo "</FORM>";
-    echo "</DIV>";
+    echo "</form>";
+    echo "</div>";
 }
 
 
@@ -2886,12 +2886,12 @@ function exercise_print_user_assessments($exercise, $user) {
         foreach ($assessments as $assessment) {
             if ($assessment->timegraded) {
                 $gradingscaled = round($assessment->gradinggrade * $exercise->gradinggrade / 100.0);
-                $str .= "<A HREF=\"assessments.php?action=viewassessment&a=$exercise->id&aid=$assessment->id\">";
-                $str .= "$gradingscaled</A> ";
+                $str .= "<a href=\"assessments.php?action=viewassessment&a=$exercise->id&aid=$assessment->id\">";
+                $str .= "$gradingscaled</a> ";
                 }
             else {
-                $str .= "<A HREF=\"assessments.php?action=viewassessment&a=$exercise->id&aid=$assessment->id\">";
-                $str .= "-</A> ";
+                $str .= "<a href=\"assessments.php?action=viewassessment&a=$exercise->id&aid=$assessment->id\">";
+                $str .= "-</a> ";
                 }
             }
         $str .= ")";
index 4f0ed4640711981411fcfbf96a11c75052a0cb56..c330ef37f035520dd5b6498b8da6ad5949666fc2 100644 (file)
 ?>
 
 <form name="form" method="post" action="mod.php">
-<table cellpadding=5>
-<tr valign=top>
-    <td align=right width=\"50%\"><P><B><?php  print_string("title", "exercise") ?>:</B></P></TD>
+<table cellpadding="5">
+<tr valign="top">
+    <td align="right" width=\"50%\"><p><b><?php  print_string("title", "exercise") ?>:</b></p></td>
     <td width=\"50%\">
-        <input type="text" name="name" size=60 value="<?php  p($form->name) ?>">
+        <input type="text" name="name" size="60" value="<?php  p($form->name) ?>">
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("description", "exercise") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("description", "exercise") ?>:</b></p></td>
     <td>
     <?php  
        echo get_string("descriptionofexercise", "exercise", $course->students);
@@ -59,8 +59,8 @@
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("gradeforstudentsassessment", "exercise", $course->student) ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("gradeforstudentsassessment", "exercise", $course->student) ?>:</b></p></td>
     <td>
         <?php
         for ($i=100; $i>=0; $i--) {
@@ -72,8 +72,8 @@
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("gradeforsubmission", "exercise") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("gradeforsubmission", "exercise") ?>:</b></p></td>
     <td>
         <?php
         choose_from_menu($grades, "grade", "$form->grade", "");
@@ -82,8 +82,8 @@
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("gradingstrategy", "exercise") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("gradingstrategy", "exercise") ?>:</b></p></td>
     <td>
     <?php
        choose_from_menu($EXERCISE_TYPE, "gradingstrategy", $form->gradingstrategy, "");
@@ -93,7 +93,7 @@
 </tr>
 
 <tr>
-    <td align=right><P><B><?php print_string("handlingofmultiplesubmissions", "exercise") ?>:</B></P></TD>
+    <td align="right"><p><b><?php print_string("handlingofmultiplesubmissions", "exercise") ?>:</b></p></td>
     <td>
     <?php
         $options[0] = get_string("usemean", "exercise"); $options[1] = get_string("usemaximum", "exercise");
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("numberofassessmentelements", "exercise") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("numberofassessmentelements", "exercise") ?>:</b></p></td>
     <td valign="middle">
         <?php
         for ($i=20; $i>=0; $i--) {
 </tr>
 
 <tr>
-    <td align=right><P><B><?php print_string("comparisonofassessments", "exercise") ?>:</B></P></TD>
+    <td align="right"><p><b><?php print_string("comparisonofassessments", "exercise") ?>:</b></p></td>
     <td>
         <?php
                // set up comparison names
 </tr>
 
 <tr>
-    <td align=right><p><b><?php  print_string("usepassword", "exercise"); ?>:</b></p></td>
+    <td align="right"><p><b><?php  print_string("usepassword", "exercise"); ?>:</b></p></td>
     <td>
-    <?PHP 
+    <?php 
         $options[0] = get_string("no"); $options[1] = get_string("yes");
                choose_from_menu($options, "usepassword", $form->usepassword, "");
         helpbutton("usepassword", get_string("usepassword", "exercise"), "exercise");
 </tr>
 
 <tr>
-    <td align=right><p><b><?php  print_string("password"); ?>:</b></p></td>
+    <td align="right"><p><b><?php  print_string("password"); ?>:</b></p></td>
     <td>
-        <input type="text" name="password" size=10 value=""> <?php echo " (".get_string("leavetokeep").")"; ?>
+        <input type="text" name="password" size="10" value=""> <?php echo " (".get_string("leavetokeep").")"; ?>
                <?php helpbutton("password", get_string("password"), "exercise"); ?>
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><p><b><?php  print_string("maximumsize", "exercise") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("maximumsize", "exercise") ?>:</b></p></td>
     <td>
         <?php
         $sizelist = array("10Kb", "50Kb", "100Kb", "500Kb", "1Mb", "2Mb", "5Mb", "10Mb", "20Mb", "50Mb");
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><p><b><?php  print_string("deadline", "exercise") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("deadline", "exercise") ?>:</b></p></td>
     <td><?php
            print_date_selector("deadlineday", "deadlinemonth", "deadlineyear", $form->deadline);
            echo "&nbsp;-&nbsp;";
     ?></td>
 </tr>
 
-<tr valign=top>
-    <td align=right><p><b><?php print_string("numberofentriesinleaguetable", "exercise") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("numberofentriesinleaguetable", "exercise") ?>:</b></p></td>
     <td><?php
         unset($numbers);
         $numbers[22] = 'All';
     </td>
 </tr>
 
-<tr valign=top>>
-    <td align=right><p><b><?php print_string("hidenamesfromstudents", "exercise", $course->students) ?>:</b></p></td>
+<tr valign="top">>
+    <td align="right"><p><b><?php print_string("hidenamesfromstudents", "exercise", $course->students) ?>:</b></p></td>
     <td><?php
         $options[0] = get_string("no"); $options[1] = get_string("yes");
         choose_from_menu($options, "anonymous", $form->anonymous, "");
 </table>
 <br />
 <center>
-<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") ?>">
+<input type="submit" name="cancel" value="<?php  print_string("cancel") ?>">
 <p>
-<p><?PHP notify(get_string("noteonassessmentelements", "exercise")); ?>
+<p><?php notify(get_string("noteonassessmentelements", "exercise")); ?>
 
-</CENTER>
+</center>
 
index c95fd7097be616b03f7d38805b169f4c10d6461b..f9bb3673ed153f3df657855d9e813db78ec20364 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //exercise mods
 
index 8673622e7b4be2a0ce11c24ca09952614d52904b..d440f3c51ea4539df31cc9798de32b18984e4d0a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id: submissions.php,v 1.0 22 Aug 2003
+<?php  // $Id: submissions.php,v 1.0 22 Aug 2003
 
 /*************************************************
     ACTIONS handled are:
@@ -47,8 +47,8 @@
 
     // ... print the header and...
     print_header_simple("$exercise->name", "",
-                 "<A HREF=index.php?id=$course->id>$strexercises</A> -> 
-                  <A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strsubmissions", 
+                 "<a href=\"index.php?id=$course->id\">$strexercises</a> -> 
+                  <a href=\"view.php?id=$cm->id\">$exercise->name</a> -> $strsubmissions", 
                   "", "", true);
 
     //...get the action!
         ?>
         <form name="amendtitleform" action="submissions.php" method="post">
         <input type="hidden" name="action" value="adminupdatetitle">
-        <input type="hidden" name="id" value="<?PHP echo $cm->id ?>">
-        <input type="hidden" name="sid" value="<?PHP echo $_REQUEST['sid'] ?>">
+        <input type="hidden" name="id" value="<?php echo $cm->id ?>">
+        <input type="hidden" name="sid" value="<?php echo $_REQUEST['sid'] ?>">
         <center>
         <table celpadding="5" border="1">
-        <?PHP
+        <?php
 
         // now get the comment
         echo "<tr valign=\"top\">\n";
-        echo "    <td align=\"right\"><P><B>". get_string("title", "exercise").":</b></p></td>\n";
+        echo "    <td align=\"right\"><p><b>". get_string("title", "exercise").":</b></p></td>\n";
         echo "    <td>\n";
         echo "        <input type=\"text\" name=\"title\" size=\"60\" maxlength=\"100\" value=\"$submission->title\">\n";
         echo "    </td></tr></table>\n";
-        echo "<input type=submit VALUE=\"".get_string("amendtitle", "exercise")."\">\n";
+        echo "<input type=\"submit\" value=\"".get_string("amendtitle", "exercise")."\">\n";
         echo "</center></form>\n";
 
         }
         echo "<td bgcolor=\"$THEME->cellheading2\"><b>".get_string("submission", "exercise")."</b></td>";
         echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("gradeforassessment", "exercise")."</b></td>";
         echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("gradeforsubmission", "exercise")."</b></td>";
-        echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("overallgrade", "exercise")."</b></td></TR>\n";
+        echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("overallgrade", "exercise")."</b></td></tr>\n";
         // now the weights
         echo "<tr><td bgcolor=\"$THEME->cellheading2\"><b>".get_string("maximumgrade")."</b></td>";
         echo "<td bgcolor=\"$THEME->cellheading2\"><b>&nbsp;</b></td>\n";
index 83b0b0068261c9774981d6687d336975ee46e76b..b881c4aea80ec3216b760089d6b1682fe37ba0a4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id: upload.php, v1.0 30th April 2003
+<?php  // $Id: upload.php, v1.0 30th April 2003
 
     require("../../config.php");
     require("lib.php");
@@ -29,8 +29,8 @@
     $strupload      = get_string("upload");
 
     print_header_simple("$exercise->name : $strupload", "",
-                 "<A HREF=index.php?id=$course->id>$strexercises</A> -> 
-                  <A HREF=\"view.php?id=$cm->id\">$exercise->name</A> -> $strupload", 
+                 "<a href=\"index.php?id=$course->id\">$strexercises</a> -> 
+                  <a href=\"view.php?id=$cm->id\">$exercise->name</a> -> $strupload", 
                   "", "", true);
 
     // check that this is not a "rapid" second submission, caused by using the back button
index 9a13129a2c8817ea1a16f58c7abfc8a062171420..f0d978225a6ff7df4ea194e9f2da9c9df51829e2 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
index b6718262d990c49375ebcf4438954d988b97d2f0..b8b96f878bb8e5a6da9c8529d4d16e8bde82c90a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id: view.php, v1.1 23 Aug 2003
+<?php  // $Id: view.php, v1.1 23 Aug 2003
 
 /*************************************************
     ACTIONS handled are:
@@ -44,7 +44,7 @@
 
     // ...display header...
     print_header_simple("$exercise->name", "",
-                 "<A HREF=index.php?id=$course->id>$strexercises</A> -> $exercise->name", 
+                 "<a href=\"index.php?id=$course->id\">$strexercises</a> -> $exercise->name", 
                   "", "", true, update_module_button($cm->id, $course->id, $strexercise), navmenu($course, $cm));
 
     // ...and if necessary set default action 
             echo "<td bgcolor=\"$THEME->cellheading2\"><b>".get_string("submissions", "exercise")."</b></td>";
             echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("gradeforassessment", "exercise")."</b></td>";
             echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("gradeforsubmission", "exercise", $course->teacher)."</b></td>";
-            echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("overallgrade", "exercise")."</b></td></TR>\n";
+            echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("overallgrade", "exercise")."</b></td></tr>\n";
             // now the weights
-            echo "<TR><td bgcolor=\"$THEME->cellheading2\"><b>".get_string("maximumgrade")."</b></td>";
+            echo "<tr><td bgcolor=\"$THEME->cellheading2\"><b>".get_string("maximumgrade")."</b></td>";
             echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>$exercise->gradinggrade</b></td>\n";
             echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>$exercise->grade</b></td>\n";
-            echo "<td bgcolor=\"$THEME->cellheading2\"><b>&nbsp;</b></td></TR>\n";
+            echo "<td bgcolor=\"$THEME->cellheading2\"><b>&nbsp;</b></td></tr>\n";
             // first get user's own assessment reord, it should contain their grading grade
             if ($ownassessments = exercise_get_user_assessments($exercise, $USER)) {
                 foreach ($ownassessments as $ownassessment) {
                             $grade = "<font color=\"red\">(".$grade.")</font>";
                             $overallgrade = "<font color=\"red\">(".$overallgrade.")</font>";
                         }
-                        echo "<TR><td>".exercise_print_submission_title($exercise, $submission)."</td>\n";
+                        echo "<tr><td>".exercise_print_submission_title($exercise, $submission)."</td>\n";
                         echo "<td align=\"center\">$gradinggrade</td>";
                         echo "<td align=\"center\">$grade</td>";
-                        echo "<td align=\"center\">$overallgrade</td></TR>\n";
+                        echo "<td align=\"center\">$overallgrade</td></tr>\n";
                     }
                 }
             }
         }
-        echo "</TABLE><BR CLEAR=ALL>\n";
+        echo "</table><br clear=\"all\">\n";
         if ($exercise->showleaguetable) {
             exercise_print_league_table($exercise);
         }
         // list previous submissions from this user
         exercise_list_user_submissions($exercise, $USER);
     
-        echo "<HR SIZE=1 NOSHADE>";
+        echo "<hr size=\"1\" NOSHADE>";
     
         // print upload form
         print_heading(get_string("submitexercisedescription", "exercise").":");
                           exercise_count_unassessed_student_submissions($exercise))."</a></b> \n";
                     helpbutton("grading", get_string("studentsubmissionsforassessment", "exercise"), 
                             "exercise");
-                    print_heading("<A HREF=\"submissions.php?id=$cm->id&action=displayfinalgrades\">".
-                          get_string("displayoffinalgrades", "exercise")."</A>");
+                    print_heading("<a href=\"submissions.php?id=$cm->id&action=displayfinalgrades\">".
+                          get_string("displayoffinalgrades", "exercise")."</a>");
         }
-        print_heading("<A HREF=\"submissions.php?id=$cm->id&action=adminlist\">".
-            get_string("administration")."</A>");
+        print_heading("<a href=\"submissions.php?id=$cm->id&action=adminlist\">".
+            get_string("administration")."</a>");
     }
     
     
index 8711083d4d2b6de4036ea5778e8715540f287eda..6278d12cf9f2a6d0cacf1396a3187f47de12e890 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //forum mods
 
index e142eb074a81e13729ce6959e2f24874d43a384c..e9bed36260e448f9f8b921381ba3ecd017e983f3 100644 (file)
@@ -1,8 +1,8 @@
 <form method="post" action="module.php" name="form">
 
-<table cellpadding=9 cellspacing=0 >
-<tr valign=top>
-    <td align=right><p>forum_displaymode:</td>
+<table cellpadding="9" cellspacing="0" >
+<tr valign="top">
+    <td align="right"><p>forum_displaymode:</td>
     <td>
     <?php choose_from_menu ($FORUM_LAYOUT_MODES, "forum_displaymode", $CFG->forum_displaymode, "", "", ""); ?>
     </td>
@@ -10,8 +10,8 @@
     <?php print_string("configdisplaymode", "forum") ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p>forum_replytouser:</td>
+<tr valign="top">
+    <td align="right"><p>forum_replytouser:</td>
     <td>
     <?php
        unset($options);
     <?php print_string("configreplytouser", "forum") ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p>forum_shortpost:</td>
+<tr valign="top">
+    <td align="right"><p>forum_shortpost:</td>
     <td>
-    <input name=forum_shortpost type=text size=5 value="<?php p($CFG->forum_shortpost) ?>">
+    <input name="forum_shortpost" type="text" size="5" value="<?php p($CFG->forum_shortpost) ?>">
     </td>
     <td>
     <?php print_string("configshortpost", "forum") ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p>forum_longpost:</td>
+<tr valign="top">
+    <td align="right"><p>forum_longpost:</td>
     <td>
-    <input name=forum_longpost type=text size=5 value="<?php p($CFG->forum_longpost) ?>">
+    <input name="forum_longpost" type="text" size="5" value="<?php p($CFG->forum_longpost) ?>">
     </td>
     <td>
     <?php print_string("configlongpost", "forum") ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p>forum_manydiscussions:</td>
+<tr valign="top">
+    <td align="right"><p>forum_manydiscussions:</td>
     <td>
-    <input name=forum_manydiscussions type=text size=5 value="<?php p($CFG->forum_manydiscussions) ?>">
+    <input name="forum_manydiscussions" type="text" size="5" value="<?php p($CFG->forum_manydiscussions) ?>">
     </td>
     <td>
     <?php print_string("configmanydiscussions", "forum") ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p>forum_maxbytes:</td>
+<tr valign="top">
+    <td align="right"><p>forum_maxbytes:</td>
     <td><?php
     $choices = get_max_upload_sizes($CFG->maxbytes);
     choose_from_menu ($choices, "forum_maxbytes", $CFG->forum_maxbytes, "");
@@ -62,8 +62,8 @@
     <?php print_string("configmaxbytes", "forum") ?>
     </td>
 </tr>
-<tr valign=top>
-        <td align=right><p>forum_enablerssfeeds:</td>
+<tr valign="top">
+        <td align="right"><p>forum_enablerssfeeds:</td>
         <td>
     <?php
         if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
@@ -94,7 +94,7 @@
 </tr>
 
 <tr>
-    <td colspan=3 align=center>
+    <td colspan="3" align="center">
     <input type="submit" value="<?php print_string("savechanges") ?>"></td>
 </tr>
 </table>
index ffb527f819a3d7496df595239d7fe4de2ad17f50..3b9cf91eb816dd386bfa18939466237b9f92258d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function forum_upgrade($oldversion) {
 // This function does anything necessary to upgrade
@@ -39,7 +39,7 @@ function forum_upgrade($oldversion) {
 
   if ($oldversion < 2002091000) {
     if (! execute_sql(" ALTER TABLE `forum_posts` ADD `attachment` VARCHAR(100) NOT NULL AFTER `message` ")) {
-      echo "<P>Don't worry about this error - your server already had this upgrade applied";
+      echo "<p>Don't worry about this error - your server already had this upgrade applied";
     }
   }
 
index 121e5e26904bca2356836c44a9276c590c6076b2..b25d8472a37364743607624c486e7aaaf4e2d94b 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP 
+<?php 
 
 function forum_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 8f2cc67c4509f9120338eab90e16e28c77405857..f80dd19a20576918f3dfc04b488da64be9f4d235 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function forum_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index a6cab3ff30b6f57a4a0a7de007858dce8cf0cdac..f2319fc1d8c493025ddaa1f82a515a75737f9d01 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 //  Deletes a forum entirely.  
 
index 50301a99cb0d3cbe65c43139f275da5359fb6cbf..a98ea52128b1084b6043b6fc57d04c51186f5ecb 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 //  Displays a post, and all the posts below it.
 //  If no post is given, displays all posts in a discussion
     }
 
     if (empty($navtail)) {
-        $navtail = "<A HREF=\"discuss.php?d=$discussion->id\">$discussion->name</A> -> $post->subject";
+        $navtail = "<a href=\"discuss.php?d=$discussion->id\">$discussion->name</a> -> $post->subject";
     }
 
-    $navmiddle = "<A HREF=\"../forum/index.php?id=$course->id\">".get_string("forums", "forum")."</A> -> <A HREF=\"../forum/view.php?f=$forum->id\">$forum->name</A>";
+    $navmiddle = "<a href=\"../forum/index.php?id=$course->id\">".get_string("forums", "forum")."</a> -> <a href=\"../forum/view.php?f=$forum->id\">$forum->name</a>";
 
     $searchform = forum_print_search_form($course, "", true, "plain");
 
     if ($course->category) {
         print_header("$course->shortname: $discussion->name", "$course->fullname",
-                 "<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> ->
+                 "<a href=../../course/view.php?id=$course->id>$course->shortname</a> ->
                   $navmiddle -> $navtail", "", "", true, $searchform, navmenu($course, $cm));
     } else {
         print_header("$course->shortname: $discussion->name", "$course->fullname",
index e23c8834647ef11e3dda2079d6aeb141d6cbc2e6..6464a234832ed896131398b5ed08072c8302affa 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
 
     if ($course->category) {
         print_header("$course->shortname: $strforums", "$course->fullname",
-                    "<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> -> $strforums",
+                    "<a href=../../course/view.php?id=$course->id>$course->shortname</a> -> $strforums",
                     "", "", true, $searchform, navmenu($course));
     } else {
         print_header("$course->shortname: $strforums", "$course->fullname", "$strforums", 
index f123ed5723f04af9b22f3cba8ef4c7fb9c1ef67f..d5316330d48b28b82f65ef1635e09510480ad398 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 require_once("$CFG->dirroot/files/mimetypes.php");
 
@@ -647,7 +647,7 @@ function forum_user_complete($course, $user, $mod, $forum) {
         }
 
     } else {
-        echo "<P>".get_string("noposts", "forum")."</P>";
+        echo "<p>".get_string("noposts", "forum")."</p>";
     }
 }
 
@@ -720,7 +720,7 @@ function forum_print_recent_activity($course, $isteacher, $timestart) {
                 }
                 $date = userdate($post->modified, $strftimerecent);
                 $fullname = fullname($post, $isteacher);
-                echo "<p $teacheronly><font size=1>$date - $fullname<br />";
+                echo "<p $teacheronly><font size=\"1\">$date - $fullname<br />";
                 echo "\"<a href=\"$CFG->wwwroot/mod/forum/$log->url\">";
                 if (!empty($CFG->filterall)) {
                     $post->subject = filter_text("<nolink>$post->subject</nolink>", $course->id);
@@ -1349,13 +1349,13 @@ function forum_make_mail_post(&$post, $user, $touser, $course,
     $output .= "</td>";
 
     if ($post->parent) {
-        $output .= "<td nowrap bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
+        $output .= "<td nowrap=\"nowrap\" bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
     } else {
-        $output .= "<td nowrap bgcolor=\"$THEME->cellheading2\" class=\"forumpostheadertopic\">";
+        $output .= "<td nowrap=\"nowrap\" bgcolor=\"$THEME->cellheading2\" class=\"forumpostheadertopic\">";
     }
     $output .= "<p>";
-    $output .= "<font size=3><b>$post->subject</b></font><br />";
-    $output .= "<font size=2>";
+    $output .= "<font size=\"3\"><b>$post->subject</b></font><br />";
+    $output .= "<font size=\"2\">";
 
     $fullname = fullname($user, isteacher($course->id));
     $by->name = "<a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname</a>";
@@ -1370,14 +1370,14 @@ function forum_make_mail_post(&$post, $user, $touser, $course,
     if ($post->attachment) {
         $post->course = $course->id;
         $post->forum = get_field("forum_discussions", "forum", "id", $post->discussion);
-        $output .= "<div align=right>";
+        $output .= "<div align=\"right\">";
         $output .= forum_print_attachments($post, "html");
         $output .= "</div>";
     }
 
     $output .= $formattedtext;
 
-    $output .= "<p align=right><font size=-1>";
+    $output .= "<p align=\"right\"><font size=-1>";
 
     if ($post->parent) {
         $output .= "<a href=\"$CFG->wwwroot/mod/forum/discuss.php?d=$post->discussion&parent=$post->parent\">".get_string("parent", "forum")."</a> | ";
@@ -1397,7 +1397,7 @@ function forum_make_mail_post(&$post, $user, $touser, $course,
     }
 
     $output .= "</p>";
-    $output .= "<div align=right><p align=right>";
+    $output .= "<div align=\"right\"><p align=\"right\">";
 
     if ($link) {
         if ($post->replies == 1) {
@@ -1405,7 +1405,7 @@ function forum_make_mail_post(&$post, $user, $touser, $course,
         } else {
             $replystring = get_string("repliesmany", "forum", $post->replies);
         }
-        $output .= "<a href=\"$CFG->wwwroot/mod/forum/discuss.php?d=$post->discussion\"><B>".get_string("discussthistopic", "forum")."</b></a> ($replystring)&nbsp;&nbsp;";
+        $output .= "<a href=\"$CFG->wwwroot/mod/forum/discuss.php?d=$post->discussion\"><b>".get_string("discussthistopic", "forum")."</b></a> ($replystring)&nbsp;&nbsp;";
     }
     $output .= "</p></div>";
     if ($footer) {
@@ -1457,8 +1457,8 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
         $post->subject = filter_text("<nolink>$post->subject</nolink>", $courseid);
     }
     echo "<p>";
-    echo "<font size=3><b>$post->subject</b></font><br />";
-    echo "<font size=2>";
+    echo "<font size=\"3\"><b>$post->subject</b></font><br />";
+    echo "<font size=\"2\">";
 
     $fullname = fullname($post, $isteacher);
     $by->name = "<a href=\"$CFG->wwwroot/user/view.php?id=$post->userid&course=$courseid\">$fullname</a>";
@@ -1529,11 +1529,11 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
     if ($reply) {
         $commands[] = "<a href=\"$CFG->wwwroot/mod/forum/post.php?reply=$post->id\">$strreply</a>";
     }
-    echo "<p align=right><font size=-1>";
+    echo "<p align=\"right\"><font size=-1>";
     echo implode(' | ', $commands).'&nbsp;&nbsp;';
     echo "</font></p>";
 
-    echo "<div align=right><p align=right>";
+    echo "<div align=\"right\"><p align=\"right\">";
 
     $ratingsmenuused = false;
     if (!empty($ratings) and !empty($USER->id)) {
@@ -1604,23 +1604,23 @@ function forum_print_discussion_header(&$post, $forum, $datestring="") {
     echo "</td>\n";
 
     // Picture
-    echo "<td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostheaderpicture\" width=35>";
+    echo "<td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostheaderpicture\" width=\"35\">";
     print_user_picture($post->userid, $forum->course, $post->picture);
     echo "</td>\n";
 
     // User name
     $fullname = fullname($post, isteacher($forum->course));
-    echo "<td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostheadername\" align=left nowrap>";
+    echo "<td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostheadername\" align=\"left\" nowrap=\"nowrap\">";
     echo "<a href=\"$CFG->wwwroot/user/view.php?id=$post->userid&course=$forum->course\">$fullname</a>";
     echo "</td>\n";
 
     if ($forum->open or $forum->type == "teacher") {   // Show the column with replies
-        echo "<td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostheaderreplies\" align=center nowrap>";
+        echo "<td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostheaderreplies\" align=\"center\" nowrap=\"nowrap\">";
         echo "<a href=\"$CFG->wwwroot/mod/forum/discuss.php?d=$post->discussion\">$post->replies</a>";
         echo "</td>\n";
     }
 
-    echo "<td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostheaderdate\" align=right nowrap>";
+    echo "<td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostheaderdate\" align=\"right\" nowrap=\"nowrap\">";
     $usedate = (empty($post->timemodified)) ? $post->modified : $post->timemodified;  // Just in case
     $parenturl = (empty($post->lastpostid)) ? '' : '&parent='.$post->lastpostid;
     echo '<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.$parenturl.'">'.
@@ -1812,23 +1812,23 @@ function forum_print_search_form($course, $search="", $return=false, $type="") {
     global $CFG;
 
     if ($type == "plain") {
-        $output = "<table border=0 cellpadding=0 cellspacing=0><tr><td nowrap>";
-        $output .= "<form name=search action=\"$CFG->wwwroot/mod/forum/search.php\">";
+        $output = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td nowrap=\"nowrap\">";
+        $output .= "<form name=\"search\" action=\"$CFG->wwwroot/mod/forum/search.php\">";
         $output .= "<font size=\"-1\">";
-        $output .= "<input name=search type=text size=15 value=\"$search\">";
-        $output .= "<input value=\"".get_string("searchforums", "forum")."\" type=submit>";
+        $output .= "<input name=\"search\" type=\"text\" size=\"15\" value=\"$search\">";
+        $output .= "<input value=\"".get_string("searchforums", "forum")."\" type=\"submit\">";
         $output .= "</font>";
-        $output .= "<input name=id type=hidden value=\"$course->id\">";
+        $output .= "<input name=\"id\" type=\"hidden\" value=\"$course->id\">";
         $output .= "</form>";
         $output .= "</td></tr></table>";
     } else {
-        $output = "<table border=0 cellpadding=10 cellspacing=0><tr><td align=center>";
-        $output .= "<form name=search action=\"$CFG->wwwroot/mod/forum/search.php\">";
+        $output = "<table border=\"0\" cellpadding=\"10\" cellspacing=\"0\"><tr><td align=\"center\">";
+        $output .= "<form name=\"search\" action=\"$CFG->wwwroot/mod/forum/search.php\">";
         $output .= "<font size=\"-1\">";
-        $output .= "<input name=search type=text size=15 value=\"$search\"><br />";
-        $output .= "<input value=\"".get_string("searchforums", "forum")."\" type=submit>";
+        $output .= "<input name=\"search\" type=\"text\" size=\"15\" value=\"$search\"><br />";
+        $output .= "<input value=\"".get_string("searchforums", "forum")."\" type=\"submit\">";
         $output .= "</font>";
-        $output .= "<input name=id type=hidden value=\"$course->id\">";
+        $output .= "<input name=\"id\" type=\"hidden\" value=\"$course->id\">";
         $output .= "</form>";
         $output .= "</td></tr></table>";
     }
@@ -2231,7 +2231,7 @@ function forum_print_user_discussions($courseid, $userid, $groupid=0) {
             } else {
                 $discussion->replies = 0;
             }
-            $inforum = get_string("inforum", "forum", "<A HREF=\"$CFG->wwwroot/mod/forum/view.php?f=$discussion->forumid\">$discussion->forumname</A>");
+            $inforum = get_string("inforum", "forum", "<a href=\"$CFG->wwwroot/mod/forum/view.php?f=$discussion->forumid\">$discussion->forumname</a>");
             $discussion->subject .= " ($inforum)";
             if (!empty($USER->id)) {
                 $ownpost = ($discussion->userid == $USER->id);
@@ -2239,7 +2239,7 @@ function forum_print_user_discussions($courseid, $userid, $groupid=0) {
                 $ownpost = false;
             }
             forum_print_post($discussion, $courseid, $ownpost, $reply=0, $link=1, $assessed=false);
-            echo "<BR>\n";
+            echo "<br />\n";
         }
     }
 }
@@ -2384,7 +2384,7 @@ function forum_print_latest_discussions($forum_id=0, $forum_numdiscussions=5,
     
 
     if (forum_user_can_post_discussion($forum, $currentgroup)) {
-        echo "<p align=center>";
+        echo "<p align=\"center\">";
         echo "<a href=\"$CFG->wwwroot/mod/forum/post.php?forum=$forum->id\">";
         if ($forum->type == "news") {
             echo get_string("addanewtopic", "forum")."</a>...";
@@ -2420,9 +2420,9 @@ function forum_print_latest_discussions($forum_id=0, $forum_numdiscussions=5,
 
     if (! $discussions = forum_get_discussions($forum->id, $forum_sort, 0, $fullpost, $visiblegroups) ) {
         if ($forum->type == "news") {
-            echo "<p align=center><b>(".get_string("nonews", "forum").")</b></p>";
+            echo "<p align=\"center\"><b>(".get_string("nonews", "forum").")</b></p>";
         } else {
-            echo "<p align=center><b>(".get_string("nodiscussions", "forum").")</b></p>";
+            echo "<p align=\"center\"><b>(".get_string("nodiscussions", "forum").")</b></p>";
         }
         return;
     }
@@ -2462,10 +2462,10 @@ function forum_print_latest_discussions($forum_id=0, $forum_numdiscussions=5,
     }
 
     if ($forum_style == "header") {
-        echo "<table width=\"100%\" border=0 cellpadding=3 cellspacing=1 class=\"forumheaderlist\">";
+        echo "<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" class=\"forumheaderlist\">";
         echo "<tr class=\"forumpostheader\">";
         echo "<th>".get_string("discussion", "forum")."</th>";
-        echo "<th colspan=2>".get_string("startedby", "forum")."</th>";
+        echo "<th colspan=\"2\">".get_string("startedby", "forum")."</th>";
         if ($forum->open or $forum->type == "teacher") {
             echo "<th>".get_string("replies", "forum")."</th>";
         }
@@ -2579,8 +2579,8 @@ function forum_print_discussion($course, $forum, $discussion, $post, $mode, $can
             $ratings->assesstimefinish = $forum->assesstimefinish;
             $ratings->allow = ($forum->assessed != 2 or isteacher($course->id));
 
-            echo "<form name=form method=post action=rate.php>";
-            echo "<input type=hidden name=id value=\"$course->id\">";
+            echo "<form name=\"form\" method=\"post\" action=\"rate.php\">";
+            echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\">";
         }
     }
 
@@ -2801,7 +2801,7 @@ function forum_print_recent_mod_activity($activity, $course, $detail=false) {
 
     if ($detail) {
         echo "<img src=\"$CFG->modpixpath/$activity->type/icon.gif\" ".
-             "height=16 width=16 alt=\"$activity->name\">  ";
+             "height=\"16\" width=\"16\" alt=\"$activity->name\">  ";
     }
     echo "<a href=\"$CFG->wwwroot/mod/forum/discuss.php?d=" . $activity->content->discussion
          . "#" . $activity->content->id . "\">";
index 12ef1e2bec7eb01a74ead8955a6c9cc5fd6c75a5..b2ef0e43ea151e66c6b0a0469a131c91e618598e 100644 (file)
     }
 ?>
 <form name="form" method="post" action="mod.php">
-<table cellpadding=5>
+<table cellpadding="5">
 <tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("forumname", "forum")?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("forumname", "forum")?>:</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 valign=top>
-    <td align=right><p><b><?php print_string("forumtype", "forum")?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("forumtype", "forum")?>:</b></p></td>
     <td>
     <?php
        $student = strtolower($course->student);
@@ -72,8 +72,8 @@
 
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("forumintro", "forum")?>:</b></p>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("forumintro", "forum")?>:</b></p>
     <font size="1">
      <?php
         helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
@@ -90,8 +90,8 @@
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><p><b><?php print_string("allowdiscussions", "forum", strtolower("$course->student")) ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("allowdiscussions", "forum", strtolower("$course->student")) ?>:</b></p></td>
     <td>
         <?php
             choose_from_menu($FORUM_OPEN_MODES, "open", $form->open, "");
     </td>
 </tr>
 <tr>
-    <td align=right><p><b><?php print_string("forcesubscribeq", "forum") ?>:</b></p></td>
+    <td align="right"><p><b><?php print_string("forcesubscribeq", "forum") ?>:</b></p></td>
     <td>
         <?php
             unset($options);
         ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php  print_string("maxattachmentsize", "forum") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("maxattachmentsize", "forum") ?>:</b></p></td>
     <td>
         <?php
             $choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
 <?php
     //Only show rss parameters if rss is activated at site and forum levels
     if ($CFG->enablerssfeeds && $CFG->forum_enablerssfeeds) {
-        echo "<tr valign=top>";
-        echo "<td align=right><p><b>".get_string("rsstype").":</b></p></td>";
+        echo "<tr valign=\"top\">";
+        echo "<td align=\"right\"><p><b>".get_string("rsstype").":</b></p></td>";
         echo "<td>";
         unset($choices);
         $choices[0] = get_string("none");
         echo "</td>";
         echo "</tr>";
 
-        echo "<tr valign=top>";
-        echo "<td align=right><p><b>".get_string("rssarticles").":</b></p></td>";
+        echo "<tr valign=\"top\">";
+        echo "<td align=\"right\"><p><b>".get_string("rssarticles").":</b></p></td>";
         echo "<td>";
         unset($choices);
         $choices[0] = "0";
     }
 ?>
 <tr>
-    <td align=right valign=top><p><b><?php print_string("allowratings", "forum") ?>:</b></p></td>
+    <td align="right" valign="top"><p><b><?php print_string("allowratings", "forum") ?>:</b></p></td>
     <td>
         <?php
             echo "<script>";
                                       "'finishday','finishmonth','finishyear','finishhour','finishminute'];";
             echo "</script>";
 
-            echo "<input name=\"userating\" type=checkbox value=1 ";
+            echo "<input name=\"userating\" type=\"checkbox\" value=\"1\" ";
             echo " onclick=\"return lockoptions('form','userating', subitemsall)\" ";
             if ($form->assessed) {
                 echo " checked ";
             print_grade_menu($course->id, "scale", $form->scale, false);
             echo "<br />";
 
-            echo "<input name=\"ratingtime\" type=checkbox value=1 ";
+            echo "<input name=\"ratingtime\" type=\"checkbox\" value=\"1\" ";
             echo " onclick=\"return lockoptions('form','ratingtime', subitemstime)\" ";
             if ($form->assesstimestart and $form->assesstimefinish and $form->assessed) {
                 $form->ratingtime = 1;
             echo ">";
 
             print_string("ratingtime", "forum");
-            echo "<table align=left><tr><td align=right nowrap>";
+            echo "<table align=\"left\"><tr><td align=\"right\" nowrap=\"nowrap\">";
             echo get_string("from").":";
             print_date_selector("startday", "startmonth", "startyear", $form->assesstimestart);
             print_time_selector("starthour", "startminute", $form->assesstimestart);
             print_time_selector("finishhour", "finishminute", $form->assesstimefinish);
             echo "<br />";
             echo "</td></tr></table>";
-            echo "<input type=\"hidden\" name=\"hratingtime\" value=0>";
-            echo "<input type=\"hidden\" name=\"hassessed\" value=0>";
-            echo "<input type=\"hidden\" name=\"hassesspublic\" value=0>";
-            echo "<input type=\"hidden\" name=\"hscale\" value=0>";
-            echo "<input type=\"hidden\" name=\"hstartday\" value=0>";
-            echo "<input type=\"hidden\" name=\"hstartmonth\" value=0>";
-            echo "<input type=\"hidden\" name=\"hstartyear\" value=0>";
-            echo "<input type=\"hidden\" name=\"hstarthour\" value=0>";
-            echo "<input type=\"hidden\" name=\"hstartminute\" value=0>";
-            echo "<input type=\"hidden\" name=\"hfinishday\" value=0>";
-            echo "<input type=\"hidden\" name=\"hfinishmonth\" value=0>";
-            echo "<input type=\"hidden\" name=\"hfinishyear\" value=0>";
-            echo "<input type=\"hidden\" name=\"hfinishhour\" value=0>";
-            echo "<input type=\"hidden\" name=\"hfinishminute\" value=0>";
+            echo "<input type=\"hidden\" name=\"hratingtime\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hassessed\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hassesspublic\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hscale\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hstartday\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hstartmonth\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hstartyear\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hstarthour\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hstartminute\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hfinishday\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hfinishmonth\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hfinishyear\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hfinishhour\" value=\"0\">";
+            echo "<input type=\"hidden\" name=\"hfinishminute\" value=\"0\">";
 
             echo "<script>";
             echo "lockoptions('form','userating', subitemsall);";
 </tr>
 </table>
 <center>
-<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") ?>">
+<input type="submit" name="cancel" value="<?php  print_string("cancel") ?>">
 </center>
 </form>
index 398b0bc7e974948f9b5dab41bb24a4a7efaf12fa..1eaf1a220216329f8e7581d5ac5536f6310f7e07 100644 (file)
@@ -1,23 +1,23 @@
 <form name="theform" method="post" action="post.php" enctype="multipart/form-data">
 <table border="0" cellpadding="5">
 <tr valign="top">
-    <td align=right><p><b><?php print_string("subject", "forum"); ?>:</b></p></td>
+    <td align="right"><p><b><?php print_string("subject", "forum"); ?>:</b></p></td>
     <td>
-        <input type="text" name="subject" size=60 value="<?php p($post->subject) ?>">
+        <input type="text" name="subject" size="60" value="<?php p($post->subject) ?>">
     </td>
 </tr>
 <tr valign="top">
-    <td align=right><p><b>
+    <td align="right"><p><b>
      <?php print_string("message", "forum"); ?>:
      </b></p></td>
-    <td align=left rowspan=2>
+    <td align="left" rowspan="2">
     <?php print_textarea($usehtmleditor, 25, 65, 630, 400, "message", $post->message); ?>
     </td>
 </tr>
 <tr valign="top">
-    <td align="right" valign="center" nowrap>
+    <td align="right" valign="center" nowrap="nowrap">
 
-    <font SIZE="1">
+    <font size="1">
      <?php
         helpbutton("reading", get_string("helpreading"), "moodle", true, true);
         echo "<br />";
@@ -39,8 +39,8 @@
 
 
 
-<tr valign=top>
-    <td align=right><p><b><?php print_string("formattexttype"); ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("formattexttype"); ?>:</b></p></td>
     <td>
     <?php 
         if ($usehtmleditor) {   /// Trying this out for a while
@@ -55,8 +55,8 @@
 </tr>
 
 
-<tr valign=top>
-    <td align=right><p><b><?php print_string("subscription", "forum") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("subscription", "forum") ?>:</b></p></td>
     <td>
     <?php 
        if (forum_is_forcesubscribed($forum->id)) {
 
 <?php if ($forum->maxbytes != 1) {  //  1 = No attachments at all  ?>
 
-<tr valign=top>
-    <td align=right><p><b><?php print_string("attachment", "forum") ?>:<br />(<?php print_string("optional") ?>)&nbsp;</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("attachment", "forum") ?>:<br />(<?php print_string("optional") ?>)&nbsp;</b></p></td>
     <td>
     <?php $maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes, $forum->maxbytes); ?>
     <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $maxbytes ?>">
-    <input type="file" name="attachment" size=40
+    <input type="file" name="attachment" size="40"
     <?php 
        helpbutton("attachment", get_string("attachment", "forum"), "forum"); 
        print_string("maxsize", "", display_size($maxbytes)); 
 
 
 <tr>
-    <td align=center colspan=2>
-    <input type="hidden" name=course     value="<?php p($post->course) ?>">
-    <input type="hidden" name=forum      value="<?php p($post->forum) ?>">
-    <input type="hidden" name=discussion value="<?php p($post->discussion) ?>">
-    <input type="hidden" name=parent     value="<?php p($post->parent) ?>">
-    <input type="hidden" name=userid     value="<?php p($post->userid) ?>">
-    <input type="hidden" name=groupid    value="<?php p($post->groupid) ?>">
-    <input type="hidden" name=edit       value="<?php p($post->edit) ?>">
+    <td align="center" colspan="2">
+    <input type="hidden" name="course"     value="<?php p($post->course) ?>">
+    <input type="hidden" name="forum"      value="<?php p($post->forum) ?>">
+    <input type="hidden" name="discussion" value="<?php p($post->discussion) ?>">
+    <input type="hidden" name="parent"     value="<?php p($post->parent) ?>">
+    <input type="hidden" name="userid"     value="<?php p($post->userid) ?>">
+    <input type="hidden" name="groupid"    value="<?php p($post->groupid) ?>">
+    <input type="hidden" name="edit"       value="<?php p($post->edit) ?>">
     <input type="submit" value="<?php p(($post->edit) ? get_string('savechanges') : get_string('posttoforum', 'forum')); ?>">
     </td>
 
index 90893e8f6d609843ef209a69ddfe01561821ac8a..cb4a3b71fb8edacc80b2a10d56f2fb676a14463c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 //  Edit and save a new post to a discussion
 
                          "post.php?delete=$delete&confirm=$delete",
                          $_SERVER["HTTP_REFERER"]);
                          
-            echo "<CENTER><HR>";
+            echo "<center><hr />";
             forum_print_post($post, $forum->course, $ownpost=false, $reply=false, $link=false);
         }
 
     }
 
     if ($post->parent) {
-        $navtail = "<A HREF=\"discuss.php?d=$discussion->id\">$toppost->subject</A> -> ".get_string("editing", "forum");
+        $navtail = "<a href=\"discuss.php?d=$discussion->id\">$toppost->subject</a> -> ".get_string("editing", "forum");
     } else {
         $navtail = "$toppost->subject";
     }
     $strforums = get_string("modulenameplural", "forum");
 
 
-    $navmiddle = "<A HREF=\"../forum/index.php?id=$course->id\">$strforums</A> -> <A HREF=\"view.php?f=$forum->id\">$forum->name</A>";
+    $navmiddle = "<a href=\"../forum/index.php?id=$course->id\">$strforums</a> -> <a href=\"view.php?f=$forum->id\">$forum->name</a>";
 
     $cm = get_coursemodule_from_instance("forum", $forum->id, $course->id);
 
 
     if ($course->category) {
         print_header("$course->shortname: $discussion->name: $toppost->subject", "$course->fullname",
-                 "<A HREF=../../course/view.php?id=$course->id>$course->shortname</A> ->
+                 "<a href=../../course/view.php?id=$course->id>$course->shortname</a> ->
                   $navmiddle -> $navtail", $formstart, "", true, "", navmenu($course, $cm));
     } else {
         print_header("$course->shortname: $discussion->name: $toppost->subject", "$course->fullname",
             forum_print_posts_threaded($parent->id, $course, 0, false, false);
         }
         echo "<center>";
-        echo "<H2>".get_string("yourreply", "forum").":</H2>";
+        echo "<h2>".get_string("yourreply", "forum").":</h2>";
     } else {
         echo "<center>";
-        echo "<H2>".get_string("yournewtopic", "forum")."</H2>";
+        echo "<h2>".get_string("yournewtopic", "forum")."</h2>";
     }
     if (!empty($post->error)) {
         notify($post->error);
index 1f25b9396251f884da7ca01e2d3ae3a1ed699664..291bb82fa80f667756fe06ecbef0e43a0fc5dc31 100644 (file)
@@ -1,17 +1,17 @@
 <form name="prune" method="get" action="post.php" enctype="multipart/form-data">
 <table border="0" cellpadding="5">
 <tr valign="top">
-    <td align=right><p><b><?php print_string("discussionname", "forum"); ?>:</b></p></td>
+    <td align="right"><p><b><?php print_string("discussionname", "forum"); ?>:</b></p></td>
     <td>
-        <input type="text" name="name" size=60 value="<?php p($post->subject) ?>">
+        <input type="text" name="name" size="60" value="<?php p($post->subject) ?>">
     </td>
 </tr>
 
 
 <tr>
-    <td align=center colspan=2>
-    <input type="hidden" name=prune       value="<?php p($prune) ?>">
-    <input type="hidden" name=confirm       value="<?php p($prune) ?>">
+    <td align="center" colspan="2">
+    <input type="hidden" name="prune"       value="<?php p($prune) ?>">
+    <input type="hidden" name="confirm"       value="<?php p($prune) ?>">
     <input type="submit" value="<?php print_string('prune', 'forum'); ?>">
     </td>
 
index 93c2df06f9ae22834b0361ed024ad387910753ac..7baacab933d7ea0b2447f55758bf430ba112200d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 //  Collect ratings, store them, then return to where we came from
 
index 6af231e55b5da5af3ffc0814fb6c2a5615eec8b4..95068b03c4c3a455eadc0e50e67e4d4c49c52409 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 //  For a given post, shows a report of all the ratings it has
 
         error("No ratings for this post: \"$post->subject\"");
 
     } else {
-        echo "<table border=0 cellpadding=3 cellspacing=3 class=generalbox width=100%>";
+        echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"3\" class=\"generalbox\" width=\"100%\">";
         echo "<tr>";
         echo "<th>&nbsp;</th>";
-        echo "<th><a href=report.php?id=$post->id&sort=u.firstname>$strname</a>";
-        echo "<th width=100%><a href=report.php?id=$post->id&sort=r.rating>$strrating</a>";
-        echo "<th><a href=report.php?id=$post->id&sort=r.time>$strtime</a>";
+        echo "<th><a href=\"report.php?id=$post->id&sort=u.firstname\">$strname</a>";
+        echo "<th width=\"100%\"><a \"href=report.php?id=$post->id&sort=r.rating\">$strrating</a>";
+        echo "<th><a href=\"report.php?id=$post->id&sort=r.time\">$strtime</a>";
         foreach ($ratings as $rating) {
             if (isteacher($discussion->course, $rating->id)) {
                 echo "<tr bgcolor=\"$THEME->cellcontent2\">";
@@ -58,9 +58,9 @@
             }
             echo "<td>";
             print_user_picture($rating->id, $forum->course, $rating->picture);
-            echo '<td nowrap><p><font size="-1">'.fullname($rating).'</p>';
-            echo '<td nowrap align="center"><p><font size="-1">'.$scalemenu[$rating->rating]."</p>";
-            echo '<td nowrap align="center"><p><font size="-1">'.userdate($rating->time)."</p>";
+            echo '<td nowrap="nowrap"><p><font size="-1">'.fullname($rating).'</p>';
+            echo '<td nowrap="nowrap" align="center"><p><font size="-1">'.$scalemenu[$rating->rating]."</p>";
+            echo '<td nowrap="nowrap" align="center"><p><font size="-1">'.userdate($rating->time)."</p>";
             echo "</tr>\n";
         }
         echo "</table>";
index f9571bcc0a065c4115d72ca54f290f1b02035425..e5781b031fca4a0ddc435ef9c8a07cb6f9774f40 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //forum mods
 
index d17fd857b169fc56aac69330b7587d8b6f2c414b..c34589ae73659a539cc9f9471963682d3abef38c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
     //This file adds support to rss feeds generation
 
     //This function is the main entry point to forum
index ed147ec0d9f3a84264ec48f16714962328df92ce..e86b7d7f1ff073758c08808696882c80416dc628 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
@@ -39,7 +39,7 @@
 
     if (!$search) {
         print_header_simple("$strsearch", "",
-                 "<A HREF=\"index.php?id=$course->id\">$strforums</A> -> $strsearch", "search.search",
+                 "<a href=\"index.php?id=$course->id\">$strforums</a> -> $strsearch", "search.search",
                   "", "", "&nbsp;", navmenu($course));
 
         print_simple_box_start("center");
index de9ece0a7e3bebee263d98f3f14ff00069cc9251..d3df1eccb9c416007d5c35388608a6ea78576fec 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 //  Subscribe to or unsubscribe from a forum.
 
index d1d5a56519a10f467beedb216a28a092fc50be2c..9de147ffc8d55152711a2f6871373c09032710e4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index 833d82a863bf509e505266fd32c750a7fe39a251..4e9d0fc4b71e4c3ff0fd45e9e38ac8cca52dea86 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
index 215f8e672e1bf83bbb486d690b51f6a64c20d970..240339ca2c8bbb9bd202d54990db7a36e3d52229 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
             $streveryoneissubscribed = get_string("everyoneissubscribed", "forum");
             $strallowchoice = get_string("allowchoice", "forum");
             helpbutton("subscription", $streveryoneissubscribed, "forum");
-            echo "<font size=1>";
+            echo "<font size=\"1\">";
             if (isteacher($course->id)) {
                 echo "<a title=\"$strallowchoice\" href=\"subscribe.php?id=$forum->id&force=no\">$streveryoneissubscribed</a>";
             } else {
             $strshowsubscribers = get_string("showsubscribers", "forum");
 
             helpbutton("subscription", $streveryonecanchoose, "forum");
-            echo "<font size=1>";
+            echo "<font size=\"1\">";
 
             if (isteacher($course->id)) {
                 echo "<a title=\"$strforcesubscribe\" href=\"subscribe.php?id=$forum->id&force=yes\">$streveryonecanchoose</a>";
-                echo "</font><br /><font size=1>";
+                echo "</font><br /><font size=\"1\">";
                 echo "<a href=\"subscribers.php?id=$forum->id\">$strshowsubscribers</a>";
             } else {
                 echo $streveryonecanchoose;
                 $subtext = get_string("subscribe", "forum");
             }
             echo "<br />";
-            echo "<font size=1><a title=\"$subtexttitle\" href=\"subscribe.php?id=$forum->id\">$subtext</a></font>";
+            echo "<font size=\"1\"><a title=\"$subtexttitle\" href=\"subscribe.php?id=$forum->id\">$subtext</a></font>";
         }
 
         //If rss are activated at site and forum level and this forum has rss defined, show link
index 31a8bc51a848269ba680744067c7ff5459eb291b..d34a7f2e05e6020abb6e003c73c78385bf445273 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //glossary mods
 
index cdfaae1df4364f01f6043ab3c01a2c7768fd2bc5..3ff2ebff24d3b71d12be6147a189bdbcb170a9b5 100644 (file)
@@ -1,4 +1,4 @@
-<FORM name="form" method="post" action="comment.php">
+<form name="form" method="post" action="comment.php">
 <table  class=generalbox cellpadding=5 bgcolor="<?php p($THEME->cellheading)?>">
 <tr valign=top>
     <td align=right><p><b>
@@ -9,9 +9,9 @@
     </td>
 </tr>
 <tr valign="top">
-    <td align="right" valign="center" nowrap>
+    <td align="right" valign="center" nowrap="nowrap">
     
-    <font SIZE="1">
+    <font size="1">
      <?php
         helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
         echo "<br />";
@@ -58,7 +58,7 @@
 
        <input type="submit" value="<?php print_string("savechanges") ?>" />
        <input type="reset" value="<?php print_string("revert") ?>" />
-       </P>
+       </p>
 </td>
 </tr>
 </table>
index f5120883ba712a51bdd111f18b807eccca9d40c7..bf73dbf65860b3dc3c8b10eb5d4afca079e6db56 100644 (file)
@@ -68,7 +68,7 @@
     $strcomments = get_string("comments", "glossary");
 
     print_header_simple(strip_tags("$glossary->name"), "",
-            "<A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id>$glossary->name</a> -> <A HREF=comments.php?id=$cm->id&eid=$entry->id>$strcomments</a> -> " . $straction,
+            "<a href=index.php?id=$course->id>$strglossaries</a> -> <a href=view.php?id=$cm->id>$glossary->name</a> -> <a href=comments.php?id=$cm->id&eid=$entry->id>$strcomments</a> -> " . $straction,
             "", "", true, update_module_button($cm->id, $course->id, $strglossary),
             navmenu($course, $cm));
     
index 554478f4f046951a23cc63150a003449e2f20899..7ffa55554eba75e7c58084ae81c02a1b5b1ac8bb 100644 (file)
@@ -45,7 +45,7 @@
     $straddcomment = get_string("addcomment", "glossary");
     
     print_header_simple(strip_tags("$strcomments: $entry->concept"), "",
-        "<A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id>$glossary->name</a> -> $strcomments",
+        "<a href=index.php?id=$course->id>$strglossaries</a> -> <a href=view.php?id=$cm->id>$glossary->name</a> -> $strcomments",
         "", "", true, update_module_button($cm->id, $course->id, $strglossary),
         navmenu($course, $cm));
     
index 4753f7e121d73f4d9ddf0bd1d0704e1a358d35e3..51fc3c0d643880f50f5c4bd4472ebc155338a675 100644 (file)
@@ -20,7 +20,7 @@
 <tr valign=top>
     <td align=right><p>glossary_studentspost:</td>
     <td>
-    <SELECT size=1 name=glossary_studentspost>
+    <select size=1 name=glossary_studentspost>
 <?php 
     $yselected = "";
     $nselected = "";
@@ -30,9 +30,9 @@
         $nselected = " SELECTED ";
     }
 ?>
-    <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-    <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-    </SELECT>
+    <option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
+    <option value=0 <?php p($nselected) ?>><?php p($no)?></option>
+    </select>
     </td>
     <td>
     <?php print_string("cnfstudentcanpost", "glossary") ?>
@@ -41,7 +41,7 @@
 <tr valign=top>
     <td align=right><p>glossary_dupentries:</td>
     <td>
-    <SELECT size=1 name=glossary_dupentries>
+    <select size=1 name=glossary_dupentries>
 <?php 
     $yselected = "";
     $nselected = "";
@@ -51,9 +51,9 @@
         $nselected = " SELECTED ";
     }
 ?>
-    <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-    <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-    </SELECT>
+    <option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
+    <option value=0 <?php p($nselected) ?>><?php p($no)?></option>
+    </select>
     </td>
     <td>
     <?php print_string("cnfallowdupentries", "glossary") ?>
@@ -62,7 +62,7 @@
 <tr valign=top>
     <td align=right><p>glossary_allowcomments:</td>
     <td>
-    <SELECT size=1 name=glossary_allowcomments>
+    <select size=1 name=glossary_allowcomments>
 <?php 
     $yselected = "";
     $nselected = "";
@@ -72,9 +72,9 @@
         $nselected = " SELECTED ";
     }
 ?>
-    <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-    <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-    </SELECT>
+    <option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
+    <option value=0 <?php p($nselected) ?>><?php p($no)?></option>
+    </select>
     </td>
     <td>
     <?php print_string("cnfallowcomments", "glossary") ?>
@@ -83,7 +83,7 @@
 <tr valign=top>
     <td align=right><p>glossary_linkbydefault:</td>
     <td>
-    <SELECT size=1 name=glossary_linkbydefault>
+    <select size=1 name=glossary_linkbydefault>
 <?php 
     $yselected = "";
     $nselected = "";
@@ -93,9 +93,9 @@
         $nselected = " SELECTED ";
     }
 ?>
-    <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-    <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-    </SELECT>
+    <option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
+    <option value=0 <?php p($nselected) ?>><?php p($no)?></option>
+    </select>
     </td>
     <td>
     <?php print_string("cnflinkglossaries", "glossary") ?>
 <tr valign=top>
     <td align=right><p>glossary_defaultapproval:</td>
     <td>
-    <SELECT size=1 name=glossary_defaultapproval>
+    <select size=1 name=glossary_defaultapproval>
 <?php 
     $yselected = "";
     $nselected = "";
         $nselected = " SELECTED ";
     }
 ?>
-    <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-    <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-    </SELECT>
+    <option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
+    <option value=0 <?php p($nselected) ?>><?php p($no)?></option>
+    </select>
     </td>
     <td>
     <?php print_string("cnfapprovalstatus", "glossary") ?>
 <tr valign=top>
     <td align=right><p>glossary_linkentries:</td>
     <td>
-    <SELECT size=1 name=glossary_linkentries>
+    <select size=1 name=glossary_linkentries>
 <?php 
     $yselected = "";
     $nselected = "";
         $nselected = " SELECTED ";
     }
 ?>
-    <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-    <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-    </SELECT>
+    <option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
+    <option value=0 <?php p($nselected) ?>><?php p($no)?></option>
+    </select>
     </td>
     <td>
     <?php print_string("cnflinkentry", "glossary") ?>
 <tr valign=top>
     <td align=right><p>glossary_casesensitive:</td>
     <td>
-    <SELECT size=1 name=glossary_casesensitive>
+    <select size=1 name=glossary_casesensitive>
 <?php 
     $yselected = "";
     $nselected = "";
         $nselected = " SELECTED ";
     }
 ?>
-    <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-    <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-    </SELECT>
+    <option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
+    <option value=0 <?php p($nselected) ?>><?php p($no)?></option>
+    </select>
     </td>
     <td>
     <?php print_string("cnfcasesensitive", "glossary") ?>
 <tr valign=top>
     <td align=right><p>glossary_fullmatch:</td>
     <td>
-    <SELECT size=1 name=glossary_fullmatch>
+    <select size=1 name=glossary_fullmatch>
 <?php 
     $yselected = "";
     $nselected = "";
         $nselected = " SELECTED ";
     }
 ?>
-    <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-    <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-    </SELECT>
+    <option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
+    <option value=0 <?php p($nselected) ?>><?php p($no)?></option>
+    </select>
     </td>
     <td>
     <?php print_string("cnffullmatch", "glossary") ?>
         }
         $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img border=\"0\" src=\"../pix/t/" . $vicon . "\"></a>";
 
-        echo '<td align="center" nowrap>' . $eicon . '&nbsp;&nbsp;' . $vicon . '</td>';
+        echo '<td align="center" nowrap="nowrap">' . $eicon . '&nbsp;&nbsp;' . $vicon . '</td>';
         echo '</tr>';
     }
     echo '</table>';
index 038d1e01406beae04a823e2eee0c2e057bdcc8f0..73695fdeefd36871e18ab1b1a45bcf372a2cf595 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP   // $Id$
+<?php   // $Id$
 
 
 
index 5306ec06d95a7ad9285b6634e5810c1793374920..3eedb5ce53638c00a81d99cc094dcca6b3bc05c4 100644 (file)
@@ -1,14 +1,28 @@
-<?PHP  // $Id$\r
-\r
-function glossary_upgrade($oldversion) {\r
-/// This function does anything necessary to upgrade \r
-/// older versions to match current functionality \r
-\r
-    global $CFG;\r
-\r
-\r
-    return true;\r
-}\r
-\r
-?>\r
-\r
+<?php  // $Id$
+
+
+
+function glossary_upgrade($oldversion) {
+
+/// This function does anything necessary to upgrade 
+
+/// older versions to match current functionality 
+
+
+
+    global $CFG;
+
+
+
+
+
+    return true;
+
+}
+
+
+
+?>
+
+
+
index 5508a6b7fd453e658dafb037c244a20f95dab91b..92e0c3d21c5611446795081f2b84d2ba3f1ba1f9 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
@@ -47,7 +47,7 @@
     $strareyousuredelete = get_string("areyousuredelete","glossary");
 
     print_header_simple("$glossary->name", "",
-                 "<A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name", 
+                 "<a href=\"index.php?id=$course->id\">$strglossaries</a> -> $glossary->name", 
                   "", "", true, update_module_button($cm->id, $course->id, $strglossary), 
                   navmenu($course, $cm));
 
index 10c7e64b96c374b3fa44adc329d286675e6af259..7890bda0a8126fe32b07e6a447616359b0df0267 100644 (file)
@@ -3,21 +3,21 @@
 <?php
 if (isset($errors)) {
 ?>
-    <tr valign=top>
-        <td colspan=2 align=center><strong><font color=red><?php p($errors) ?></font></strong>
+    <tr valign="top">
+        <td colspan="2" align="center"><strong><font color="red"><?php p($errors) ?></font></strong>
         </td>
     </tr>
 <?php
 }
 ?>
-<tr valign=top>
-<td colspan=2>
+<tr valign="top">
+<td colspan="2">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
     <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="5">
         <tr>
-          <td width="150" align=right><p><b><?php echo get_string("concept","glossary") ?>:</b></p></td>
-          <td><input type="text" name="concept" size=30 value="<?php p($newentry->concept) ?>" /></td>
+          <td width="150" align="right"><p><b><?php echo get_string("concept","glossary") ?>:</b></p></td>
+          <td><input type="text" name="concept" size="30" value="<?php p($newentry->concept) ?>" /></td>
         </tr>
         <tr>
           <td align="right"><p><b><?php echo get_string("categories","glossary") ?>:</b></p></td>
@@ -45,7 +45,7 @@ if (isset($errors)) {
       </table></td>
     <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="5">
         <tr>
-          <td valign="top" align=right><p><b>
+          <td valign="top" align="right"><p><b>
             <?php
               echo get_string("aliases","glossary");
               echo ':<br />';
@@ -60,9 +60,9 @@ if (isset($errors)) {
           <td colspan="2">
 <?php
     if ( !$glossary->usedynalink ) {
-      echo '<input type="hidden" name=usedynalink value="0" />';
-      echo '<input type="hidden" name=casesensitive value="0" />';
-      echo '<input type="hidden" name=fullmatch value="0" />';
+      echo '<input type="hidden" name="usedynalink" value="0" />';
+      echo '<input type="hidden" name="casesensitive" value="0" />';
+      echo '<input type="hidden" name="fullmatch" value="0" />';
     } else {
         echo '<script>var items = [\'casesensitive\',\'fullmatch\'];</script>';
 
@@ -71,7 +71,7 @@ if (isset($errors)) {
         } else {
             $selected = "";
         }
-        echo '<input type="checkbox" name="usedynalink" value=1 ' . $selected . ' onclick="return lockoptions(\'form\',\'usedynalink\', items)" /> ';
+        echo '<input type="checkbox" name="usedynalink" value="1" ' . $selected . ' onclick="return lockoptions(\'form\',\'usedynalink\', items)" /> ';
         echo '<font size="-1">';
         print_string("entryusedynalink","glossary");
         echo '</font>';
@@ -83,7 +83,7 @@ if (isset($errors)) {
         } else {
             $selected = "";
         }
-        echo '<input type="checkbox" name="casesensitive" value=1 ' . $selected . ' /> ';
+        echo '<input type="checkbox" name="casesensitive" value="1" ' . $selected . ' /> ';
         echo '<font size="-1">';
         print_string("casesensitive","glossary");
         echo '</font>';
@@ -96,7 +96,7 @@ if (isset($errors)) {
         } else {
             $selected = "";
         }
-        echo '<input type="checkbox" name="fullmatch" value=1 ' . $selected . ' /> ';
+        echo '<input type="checkbox" name="fullmatch" value="1" ' . $selected . ' /> ';
         echo '<font size="-1">';
         print_string("fullmatch","glossary");
         echo '</font>';
@@ -112,7 +112,7 @@ if (isset($errors)) {
 </td>
 </tr>
 <tr valign="top">
-    <td align=right><p><b>
+    <td align="right"><p><b>
      <?php print_string("definition", "glossary"); ?>:
      </b></p></td>
     <td align="left" rowspan="2">
@@ -120,9 +120,9 @@ if (isset($errors)) {
     </td>
 </tr>
 <tr valign="top">
-    <td align="right" valign="center" nowrap>
+    <td align="right" valign="center" nowrap="nowrap">
 
-    <font SIZE="1">
+    <font size="1">
      <?php
         helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
         echo "<br />";
@@ -137,8 +137,8 @@ if (isset($errors)) {
 
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("formattexttype"); ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("formattexttype"); ?>:</b></p></td>
     <td>
     <?php
         if ($usehtmleditor) {   /// Trying this out for a while
@@ -155,11 +155,11 @@ if (isset($errors)) {
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><p><b><?php print_string("attachment", "glossary") ?>:<br />(<?php print_string("optional") ?>)&nbsp;</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("attachment", "glossary") ?>:<br />(<?php print_string("optional") ?>)&nbsp;</b></p></td>
     <td>
     <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size($CFG->maxbytes, $course->maxbytes) ?>" />
-    <input type="file" name="attachment" size=40 />
+    <input type="file" name="attachment" size="40" />
     <?php
        helpbutton("attachment", get_string("attachment", "glossary"), "glossary");
        print_string("maxsize", "", display_size(get_max_upload_file_size($CFG->maxbytes, $course->maxbytes)));
@@ -167,25 +167,25 @@ if (isset($errors)) {
     </td>
 </tr>
 <tr>
-<td colspan=2>
-    <p align=center>
+<td colspan="2">
+    <p align="center">
     <?php if (isset($newentry->id)) {
-        echo "<input type=\"hidden\" name=e value=\"$newentry->id\" />";
+        echo "<input type=\"hidden\" name="e" value=\"$newentry->id\" />";
       }
   ?>
 
-  <input type="hidden" name=husedynalink value="1" />
-  <input type="hidden" name=hcasesensitive value="0" />
-  <input type="hidden" name=hfullmatch value="1" />
+  <input type="hidden" name="husedynalink" value="1" />
+  <input type="hidden" name="hcasesensitive" value="0" />
+  <input type="hidden" name="hfullmatch" value="1" />
 
-  <input type="hidden" name=id value="<?php p($cm->id) ?>" />
-  <input type="hidden" name=mode value="<?php p($mode) ?>" />
-  <input type="hidden" name=hook value="<?php p($hook) ?>" />
-  <input type="hidden" name=confirm value="1">
+  <input type="hidden" name="id" value="<?php p($cm->id) ?>" />
+  <input type="hidden" name="mode" value="<?php p($mode) ?>" />
+  <input type="hidden" name="hook" value="<?php p($hook) ?>" />
+  <input type="hidden" name="confirm" value="1">
 
   <input type="submit" value="<?php print_string("savechanges") ?>" />
   <input type="reset" value="<?php print_string("revert") ?>" />
-  </P>
+  </p>
 </td>
 </tr>
 </table>
index b58098fccfed12fe9e46442d1aec0428de526859..ece35a86af341761b3208989d74074930f6cdcb5 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 require_once("../../config.php");
 require_once("lib.php");
@@ -78,8 +78,8 @@ if ( $confirm ) {
         }
 
         print_header_simple(strip_tags("$glossary->name"), "",
-             "<A HREF=\"index.php?id=$course->id\">$strglossaries</A> ->
-              <A HREF=\"view.php?id=$cm->id\">$glossary->name</A> -> $stredit", "form.text",
+             "<a href=\"index.php?id=$course->id\">$strglossaries</a> ->
+              <a href=\"view.php?id=$cm->id\">$glossary->name</a> -> $stredit", "form.text",
               "", true, "", navmenu($course, $cm));
 
         print_heading($glossary->name);
@@ -272,8 +272,8 @@ if ($usehtmleditor = can_use_richtext_editor()) {
 }
 
 print_header_simple(strip_tags("$glossary->name"), "",
-             "<A HREF=\"index.php?id=$course->id\">$strglossaries</A> ->
-              <A HREF=\"view.php?id=$cm->id\">$glossary->name</A> -> $stredit", "",
+             "<a href=\"index.php?id=$course->id\">$strglossaries</a> ->
+              <a href=\"view.php?id=$cm->id\">$glossary->name</a> -> $stredit", "",
               "", true, "", navmenu($course, $cm));
 
 $ineditperiod = ((time() - $newentry->timecreated <  $CFG->maxeditingtime) || $glossary->editalways);
index 852bcc6b2bab533fd5b6015fdb6d94f17578f4a8..899b0bb4a4f80e8b4bf6f0ea5600bbdb9cc12054 100644 (file)
@@ -1,18 +1,18 @@
-<?PHP  // $Id$
+<?php  // $Id$
        global $CFG, $THEME;
     require_once("../../config.php");
 ?>
 <center>
-<FORM name="form" method="post" action="editcategories.php">
-<table  class=generalbox cellpadding=5 bgcolor="<?php p($THEME->cellheading)?>">
-<tr valign=top>
-    <td align=right><p><b><?php echo get_string("name") ?>:</b></p></td>
+<form name="form" method="post" action="editcategories.php">
+<table  class="generalbox" cellpadding="5" bgcolor="<?php p($THEME->cellheading)?>">
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("name") ?>:</b></p></td>
     <td>
-        <INPUT type="text" name="name" size=30 value="<?php p($name) ?>" />
+        <input type="text" name="name" size="30" value="<?php p($name) ?>" />
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php echo get_string("linkcategory","glossary") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("linkcategory","glossary") ?>:</b></p></td>
     <td>
       <select size="1" name="usedynalink">
       <option value="1" <?php
       </select> <?php helpbutton("linkcategory", get_string("linkcategory", "glossary"), "glossary") ?>
     </td>
 </tr>
-<td colspan=2>
-       <p align=center>
-       <input type="hidden" name=id value="<?php p($cm->id) ?>" />
-       <input type="hidden" name=action value="<?php p($action) ?>" />
-       <input type="hidden" name=confirm value=1 />
-       <input type="hidden" name=mode value='cat' />
-       <input type="hidden" name=hook value="<?php p($hook) ?>" />
+<td colspan="2">
+       <p align="center">
+       <input type="hidden" name="id" value="<?php p($cm->id) ?>" />
+       <input type="hidden" name="action" value="<?php p($action) ?>" />
+       <input type="hidden" name="confirm" value="1" />
+       <input type="hidden" name="mode" value='cat' />
+       <input type="hidden" name="hook" value="<?php p($hook) ?>" />
        <input type="submit" value="<?php print_string("savechanges") ?>" />
        <input type="reset" value="<?php print_string("back","glossary") ?>"  onclick="javascript:history.go(-1);" />
-       </P>
+       </p>
 </td>
 </tr>
 </table>
index cfc5149ecf2d50467ab43c95240f8c4c02a4224f..3b09e60ecccdded8f48909842c459b54706a8225 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// This page allows to edit entries categories for a particular instance of glossary
 
@@ -53,7 +53,7 @@
     $strglossary     = get_string("modulename", "glossary");
 
     print_header_simple(strip_tags("$glossary->name"), "",
-                        "<A HREF=index.php?id=$course->id>$strglossaries</A> -> <A HREF=view.php?id=$cm->id&tab=GLOSSARY_CATEGORY_VIEW>$glossary->name</a> -> " . get_string("categories","glossary"),
+                        "<a href=\"index.php?id=$course->id\">$strglossaries</a> -> <a href=\"view.php?id=$cm->id&tab=GLOSSARY_CATEGORY_VIEW\">$glossary->name</a> -> " . get_string("categories","glossary"),
                         "", "", true, update_module_button($cm->id, $course->id, $strglossary),
                         navmenu($course, $cm));
 
 ?>
                 <form name="form" method="post" action="editcategories.php">
 
-                <input type="hidden" name=id          value="<?php p($cm->id) ?>" />
-                <input type="hidden" name=action      value="delete" />
-                <input type="hidden" name=confirm     value="1" />
-                <input type="hidden" name=mode         value="<?php echo $mode ?>" />
-                <input type="hidden" name=hook         value="<?php echo $hook ?>" />
-                <table border=0 widTH=100><tr><td align=right width="50%" />
+                <input type="hidden" name="id"          value="<?php p($cm->id) ?>" />
+                <input type="hidden" name="action"      value="delete" />
+                <input type="hidden" name="confirm"     value="1" />
+                <input type="hidden" name="mode"         value="<?php echo $mode ?>" />
+                <input type="hidden" name="hook"         value="<?php echo $hook ?>" />
+                <table border="0" width="100"><tr><td align="right" width="50%" />
                 <input type="submit" value=" <?php print_string("yes")?> " />
                 </form>
-                </td><td align=left width=50%>
+                </td><td align="left" width="50%">
 
 <?php
                 unset($options);
 
 <div align="center">
 
-<FORM name="theform" method="post" action="editcategories.php">
-<table width="40%" class=generalbox cellpadding=5 bgcolor="<?php p($THEME->cellheading)?>">
+<form name="theform" method="post" action="editcategories.php">
+<table width="40%" class="generalbox" cellpadding="5" bgcolor="<?php p($THEME->cellheading)?>">
         <tr>
           <td width="90%" align="center"><b>
           <?php p(get_string("categories","glossary")) ?></b></td>
           <td width="10%" align="center"><b>
           <?php p(get_string("action")) ?></b></td>
         </tr>
-        <tr><td width=100% colspan=2  bgcolor="<?php p($THEME->cellheading2)?>">
+        <tr><td width="100%" colspan="2"  bgcolor="<?php p($THEME->cellheading2)?>">
         
-        <table width=100%>
+        <table width="100%">
 
 <?php
     $categories = get_records("glossary_categories","glossaryid",$glossary->id,"name ASC");
                </td>
                <td width="10%" align="center"><b>
                <?php
-                echo "<a href=\"editcategories.php?id=$cm->id&action=delete&mode=cat&hook=$category->id\"><img  alt=\"" . get_string("delete") . "\"src=\"../../pix/t/delete.gif\" height=11 width=11 border=0></a> ";
-                echo "<a href=\"editcategories.php?id=$cm->id&action=edit&mode=cat&hook=$category->id\"><img  alt=\"" . get_string("edit") . "\" src=\"../../pix/t/edit.gif\" height=11 width=11 border=0></a>";
+                echo "<a href=\"editcategories.php?id=$cm->id&action=delete&mode=cat&hook=$category->id\"><img  alt=\"" . get_string("delete") . "\"src=\"../../pix/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\"></a> ";
+                echo "<a href=\"editcategories.php?id=$cm->id&action=edit&mode=cat&hook=$category->id\"><img  alt=\"" . get_string("edit") . "\" src=\"../../pix/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\"></a>";
                ?>
                </b></td>
              </tr>
         
         </td>
         <tr>
-        <td width=100% colspan=2  align=center bgcolor="<?php p($THEME->cellheading2)?>">
+        <td width="100%" colspan="2"  align="center" bgcolor="<?php p($THEME->cellheading2)?>">
             <?php
             
              $options['id'] = $cm->id;
              $options['action'] = "add";
              
-             echo "<table border=0><tr><td align=right>";
+             echo "<table border=\"0\"><tr><td align=\"right\">";
              echo print_single_button("editcategories.php", $options, get_string("add") . " " . get_string("category","glossary"), "get");
-             echo "</td><td align=left>";
+             echo "</td><td align=\"left\">";
              unset($options['action']);
              $options['mode'] = 'cat';
              $options['hook'] = $hook;
index 493acdfb3e215c0762103121c67bd9da9167eb70..6eb7895be56c7dd0eb9a36285d7526c7a78240fc 100644 (file)
@@ -42,7 +42,7 @@
     }
 
     print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",
-        "$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
+        "$navigation <a href=\"index.php?id=$course->id\">$strglossaries</a> -> $glossary->name",
         "", "", true, update_module_button($cm->id, $course->id, $strglossary),
         navmenu($course, $cm));
     
@@ -72,5 +72,5 @@
     } else {
         $ffurl = "../../file.php?file=$ffurl";
     }
-    echo '<p><center><a href="' . $ffurl . '" target=_blank>' . get_string("exportedfile","glossary") .  '</a></center><p>'
+    echo '<p><center><a href="' . $ffurl . '" target="_blank">' . get_string("exportedfile","glossary") .  '</a></center><p>'
 ?>
index ea64172e3f83d5c30439de41fee60d65f0378bc1..6867021ab9698ecea5692aeadc35c0d7e7d8abd4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
     require_once("../../config.php");
     require_once("lib.php");
 
@@ -43,7 +43,7 @@
     $entryexported = get_string("entryexported","glossary");
 
     print_header_simple("$glossary->name", "",
-                 "<A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
+                 "<a href=\"index.php?id=$course->id\">$strglossaries</a> -> $glossary->name",
                   "", "", true, "",
                   navmenu($course, $cm));
 
@@ -53,7 +53,7 @@
         if ( !$confirm ) {
             echo "<center>";
             $areyousure = get_string("areyousureexport","glossary");
-            notice_yesno ("<center><h2>$entry->concept</h2><p align=center>$areyousure<br /><b>$mainglossary->name</b>?",
+            notice_yesno ("<center><h2>$entry->concept</h2><p align=\"center\">$areyousure<br /><b>$mainglossary->name</b>?",
                 "exportentry.php?id=$id&mode=$mode&hook=$hook&entry=$entry->id&confirm=1",
                 "view.php?id=$cm->id&mode=$mode&hook=$hook" );
 
@@ -73,7 +73,7 @@
                     error("Could not export the entry to the main glossary");
                 } else {
                     print_simple_box_start("center", "60%", "$THEME->cellheading");
-                    echo "<p align=center><font size=3>$entryexported</font></p></font>";
+                    echo "<p align=\"center\"><font size=\"3\">$entryexported</font></p></font>";
 
                     print_continue("view.php?id=$cm->id&mode=entry&hook=".$entry->id);
                     print_simple_box_end();
@@ -85,8 +85,8 @@
                 }
             } else {
                 print_simple_box_start("center", "60%", "#FFBBBB");
-                echo "<p align=center><font size=3>$entryalreadyexist</font></p></font>";
-                echo "<p align=center>";
+                echo "<p align=\"center\"><font size=\"3\">$entryalreadyexist</font></p></font>";
+                echo "<p align=\"center\">";
 
                 print_continue("view.php?id=$cm->id&mode=entry&hook=".$entry->id);
 
index 05bd8baed9373ed9ee8fc28ee17bbb9f763c55cb..a4aba2c59335fa6010ba70716ebf850e399019f4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     function glossary_filter($courseid, $text) {
         global $CFG;
 
         //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 5df14db2402d11436503fc83b07812353edc7411..e1c3b3b3be69b18eae6948f46389050a35145dbf 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP    // $Id$
+<?php    // $Id$
     /// This file allows to manage the default behave of the display formats
     
     require_once("../../config.php");
@@ -62,7 +62,7 @@
     print_heading($strmodulename . ': ' . get_string("displayformats","glossary"));
 
     echo '<table width="90%" align="center" bgcolor="#FFFFFF" class="generaltab" style="border-color: #000000; border-style: solid; border-width: 1px;">';
-    echo '<tr><td align=center>';
+    echo '<tr><td align="center">';
     echo get_string("configwarning");
     echo '</td></tr></table>';
 
     echo '<table width="90%" align="center" bgcolor="' . $THEME->cellheading . '" class="generalbox">';
     ?>
     <tr>
-        <td colspan=3 align=center><strong>
+        <td colspan="3" align="center"><strong>
         <?php echo get_string('displayformat'.$displayformat->name,"glossary"); ?>
         </strong></td>
     </tr>
-    <tr valign=top>
-        <td align="right" width="20%"><?PHP print_string('popupformat','glossary'); ?></td>
+    <tr valign="top">
+        <td align="right" width="20%"><?php print_string('popupformat','glossary'); ?></td>
         <td>
-     <?PHP
+     <?php
         //get and update available formats
         $recformats = glossary_get_available_formats();
 
         <?php print_string("cnfrelatedview", "glossary") ?><br /><br />
         </td>
     </tr>
-    <tr valign=top>
-        <td align="right" width="20%"><?PHP print_string('defaultmode','glossary'); ?></td>
+    <tr valign="top">
+        <td align="right" width="20%"><?php print_string('defaultmode','glossary'); ?></td>
         <td>
-        <SELECT size=1 name=defaultmode>
+        <select size="1" name="defaultmode">
     <?php 
         $sletter = '';
         $scat = '';
         break;
         }
     ?>
-        <OPTION value="letter" <?PHP p($sletter)?>>letter</OPTION>
-        <OPTION value="cat" <?PHP p($scat)?>>cat</OPTION>
-        <OPTION value="date" <?PHP p($sdate)?>>date</OPTION>
-        <OPTION value="author" <?PHP p($sauthor)?>>author</OPTION>
-        </SELECT>
+        <option value="letter" <?php p($sletter)?>>letter</option>
+        <option value="cat" <?php p($scat)?>>cat</option>
+        <option value="date" <?php p($sdate)?>>date</option>
+        <option value="author" <?php p($sauthor)?>>author</option>
+        </select>
         </td>
         <td width="60%">
         <?php print_string("cnfdefaultmode", "glossary") ?><br /><br />
         </td>
     </tr>
-    <tr valign=top>
-        <td align="right" width="20%"><?PHP print_string('defaulthook','glossary'); ?></td>
+    <tr valign="top">
+        <td align="right" width="20%"><?php print_string('defaulthook','glossary'); ?></td>
         <td>
-        <SELECT size=1 name=defaulthook>
+        <select size="1" name="defaulthook">
     <?php 
         $sall = '';
         $sspecial = '';
         break;
         }
     ?>
-        <OPTION value="ALL" <?PHP p($sall)?>><?PHP p(get_string("allentries","glossary"))?></OPTION>
-        <OPTION value="SPECIAL" <?PHP p($sspecial)?>><?PHP p(get_string("special","glossary"))?></OPTION>
-        <OPTION value="0" <?PHP p($sallcategories)?>><?PHP p(get_string("allcategories","glossary"))?></OPTION>
-        <OPTION value="-1" <?PHP p($snocategorised)?>><?PHP p(get_string("notcategorised","glossary"))?></OPTION>
-        </SELECT>
+        <option value="ALL" <?php p($sall)?>><?php p(get_string("allentries","glossary"))?></option>
+        <option value="SPECIAL" <?php p($sspecial)?>><?php p(get_string("special","glossary"))?></option>
+        <option value="0" <?php p($sallcategories)?>><?php p(get_string("allcategories","glossary"))?></option>
+        <option value="-1" <?php p($snocategorised)?>><?php p(get_string("notcategorised","glossary"))?></option>
+        </select>
         </td>
         <td width="60%">
         <?php print_string("cnfdefaulthook", "glossary") ?><br /><br />
         </td>
     </tr>
-    <tr valign=top>
-        <td align="right" width="20%"><?PHP print_string('defaultsortkey','glossary'); ?></td>
+    <tr valign="top">
+        <td align="right" width="20%"><?php print_string('defaultsortkey','glossary'); ?></td>
         <td>
-        <SELECT size=1 name=sortkey>
+        <select size="1" name="sortkey">
     <?php 
         $sfname = '';
         $slname = '';
         break;
         }
     ?>
-        <OPTION value="CREATION" <?PHP p($screation)?>><?PHP p(get_string("sortbycreation","glossary"))?></OPTION>
-        <OPTION value="UPDATE" <?PHP p($supdate)?>><?PHP p(get_string("sortbylastupdate","glossary"))?></OPTION>
-        <OPTION value="FIRSTNAME" <?PHP p($sfname)?>><?PHP p(get_string("firstname"))?></OPTION>
-        <OPTION value="LASTNAME" <?PHP p($slname)?>><?PHP p(get_string("lastname"))?></OPTION>
-        </SELECT>
+        <option value="CREATION" <?php p($screation)?>><?php p(get_string("sortbycreation","glossary"))?></option>
+        <option value="UPDATE" <?php p($supdate)?>><?php p(get_string("sortbylastupdate","glossary"))?></option>
+        <option value="FIRSTNAME" <?php p($sfname)?>><?php p(get_string("firstname"))?></option>
+        <option value="LASTNAME" <?php p($slname)?>><?php p(get_string("lastname"))?></option>
+        </select>
         </td>
         <td width="60%">
         <?php print_string("cnfsortkey", "glossary") ?><br /><br />
         </td>
     </tr>
-    <tr valign=top>
-        <td align="right" width="20%"><?PHP print_string('defaultsortorder','glossary'); ?></td>
+    <tr valign="top">
+        <td align="right" width="20%"><?php print_string('defaultsortorder','glossary'); ?></td>
         <td>
-        <SELECT size=1 name=sortorder>
+        <select size="1" name="sortorder">
     <?php 
         $sasc = '';
         $sdesc = '';
         break;
         }
     ?>
-        <OPTION value="asc" <?PHP p($sasc)?>><?PHP p(get_string("ascending","glossary"))?></OPTION>
-        <OPTION value="desc" <?PHP p($sdesc)?>><?PHP p(get_string("descending","glossary"))?></OPTION>
-        </SELECT>
+        <option value="asc" <?php p($sasc)?>><?php p(get_string("ascending","glossary"))?></option>
+        <option value="desc" <?php p($sdesc)?>><?php p(get_string("descending","glossary"))?></option>
+        </select>
         </td>
         <td width="60%">
         <?php print_string("cnfsortorder", "glossary") ?><br /><br />
         </td>
     </tr>
-    <tr valign=top>
+    <tr valign="top">
         <td align="right" width="20%"><p>Include Group Breaks:</td>
         <td>
-        <SELECT size=1 name=showgroup>
+        <select size="1" name="showgroup">
     <?php
         $yselected = "";
         $nselected = "";
             $nselected = " SELECTED ";
         }
     ?>
-        <OPTION value=1 <?php p($yselected) ?>><?php p($yes)?></OPTION>
-        <OPTION value=0 <?php p($nselected) ?>><?php p($no)?></OPTION>
-        </SELECT>
+        <option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
+        <option value="0" <?php p($nselected) ?>><?php p($no)?></option>
+        </select>
         </td>
         <td width="60%">
         <?php print_string("cnfshowgroup", "glossary") ?><br /><br />
         </td>
     </tr>
     <tr>
-        <td colspan=3 align=center>
+        <td colspan="3" align="center">
         <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
     </tr>
-    <input type="hidden" name=id    value="<?php p($id) ?>" />
-    <input type="hidden" name=mode    value="edit" />
-    <?PHP
+    <input type="hidden" name="id"    value="<?php p($id) ?>" />
+    <input type="hidden" name="mode"    value="edit" />
+    <?php
     
     print_simple_box_end();    
     echo '</form>';
index e5346d836fe43926590c17f514f3c379f1674a53..12cbaefe6546eecd7e64928e0a52c8fbf0f57d21 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 function glossary_show_entry_TEMPLATE($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
 
index 9627176e10e81ab10bca393cddf7ea7a564cb4d1..f574e56631e090b17653c228b1c3ed6bdc3f39ff 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 function glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
 
@@ -6,7 +6,7 @@ function glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode="
 
     $colour = $THEME->cellheading2;
 
-    echo "\n<table border=0 width=95% cellspacing=0 valign=top cellpadding=0 align=center>\n";
+    echo "\n<table border=\"0\" width=\"95%\" cellspacing=\"0\" valign=\"top\" cellpadding=\"0\" align=\"center\">\n";
     echo "<tr>\n";
     echo "<td width=\"100%\" valign=\"top\"\n";
     glossary_print_entry_approval($cm, $entry, $mode);
index 781c13ca8ee2fe248b5fb09e564dbcc923d276d9..501e4364b78ad46df5b4da1ef12d322a4fdf7351 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 function glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
 
@@ -6,7 +6,7 @@ function glossary_show_entry_dictionary($course, $cm, $glossary, $entry, $mode="
 
     $colour = $THEME->cellheading2;
 
-    echo "\n<table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>\n";
+    echo "\n<table border=\"0\" width=\"95%\" cellspacing=\"0\" valign=\"top\" cellpadding=\"3\" class=\"forumpost\" align=\"center\">\n";
     echo "<tr>\n";
     echo "<td width=\"100%\" valign=\"top\" bgcolor=\"#FFFFFF\">\n";
     glossary_print_entry_approval($cm, $entry, $mode);
index 850f385d82e1e41536d7b7bf3695728dc619d11c..58ff4bcd7b36ec5cf47cbddeec8fbc00eb3d0986 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 function glossary_show_entry_encyclopedia($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
     global $THEME, $CFG, $USER;
@@ -8,25 +8,25 @@ function glossary_show_entry_encyclopedia($course, $cm, $glossary, $entry, $mode
     $user = get_record("user", "id", $entry->userid);
     $strby = get_string("writtenby", "glossary");
 
-    echo "\n<br /><table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>";
+    echo "\n<br /><table border=\"0\" width=\"95%\" cellspacing=\"0\" valign=\"top\" cellpadding=\"3\" class=\"forumpost\" align=\"center\">";
 
     echo "\n<tr>";
-    echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostpicture\">";
+    echo "\n<td bgcolor=\"$colour\" width=\"35\" valign=\"top\" class=\"forumpostpicture\">";
     $return = false;
     if ($entry) {
         print_user_picture($user->id, $course->id, $user->picture);
     
         echo "</td>";
-        echo "<td valign=\"top\" width=100% bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
+        echo "<td valign=\"top\" width=\"100%\" bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
         echo "<b>";
         glossary_print_entry_concept($entry);
         echo "</b><br />";
     
         echo "<font size=\"2\">$strby " . fullname($user, isteacher($course->id)) . "</font>";
-        echo "&nbsp;&nbsp;<font size=1>(".get_string("lastedited").": ".
+        echo "&nbsp;&nbsp;<font size=\"1\">(".get_string("lastedited").": ".
              userdate($entry->timemodified).")</font>";
         echo "</td>";
-        echo "\n<td bgcolor=\"$THEME->cellheading\" width=35 valign=top class=\"forumpostheader\">";
+        echo "\n<td bgcolor=\"$THEME->cellheading\" width=\"35\" valign=\"top\" class=\"forumpostheader\">";
 
         glossary_print_entry_approval($cm, $entry, $mode);
         echo "</td>";
@@ -34,8 +34,8 @@ function glossary_show_entry_encyclopedia($course, $cm, $glossary, $entry, $mode
         echo "</tr>";
 
         echo "\n<tr>";
-        echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostside\">&nbsp;</td>";
-        echo "\n<td width=100% colspan=\"2\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
+        echo "\n<td bgcolor=\"$colour\" width=\"35\" valign=\"top\" class=\"forumpostside\">&nbsp;</td>";
+        echo "\n<td width=\"100%\" colspan=\"2\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
 
         if ($entry->attachment) {
             $entry->course = $course->id;
index 729efe4a2c877918615e64eec9d2e01b38d49995..3fc818e461b47adfed3b5f1d4f2a08b342a3b1c6 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 function glossary_show_entry_entrylist($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
     global $THEME, $USER;
@@ -6,10 +6,10 @@ function glossary_show_entry_entrylist($course, $cm, $glossary, $entry, $mode=""
     $colour = "#FFFFFF";
     $return = false;
 
-    echo "\n<table border=0 cellspacing=0 width=95% valign=top cellpadding=10>";
+    echo "\n<table border=\"0\" cellspacing=\"0\" width=\"95%\" valign=\"top\" cellpadding=\"10\">";
 
     echo "\n<tr>";
-    echo "<td width=100% bgcolor=\"$colour\">";
+    echo "<td width=\"100%\" bgcolor=\"$colour\">";
     if ($entry) {
         echo "<b><a href=\"showentry.php?courseid=$course->id\&eid=$entry->id\&displayformat=dictionary\" target=\"_blank\" onClick=\"return openpopup('/mod/glossary/showentry.php?courseid=$course->id\&eid=$entry->id\&displayformat=dictionary', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);\">";
 
index 87ac0dd6214ea5cfa45ccb7da33d38e2f4880b70..7b69eda6326dec06f2cd09efd96d38e4f592f23d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 function glossary_show_entry_faq($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
     global $THEME, $USER;
@@ -6,20 +6,20 @@ function glossary_show_entry_faq($course, $cm, $glossary, $entry, $mode="",$hook
     if ( $entry ) {
         $colour = $THEME->cellheading2;
 
-        echo "\n<br /><table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>";
+        echo "\n<br /><table border=\"0\" width=\"95%\" cellspacing=\"0\" valign=\"top\" cellpadding=\"3\" class=\"forumpost\" align=\"center\">";
 
         echo '<tr>';
-        echo "<td valign=\"top\" width=100% bgcolor=\"$colour\">";
+        echo "<td valign=\"top\" width=\"100%\" bgcolor=\"$colour\">";
         $entry->course = $course->id;
 
         echo '<b>' . get_string("question","glossary") . ':</b> ';
         glossary_print_entry_concept($entry);
         echo '<br />';
 
-        echo "<font size=1>(".get_string("lastedited").": ".
+        echo "<font size=\"1\">(".get_string("lastedited").": ".
              userdate($entry->timemodified).")</font>";
         echo "</td>";
-        echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostheader\">";
+        echo "\n<td bgcolor=\"$colour\" width=\"35\" valign=\"top\" class=\"forumpostheader\">";
 
         glossary_print_entry_approval($cm, $entry, $mode);
         glossary_print_entry_attachment($entry,"html","right");
@@ -28,7 +28,7 @@ function glossary_show_entry_faq($course, $cm, $glossary, $entry, $mode="",$hook
         echo "</tr>";
 
         echo "\n<tr>";
-        echo "\n<td width=100% colspan=\"2\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
+        echo "\n<td width=\"100%\" colspan=\"2\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
         echo '<b>' . get_string("answer","glossary") . ':</b> ';
 
         glossary_print_entry_definition($entry);
index 225e27dfa8ba6c419990eb372a35f88c304d11ce..e93a276370e63e377a3be33d497d9ed7c5b71650 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
     global $THEME, $CFG, $USER;
@@ -8,26 +8,26 @@ function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mo
     $user = get_record("user", "id", $entry->userid);
     $strby = get_string("writtenby", "glossary");
 
-    echo "\n<br /><table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>";
+    echo "\n<br /><table border=\"0\" width=\"95%\" cellspacing=\"0\" valign=\"top\" cellpadding=\"3\" class=\"forumpost\" align=\"center\">";
 
     echo "\n<tr>";
-    echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostpicture\">";
+    echo "\n<td bgcolor=\"$colour\" width=\"35\" valign=\"top\" class=\"forumpostpicture\">";
     $return = false;
     if ($entry) {
         print_user_picture($user->id, $course->id, $user->picture);
 
         echo "</td>";
-        echo "<td valign=\"top\" width=100% bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
+        echo "<td valign=\"top\" width=\"100%\" bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
 
         echo "<b>";
         glossary_print_entry_concept($entry);
                echo "</b><br />";
 
         echo "<font size=\"2\">$strby " . fullname($user, isteacher($course->id)) . "</font>";
-        echo "&nbsp;&nbsp;<font size=1>(".get_string("lastedited").": ".
+        echo "&nbsp;&nbsp;<font size=\"1\">(".get_string("lastedited").": ".
              userdate($entry->timemodified).")</font>";
         echo "</td>";
-        echo "\n<td bgcolor=\"$THEME->cellheading\" width=35 valign=top class=\"forumpostheader\">";
+        echo "\n<td bgcolor=\"$THEME->cellheading\" width=\"35\" valign=\"top\" class=\"forumpostheader\">";
 
         glossary_print_entry_approval($cm, $entry, $mode);
         glossary_print_entry_attachment($entry,"html","right");
@@ -36,8 +36,8 @@ function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mo
         echo "</tr>";
 
         echo "\n<tr>";
-        echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostside\">&nbsp;</td>";
-        echo "\n<td width=100% colspan=\"2\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
+        echo "\n<td bgcolor=\"$colour\" width=\"35\" valign=\"top\" class=\"forumpostside\">&nbsp;</td>";
+        echo "\n<td width=\"100%\" colspan=\"2\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
 
         glossary_print_entry_definition($entry);
         $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons,$ratings);
index 492e77493602520e60d6d026d2082e357bdc2870..4a3cf2c1223e0f83d8fb3b621a73cdb70d89621c 100644 (file)
@@ -1,26 +1,26 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 function glossary_show_entry_fullwithoutauthor($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
     global $THEME, $CFG, $USER;
 
     $colour = $THEME->cellheading2;
 
-    echo "\n<br /><table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>";
+    echo "\n<br /><table border=\"0\" width=\"95%\" cellspacing=\"0\" valign=\"top\" cellpadding=\"3\" class=\"forumpost\" align=\"center\">";
 
     echo "\n<tr>";
     $return = false;
     if ($entry) {
 
-        echo "<td valign=\"top\" width=100% bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
+        echo "<td valign=\"top\" width=\"100%\" bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
 
         echo "<b>";
         glossary_print_entry_concept($entry);
                echo "</b><br />";
 
-        echo "<font size=1>(".get_string("lastedited").": ".
+        echo "<font size=\"1\">(".get_string("lastedited").": ".
              userdate($entry->timemodified).")</font>";
         echo "</td>";
-        echo "\n<td bgcolor=\"$THEME->cellheading\" width=35 valign=top class=\"forumpostheader\">";
+        echo "\n<td bgcolor=\"$THEME->cellheading\" width=\"35\" valign=\"top\" class=\"forumpostheader\">";
 
         glossary_print_entry_approval($cm, $entry, $mode);
         glossary_print_entry_attachment($entry,"html","right");
@@ -29,7 +29,7 @@ function glossary_show_entry_fullwithoutauthor($course, $cm, $glossary, $entry,
         echo "</tr>";
 
         echo "\n<tr>";
-        echo "\n<td width=100% colspan=\"2\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
+        echo "\n<td width=\"100%\" colspan=\"2\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
 
         glossary_print_entry_definition($entry);
         $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons,$ratings);
index c2a00417d46b0494460250af637034b582375fb9..e64e8aa73aad0979dd002693a1582f09c70fb7b9 100644 (file)
@@ -1,35 +1,35 @@
 <form method="POST" action="import.php" name="form" enctype="multipart/form-data">
 <table border="0" cellpadding="3" cellspacing="3" width="100%">
 <tr>
-    <td align=right valign=top width="30%"><p><b><?php print_string("filetoimport","glossary") ?>:</b></p></td>
+    <td align="right" valign="top" width="30%"><p><b><?php print_string("filetoimport","glossary") ?>:</b></p></td>
     <td width="70%">
     <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size() ?>" />
-    <input type="file" name="file" size=40> <br />
+    <input type="file" name="file" size="40"> <br />
     <?php 
        helpbutton("filetoimport", get_string("filetoimport", "glossary"), "glossary"); 
        print_string("maxsize", "", display_size(get_max_upload_file_size())); 
     ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right colspan="2">
+<tr valign="top">
+    <td align="right" colspan="2">
     <table border="0" cellpadding="0" cellspacing="3" width="100%">
       <tr>
         <td width="25%">
-        <p align="right"><?PHP p(get_string("destination","glossary")) ?>:</td>
+        <p align="right"><?php p(get_string("destination","glossary")) ?>:</td>
         <td width="25%"><select size="1" name="dest">
-        <option selected value="current"><?PHP p(get_string("currentglossary","glossary")) ?></option>
-        <option value="new"><?PHP p(get_string("newglossary","glossary")) ?></option>
-        </select> <?PHP helpbutton("destination", get_string("destination", "glossary"), "glossary") ?></td>
+        <option selected value="current"><?php p(get_string("currentglossary","glossary")) ?></option>
+        <option value="new"><?php p(get_string("newglossary","glossary")) ?></option>
+        </select> <?php helpbutton("destination", get_string("destination", "glossary"), "glossary") ?></td>
         <td width="25%">
-        <p align="right"><?PHP p(get_string("importcategories","glossary")) ?>:</td>
-        <td width="25%"><input type="checkbox" name="catsincl" value="1" /> <?PHP helpbutton("importcategories", get_string("importcategories", "glossary"), "glossary") ?></td>
+        <p align="right"><?php p(get_string("importcategories","glossary")) ?>:</td>
+        <td width="25%"><input type="checkbox" name="catsincl" value="1" /> <?php helpbutton("importcategories", get_string("importcategories", "glossary"), "glossary") ?></td>
       </tr>
     </table>
     </td>
 </tr>
 <tr>
-    <td align=right colspan="2">
+    <td align="right" colspan="2">
     <table border="0" cellpadding="3" cellspacing="3" width="100%">
       <tr>
         <td width="50%">
@@ -40,8 +40,8 @@
     </td>
 </tr>
 </table>
-<input type="hidden" name="id" value="<?PHP p($id) ?>" />
-<input type="hidden" name="l" value="<?PHP p($l) ?>" />
-<input type="hidden" name="lasttab" value="<?PHP p($lasttab) ?>" />
+<input type="hidden" name="id" value="<?php p($id) ?>" />
+<input type="hidden" name="l" value="<?php p($l) ?>" />
+<input type="hidden" name="lasttab" value="<?php p($lasttab) ?>" />
 <input type="hidden" name="step" value="1" />
 </form> 
index 94695ec3c59b721128e4a74b7572ff19d945d3b6..2e689877add2cc4fedf88beb5a9e3a8261e15ed1 100644 (file)
@@ -45,7 +45,7 @@
     $strsearch = get_string("search");
     
     print_header_simple(strip_tags("$glossary->name"), "",
-        "<A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
+        "<a href=\"index.php?id=$course->id\">$strglossaries</a> -> $glossary->name",
         "", "", true, update_module_button($cm->id, $course->id, $strglossary),
         navmenu($course, $cm));
     
             }
         }
         // processed entries
-        echo '<table border=0 width=100%>';
+        echo '<table border="0" width="100%">';
         echo '<tr>';
-        echo '<td width=50% align=right>';
+        echo '<td width="50%" align="right">';
         echo get_string("totalentries","glossary");
         echo ':</td>';
-        echo '<td width=50%>';
+        echo '<td width="50%">';
         echo $importedentries + $entriesrejected;
         echo '</td>';
         echo '</tr>';
         echo '<tr>';
-        echo '<td width=50% align=right>';
+        echo '<td width="50%" align="right">';
         echo get_string("importedentries","glossary");
         echo ':</td>';
-        echo '<td width=50%>';
+        echo '<td width="50%">';
         echo $importedentries;
         if ( $entriesrejected ) {
             echo ' <small>(' . get_string("rejectedentries","glossary") . ": $entriesrejected)</small>";
         echo '</tr>';
         if ( $catsincl ) {
             echo '<tr>';
-            echo '<td width=50% align=right>';
+            echo '<td width="50%" align="right">';
             echo get_string("importedcategories","glossary");
             echo ':</td>';
-            echo '<td width=50%>';
+            echo '<td width="50%">';
             echo $importedcats;
             echo '</td>';
             echo '</tr>';
         }
-        echo '</table><hr width=75%>';
+        echo '</table><hr width="75%">';
 
         // rejected entries 
         if ($rejections) {
-            echo '<center><table border=0 width=70%>';
-            echo '<tr><td align=center colspan=2 width=100%><strong>' . get_string("rejectionrpt","glossary") . '</strong></tr>';
+            echo '<center><table border="0" width="70%">';
+            echo '<tr><td align="center" colspan="2" width="100%"><strong>' . get_string("rejectionrpt","glossary") . '</strong></tr>';
             echo $rejections;
-            echo '</table></center><p><hr width=75%>';
+            echo '</table></center><p><hr width="75%">';
         }
     } else {
         notify("Error while trying to read the file.");
index f8454875cf1d6bd47779f8699f5a2cd0b8d7ec1b..a9a2dc9cd22675d508a01bab714b32556b72da14 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 /// This page lists all the instances of glossary in a particular course
 /// Replace glossary with the name of your module
     foreach ($glossarys as $glossary) {
         if (!$glossary->visible) {
             //Show dimmed if the mod is hidden
-            $link = "<A class=\"dimmed\" HREF=\"view.php?id=$glossary->coursemodule\">$glossary->name</A>";
+            $link = "<a class=\"dimmed\" href=\"view.php?id=$glossary->coursemodule\">$glossary->name</a>";
         } else {
             //Show normal if the mod is visible
-            $link = "<A HREF=\"view.php?id=$glossary->coursemodule\">$glossary->name</A>";
+            $link = "<a href=\"view.php?id=$glossary->coursemodule\">$glossary->name</a>";
         }
         $printsection = "";
         if ($glossary->section !== $currentsection) {
index 934b205c214d5fb2f5eced2afe7ab14b9133ba9b..1b89d373e815a8898a6744a7fa355bd985238848 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of functions and constants for module glossary
 /// (replace glossary with the name of your module and delete this line)
@@ -262,7 +262,7 @@ function glossary_print_recent_activity($course, $isteacher, $timestart) {
             
             $user = get_record("user","id",$entry->userid);
             $fullname = fullname($user, $isteacher);
-            echo "<p><font size=1>$date - $fullname<br />";
+            echo "<p><font size=\"1\">$date - $fullname<br />";
             echo "\"<a href=\"$CFG->wwwroot/mod/glossary/view.php?g=$entry->glossaryid&mode=entry&hook=$entry->id\">";
             echo "$entry->concept";
             echo "</a>\"</font></p>";
@@ -460,7 +460,7 @@ function glossary_get_available_formats() {
 
 function glossary_debug($debug,$text,$br=1) {
     if ( $debug ) {
-        echo '<font color=red>' . $text . '</font>';
+        echo '<font color="red">' . $text . '</font>';
         if ( $br ) {
             echo '<br />';
         }
@@ -660,7 +660,7 @@ function  glossary_print_entry_aliases($course, $cm, $glossary, $entry,$mode="",
         }
         if ($return != '') {
             $return .= '</select>';
-//            $return = "<table border=0 align=$align><tr><td>$return</td></tr></table>";
+//            $return = "<table border=\"0\" align=$align><tr><td>$return</td></tr></table>";
         }
     } 
     if ($type == 'print') {
@@ -677,7 +677,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho
     $isteacher = isteacher($course->id);
     $ismainglossary = $glossary->mainglossary;
        
-    $return = "<font size=1>";
+    $return = "<font size=\"1\">";
     if (!$entry->approved) {
         $return .= get_string("entryishidden","glossary");
     }
@@ -687,7 +687,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho
 
     
     if ( ($glossary->allowcomments && !isguest()) || isteacher($glossary->course)) {
-        $return .= " <a title=\"" . get_string("addcomment","glossary") . "\" href=\"comment.php?id=$cm->id&eid=$entry->id\"><img src=\"comment.gif\" height=11 width=11 border=0></a> ";
+        $return .= " <a title=\"" . get_string("addcomment","glossary") . "\" href=\"comment.php?id=$cm->id&eid=$entry->id\"><img src=\"comment.gif\" height=\"11\" width=\"11\" border=\"0\"></a> ";
     }
 
     if ($isteacher or ($glossary->studentcanpost and $entry->userid == $USER->id)) {
@@ -696,7 +696,7 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho
             $mainglossary = get_record("glossary","mainglossary",1,"course",$course->id);
             if ( $mainglossary ) {  // if there is a main glossary defined, allow to export the current entry
 
-                $return .= " <a title=\"" . get_string("exporttomainglossary","glossary") . "\" href=\"exportentry.php?id=$cm->id&entry=$entry->id&mode=$mode&hook=$hook\"><img src=\"export.gif\" height=11 width=11 border=0></a> ";
+                $return .= " <a title=\"" . get_string("exporttomainglossary","glossary") . "\" href=\"exportentry.php?id=$cm->id&entry=$entry->id&mode=$mode&hook=$hook\"><img src=\"export.gif\" height=\"11\" width=\"11\" border=\"0\"></a> ";
 
             }
         }
@@ -714,11 +714,11 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$mode="",$ho
         if ( !$importedentry and ($isteacher or ($entry->userid == $USER->id and $ineditperiod))) {
             $return .= " <a title=\"" . get_string("delete") . "\" href=\"deleteentry.php?id=$cm->id&mode=delete&entry=$entry->id&prevmode=$mode&hook=$hook\"><img src=\"";
             $return .= $icon;
-            $return .= "\" height=11 width=11 border=0></a> ";
+            $return .= "\" height=\"11\" width=\"11\" border=\"0\"></a> ";
             
-            $return .= " <a title=\"" . get_string("edit") . "\" href=\"edit.php?id=$cm->id&e=$entry->id&mode=$mode&hook=$hook\"><img src=\"$CFG->pixpath/t/edit.gif\" height=11 width=11 border=0></a>";
+            $return .= " <a title=\"" . get_string("edit") . "\" href=\"edit.php?id=$cm->id&e=$entry->id&mode=$mode&hook=$hook\"><img src=\"$CFG->pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\"></a>";
         } elseif ( $importedentry ) {
-            $return .= " <font size=-1>" . get_string("exportedentry","glossary") . "</font>";
+            $return .= " <font size=\"-1\">" . get_string("exportedentry","glossary") . "</font>";
         }
     }
     $return .= "&nbsp;&nbsp;"; // just to make up a little the output in Mozilla ;)
@@ -734,7 +734,7 @@ function glossary_print_entry_commentslink($course, $cm, $glossary, $entry,$mode
 
     $count = count_records("glossary_comments","entryid",$entry->id);
     if ($count) {
-        $return = "<font size=1>";
+        $return = "<font size=\"1\">";
         $return .= "<a href=\"comments.php?id=$cm->id&eid=$entry->id\">$count ";
         if ($count == 1) {
             $return .= get_string("comment", "glossary");
@@ -765,14 +765,14 @@ function  glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $m
     if ($aliases || $printicons || $ratings) {
         echo '<table border="0" width="100%" align="center">';
         if ( $aliases ) {
-            echo '<tr><td align="center"  valign="top"><font size=1>' .
+            echo '<tr><td align="center"  valign="top"><font size="1">' .
                   get_string("aliases","glossary") . ': ' . $aliases . '</td></tr>';
         }
         if ($icons) {
-            echo '<tr><td align=right valign=top>'.  $icons . '</td></tr>';
+            echo '<tr><td align="right" valign="top">'.  $icons . '</td></tr>';
         }
         if ($ratings) {
-            echo '<tr><td align=right valign=top>';
+            echo '<tr><td align="right" valign="top">';
             $return = glossary_print_entry_ratings($course, $entry, $ratings);
             echo '</td></tr>';
         }
@@ -789,7 +789,7 @@ function glossary_print_entry_attachment($entry,$format=NULL,$align="right",$ins
           $glossary = get_record("glossary","id",$entry->glossaryid);            
           $entry->course = $glossary->course; //used inside print_attachment
           if ($insidetable) {
-              echo "<table border=\"0\" width=\"100%\" align=\"$align\"><tr><td align=\"$align\" nowrap>\n";
+              echo "<table border=\"0\" width=\"100%\" align=\"$align\"><tr><td align=\"$align\" nowrap=\"nowrap\">\n";
           }
           echo glossary_print_attachments($entry,$format,$align);
           if ($insidetable) {
@@ -803,7 +803,7 @@ function  glossary_print_entry_approval($cm, $entry, $mode,$align="right",$insid
         if ($insidetable) {
             echo "<table border=\"0\" width=\"100%\" align=\"$align\"><tr><td align=\"$align\">\n";
         }
-        echo "<a title=\"" . get_string("approve","glossary"). "\" href=\"approve.php?id=$cm->id&eid=$entry->id&mode=$mode\"><img align=\"$align\" src=\"check.gif\" border=0 width=\"34\" height=\"34\"></a>\n";
+        echo "<a title=\"" . get_string("approve","glossary"). "\" href=\"approve.php?id=$cm->id&eid=$entry->id&mode=$mode\"><img align=\"$align\" src=\"check.gif\" border=\"0\" width=\"34\" height=\"34\"></a>\n";
         if ($insidetable) {
             echo "</td></tr></table>\n";
         }
@@ -1095,11 +1095,11 @@ function glossary_print_attachments($entry, $return=NULL, $align="left") {
                 } else {
                     $ffurl = "file.php?file=/$filearea/$file";
                 }
-                $image = "<img border=0 src=\"$CFG->pixpath/f/$icon\" height=16 width=16 alt=\"$strpopupwindow\">";
+                $image = "<img border=\"0\" src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" alt=\"$strpopupwindow\">";
 
                 if ($return == "html") {
-                    $output .= "<a target=_image href=\"$CFG->wwwroot/$ffurl\">$image</a> ";
-                    $output .= "<a target=_image href=\"$CFG->wwwroot/$ffurl\">$file</a><br />";
+                    $output .= "<a target=\"_image\" href=\"$CFG->wwwroot/$ffurl\">$image</a> ";
+                    $output .= "<a target=\"_image\" href=\"$CFG->wwwroot/$ffurl\">$file</a><br />";
                 } else if ($return == "text") {
                     $output .= "$strattachment $file:\n$CFG->wwwroot/$ffurl\n";
 
@@ -1108,7 +1108,7 @@ function glossary_print_attachments($entry, $return=NULL, $align="left") {
                         $imagereturn .= "<img src=\"$CFG->wwwroot/$ffurl\" align=$align>";
                     } else {
                         link_to_popup_window("/$ffurl", "attachment", $image, 500, 500, $strattachment);
-                        echo "<a target=_image href=\"$CFG->wwwroot/$ffurl\">$file</a>";
+                        echo "<a target=\"_image\" href=\"$CFG->wwwroot/$ffurl\">$file</a>";
                         echo "<br />";
                     }
                 }
@@ -1328,10 +1328,10 @@ function glossary_print_author_menu($cm, $glossary,$mode, $hook, $sortkey = '',
 
 function glossary_print_categories_menu($cm, $glossary, $hook, $category) {
 global $CFG, $THEME;
-     echo '<table border=0 width=100%>';
+     echo '<table border="0" width="100%">';
      echo '<tr>';
 
-     echo '<td align=center width=20%>';
+     echo '<td align="center" width="20%">';
      if ( isteacher($glossary->course) ) {
              $options['id'] = $cm->id;
              $options['mode'] = 'cat';
@@ -1340,7 +1340,7 @@ global $CFG, $THEME;
      }
      echo '</td>';
 
-     echo '<td align=center width=60%>';
+     echo '<td align="center" width="60%">';
      echo '<b>';
 
      $menu[GLOSSARY_SHOW_ALL_CATEGORIES] = get_string("allcategories","glossary");
@@ -1379,7 +1379,7 @@ global $CFG, $THEME;
         }
      }
      echo '</b></td>';
-     echo '<td align=center width=20%>';
+     echo '<td align="center" width="20%">';
 
      echo popup_form("$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&mode=cat&hook=", $menu, "catmenu", $selected, "",
                       "", "", false);
@@ -1453,7 +1453,7 @@ global $CFG;
              $neworder = '&sortorder=asc';
              $newordertitle = $asc;
          }
-         $icon = " <img src=\"$sortorder.gif\" border=0 width=16 height=16>";
+         $icon = " <img src=\"$sortorder.gif\" border=\"0\" width=\"16\" height=\"16\">";
      } else {
          if ( $sortkey != 'CREATION' and $sortkey != 'UPDATE' and
                $sortkey != 'FIRSTNAME' and $sortkey != 'LASTNAME' ) {
@@ -1462,7 +1462,7 @@ global $CFG;
          } else {
              $newordertitle = $desc;
              $neworder = '&sortorder=desc';
-             $icon = ' <img src="asc.gif" border=0 width=16 height=16>';
+             $icon = ' <img src="asc.gif" border="0" width="16" height="16">';
          }
      }
      $ficon     = '';
@@ -1545,8 +1545,8 @@ function glossary_print_comment($course, $cm, $glossary, $entry, $comment) {
     echo "</td>";
     echo "<td bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\" width=\"100%\">";
     echo "<p>";
-    echo "<font size=2><a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname</a></font><br />";
-    echo "<font size=1>".get_string("lastedited").": ".userdate($comment->timemodified)."</font>";
+    echo "<font size=\"2\"><a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id\">$fullname</a></font><br />";
+    echo "<font size=\"1\">".get_string("lastedited").": ".userdate($comment->timemodified)."</font>";
     echo "</p></td></tr>";
 
     echo "<tr><td bgcolor=\"$THEME->cellcontent2\" class=\"forumpostside\" width=\"10\">";
@@ -1555,15 +1555,15 @@ function glossary_print_comment($course, $cm, $glossary, $entry, $comment) {
 
     echo format_text($comment->comment, $comment->format);
 
-    echo "<div align=right><p align=right>";
+    echo "<div align=\"right\"><p align=\"right\">";
     $ineditperiod = ((time() - $comment->timemodified <  $CFG->maxeditingtime) || $glossary->editalways);
     if ( ($glossary->allowcomments &&  $ineditperiod && $USER->id == $comment->userid)  || isteacher($course->id) ) {
         echo "<a href=\"comment.php?id=$cm->id&eid=$entry->id&cid=$comment->id&action=edit\"><img  
-               alt=\"" . get_string("edit") . "\" src=\"$CFG->pixpath/t/edit.gif\" height=11 width=11 border=0></a> ";
+               alt=\"" . get_string("edit") . "\" src=\"$CFG->pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\"></a> ";
     }
     if ( ($glossary->allowcomments && $USER->id == $comment->userid) || isteacher($course->id) ) {
         echo "<a href=\"comment.php?id=$cm->id&eid=$entry->id&cid=$comment->id&action=delete\"><img  
-               alt=\"" . get_string("delete") . "\" src=\"$CFG->pixpath/t/delete.gif\" height=11 width=11 border=0></a>";
+               alt=\"" . get_string("delete") . "\" src=\"$CFG->pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\"></a>";
     }
     
     echo "</p>";
@@ -1607,8 +1607,8 @@ function glossary_print_dynaentry($courseid, $entries, $displayformat = -1) {
 
     $colour = $THEME->cellheading2;
 
-    echo "\n<center><table width=95% border=0><tr>";
-    echo "<td width=100%\">";
+    echo "\n<center><table width=\"95%\" border=\"0\"><tr>";
+    echo "<td width=\"100%\"\">";
     if ( $entries ) {
         foreach ( $entries as $entry ) {
             if (! $glossary = get_record("glossary", "id", $entry->glossaryid)) {
@@ -1933,7 +1933,7 @@ function glossary_print_ratings_mean($entryid, $scale) {
             $strratings = get_string("ratings", "glossary");
         }
 
-        echo "<font size=-1>$strratings: ";
+        echo "<font size=\"-1\">$strratings: ";
         link_to_popup_window ("/mod/glossary/report.php?id=$entryid", "ratings", $mean, 400, 600);
         echo "</font>";
     }
index a530c8c712c577be320aacda9a98113e964f9040..0a36d3350d224174ea0f870e871bfa2153be6c14 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 include_once($CFG->dirroot.'/mod/glossary/lib.php');
 
@@ -66,17 +66,17 @@ if (!isset($form->assesstimefinish)) {
     $form->assesstimefinish = 0;
 }
 ?>
-<FORM name="form" method="post" action="<?php p($ME) ?>">
-<CENTER>
-<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=30 value="<?php p($form->name) ?>" />
-    </TD>
-</TR>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("description") ?>:</b></p>
+<form name="form" method="post" action="<?php p($ME) ?>">
+<center>
+<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="30" value="<?php p($form->name) ?>" />
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("description") ?>:</b></p>
      <font size="1">
      <?php
         helpbutton("description", get_string("description"), "glossary", true, true);
@@ -92,20 +92,20 @@ if (!isset($form->assesstimefinish)) {
         <?php print_textarea($usehtmleditor, 20, 50, 680, 400, "intro", $form->intro); ?>
     </td>
 </tr>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("entbypage", "glossary") ?>:</B></P></TD>
-    <TD>
-               <input name=entbypage type=text size=2 value="<?php p($form->entbypage) ?>" /> <?php helpbutton("entbypage", get_string("entbypage", "glossary"), "glossary") ?>
-    </TD>
-</TR>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("entbypage", "glossary") ?>:</b></p></td>
+    <td>
+               <input name="entbypage" type="text" size="2" value="<?php p($form->entbypage) ?>" /> <?php helpbutton("entbypage", get_string("entbypage", "glossary"), "glossary") ?>
+    </td>
+</tr>
 
 <!-- More rows go in here... -->
 <?php
 if (isadmin() ) {
 ?>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("isglobal", "glossary") ?>:</B></P></TD>
-    <TD>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("isglobal", "glossary") ?>:</b></p></td>
+    <td>
 <?php
     $selected = "";
     if ( isset($form->globalglossary) ) {
@@ -114,21 +114,21 @@ if (isadmin() ) {
         }
     }
 ?> 
-  <input type="checkbox" name="globalglossary" value=1 selected="<?PHP p($selected)?>" /> <?php helpbutton("globalglossary", get_string("globalglossary", "glossary"), "glossary") ?>
-    </TD>
-</TR>
+  <input type="checkbox" name="globalglossary" value="1" selected="<?php p($selected)?>" /> <?php helpbutton("globalglossary", get_string("globalglossary", "glossary"), "glossary") ?>
+    </td>
+</tr>
 <?php
 } else {
-   echo '<INPUT type="hidden" name=globalglossary value="' . $form->globalglossary . '" />';
+   echo '<input type="hidden" name="globalglossary" value="' . $form->globalglossary . '" />';
 }
 ?>
 <?php
 $mainglossary = get_record("glossary","mainglossary",1,"course",$form->course);
 if (!$mainglossary or $mainglossary->id == $form->instance ) {
 ?>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("glossarytype", "glossary") ?>:</B></P></TD>
-    <TD>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("glossarytype", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="mainglossary">
   <option value="1" <?php
    if ( $form->mainglossary ) {
@@ -143,17 +143,17 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("secondaryglossary", "glossary") ?>
   </option>
   </select> <?php helpbutton("mainglossary", get_string("mainglossary", "glossary"), "glossary") ?>
-    </TD>
-</TR>
+    </td>
+</tr>
 <?php
 } else {
-       echo "<INPUT type=\"hidden\" name=mainglossary value=\"0\" />";
+       echo "<input type=\"hidden\" name=\"mainglossary\" value=\"0\" />";
 }
 ?>
-<TR valign=top>
-    <TD align=right><P><B><?php p(get_string("studentcanpost", "glossary")) ?>:</B><br />
-    <font size=1><?php p(get_string("warningstudentcapost","glossary")) ?></font></P></TD>
-    <TD>
+<tr valign="top">
+    <td align="right"><p><b><?php p(get_string("studentcanpost", "glossary")) ?>:</b><br />
+    <font size="1"><?php p(get_string("warningstudentcapost","glossary")) ?></font></p></td>
+    <td>
   <select size="1" name="studentcanpost">
   <option value="1" <?php
    if ( $form->studentcanpost ) {
@@ -167,11 +167,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("studentcanpost", get_string("studentcanpost", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("allowduplicatedentries", "glossary") ?>:</B></P></TD>
-    <TD>
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("allowduplicatedentries", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="allowduplicatedentries">
   <option value="1" <?php
    if ( $form->allowduplicatedentries ) {
@@ -186,11 +186,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("allowduplicatedentries", get_string("allowduplicatedentries", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("allowcomments", "glossary") ?>:</B></P></TD>
-    <TD>
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("allowcomments", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="allowcomments">
   <option value="1" <?php
    if ( $form->allowcomments ) {
@@ -205,11 +205,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("allowcomments", get_string("allowcomments", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("usedynalink", "glossary") ?>:</B></P></TD>
-    <TD>
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("usedynalink", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="usedynalink">
   <option value="1" <?php
    if ( $form->usedynalink ) {
@@ -224,11 +224,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("usedynalink", get_string("usedynalink", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("defaultapproval", "glossary") ?>:</B></P></TD>
-    <TD>
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("defaultapproval", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="defaultapproval">
   <option value="1" <?php
    if ( $form->defaultapproval ) {
@@ -243,15 +243,15 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("defaultapproval", get_string("defaultapproval", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-<td colspan=2><hr />
+    </td>
+</tr>
+<tr valign="top">
+<td colspan="2"><hr />
 </tr>
 </tr>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("displayformat", "glossary") ?>:</B></P></TD>
-    <TD>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("displayformat", "glossary") ?>:</b></p></td>
+    <td>
     <?php
         //get and update available formats
         $recformats = glossary_get_available_formats();
@@ -274,11 +274,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
         choose_from_menu($formats,'displayformat',$form->displayformat,'');
     ?>
     <?php helpbutton("displayformat", get_string("displayformat", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("showspecial", "glossary") ?>:</B></P></TD>
-    <TD>
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("showspecial", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="showspecial">
   <option value="1" <?php
    if ( $form->showspecial ) {
@@ -293,11 +293,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("shows", get_string("showspecial", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("showalphabet", "glossary") ?>:</B></P></TD>
-    <TD>
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("showalphabet", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="showalphabet">
   <option value="1" <?php
    if ( $form->showalphabet ) {
@@ -312,11 +312,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("shows", get_string("showalphabet", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("showall", "glossary") ?>:</B></P></TD>
-    <TD>
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("showall", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="showall">
   <option value="1" <?php
    if ( $form->showall ) {
@@ -331,11 +331,11 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("shows", get_string("showall", "glossary"), "glossary") ?>
-    </TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php echo get_string("editalways", "glossary") ?>:</B></P></TD>
-    <TD>
+    </td>
+</tr>
+<tr valign="top">
+    <td align="right"><p><b><?php echo get_string("editalways", "glossary") ?>:</b></p></td>
+    <td>
   <select size="1" name="editalways">
   <option value="1" <?php
    if ( $form->editalways ) {
@@ -350,14 +350,14 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
    ?>><?php echo get_string("no") ?>
   </option>
   </select> <?php helpbutton("editalways", get_string("editalways", "glossary"), "glossary") ?>
-    </TD>
-</TR>
+    </td>
+</tr>
 <?php
     //Only show rss parameters if rss is activated at site and glossary levels
     if (isset($CFG->enablerssfeeds) && isset($CFG->glossary_enablerssfeeds) &&
         $CFG->enablerssfeeds && $CFG->glossary_enablerssfeeds) {
-        echo "<tr valign=top>";
-        echo "<td align=right><p><b>".get_string("rsstype").":</b></p></td>";
+        echo "<tr valign=\"top\">";
+        echo "<td align=\"right\"><p><b>".get_string("rsstype").":</b></p></td>";
         echo "<td>";
         unset($choices);
         $choices[0] = get_string("none");
@@ -368,8 +368,8 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
         echo "</td>";
         echo "</tr>";
 
-        echo "<tr valign=top>";
-        echo "<td align=right><p><b>".get_string("rssarticles").":</b></p></td>";
+        echo "<tr valign=\"top\">";
+        echo "<td align=\"right\"><p><b>".get_string("rssarticles").":</b></p></td>";
         echo "<td>";
         unset($choices);
         $choices[0] = "0";
@@ -392,7 +392,7 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
     }
 ?>
 <tr>
-    <td align=right valign=top><p><b><?php print_string("allowratings", "glossary") ?>:</b></p></td>
+    <td align="right" valign="top"><p><b><?php print_string("allowratings", "glossary") ?>:</b></p></td>
     <td>
         <?php 
             echo "<script>";
@@ -402,7 +402,7 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
                                    "'finishday','finishmonth','finishyear','finishhour','finishminute'];";
             echo "</script>";
 
-            echo "<input name=\"userating\" type=checkbox value=1 ";
+            echo "<input name=\"userating\" type=\"checkbox\" value=\"1\" ";
             echo " onclick=\"return lockoptions('form','userating', subitemsall)\" ";
             if ($form->assessed) {
                 echo " checked=\"checked\" ";
@@ -423,7 +423,7 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
             print_grade_menu($course->id, "scale", $form->scale, false);
             echo "<br />";
 
-            echo "<input name=\"ratingtime\" type=checkbox value=1 ";
+            echo "<input name=\"ratingtime\" type=\"checkbox\" value=\"1\" ";
             echo " onclick=\"return lockoptions('form','ratingtime', subitemstime)\" ";
             if ($form->assesstimestart and $form->assesstimefinish and $form->assessed) {
                 $form->ratingtime = 1;
@@ -432,7 +432,7 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
             echo " />";
 
             print_string("ratingtime", "glossary");
-            echo "<table align=left><tr><td align=right nowrap>";
+            echo "<table align=\"left\"><tr><td align=\"right\" nowrap=\"nowrap\">";
             echo get_string("from").":";
             print_date_selector("startday", "startmonth", "startyear", $form->assesstimestart);
             print_time_selector("starthour", "startminute", $form->assesstimestart);
@@ -442,19 +442,19 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
             print_time_selector("finishhour", "finishminute", $form->assesstimefinish);
             echo "<br />";
             echo "</td></tr></table>";
-            echo "<input type=\"hidden\" name=\"hratingtime\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hassessed\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hscale\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hstartday\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hstartmonth\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hstartyear\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hstarthour\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hstartminute\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hfinishday\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hfinishmonth\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hfinishyear\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hfinishhour\" value=0 />";
-            echo "<input type=\"hidden\" name=\"hfinishminute\" value=0 />";
+            echo "<input type=\"hidden\" name=\"hratingtime\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hassessed\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hscale\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hstartday\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hstartmonth\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hstartyear\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hstarthour\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hstartminute\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hfinishday\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hfinishmonth\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hfinishyear\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hfinishhour\" value=\"0\" />";
+            echo "<input type=\"hidden\" name=\"hfinishminute\" value=\"0\" />";
 
             echo "<script>";
             echo "lockoptions('form','userating', subitemsall);";
@@ -468,15 +468,15 @@ if (!$mainglossary or $mainglossary->id == $form->instance ) {
         ?>
     </td>
 </tr>
-</TABLE>
+</table>
 <!-- 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="submit" value="<?php print_string("savechanges") ?>" />
-</CENTER>
-</FORM>
+<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") ?>" />
+</center>
+</form>
index a9a9ca1c3d545f35ca22c472cd405ec90dd0be8f..2b01064f5b5d6f0db0e8ac573ba54b93c924a243 100644 (file)
     }
 
     $site = get_record("course","id",1);
-    echo '<p align="right"><font size=-1>' . userdate(time()) . '</font></p>';
+    echo '<p align="right"><font size="-1">' . userdate(time()) . '</font></p>';
     echo '<strong>' . $site->fullname . '</strong><br />';
     echo get_string("course") . ': <strong>' . $course->fullname . ' ('. $course->shortname . ')</strong><br />';
     echo get_string("modulename","glossary") . ': <strong>' . $glossary->name . '</strong><p>';
index 262eb7150bb7728d88dd7d46209c800d10f79e05..7f95fbf0a7accacc8f0214ac9dcb99209168e070 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP   // $Id$
+<?php   // $Id$
 
 //  Collect ratings, store them, then return to where we came from
 
index cd0a96cddad49bd0311e4feb08913a1311219a09..86b3e5e23a0753ae9497670b809f2d1107c93580 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP   // $Id$
+<?php   // $Id$
 //  For a given entry, shows a report of all the ratings it has
 
     require_once("../../config.php");
         error("No ratings for this entry: \"$entry->concept\"");
 
     } else {
-        echo "<table border=0 cellpadding=3 cellspacing=3 class=generalbox width=100%>";
+        echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"3\" class=\"generalbox\" width=\"100%\">";
         echo "<tr>";
         echo "<th>&nbsp;</th>";
-        echo "<th><a href=report.php?id=$entry->id&sort=u.firstname>$strname</a>";
-        echo "<th width=100%><a href=report.php?id=$entry->id&sort=r.rating>$strrating</a>";
-        echo "<th><a href=report.php?id=$entry->id&sort=r.time>$strtime</a>";
+        echo "<th><a href=\"report.php?id=$entry->id&sort=u.firstname\">$strname</a>";
+        echo "<th width=\"100%\"><a href=\"report.php?id=$entry->id&sort=r.rating\">$strrating</a>";
+        echo "<th><a href=\"report.php?id=$entry->id&sort=r.time\">$strtime</a>";
         foreach ($ratings as $rating) {
             if (isteacher($glossary->course, $rating->id)) {
                 echo "<tr bgcolor=\"$THEME->cellcontent2\">";
@@ -54,9 +54,9 @@
             }
             echo "<td>";
             print_user_picture($rating->id, $glossary->course, $rating->picture);
-            echo '<td nowrap><p><font size="-1">'.fullname($rating).'</p>';
-            echo '<td nowrap align="center"><p><font size="-1">'.$scalemenu[$rating->rating]."</p>";
-            echo '<td nowrap align="center"><p><font size="-1">'.userdate($rating->time)."</p>";
+            echo '<td nowrap="nowrap"><p><font size="-1">'.fullname($rating).'</p>';
+            echo '<td nowrap="nowrap" align="center"><p><font size="-1">'.$scalemenu[$rating->rating]."</p>";
+            echo '<td nowrap="nowrap" align="center"><p><font size="-1">'.userdate($rating->time)."</p>";
             echo "</tr>\n";
         }
         echo "</table>";
index 3fe61f6fbd6942224b753a2f438feeb70b0592b2..ec886e8cc43a505f6eafd049125baecb59acaf41 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //glossary mods
 
index 9170786410a354fb491740dd291a1fbea95f42b9..f80120944f25225b8d457d6ba9e489e976d63c2c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
     //This file adds support to rss feeds generation
 
     //This function is the main entry point to glossary
index 42b26dea23b2c6bbc1edabbd62564d262bd59c68..93b8ec74036abc4d26672d2ce1c9bbb4dd21cbf5 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
     require_once("../../config.php");
     require_once("lib.php");
 
index 205c8b7b513d3a2524c2b63062f04672d1ebf065..75fd1a5824954eb49b76166493b45f67a13ff6cd 100644 (file)
@@ -49,7 +49,7 @@
 
         $hiddenentries = get_records_select("glossary_entries","glossaryid  = $glossary->id and approved = 0");
         if ($hiddenentries) {
-            $data[GLOSSARY_APPROVAL_VIEW]->caption .= "<br /><font size=1>(" . count($hiddenentries) . " " . get_string("entries","glossary") . ")</font>";
+            $data[GLOSSARY_APPROVAL_VIEW]->caption .= "<br /><font size=\"1\">(" . count($hiddenentries) . " " . get_string("entries","glossary") . ")</font>";
             $data[GLOSSARY_APPROVAL_VIEW]->link = "view.php?id=$id&tab=".GLOSSARY_APPROVAL_VIEW;
 
             $data[GLOSSARY_APPROVAL_VIEW]->link = "view.php?id=$id&mode=approval";
index f19361e7fb6e003daa2aefcb1e616cddb3bcd6e2..11d4cad5368058c7d9a511030effc74861d8b24e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 /////////////////////////////////////////////////////////////////////////////////
 ///  Code fragment to define the version of glossary
index b0db9af40cbe521be3bd64278b2b7efb46bdd908..984e64657668949b6cd88fb97f7697592873ab82 100644 (file)
     $strsearch = get_string("search");
     
     print_header(strip_tags("$course->shortname: $glossary->name"), "$course->fullname",
-        "$navigation <A HREF=index.php?id=$course->id>$strglossaries</A> -> $glossary->name",
+        "$navigation <a href=\"index.php?id=$course->id\">$strglossaries</a> -> $glossary->name",
         "", "", true, update_module_button($cm->id, $course->id, $strglossary),
         navmenu($course, $cm));
 
     if ( $isuserframe and $mode != 'search') {
     /// the "Print" icon
         echo " <a title =\"". get_string("printerfriendly","glossary") . "\" target=\"printview\" href=\"print.php?id=$cm->id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\">";
-        echo '<img border=0 src="print.gif"/></a>';
+        echo '<img border="0" src="print.gif"/></a>';
     }
     echo '</b></font></p>';
 
 
 /// Search box
 //    echo '<p>';
-    echo '<table align="center" width="70%" bgcolor="' . $THEME->cellheading .'" class="generalbox"><tr><td align=center>';
+    echo '<table align="center" width="70%" bgcolor="' . $THEME->cellheading .'" class="generalbox"><tr><td align="center">';
     
     echo '<p align="center">';
     echo '<form method="POST" action="view.php">';
                     $paging .= "<a href=\"view.php?id=$id&mode=$mode&hook=$hook&offset=" . ($i*$entriesbypage) . "&sortkey=$sortkey&sortorder=$sortorder&fullsearch=$fullsearch\">" . $pagenumber . '</a>';
                 }
             }
-            $paging  = "<font size=1><center>" . get_string ("jumpto") . " $paging</center></font>";
+            $paging  = "<font size=\"1\"><center>" . get_string ("jumpto") . " $paging</center></font>";
         } else {
             $paging = '';
         }
                 $ratings->allow = true;
             }
 
-            echo "<form name=form method=post action=rate.php>";
-            echo "<input type=hidden name=id value=\"$course->id\" />";
+            echo "<form name=\"form\" method=\"post\" action=\"rate.php\">";
+            echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\" />";
         }
 
         foreach ($allentries as $entry) {
         echo '<p>';
         print_simple_box("$sqlselect<br /> $sqlfrom<br /> $sqlwhere<br /> $sqlorderby<br /> $sqllimit","center","85%");
 
-        echo "<p align=right><font size=-3>";
+        echo "<p align=\"right\"><font size=\"-3\">";
         echo microtime_diff($CFG->startpagetime, microtime());
         echo "</font></p>";
     }
index bdc85c4a10b26481677d32e78b5100b58e6d37ca..928b7f4af9f78caaec1017b7a42e86a7c8028a0d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //journal mods
 
index 836c9b8eeb9c506ed994de37c9e6acf353f04d29..3a04c46bf1ab0bb54d0fecf39e896f6ae4c9a4dd 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function journal_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 5913191938ffe957880c7c18ff24d6c0f9bdb592..f5be3021c72ec48932e428ad152a500edd290fc8 100755 (executable)
@@ -1,12 +1,24 @@
-<?PHP\r
-\r
-function journal_upgrade($oldversion) {\r
-/// This function does anything necessary to upgrade \r
-/// older versions to match current functionality \r
-\r
-    global $CFG;\r
-    return true;\r
-}\r
-\r
-?>\r
-\r
+<?php
+
+
+
+function journal_upgrade($oldversion) {
+
+/// This function does anything necessary to upgrade 
+
+/// older versions to match current functionality 
+
+
+
+    global $CFG;
+
+    return true;
+
+}
+
+
+
+?>
+
+
+
index acdaaa39e3da41a7b227bce81a9ae907d75749cd..ae35336ac1c34e4d9991627f1f4dc406e2fa20a7 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function journal_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 0b156d1a77b835425425edb40fbec781340a7e35..d4f60e739ef20cda3278623a9879583bd5a989a6 100644 (file)
@@ -1,8 +1,8 @@
 <form name="theform" method="post" action="edit.php">
-<table cellpadding=10 cellspacing=0 class=generalbox>
-  <tr><td align=right bgcolor="<?php echo $THEME->cellheading2 ?>">
+<table cellpadding="10" cellspacing="0" class="generalbox">
+  <tr><td align="right" bgcolor="<?php echo $THEME->cellheading2 ?>">
     <font size="1">
-     <?PHP
+     <?php
         helpbutton("reading", get_string("helpreading"), "moodle", true, true);
         echo "<br />";
         helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
      <br />
     </font>
 </td></tr>
-<tr><td align=center bgcolor="<?php echo $THEME->cellheading2 ?>">
+<tr><td align="center" bgcolor="<?php echo $THEME->cellheading2 ?>">
 <?php  print_textarea($usehtmleditor, 20, 60, 630, 400, "text", $entry->text); ?>
 </td></tr>
-<tr><td align=center bgcolor="<?php echo $THEME->cellheading2 ?>">
+<tr><td align="center" bgcolor="<?php echo $THEME->cellheading2 ?>">
 <?php
    print_string("formattexttype");
    echo ":&nbsp;";
@@ -29,8 +29,8 @@
    echo "</font>";
 ?>
 </td></tr>
-<tr><td align=center bgcolor="<?php echo $THEME->cellheading2 ?>" class=generalboxcontent>
-<input type="hidden" name=id value="<?php echo $cm->id ?>" />
+<tr><td align="center" bgcolor="<?php echo $THEME->cellheading2 ?>" class="generalboxcontent">
+<input type="hidden" name="id" value="<?php echo $cm->id ?>" />
 <input type="submit" value="<?php  print_string("savechanges") ?>" />
 <input type="reset" value="<?php  print_string("revert") ?>" />
 </td></tr></table>
index 95cf1f0f5392be009b4d535f0eff0d45761a5529..9b33b659932556c47475e2c50aa7bdb2aa593ec9 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
 
@@ -76,8 +76,8 @@
     }
 
     print_header_simple("$journal->name", "",
-                 "<A HREF=\"index.php?id=$course->id\">$strjournals</A> -> 
-                  <A HREF=\"view.php?id=$cm->id\">$journal->name</A> -> $stredit", "",
+                 "<a href=\"index.php?id=$course->id\">$strjournals</a> -> 
+                  <a href=\"view.php?id=$cm->id\">$journal->name</a> -> $stredit", "",
                   "", true, "", navmenu($course, $cm));
 
     echo "<center>\n";
index a395d65a93e2701a9eda7e52d93d9e82aa0a711a..60329fb8cfd7d66c70791bf57eb54af5d858110a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index 572cb6153297cf5ffdc27b24c4e97b1fc54bb637..500d9d29db79317d85dd4ce170d22207cd6c08f1 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 
 if (!isset($CFG->journal_showrecentactivity)) {
@@ -28,7 +28,7 @@ function journal_user_complete($course, $user, $mod, $journal) {
 
         print_simple_box_start();
         if ($entry->modified) {
-            echo "<P><FONT SIZE=1>".get_string("lastedited").": ".userdate($entry->modified)."</FONT></P>";
+            echo "<p><font size=\"1\">".get_string("lastedited").": ".userdate($entry->modified)."</font></p>";
         }
         if ($entry->text) {
             echo format_text($entry->text, $entry->format);
@@ -66,7 +66,7 @@ function journal_user_complete_index($course, $user, $journal, $journalopen, $he
     print_simple_box_start("left", "90%");
     echo format_text($journal->intro,  $journal->introformat);
     print_simple_box_end();
-    echo "<br clear=all />";
+    echo "<br clear=\"all\" />";
     echo "<br />";
     
     if (isstudent($course->id) or isteacher($course->id)) {
@@ -74,16 +74,16 @@ function journal_user_complete_index($course, $user, $journal, $journalopen, $he
         print_simple_box_start("right", "90%");
     
         if ($journalopen) {
-            echo "<p align=right><a href=\"edit.php?id=$journal->coursemodule\">";
+            echo "<p align=\"right\"><a href=\"edit.php?id=$journal->coursemodule\">";
             echo get_string("edit")."</a></p>";
         } else {
-            echo "<p align=right><a href=\"view.php?id=$journal->coursemodule\">";
+            echo "<p align=\"right\"><a href=\"view.php?id=$journal->coursemodule\">";
             echo get_string("view")."</a></p>";
         }
     
         if ($entry = get_record("journal_entries", "userid", $user->id, "journal", $journal->id)) {
             if ($entry->modified) {
-                echo "<p align=\"center\"><font size=1>".get_string("lastedited").": ".userdate($entry->modified)."</font></p>";
+                echo "<p align=\"center\"><font size=\"1\">".get_string("lastedited").": ".userdate($entry->modified)."</font></p>";
             }
             if ($entry->text) {
                 echo format_text($entry->text, $entry->format);
@@ -97,7 +97,7 @@ function journal_user_complete_index($course, $user, $journal, $journalopen, $he
         }
     
         print_simple_box_end();
-        echo "<br clear=all />";
+        echo "<br clear=\"all\" />";
         echo "<br />";
     }
 
@@ -223,7 +223,7 @@ function journal_print_recent_activity($course, $isteacher, $timestart) {
         print_headline(get_string("newjournalentries", "journal").":");
         foreach ($journals as $journal) {
             $date = userdate($journal->time, $strftimerecent);
-            echo "<p><font size=1>$date - ".fullname($journal)."<br />";
+            echo "<p><font size=\"1\">$date - ".fullname($journal)."<br />";
             echo "\"<a href=\"$CFG->wwwroot/mod/journal/$journal->url\">";
             echo "$journal->name";
             echo "</a>\"</font></p>";
@@ -428,44 +428,44 @@ function journal_print_user_entry($course, $user, $entry, $teachers, $grades) {
         $colour = $THEME->cellheading;
     }
 
-    echo "\n<TABLE BORDER=1 CELLSPACING=0 valign=top cellpadding=10>";
+    echo "\n<table border=\"1\" cellspacing=\"0\" valign=\"top\" cellpadding=\"10\">";
         
-    echo "\n<TR>";
-    echo "\n<TD ROWSPAN=2 BGCOLOR=\"$THEME->body\" WIDTH=35 VALIGN=TOP>";
+    echo "\n<tr>";
+    echo "\n<td rowspan=\"2\" bgcolor=\"$THEME->body\" width=\"35\" valign=\"top\">";
     print_user_picture($user->id, $course->id, $user->picture);
-    echo "</TD>";
-    echo "<TD NOWRAP WIDTH=100% BGCOLOR=\"$colour\">".fullname($user);
+    echo "</td>";
+    echo "<td nowrap=\"nowrap\" width=\"100%\" bgcolor=\"$colour\">".fullname($user);
     if ($entry) {
-        echo "&nbsp;&nbsp;<FONT SIZE=1>".get_string("lastedited").": ".userdate($entry->modified)."</FONT>";
+        echo "&nbsp;&nbsp;<font size=\"1\">".get_string("lastedited").": ".userdate($entry->modified)."</font>";
     }
-    echo "</TR>";
+    echo "</tr>";
 
-    echo "\n<TR><TD WIDTH=100% BGCOLOR=\"$THEME->cellcontent\">";
+    echo "\n<tr><td width=\"100%\" bgcolor=\"$THEME->cellcontent\">";
     if ($entry) {
         echo format_text($entry->text, $entry->format);
     } else {
         print_string("noentry", "journal");
     }
-    echo "</TD></TR>";
+    echo "</td></tr>";
 
     if ($entry) {
-        echo "\n<TR>";
-        echo "<TD WIDTH=35 VALIGN=TOP>";
+        echo "\n<tr>";
+        echo "<td width=\"35\" valign=\"top\">";
         if (!$entry->teacher) {
             $entry->teacher = $USER->id;
         }
         print_user_picture($entry->teacher, $course->id, $teachers[$entry->teacher]->picture);
-        echo "<TD BGCOLOR=\"$colour\">".get_string("feedback").":";
+        echo "<td bgcolor=\"$colour\">".get_string("feedback").":";
         choose_from_menu($grades, "r$entry->id", $entry->rating, get_string("nograde")."...");
         if ($entry->timemarked) {
-            echo "&nbsp;&nbsp;<FONT SIZE=1>".userdate($entry->timemarked)."</FONT>";
+            echo "&nbsp;&nbsp;<font size=\"1\">".userdate($entry->timemarked)."</font>";
         }
-        echo "<BR><TEXTAREA NAME=\"c$entry->id\" ROWS=12 COLS=60 WRAP=virtual>";
+        echo "<br /><textarea name=\"c$entry->id\" rows=\"12\" cols=\"60\" wrap=\"virtual\">";
         p($entry->comment);
-        echo "</TEXTAREA><BR>";
-        echo "</TD></TR>";
+        echo "</textarea><br />";
+        echo "</td></tr>";
     }
-    echo "</TABLE><BR CLEAR=ALL>\n";
+    echo "</table><br clear=\"all\">\n";
 }
 
 
@@ -524,31 +524,31 @@ function journal_print_feedback($course, $entry, $grades) {
         error("Weird journal error");
     }
 
-    echo "\n<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=1 ALIGN=CENTER><TR><TD BGCOLOR=#888888>";
-    echo "\n<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 VALIGN=TOP>";
+    echo "\n<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" align=\"center\"><tr><td bgcolor=#888888>";
+    echo "\n<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" valign=\"top\">";
 
-    echo "\n<TR>";
-    echo "\n<TD ROWSPAN=3 BGCOLOR=\"$THEME->body\" WIDTH=35 VALIGN=TOP>";
+    echo "\n<tr>";
+    echo "\n<td rowspan=\"3\" bgcolor=\"$THEME->body\" width=\"35\" valign=\"top\">";
     print_user_picture($teacher->id, $course->id, $teacher->picture);
-    echo "</TD>";
-    echo "<TD NOWRAP WIDTH=100% BGCOLOR=\"$THEME->cellheading\">".fullname($teacher);
-    echo "&nbsp;&nbsp;<FONT SIZE=2><I>".userdate($entry->timemarked)."</I>";
-    echo "</TR>";
+    echo "</td>";
+    echo "<td nowrap=\"nowrap\" width=\"100%\" bgcolor=\"$THEME->cellheading\">".fullname($teacher);
+    echo "&nbsp;&nbsp;<font size=\"2\"><i>".userdate($entry->timemarked)."</i>";
+    echo "</tr>";
 
-    echo "\n<TR><TD WIDTH=100% BGCOLOR=\"$THEME->cellcontent\">";
+    echo "\n<tr><td width=\"100%\" bgcolor=\"$THEME->cellcontent\">";
 
-    echo "<P ALIGN=RIGHT><FONT SIZE=-1><I>";
+    echo "<p align=\"right\"><font size=\"-1\"><i>";
     if ($grades[$entry->rating]) {
         echo get_string("grade").": ";
         echo $grades[$entry->rating];
     } else {
         print_string("nograde");
     }
-    echo "</I></FONT></P>";
+    echo "</i></font></p>";
 
     echo format_text($entry->comment);
-    echo "</TD></TR></TABLE>";
-    echo "</TD></TR></TABLE>";
+    echo "</td></tr></table>";
+    echo "</td></tr></table>";
 }
 
 ?>
index 056e7e5bf373ff1b35e981872f1b5cbaa5229930..3acf866d7c7352b65a78375e6a510ffc14086189 100644 (file)
 ?>
 
 <form name="form" method="post" action="mod.php">
-<table cellpadding=5>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("journalname", "journal") ?>:</b></p></td>
+<table cellpadding="5">
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("journalname", "journal") ?>:</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 valign=top>
-    <td align=right><p><b><?php print_string("journalquestion", "journal") ?>:</b></p>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("journalquestion", "journal") ?>:</b></p>
     <font size="1">
      <?php
         helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
@@ -50,7 +50,7 @@
        if ($usehtmleditor) {
            echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
        } else {
-           echo "<p align=right>";
+           echo "<p align=\"right\">";
            helpbutton("textformat", get_string("formattexttype"));
            print_string("formattexttype");
            echo ":&nbsp;";
 </tr>
 
 
-<tr valign=top>
-    <td align=right><p><b><?php print_string("grade") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("grade") ?>:</b></p></td>
     <td>
         <?php
         print_grade_menu($course->id, "assessed", "$form->assessed");
         ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p><b><?php print_string("daysavailable", "journal") ?>:</b></p></td>
+<tr valign="top">
+    <td align="right"><p><b><?php print_string("daysavailable", "journal") ?>:</b></p></td>
     <td>
     <?php
         $options = array();
 
 </table>
 <center>
-<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") ?>" />
+<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
 </form>
 </center>
index 3b761f9cac7bac0dc4de0c6192540384cd5b0c51..37fa4075a51293d135b1ca7ca10e90219e1d9b03 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
 
         if ($allowedtograde) {
             echo "<center>";
-            echo "<input type=hidden name=id value=\"$cm->id\" />";
-            echo "<input type=submit value=\"".get_string("saveallfeedback", "journal")."\" />";
+            echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />";
+            echo "<input type=\"submit\" value=\"".get_string("saveallfeedback", "journal")."\" />";
             echo "</center>";
             echo "</form>";
         }
index 1afd3cd02b0b44c894bdf249cd91f61345725c19..4cc4a1d02ff4cfbc527408a9945c3b4bcc20614d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //journal mods
 
index fa67847064b5fc94d3f68864985bbb0a46d9c17c..c0e8b819c70172629a2a308250d481c15feb6d51 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
index 040b35404795a78525fd7f7cb868996ba2de7ffe..caace7a25f562e320d15b9853f4854fc294d391a 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
@@ -29,7 +29,7 @@
     $strjournals = get_string("modulenameplural", "journal");
 
     print_header_simple("$journal->name", "",
-                 "<A HREF=index.php?id=$course->id>$strjournals</A> -> $journal->name", "", "", true,
+                 "<a href=\"index.php?id=$course->id\">$strjournals</a> -> $journal->name", "", "", true,
                   update_module_button($cm->id, $course->id, $strjournal), navmenu($course, $cm));
 
     if (isteacher($course->id)) {
@@ -42,7 +42,7 @@
         }
         $entrycount = journal_count_entries($journal, $currentgroup);
 
-        echo "<p align=right><a href=\"report.php?id=$cm->id\">".
+        echo "<p align=\"right\"><a href=\"report.php?id=$cm->id\">".
               get_string("viewallentries","journal", $entrycount)."</a>$groupname</p>";
 
     } else if (!$cm->visible) {
 
         if ($timenow < $timefinish) {
             $options = array ("id" => "$cm->id");
-            echo "<CENTER>";
+            echo "<center>";
             if (!isguest()) {
                 print_single_button("edit.php", $options, get_string("startoredit","journal"));
             }
-            echo "</CENTER>";
+            echo "</center>";
         }
 
 
         if ($entry = get_record("journal_entries", "userid", $USER->id, "journal", $journal->id)) {
 
             if (empty($entry->text)) {
-                echo "<P ALIGN=center><B>".get_string("blankentry","journal")."</B></P>";
+                echo "<p align=\"center\"><b>".get_string("blankentry","journal")."</b></p>";
             } else {
                 echo format_text($entry->text, $entry->format);
             }
             
         } else {
-            echo "<B><I>".get_string("notstarted","journal")."</I></B>";
+            echo "<b><i>".get_string("notstarted","journal")."</i></b>";
         }
 
         print_simple_box_end();
 
         if ($timenow < $timefinish) {
             if ($entry->modified) {
-                echo "<P><FONT SIZE=-2><B>".get_string("lastedited").":</B> ";
+                echo "<p><font size=\"-2\"><b>".get_string("lastedited").":</b> ";
                 echo userdate($entry->modified);
                 echo " (".get_string("numwords", "", count_words($entry->text)).")";
-                echo "</FONT></P>";
+                echo "</font></p>";
             }
             if ($journal->days) {
-                echo "<P><FONT SIZE=-2><B>".get_string("editingends", "journal").":</B> ";
-                echo userdate($timefinish)."</FONT></P>";
+                echo "<p><font size=\"-2\"><b>".get_string("editingends", "journal").":</b> ";
+                echo userdate($timefinish)."</font></p>";
             }
         } else {
-            echo "<P><FONT SIZE=-2><B>".get_string("editingended", "journal").":</B> ";
-            echo userdate($timefinish)."</P>";
+            echo "<p><font size=\"-2\"><b>".get_string("editingended", "journal").":</b> ";
+            echo userdate($timefinish)."</p>";
         }
 
         if ($entry->comment or $entry->rating) {
 
 
     } else {
-        echo "<P><B>".get_string("notopenuntil", "journal").": ";
-        echo userdate($timestart)."</B></P>";
+        echo "<p><b>".get_string("notopenuntil", "journal").": ";
+        echo userdate($timestart)."</b></p>";
     }
 
     print_footer($course);
index d1a9f83afe701e491d182a2f6aca6aebe98a7a30..8ad40c028cda9c9ddc82f2aead49104a5f7f137b 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //label mods
 
index 74e0f571eb56488a01acb273df4cb36a34f801b9..20f8fa48a1db4a7a91c72fb078365343f6336e62 100644 (file)
@@ -1,22 +1,44 @@
-<?PHP\r
-\r
-function label_upgrade($oldversion) {\r
-/// This function does anything necessary to upgrade \r
-/// older versions to match current functionality \r
-\r
-    global $CFG;\r
-\r
-    if ($oldversion < 2003091400) {\r
-        table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");\r
-    }\r
-\r
-    if ($oldversion < 2004021900) {\r
-        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');");\r
-        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');");\r
-    }\r
-\r
-\r
-    return true;\r
-}\r
-\r
-?>\r
+<?php
+
+
+
+function label_upgrade($oldversion) {
+
+/// This function does anything necessary to upgrade 
+
+/// older versions to match current functionality 
+
+
+
+    global $CFG;
+
+
+
+    if ($oldversion < 2003091400) {
+
+        table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");
+
+    }
+
+
+
+    if ($oldversion < 2004021900) {
+
+        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');");
+
+        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');");
+
+    }
+
+
+
+
+
+    return true;
+
+}
+
+
+
+?>
+
index 854c2977b777f8ad192667332fa4ce07454a0c84..1d549cdf240a26dba636d7afa08434c685744de0 100644 (file)
@@ -1,21 +1,42 @@
-<?PHP\r
-\r
-function label_upgrade($oldversion) {\r
-/// This function does anything necessary to upgrade \r
-/// older versions to match current functionality \r
-\r
-    global $CFG;\r
-\r
-    if ($oldversion < 2003091400) {\r
-        table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");\r
-    }\r
-\r
-    if ($oldversion < 2004021900) {\r
-        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');");\r
-        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');");\r
-    }\r
-\r
-    return true;\r
-}\r
-\r
-?>\r
+<?php
+
+
+
+function label_upgrade($oldversion) {
+
+/// This function does anything necessary to upgrade 
+
+/// older versions to match current functionality 
+
+
+
+    global $CFG;
+
+
+
+    if ($oldversion < 2003091400) {
+
+        table_column("label", "", "course", "integer", "10", "unsigned", "0", "not null", "id");
+
+    }
+
+
+
+    if ($oldversion < 2004021900) {
+
+        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'add', 'quiz', 'name');");
+
+        modify_database("", "INSERT INTO prefix_log_display VALUES ('label', 'update', 'quiz', 'name');");
+
+    }
+
+
+
+    return true;
+
+}
+
+
+
+?>
+
index 0ee6428cc1402d35d663b34db89213fda15d1a50..0141b614cd00654b3c13cb65e81e2fb48272a6f6 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index 628b0108331f036fb612e830e37246c66873acae..2321fa8f786dda6121ee659a8c82d8a2e1f16584 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of functions and constants for module label
 
index c8d8d2c001345b0f86dde240f02de6f24faea191..741acef60b8ec99f880f9fa33d09dacaa5c73d4d 100644 (file)
@@ -6,9 +6,9 @@
 
 <form name="form" method="post" action="mod.php">
 <center>
-<table cellpadding=5>
-<tr valign=top>
-    <td align=right><p><b><?php  print_string("labeltext", "label") ?>:</b></p>
+<table cellpadding="5">
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("labeltext", "label") ?>:</b></p>
     <font size="1">
      <?php
         helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
 
 </table>
 <!-- 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="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") ?>" />
 </center>
 </form>
index 25474d624227931e6b380033dbc753aebddba3a1..342536189b0bc5f8901902cee4e4bdd257d3e42b 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //label mods
 
index b1386cf7af0a537db6bd294298be36715addfff5..0d2a4c4f257ba99f4bb0dc91ee99bc0b510299fe 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 /////////////////////////////////////////////////////////////////////////////////
 ///  Code fragment to define the version of label
index 8e115c698dead3898f796ccfc65c907fb7bcb41a..683275aee2ed9b87ebc7045f08dd881543174988 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
 
index 8f9be96a0463640c2fe608b1f638b2674b6908a1..888c03865b17181fa963929b509e3283f24013c4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //lesson mods
 
index d6be6b236b420d55f725431c7dd5ae80b2b6dd3f..e866eb05e49d61eae787967dd3cbb16826e272c4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 function lesson_upgrade($oldversion) {
 /// This function does anything necessary to upgrade 
index 1f52e6fe04d80f78e7e5bafaf42e72845ac328f6..7d8e7a21b40f77242e5d94cb1ed1ece1caa88f03 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 function lesson_upgrade($oldversion) {
 /// This function does anything necessary to upgrade 
index 93b23f2244126e2b15ce82ad727a4c6329b1b58c..a0662ae1f529825ee326afc7c060bcb47e611a43 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$ 
+<?php  // $Id$ 
 
 ////////////////////////////////////////////////////////////////////
 /// format.php  - Default format class for file imports/exports.  //
index 69a78506258ef428db4245e7d2290fc53b1e83d3..9a7c8a974be5c2d8c7fd17fc8b0f6ed1eaebbd90 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
       // Import quiz questions into the given category
 
     require_once("../../config.php");
@@ -30,7 +30,7 @@
     $strlessons = get_string("modulenameplural", "lesson");
 
     print_header_simple("$strimportquestions", " $strimportquestions",
-                 "<A HREF=index.php?id=$course->id>$strlessons</A> -> <a href=\"view.php?id=$cm->id\">$lesson->name</a>-> $strimportquestions");
+                 "<a href=\"index.php?id=$course->id\">$strlessons</a> -> <a href=\"view.php?id=$cm->id\">$lesson->name</a>-> $strimportquestions");
 
     if ($form = data_submitted()) {   /// Filename
 
     print_heading_with_help($strimportquestions, "import", "lesson");
 
     print_simple_box_start("center", "", "$THEME->cellheading");
-    echo "<form enctype=\"multipart/form-data\" method=\"post\" action=import.php>";
+    echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"import.php\">";
     echo "<input type=\"hidden\" name=\"id\" value=\"$cm->id\" />\n";
     echo "<input type=\"hidden\" name=\"pageid\" value=\"".$_GET['pageid']."\" />\n";
-    echo "<table cellpadding=5>";
+    echo "<table cellpadding=\"5\">";
 
-    echo "<tr><td align=right>";
+    echo "<tr><td align=\"right\">";
     print_string("fileformat", "lesson");
     echo ":</td><td>";
     choose_from_menu($fileformatnames, "format", "gift", "");
     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=submit name=save value=\"".get_string("uploadthisfile")."\" />";
+    echo " <input type=\"submit\" name=\"save\" value=\"".get_string("uploadthisfile")."\" />";
     echo "</td></tr>";
 
     echo "</table>";
index c88ad3e6f9b09f728902785ba93f95467ad7d309..5e8ef38fb236d3733fd4f2f8e73d9d351ec97af4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 /// This page lists all the instances of lesson in a particular course
 
     foreach ($lessons as $lesson) {
         if (!$lesson->visible) {
             //Show dimmed if the mod is hidden
-            $link = "<A class=\"dimmed\" HREF=\"view.php?id=$lesson->coursemodule\">$lesson->name</A>";
+            $link = "<a class=\"dimmed\" href=\"view.php?id=$lesson->coursemodule\">$lesson->name</a>";
         } else {
             //Show normal if the mod is visible
-            $link = "<A HREF=\"view.php?id=$lesson->coursemodule\">$lesson->name</A>";
+            $link = "<a href=\"view.php?id=$lesson->coursemodule\">$lesson->name</a>";
         }
 
         if ($lesson->deadline > $timenow) {
             $due = userdate($lesson->deadline);
         } else {
-            $due = "<FONT COLOR=\"red\">".userdate($lesson->deadline)."</FONT>";
+            $due = "<font color=\"red\">".userdate($lesson->deadline)."</font>";
         }
 
         $grade_value = '';
@@ -92,7 +92,7 @@
         }
     }
 
-    echo "<BR>";
+    echo "<br />";
 
     print_table($table);
 
index cbb0545ffe36f25b37bb125e221beea705f95ed9..4ef5ad491312bec2cfb05129a8295c3eb465fa18 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id: lesson.php, v 1.0 25 Jan 2004
+<?php  // $Id: lesson.php, v 1.0 25 Jan 2004
 
 /*************************************************
        ACTIONS handled are:
@@ -42,7 +42,7 @@
     
     $navigation = "";
     if ($course->category) {
-        $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
+        $navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
     }
 
     $strlessons = get_string("modulenameplural", "lesson");
@@ -51,8 +51,8 @@
        
        // ... print the header and...
     print_header("$course->shortname: $lesson->name", "$course->fullname",
-                 "$navigation <A HREF=index.php?id=$course->id>$strlessons</A> -> 
-                  <A HREF=\"view.php?id=$cm->id\">$lesson->name</A>", 
+                 "$navigation <a href=\"index.php?id=$course->id\">$strlessons</a> -> 
+                  <a href=\"view.php?id=$cm->id\">$lesson->name</a>", 
                   "", "", true);
 
        //...get the action 
                print_heading_with_help(get_string("addabranchtable", "lesson"), "overview", "lesson");
         ?>
         <form name="form" method="post" action="lesson.php">
-        <input type="hidden" name="id" value="<?PHP echo $cm->id ?>" />
+        <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
         <input type="hidden" name="action" value="insertpage" />
-        <input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>" />
-        <input type="hidden" name="qtype" value="<?PHP echo LESSON_BRANCHTABLE ?>" />
-        <center><table cellpadding=5 border=1>
+        <input type="hidden" name="pageid" value="<?php echo $_GET['pageid'] ?>" />
+        <input type="hidden" name="qtype" value="<?php echo LESSON_BRANCHTABLE ?>" />
+        <center><table cellpadding="5" border="1">
         <tr><td align="center">
         <tr valign="top">
         <td><b><?php print_string("pagetitle", "lesson"); ?>:</b><br />
         <input type="text" name="title" size="80" maxsize="255" value="" /></td></tr>
-        <?PHP
+        <?php
         echo "<tr><td><b>";
         echo get_string("pagecontents", "lesson").":</b><br />\n";
         print_textarea($usehtmleditor, 25,70, 630, 400, "contents");
             echo "<tr><td><b>".get_string("description", "lesson")." $iplus1:</b><br />\n";
             print_textarea($usehtmleditor, 20, 70, 630, 300, "answer[$i]");
             echo "</td></tr>\n";
-            echo "<tr><td><B>".get_string("jump", "lesson")." $iplus1:</b> \n";
+            echo "<tr><td><b>".get_string("jump", "lesson")." $iplus1:</b> \n";
             if ($i) {
                 // answers 2, 3, 4... jumpto this page
                 lesson_choose_from_menu($jump, "jumpto[$i]", 0, "");
         <input type="submit" name="cancel" value="<?php  print_string("cancel") ?>" />
         </center>
         </form>
-        <?PHP
+        <?php
        }
        
 
                print_heading_with_help(get_string("addaquestionpage", "lesson"), "overview", "lesson");
         ?>
         <form name="form" method="post" action="lesson.php">
-        <input type="hidden" name="id" value="<?PHP echo $cm->id ?>" />
+        <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
         <input type="hidden" name="action" value="insertpage" />
-        <input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>" />
-        <center><table cellpadding=5 border=1>
+        <input type="hidden" name="pageid" value="<?php echo $_GET['pageid'] ?>" />
+        <center><table cellpadding="5" border="1">
         <tr><td align="center">
         <tr valign="top">
         <td><b><?php print_string("pagetitle", "lesson"); ?>:</b><br />
         <input type="text" name="title" size="80" maxsize="255" value="" /></td></tr>
-        <?PHP
+        <?php
         echo "<tr><td><b>";
         echo get_string("pagecontents", "lesson").":</b><br />\n";
         print_textarea($usehtmleditor, 25,70, 630, 400, "contents");
             echo "<tr><td><b>".get_string("response", "lesson")." $iplus1:</b><br />\n";
             print_textarea(false, 6, 70, 630, 300, "response[$i]");
             echo "</td></tr>\n";
-            echo "<tr><td><B>".get_string("jump", "lesson")." $iplus1:</b> \n";
+            echo "<tr><td><b>".get_string("jump", "lesson")." $iplus1:</b> \n";
             if ($i) {
                 // answers 2, 3, 4... jumpto this page
                 lesson_choose_from_menu($jump, "jumpto[$i]", 0, "");
         <input type="submit" name="cancel" value="<?php  print_string("cancel") ?>" />
         </center>
         </form>
-        <?PHP
+        <?php
                }
        
 
         // give teacher a proforma
         ?>
         <form name="editpage" method="post" action="lesson.php">
-        <input type="hidden" name="id" value="<?PHP echo $cm->id ?>" />
+        <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
         <input type="hidden" name="action" value="updatepage" />
-        <input type="hidden" name="pageid" value="<?PHP echo $_GET['pageid'] ?>" />
+        <input type="hidden" name="pageid" value="<?php echo $_GET['pageid'] ?>" />
         <input type="hidden" name="redisplay" value="0" />
-        <center><table cellpadding=5 border=1>
+        <center><table cellpadding="5" border="1">
         <tr><td align="center">
         <tr valign="top">
         <td><b><?php print_string("pagetitle", "lesson"); ?>:</b><br />
-        <input type="text" name="title" size="80" maxsize="255" value="<?PHP echo $page->title ?>" /></td>
+        <input type="text" name="title" size="80" maxsize="255" value="<?php echo $page->title ?>" /></td>
         </tr>
-        <?PHP
+        <?php
         echo "<tr><td><b>";
         echo get_string("pagecontents", "lesson").":</b><br />\n";
         print_textarea($usehtmleditor, 25, 70, 630, 400, "contents", $page->contents);
                         echo "</td></tr>\n";
                         break;
                 }
-                echo "<tr><td><B>".get_string("jump", "lesson")." $iplus1:</b> \n";
+                echo "<tr><td><b>".get_string("jump", "lesson")." $iplus1:</b> \n";
                 lesson_choose_from_menu($jump, "jumpto[$i]", 0, "");
                 helpbutton("jumpto", get_string("jump", "lesson"), "lesson");
                 echo "</td></tr>\n";
         <input type="submit" name="cancel" value="<?php  print_string("cancel") ?>" />
         </center>
         </form>
-        <?PHP
+        <?php
                }
        
 
index 87ccf2e06fd95ce55ffb783619230e45f75ddfbc..32c1b984da502b20f224b5d601ff0a3f684a389b 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of functions and constants for module lesson
 /// (replace lesson with the name of your module and delete this line)
@@ -93,31 +93,31 @@ function lesson_choose_from_menu ($options, $name, $selected="", $nothing="choos
         $javascript = "";
     }
 
-    $output = "<SELECT NAME=$name $javascript>\n";
+    $output = "<select name=$name $javascript>\n";
     if ($nothing) {
-        $output .= "   <OPTION VALUE=\"$nothingvalue\"\n";
+        $output .= "   <option value=\"$nothingvalue\"\n";
         if ($nothingvalue == $selected) {
             $output .= " SELECTED";
         }
-        $output .= ">$nothing</OPTION>\n";
+        $output .= ">$nothing</option>\n";
     }
     if (!empty($options)) {
         foreach ($options as $value => $label) {
-            $output .= "   <OPTION VALUE=\"$value\"";
+            $output .= "   <option value=\"$value\"";
             if ($value == $selected) {
                 $output .= " SELECTED";
             }
             // stop zero label being replaced by array index value
             // if ($label) {
-            //    $output .= ">$label</OPTION>\n";
+            //    $output .= ">$label</option>\n";
             // } else {
-            //     $output .= ">$value</OPTION>\n";
+            //     $output .= ">$value</option>\n";
             //  }
-            $output .= ">$label</OPTION>\n";
+            $output .= ">$label</option>\n";
             
         }
     }
-    $output .= "</SELECT>\n";
+    $output .= "</select>\n";
 
     if ($return) {
         return $output;
index be308d69b9bd5380cb12f91802999e4e6af81f8d..ead3e6ef42219f0c958c07017b17a8b30ed42a20 100644 (file)
 
 ?>
 
-<FORM name="form" method="post" action="<?php echo $ME ?>">
-<CENTER>
-<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=30 value="<?php  p($form->name) ?>" />
-    </TD>
-</TR>
+<form name="form" method="post" action="<?php echo $ME ?>">
+<center>
+<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="30" value="<?php  p($form->name) ?>" />
+    </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>=0; $i--) {
@@ -65,8 +65,8 @@
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("maximumnumberofanswersbranches", "lesson") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("maximumnumberofanswersbranches", "lesson") ?>:</b></p></td>
     <td>
         <?php
         for ($i=10; $i>1; $i--) {
@@ -78,8 +78,8 @@
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("maximumnumberofattempts", "lesson") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("maximumnumberofattempts", "lesson") ?>:</b></p></td>
     <td>
         <?php
         unset($numbers);
 </tr>
 
 <tr>
-    <td align=right><P><B><?php  print_string("actionaftercorrectanswer", "lesson") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("actionaftercorrectanswer", "lesson") ?>:</b></p></td>
     <td>
-    <?PHP 
+    <?php 
         choose_from_menu($LESSON_NEXTPAGE_ACTION, "nextpagedefault", $form->nextpagedefault, "");
         helpbutton("nextpageaction", get_string("actionaftercorrectanswer", "lesson"), "lesson");
     ?>
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("minimumnumberofquestions", "lesson") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("minimumnumberofquestions", "lesson") ?>:</b></p></td>
     <td>
         <?php
         unset($numbers);
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("numberofpagestoshow", "lesson") ?>:</B></P></TD>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("numberofpagestoshow", "lesson") ?>:</b></p></td>
     <td>
         <?php
         unset($numbers);
 </tr>
 
 <tr>
-    <td align=right><P><B><?php  print_string("canretake", "lesson", $course->student) ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("canretake", "lesson", $course->student) ?>:</b></p></td>
     <td>
-    <?PHP 
+    <?php 
         $options[0] = get_string("no"); $options[1] = get_string("yes");
         choose_from_menu($options, "retake", $form->retake, "");
         helpbutton("retake", get_string("canretake", "lesson", $course->student), "lesson");
 </tr>
 
 <tr>
-    <td align=right><P><B><?php  print_string("handlingofretakes", "lesson") ?>:</B></P></TD>
+    <td align="right"><p><b><?php  print_string("handlingofretakes", "lesson") ?>:</b></p></td>
     <td>
-    <?PHP 
+    <?php 
         $options[0] = get_string("usemean", "lesson"); $options[1] = get_string("usemaximum", "lesson");
         choose_from_menu($options, "usemaxgrade", $form->usemaxgrade, "");
         helpbutton("handlingofretakes", get_string("handlingofretakes", "lesson"), "lesson");
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("available", "lesson") ?>:</B></td>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("available", "lesson") ?>:</b></td>
     <td><?php
            print_date_selector("availableday", "availablemonth", "availableyear", $form->available);
            echo "&nbsp;-&nbsp;";
     ?></td>
 </tr>
 
-<tr valign=top>
-    <td align=right><P><B><?php  print_string("deadline", "lesson") ?>:</B></td>
+<tr valign="top">
+    <td align="right"><p><b><?php  print_string("deadline", "lesson") ?>:</b></td>
     <td><?php
            print_date_selector("deadlineday", "deadlinemonth", "deadlineyear", $form->deadline);
            echo "&nbsp;-&nbsp;";
     ?></td>
 </tr>
 
-</TABLE>
+</table>
 <!-- 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="submit" value="<?php  print_string("savechanges") ?>" />
-</CENTER>
-</FORM>
+<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") ?>" />
+</center>
+</form>
index bdd64b8b7f5f495ea76603ee5adcb5d1a052b2ed..5c8149fc4c03b2ccc749c12440e046e96d4e44ea 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //lesson mods
 
index c284a84add3f6731c55a607cf13a4a53b10d45f0..96249faf88b2bd34681e9e8112bf1d6acbd95c9e 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 /////////////////////////////////////////////////////////////////////////////////
 ///  Code fragment to define the version of lesson
index cc2af7c6bb8f2c0f53d039d76765f3ef51286daf..3cc2dcc22c3e2b49fffca3f4d7d3a7a8caee0859 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// This page prints a particular instance of lesson
 /// (Replace lesson with the name of your module)
@@ -30,7 +30,7 @@
     $strlesson  = get_string("modulename", "lesson");
 
     print_header_simple("$lesson->name", "",
-                 "<A HREF=index.php?id=$course->id>$strlessons</A> -> <a href=\"view.php?id=$cm->id\">$lesson->name</a>",
+                 "<a href=index.php?id=$course->id>$strlessons</a> -> <a href=\"view.php?id=$cm->id\">$lesson->name</a>",
                   "", "", true, update_module_button($cm->id, $course->id, $strlesson),
                   navmenu($course, $cm));
 
             // if there are no pages give teacher a blank proforma
             ?>
             <form name="form" method="post" action="lesson.php">
-            <input type="hidden" name="id" value="<?PHP echo $cm->id ?>" />
+            <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
             <input type="hidden" name="action" value="insertpage" />
             <input type="hidden" name="pageid" value="0" />
-            <center><table cellpadding=5 border=1>
+            <center><table cellpadding="5" border="1">
             <tr><td align="center">
             <tr valign="top">
             <td><p><b><?php print_string("pagetitle", "lesson"); ?>:</b></p></td></tr>
             <tr><td><input type="text" name="title" size="80" maxsize="255" value="" /></td></tr>
-            <?PHP
+            <?php
             echo "<tr><td><b>";
             echo get_string("pagecontents", "lesson").":</b><br />\n";
             print_textarea($usehtmleditor, 25, 70, 630, 400, "contents");
             <input type="submit" name="cancel" value="<?php  print_string("cancel") ?>" />
             </center>
             </form>
-            <?PHP
+            <?php
             use_html_editor("contents"); // Lets give IE more time load the page before replacing textarea.
             // show import link
             print_heading("<a href=\"import.php?id=$cm->id&pageid=0\">".get_string("importquestions",
                 if (isteacheredit($course->id)) {
                     if ($npages > 1) {
                         echo "<a title=\"".get_string("move")."\" href=\"lesson.php?id=$cm->id&action=move&pageid=$page->id\">\n".
-                            "<img src=\"$pixpath/t/move.gif\" hspace=\"2\" height=11 width=11 border=0></a>\n";
+                            "<img src=\"$pixpath/t/move.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\"></a>\n";
                     }
                     echo "<a title=\"".get_string("update")."\" href=\"lesson.php?id=$cm->id&action=editpage&pageid=$page->id\">\n".
-                        "<img src=\"$pixpath/t/edit.gif\" hspace=\"2\" height=11 width=11 border=0></a>\n".
+                        "<img src=\"$pixpath/t/edit.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\"></a>\n".
                         "<a title=\"".get_string("delete")."\" href=\"lesson.php?id=$cm->id&action=confirmdelete&pageid=$page->id\">\n".
-                        "<img src=\"$pixpath/t/delete.gif\" hspace=\"2\" height=11 width=11 border=0></a>\n";
+                        "<img src=\"$pixpath/t/delete.gif\" hspace=\"2\" height=\"11\" width=\"11\" border=\"0\"></a>\n";
                     }
                     echo "</td></tr>\n";
                 echo "<tr><td colspan=\"2\">\n";