towards XHTML compliance
authorgustav_delius <gustav_delius>
Sun, 12 Sep 2004 21:43:59 +0000 (21:43 +0000)
committergustav_delius <gustav_delius>
Sun, 12 Sep 2004 21:43:59 +0000 (21:43 +0000)
82 files changed:
admin/lang.php
course/format/social/format.php
course/format/topics/format.php
course/loglive.php
course/quickreport.php
files/index.php
filter/algebra/algebradebug.php
filter/algebra/pix.php
filter/mediaplugin/filter.php
filter/tex/pix.php
filter/tex/texdebug.php
filter/tex/texed.php
index.php
lib/blocklib.php
lib/weblib.php
login/change_password.php
login/confirm.php
login/forgot_password.php
login/index.php
login/logout.php
login/signup.php
login/signup_form.html
mod/assignment/backuplib.php
mod/assignment/db/mysql.php
mod/assignment/db/oci8po.php
mod/assignment/db/postgres7.php
mod/assignment/index.php
mod/assignment/lib.php
mod/assignment/restorelib.php
mod/assignment/submissions.php
mod/assignment/upload.php
mod/assignment/version.php
mod/assignment/view.php
mod/attendance/add.php
mod/attendance/backuplib.php
mod/attendance/db/mysql.php
mod/attendance/db/oci8po.php
mod/attendance/index.php
mod/attendance/lib.php
mod/attendance/restorelib.php
mod/attendance/teacheredit.php
mod/attendance/version.php
mod/attendance/view.php
mod/attendance/viewall.php
mod/attendance/viewweek.php
mod/dialogue/backuplib.php
mod/dialogue/db/mysql.php
mod/dialogue/db/postgres7.php
mod/dialogue/dialogues.php
mod/dialogue/index.php
mod/dialogue/lib.php
mod/dialogue/locallib.php
mod/dialogue/restorelib.php
mod/dialogue/version.php
mod/dialogue/view.php
mod/workshop/assessments.php
mod/workshop/backuplib.php
mod/workshop/db/mysql.php
mod/workshop/db/oci8po.php
mod/workshop/db/postgres7.php
mod/workshop/index.php
mod/workshop/lib.php
mod/workshop/locallib.php
mod/workshop/mod.html
mod/workshop/restorelib.php
mod/workshop/submissions.php
mod/workshop/upload.php
mod/workshop/version.php
mod/workshop/view.php
theme/brightretro/header.html
theme/cordoroyblue/footer.html
theme/formal_white/header.html
theme/garden/footer.html
theme/garden/header.html
theme/index.php
theme/oceanblue/header.html
theme/poweraid/footer.html
theme/poweraid/header.html
theme/standardlogo/README.html
theme/standardlogo/header.html
user/index.php
user/view.php

index 80e8efe..e7bec6d 100644 (file)
@@ -62,7 +62,7 @@
         echo "</td></tr></table>";
         print_heading("<a href=\"lang.php?mode=missing\">$strmissingstrings</a>");
         print_heading("<a href=\"lang.php?mode=compare\">$strcomparelanguage</a>");
-        echo "<center><hr noshade size=\"1\">";
+        echo "<center><hr noshade=\"noshade\" size=\"1\" />";
         $options["lang"] = $currentlang;
         print_single_button("http://moodle.org/download/lang/", $options, get_string("latestlanguagepack"));
         echo "</center>";
index 72a8f1d..bc4295e 100644 (file)
         } else {
             $subtext = get_string("subscribe", "forum");
         }
-        $headertext = "<table border=0 width=100% cellpadding=0 cellspacing=0 class=headingblockcontent><tr><td>".
+        $headertext = "<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" class=\"headingblockcontent\"><tr><td>".
                        get_string("socialheadline").
-                       "</td><td align=right><font size=1>".
+                       "</td><td align=\"right\"><font size="1">".
                        "<a href=\"../mod/forum/subscribe.php?id=$social->id\">$subtext</a></td>".
                        "</tr></table>";
         print_heading_block($headertext);
-        echo "<img alt=\"\" height=7 src=\"../pix/spacer.gif\"><br>";
+        echo "<img alt=\"\" height=\"7\" src=\"../pix/spacer.gif\"><br />";
 
         forum_print_latest_discussions($social->id, 10, "plain", "", false);
 
index 2d154ea..6bf29d8 100644 (file)
@@ -57,9 +57,9 @@
 
 
 /// Layout the whole page as three big columns.
-    echo "<table border=0 cellpadding=3 cellspacing=0 width=100%>";
+    echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\">";
 
-    echo "<tr valign=top>\n";
+    echo "<tr valign=\"top\">\n";
 
 /// The left column ...
 
         $stractivityclipboard = strip_tags(get_string("activityclipboard", "", addslashes($USER->activitycopyname)));
         $strcancel= get_string("cancel");
         echo "<tr>";
-        echo "<td colspan=3 valign=top bgcolor=\"$THEME->cellcontent\" class=\"topicoutlineclip\" width=\"100%\">";
-        echo "<p><font size=2>";
+        echo "<td colspan=\"3\" valign=\"top\" bgcolor=\"$THEME->cellcontent\" class=\"topicoutlineclip\" width=\"100%\">";
+        echo "<p><font size=\"2\">";
         echo "$stractivityclipboard&nbsp;&nbsp;(<a href=\"mod.php?cancelcopy=true\">$strcancel</a>)";
         echo "</font></p>";
         echo "</td>";
         echo "</tr>";
-        echo "<tr><td colspan=3><img src=\"../pix/spacer.gif\" width=1 height=1></td></tr>";
+        echo "<tr><td colspan=\"3\"><img src=\"../pix/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
     }
 
 
@@ -99,8 +99,8 @@
 
     if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
         echo '<tr id="section_0">';
-        echo "<td nowrap bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\" valign=top width=20>&nbsp;</td>";
-        echo "<td valign=top bgcolor=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\" width=\"100%\">";
+        echo "<td nowrap bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\" valign=\"top\" width=\"20\">&nbsp;</td>";
+        echo "<td valign=\"top\" bgcolor=\"$THEME->cellcontent\" class=\"topicsoutlinecontent\" width=\"100%\">";
 
         $summaryformatoptions->noclean = true;
         echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
         if (isediting($course->id)) {
             echo "<a title=\"$streditsummary\" ".
                  " href=\"editsection.php?id=$thissection->id\"><img src=\"$CFG->pixpath/t/edit.gif\" ".
-                 " height=11 width=11 border=0 alt=\"$streditsummary\"></a><br />";
+                 " height=\"11\" width=\"11\" border=\"0\" alt=\"$streditsummary\"></a><br />";
         }
 
         echo '<br clear="all">';
         }
 
         echo "</td>";
-        echo "<td nowrap bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\" valign=top align=center width=10>";
+        echo "<td nowrap bgcolor=\"$THEME->cellheading\" class=\"topicsoutlineside\" valign=\"top\" align=\"center\" width=\"10\">";
         echo "&nbsp;</td></tr>";
-        echo "<tr><td colspan=3><img src=\"../pix/spacer.gif\" width=1 height=1></td></tr>";
+        echo "<tr><td colspan=\"3\"><img src=\"../pix/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
     }
 
 
             }
 
             echo "<tr>";
-            echo "<td nowrap $colorsides valign=top width=20>";
-            echo "<p align=center><font size=3><b><a name=\"$section\">$section</a></b></font></p>";
+            echo "<td nowrap $colorsides valign=\"top\" width=\"20\">";
+            echo "<p align=\"center\"><font size=\"3\"><b><a name=\"$section\">$section</a></b></font></p>";
             echo "</td>";
 
             if (!isteacher($course->id) and !$thissection->visible) {   // Hidden for students
                 echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions);
 
                 if (isediting($course->id)) {
-                    echo " <a title=\"$streditsummary\" href=editsection.php?id=$thissection->id>".
-                         "<img src=\"$CFG->pixpath/t/edit.gif\" border=0 height=11 width=11></a><br />";
+                    echo " <a title=\"$streditsummary\" href=\"editsection.php?id=$thissection->id\">".
+                         "<img src=\"$CFG->pixpath/t/edit.gif\" border=\"0\" height=\"11\" width=\"11\"></a><br />";
                 }
 
                 echo '<br clear="all">';
 
                 echo "</td>";
             }
-            echo "<td nowrap $colorsides valign=top align=center width=10>";
-            echo "<font size=1>";
+            echo "<td nowrap $colorsides valign=\"top\" align=\"center\" width=\"10\">";
+            echo "<font size=\"1\">";
 
             if ($displaysection == $section) {      // Show the zoom boxes
                 echo "<a href=\"view.php?id=$course->id&topic=all\" title=\"$strshowalltopics\">".
-                     "<img src=\"$CFG->pixpath/i/all.gif\" height=25 width=16 border=0></a><br />";
+                     "<img src=\"$CFG->pixpath/i/all.gif\" height=\"25\" width=\"16\" border=\"0\"></a><br />";
             } else {
                 $strshowonlytopic = get_string("showonlytopic", "", $section);
                 echo "<a href=\"view.php?id=$course->id&topic=$section\" title=\"$strshowonlytopic\">".
-                     "<img src=\"$CFG->pixpath/i/one.gif\" height=16 width=16 border=0></a><br />";
+                     "<img src=\"$CFG->pixpath/i/one.gif\" height=\"16\" width=\"16\" border=\"0\"></a><br />";
             }
 
             if (isediting($course->id)) {
                 if ($course->marker == $section) {  // Show the "light globe" on/off
                     echo "<a href=\"view.php?id=$course->id&marker=0\" title=\"$strmarkedthistopic\">".
-                         "<img src=\"$CFG->pixpath/i/marked.gif\" vspace=3 height=16 width=16 border=0></a><br />";
+                         "<img src=\"$CFG->pixpath/i/marked.gif\" vspace=\"3\" height=\"16\" width=\"16\" border=\"0\"></a><br />";
                 } else {
                     echo "<a href=\"view.php?id=$course->id&marker=$section\" title=\"$strmarkthistopic\">".
-                         "<img src=\"$CFG->pixpath/i/marker.gif\" vspace=3 height=16 width=16 border=0></a><br />";
+                         "<img src=\"$CFG->pixpath/i/marker.gif\" vspace=\"3\" height=\"16\" width=\"16\" border=\"0\"></a><br />";
                 }
 
                 if ($thissection->visible) {        // Show the hide/show eye
                     echo "<a href=\"view.php?id=$course->id&hide=$section\" title=\"$strtopichide\">".
-                         "<img src=\"$CFG->pixpath/i/hide.gif\" vspace=3 height=16 width=16 border=0></a><br />";
+                         "<img src=\"$CFG->pixpath/i/hide.gif\" vspace=\"3\" height=\"16\" width=\"16\" border=\"0\"></a><br />";
                 } else {
                     echo "<a href=\"view.php?id=$course->id&show=$section\" title=\"$strtopicshow\">".
-                         "<img src=\"$CFG->pixpath/i/show.gif\" vspace=3 height=16 width=16 border=0></a><br />";
+                         "<img src=\"$CFG->pixpath/i/show.gif\" vspace=\"3\" height=\"16\" width=\"16\" border=\"0\"></a><br />";
                 }
 
                 if ($section > 1) {                       // Add a arrow to move section up
                     echo "<a href=\"view.php?id=$course->id&section=$section&move=-1\" title=\"$strmoveup\">".
-                         "<img src=\"$CFG->pixpath/t/up.gif\" vspace=3 height=11 width=11 border=0></a><br />";
+                         "<img src=\"$CFG->pixpath/t/up.gif\" vspace=\"3\" height=\"11\" width=\"11\" border=\"0\"></a><br />";
                 }
 
                 if ($section < $course->numsections) {    // Add a arrow to move section down
                     echo "<a href=\"view.php?id=$course->id&section=$section&move=1\" title=\"$strmovedown\">".
-                         "<img src=\"$CFG->pixpath/t/down.gif\" vspace=3 height=11 width=11 border=0></a><br />";
+                         "<img src=\"$CFG->pixpath/t/down.gif\" vspace=\"3\" height=\"11\" width=\"11\" border=\"0\"></a><br />";
                 }
 
             }
 
             echo "</td>";
             echo "</tr>";
-            echo "<tr><td colspan=3><img src=\"../pix/spacer.gif\" width=1 height=1></td></tr>";
+            echo "<tr><td colspan=\"3\"><img src=\"../pix/spacer.gif\" width=\"1\" height=\"1\"></td></tr>";
         }
 
         $section++;
index cc8022e..8ef2304 100644 (file)
@@ -20,7 +20,7 @@
     $strupdatesevery = get_string("updatesevery", "moodle", COURSE_LIVELOG_REFRESH);
 
     print_header("$strlivelogs ($strupdatesevery)", "$strlivelogs", "", "", 
-                 "<meta HTTP-equiv='Refresh' content='".COURSE_LIVELOG_REFRESH."; url=loglive.php?id=$id'>");
+                 '<meta http-equiv="Refresh" content="'.COURSE_LIVELOG_REFRESH.'; url=loglive.php?id=$id" />');
 
     $user=0;
     $date=time() - 3600;
index 19233a3..d68b186 100644 (file)
@@ -251,7 +251,7 @@ $modname_value = array_flip($modnames);
     //get the names of each module instance and put in header
     foreach($mod_info as $thiscat=>$thismod){
         $modname = ucwords($modnames[$thismod[module]]);
-        print ("<td> $modname <br /><font size=-1>$thismod[name]</font></td>");
+        print ("<td> $modname <br /><font size=\"-1\">$thismod[name]</font></td>");
     }
     echo "</tr>\n";
     foreach ($user_contribs as $userid=>$thisuser){
index c5fde28..d928a44 100644 (file)
@@ -68,7 +68,7 @@
                          "</a> -> $fullnav", $formfield);
         }
 
-        echo "<table border=0 align=center cellspacing=3 cellpadding=3 width=640>";
+        echo "<table border=\"0\" align=\"center\" cellspacing=\"3\" cellpadding=\"3\" width=\"640\">";
         echo "<tr>";
         echo "<td colspan=\"2\">";
     }
                 $strmaxsize = get_string("maxsize", "", $filesize);
                 $strcancel = get_string("cancel");
 
-                echo "<P>$struploadafile ($strmaxsize) --> <B>$wdir</B>";
-                echo "<TABLE><TR><TD COLSPAN=2>";
-                echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"post\" ACTION=index.php>";
-                echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$upload_max_filesize\">";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=upload>";
-                echo " <INPUT NAME=\"userfile\" TYPE=\"file\" size=\"60\">";
-                echo " </TD><TR><TD WIDTH=10>";
-                echo " <INPUT TYPE=submit NAME=save VALUE=\"$struploadthisfile\">";
-                echo "</FORM>";
-                echo "</TD><TD WIDTH=100%>";
-                echo "<FORM ACTION=index.php METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$struploadafile ($strmaxsize) --> <b>$wdir</b>";
+                echo "<table><tr><td colspan=\"2\">";
+                echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"index.php\">";
+                echo " <input type=\"hidden\" name=MAX_FILE_SIZE value=\"$upload_max_filesize\" />";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
+                echo " <input name=\"userfile\" type=\"file\" size=\"60\" />";
+                echo " </td><tr><td width=\"10\">";
+                echo " <input type=\"submit\" name=\"save\" value=\"$struploadthisfile\" />";
+                echo "</form>";
+                echo "</td><td width=\"100%\">";
+                echo "<form action=\"index.php\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 foreach ($USER->filelist as $file) {
                     $fullfile = $basedir.$file;
                     if (! fulldelete($fullfile)) {
-                        echo "<BR>Error: Could not delete: $fullfile";
+                        echo "<br />Error: Could not delete: $fullfile";
                     }
                 }
                 clearfilelist();
             } else {
                 html_header($course, $wdir);
                 if (setfilelist($_POST)) {
-                    echo "<p align=center>".get_string("deletecheckwarning").":</p>";
+                    echo "<p align=\"center\">".get_string("deletecheckwarning").":</p>";
                     print_simple_box_start("center");
                     printfilelist($USER->filelist);
                     print_simple_box_end();
             if ($count = setfilelist($_POST)) {
                 $USER->fileop     = $action;
                 $USER->filesource = $wdir;
-                echo "<p align=center>";
+                echo "<p align=\"center\">";
                 print_string("selectednowmove", "moodle", $count);
                 echo "</p>";
             }
                     $oldfile = $basedir.$file;
                     $newfile = $basedir.$wdir."/".$shortfile;
                     if (!rename($oldfile, $newfile)) {
-                        echo "<P>Error: $shortfile not moved";
+                        echo "<p>Error: $shortfile not moved";
                     }
                 }
             }
                 $strcancel = get_string("cancel");
                 $strrenamefileto = get_string("renamefileto", "moodle", $file);
                 html_header($course, $wdir, "form.name");
-                echo "<P>$strrenamefileto:";
-                echo "<TABLE><TR><TD>";
-                echo "<FORM ACTION=index.php METHOD=post NAME=form>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=rename>";
-                echo " <INPUT TYPE=hidden NAME=oldname VALUE=\"$file\">";
-                echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"$file\">";
-                echo " <INPUT TYPE=submit VALUE=\"$strrename\">";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=index.php METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$strrenamefileto:";
+                echo "<table><tr><td>";
+                echo "<form action=\"index.php\" method=\"post\" name=\"form\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"rename\" />";
+                echo " <input type=\"hidden\" name=\"oldname\" value=\"$file\" />";
+                echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"$file\" />";
+                echo " <input type=\"submit\" value=\"$strrename\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"index.php\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 $strcancel = get_string("cancel");
                 $strcreatefolder = get_string("createfolder", "moodle", $wdir);
                 html_header($course, $wdir, "form.name");
-                echo "<P>$strcreatefolder:";
-                echo "<TABLE><TR><TD>";
-                echo "<FORM ACTION=index.php METHOD=post NAME=form>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir>";
-                echo " <INPUT TYPE=text NAME=name SIZE=35>";
-                echo " <INPUT TYPE=submit VALUE=\"$strcreate\">";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=index.php METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                echo " <INPUT TYPE=submit VALUE=\"$strcancel\">";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "<p>$strcreatefolder:";
+                echo "<table><tr><td>";
+                echo "<form action=\"index.php\" method=\"post\" name=\"form\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
+                echo " <input type=\"text\" name=\"name\" size=\"35\" />";
+                echo " <input type=\"submit\" value=\"$strcreate\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"index.php\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strcancel\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
             }
             html_footer();
             break;
                 displaydir($wdir);
                     
             } else {
-                $streditfile = get_string("edit", "", "<B>$file</B>");
+                $streditfile = get_string("edit", "", "<b>$file</b>");
                 $fileptr  = fopen($basedir.$file, "r");
                 $contents = fread($fileptr, filesize($basedir.$file));
                 fclose($fileptr);
 
                 print_heading("$streditfile");
 
-                echo "<TABLE><TR><TD COLSPAN=2>";
-                echo "<FORM ACTION=\"index.php\" METHOD=\"post\" NAME=\"form\">";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
-                echo " <INPUT TYPE=hidden NAME=file VALUE=\"$file\">";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=edit>";
+                echo "<table><tr><td colspan=\"2\">";
+                echo "<form action=\"index.php\" method=\"post\" name=\"form\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"file\" value=\"$file\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"edit\" />";
                 print_textarea($usehtmleditor, 25, 80, 680, 400, "text", $contents);
-                echo "</TD></TR><TR><TD>";
-                echo " <INPUT TYPE=submit VALUE=\"".get_string("savechanges")."\">";
-                echo "</FORM>";
-                echo "</TD><TD>";
-                echo "<FORM ACTION=index.php METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\">";
-                echo "</FORM>";
-                echo "</TD></TR></TABLE>";
+                echo "</td></tr><tr><td>";
+                echo " <input type=\"submit\" value=\"".get_string("savechanges")."\" />";
+                echo "</form>";
+                echo "</td><td>";
+                echo "<form action=\"index.php\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
+                echo "</form>";
+                echo "</td></tr></table>";
 
                 if ($usehtmleditor) { 
                     use_html_editor();
                 html_header($course, $wdir, "form.name");
 
                 if (setfilelist($_POST)) {
-                    echo "<P ALIGN=CENTER>".get_string("youareabouttocreatezip").":</P>";
+                    echo "<p align=\"center\">".get_string("youareabouttocreatezip").":</p>";
                     print_simple_box_start("center");
                     printfilelist($USER->filelist);
                     print_simple_box_end();
-                    echo "<BR>";
-                    echo "<P ALIGN=CENTER>".get_string("whattocallzip");
-                    echo "<TABLE><TR><TD>";
-                    echo "<FORM ACTION=index.php METHOD=post NAME=form>";
-                    echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                    echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
-                    echo " <INPUT TYPE=hidden NAME=action VALUE=zip>";
-                    echo " <INPUT TYPE=text NAME=name SIZE=35 VALUE=\"new.zip\">";
-                    echo " <INPUT TYPE=submit VALUE=\"".get_string("createziparchive")."\">";
-                    echo "</FORM>";
-                    echo "</TD><TD>";
-                    echo "<FORM ACTION=index.php METHOD=get>";
-                    echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                    echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                    echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                    echo " <INPUT TYPE=submit VALUE=\"".get_string("cancel")."\">";
-                    echo "</FORM>";
-                    echo "</TD></TR></TABLE>";
+                    echo "<br />";
+                    echo "<p align=\"center\">".get_string("whattocallzip");
+                    echo "<table><tr><td>";
+                    echo "<form action=\"index.php\" method=\"post\" name=\"form\">";
+                    echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                    echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                    echo " <input type=\"hidden\" name=\"action\" value=\"zip\" />";
+                    echo " <input type=\"text\" name=\"name\" size=\"35\" value=\"new.zip\" />";
+                    echo " <input type=\"submit\" value=\"".get_string("createziparchive")."\" />";
+                    echo "</form>";
+                    echo "</td><td>";
+                    echo "<form action=\"index.php\" method=\"get\">";
+                    echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                    echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                    echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                    echo " <input type=\"submit\" value=\"".get_string("cancel")."\" />";
+                    echo "</form>";
+                    echo "</td></tr></table>";
                 } else {
                     displaydir($wdir);
                     clearfilelist();
                 $strok = get_string("ok");
                 $strunpacking = get_string("unpacking", "", $file);
 
-                echo "<P ALIGN=CENTER>$strunpacking:</P>";
+                echo "<p align=\"center\">$strunpacking:</p>";
 
                 $file = basename($file);
 
                     if (!$list = $archive->extract("$basedir/$wdir")) {
                         error($archive->errorInfo(true));
                     } else {  // print some output
-                        echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
-                        echo "<tr><th align=left>$strname</th>";
-                        echo "<th align=right>$strsize</th>";
-                        echo "<th align=right>$strmodified</th>";
-                        echo "<th align=right>$strstatus</th></tr>";
+                        echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\">";
+                        echo "<tr><th align=\"left\">$strname</th>";
+                        echo "<th align=\"right\">$strsize</th>";
+                        echo "<th align=\"right\">$strmodified</th>";
+                        echo "<th align=\"right\">$strstatus</th></tr>";
                         foreach ($list as $item) {
                             echo "<tr>";
                             $item['filename'] = str_replace("$basedir/$wdir/", "", $item['filename']);
                     
                 } else {                     // Use external unzip program
                     print_simple_box_start("center");
-                    echo "<PRE>";
+                    echo "<pre>";
                     $command = "cd $basedir/$wdir ; $CFG->unzip -o $file 2>&1";
                     passthru($command);
-                    echo "</PRE>";
+                    echo "</pre>";
                     print_simple_box_end();
                 }
 
-                echo "<CENTER><FORM ACTION=index.php METHOD=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                echo " <INPUT TYPE=submit VALUE=\"$strok\">";
-                echo "</FORM>";
-                echo "</CENTER>";
+                echo "<center><form action=\"index.php\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strok\" />";
+                echo "</form>";
+                echo "</center>";
             } else {
                 displaydir($wdir);
             }
                 $strok = get_string("ok");
                 $strlistfiles = get_string("listfiles", "", $file);
 
-                echo "<P ALIGN=CENTER>$strlistfiles:</P>";
+                echo "<p align=\"center\">$strlistfiles:</p>";
                 $file = basename($file);
 
                 include_once("$CFG->libdir/pclzip/pclzip.lib.php");
                     notify($archive->errorInfo(true));
 
                 } else {
-                    echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
-                    echo "<tr><th align=left>$strname</th><th align=right>$strsize</th><th align=right>$strmodified</th></tr>";
+                    echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=\"640\">";
+                    echo "<tr><th align=\"left\">$strname</th><th align=\"right\">$strsize</th><th align=\"right\">$strmodified</th></tr>";
                     foreach ($list as $item) {
                         echo "<tr>";
                         print_cell("left", $item['filename']);
                     }
                     echo "</table>";
                 }
-                echo "<br><center><form action=index.php method=get>";
-                echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-                echo " <INPUT TYPE=hidden NAME=wdir VALUE=$wdir>";
-                echo " <INPUT TYPE=hidden NAME=action VALUE=cancel>";
-                echo " <INPUT TYPE=submit VALUE=\"$strok\">";
-                echo "</FORM>";
-                echo "</CENTER>";
+                echo "<br /><center><form action=\"index.php\" method=\"get\">";
+                echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+                echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+                echo " <input type=\"hidden\" name=\"action\" value=\"cancel\" />";
+                echo " <input type=\"submit\" value=\"$strok\" />";
+                echo "</form>";
+                echo "</center>";
             } else {
                 displaydir($wdir);
             }
         case "restore":
             html_header($course, $wdir);
             if (!empty($file)) {
-                echo "<p align=center>".get_string("youaregoingtorestorefrom").":</p>";
+                echo "<p align=\"center\">".get_string("youaregoingtorestorefrom").":</p>";
                 print_simple_box_start("center");
                 echo $file;
                 print_simple_box_end();
                 echo "<br />";
-                echo "<p align=center>".get_string("areyousuretorestorethisinfo")."</p>";
+                echo "<p align=\"center\">".get_string("areyousuretorestorethisinfo")."</p>";
                 $restore_path = "../backup/restore.php";
                 notice_yesno (get_string("areyousuretorestorethis"),
                                 $restore_path."?id=".$id."&file=".$id.$wdir."/".$file,
@@ -614,7 +614,7 @@ function printfilelist($filelist) {
 
     foreach ($filelist as $file) {
         if (is_dir($basedir.$file)) {
-            echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=16 width=16> $file<br>";
+            echo "<img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\"> $file<br />";
             $subfilelist = array();
             $currdir = opendir($basedir.$file);
             while ($subfile = readdir($currdir)) { 
@@ -626,18 +626,18 @@ function printfilelist($filelist) {
 
         } else { 
             $icon = mimeinfo("icon", $file);
-            echo "<img src=\"$CFG->pixpath/f/$icon\"  height=16 width=16> $file<br>";
+            echo "<img src=\"$CFG->pixpath/f/$icon\"  height=\"16\" width=\"16\"> $file<br />";
         }
     }
 }
 
 
 function print_cell($alignment="center", $text="&nbsp;") {
-    echo "<TD ALIGN=\"$alignment\" NOWRAP>";
-    echo "<FONT SIZE=\"-1\" FACE=\"Arial, Helvetica\">";
+    echo "<td align=\"$alignment\" nowrap=\"nowrap\">";
+    echo "<font size=\"-1\" face=\"Arial, Helvetica\">";
     echo "$text";
-    echo "</FONT>";
-    echo "</TD>\n";
+    echo "</font>";
+    echo "</td>\n";
 }
 
 function displaydir ($wdir) {
@@ -681,16 +681,16 @@ function displaydir ($wdir) {
     $strrestore= get_string("restore");
 
 
-    echo "<FORM ACTION=\"index.php\" METHOD=post NAME=dirform>";
-    echo "<HR WIDTH=640 ALIGN=CENTER NOSHADE SIZE=1>";
-    echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";    
-    echo "<TR>";
-    echo "<TH WIDTH=5></TH>";
-    echo "<TH ALIGN=left>$strname</TH>";
-    echo "<TH ALIGN=right>$strsize</TH>";
-    echo "<TH ALIGN=right>$strmodified</TH>";
-    echo "<TH ALIGN=right>$straction</TH>";
-    echo "</TR>\n";
+    echo "<form action=\"index.php\" method=\"post\" name=\"dirform\">";
+    echo "<hr width=\"640\" align=\"center\" noshade=\"noshade\" size=\"1\" />";
+    echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\">";    
+    echo "<tr>";
+    echo "<th width=\"5\"></th>";
+    echo "<th align=\"left\">$strname</th>";
+    echo "<th align=\"right\">$strsize</th>";
+    echo "<th align=\"right\">$strmodified</th>";
+    echo "<th align=\"right\">$straction</th>";
+    echo "</tr>\n";
 
     if ($wdir == "/") {
         $wdir = "";
@@ -710,15 +710,15 @@ function displaydir ($wdir) {
             $filesize = display_size(get_directory_size("$fullpath/$dir"));
             $filedate = userdate(filemtime($filename), "%d %b %Y, %I:%M %p");
     
-            echo "<TR>";
+            echo "<tr>";
 
-            print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\">");
-            print_cell("left", "<A HREF=\"index.php?id=$id&wdir=$fileurl\"><IMG SRC=\"$CFG->pixpath/f/folder.gif\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"Folder\"></A> <A HREF=\"index.php?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</A>");
+            print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
+            print_cell("left", "<a href=\"index.php?id=$id&wdir=$fileurl\"><img src=\"$CFG->pixpath/f/folder.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"Folder\"></a> <a href=\"index.php?id=$id&wdir=$fileurl\">".htmlspecialchars($dir)."</a>");
             print_cell("right", "<b>$filesize</b>");
             print_cell("right", $filedate);
-            print_cell("right", "<A HREF=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</A>");
+            print_cell("right", "<a href=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</a>");
     
-            echo "</TR>";
+            echo "</tr>";
         }
     }
 
@@ -738,15 +738,15 @@ function displaydir ($wdir) {
 
             echo "<tr>";
 
-            print_cell("center", "<INPUT TYPE=checkbox NAME=\"file$count\" VALUE=\"$fileurl\">");
-            echo "<td align=left nowrap>";
+            print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />");
+            echo "<td align=\"left\" nowrap=\"nowrap\">";
             if ($CFG->slasharguments) {
                 $ffurl = "/file.php/$id$fileurl";
             } else {
                 $ffurl = "/file.php?file=/$id$fileurl";
             }
             link_to_popup_window ($ffurl, "display", 
-                                  "<IMG SRC=\"$CFG->pixpath/f/$icon\" HEIGHT=16 WIDTH=16 BORDER=0 ALT=\"File\">", 
+                                  "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"File\">", 
                                   480, 640);
             echo "<font size=\"-1\" face=\"Arial, Helvetica\">";
             link_to_popup_window ($ffurl, "display", 
@@ -768,22 +768,22 @@ function displaydir ($wdir) {
             } else {
                 $edittext = "";
             }
-            print_cell("right", "$edittext <A HREF=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</A>");
+            print_cell("right", "$edittext <a href=\"index.php?id=$id&wdir=$wdir&file=$filesafe&action=rename\">$strrename</a>");
     
-            echo "</TR>";
+            echo "</tr>";
         }
     }
-    echo "</TABLE>";
-    echo "<hr width=640 align=center noshade size=1>";
+    echo "</table>";
+    echo "<hr width=\"640\" align=\"center\" noshade=\"noshade\" size=\"1\" />";
 
     if (empty($wdir)) {
         $wdir = "/";
     }
 
-    echo "<TABLE BORDER=0 cellspacing=2 cellpadding=2 width=640>";    
-    echo "<TR><TD>";
-    echo "<INPUT TYPE=hidden NAME=id VALUE=\"$id\">";
-    echo "<INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\"> ";
+    echo "<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" width=\"640\">";    
+    echo "<tr><td>";
+    echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
+    echo "<input type=\"hidden\" name=\"wdir\" value=\"$wdir\" /> ";
     $options = array (
                    "move" => "$strmovetoanotherfolder",
                    "delete" => "$strdeletecompletely",
@@ -793,34 +793,34 @@ function displaydir ($wdir) {
         choose_from_menu ($options, "action", "", "$strwithchosenfiles...", "javascript:document.dirform.submit()");
     }
 
-    echo "</FORM>";
-    echo "<TD ALIGN=center>";
+    echo "</form>";
+    echo "<td align=\"center\">";
     if (!empty($USER->fileop) and ($USER->fileop == "move") and ($USER->filesource <> $wdir)) {
-        echo "<FORM ACTION=index.php METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=paste>";
-        echo " <INPUT TYPE=submit VALUE=\"$strmovefilestohere\">";
-        echo "</FORM>";
+        echo "<form action=\"index.php\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"paste\" />";
+        echo " <input type=\"submit\" value=\"$strmovefilestohere\" />";
+        echo "</form>";
     }
-    echo "<TD ALIGN=right>";
-        echo "<FORM ACTION=index.php METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=mkdir>";
-        echo " <INPUT TYPE=submit VALUE=\"$strmakeafolder\">";
-        echo "</FORM>";
-    echo "</TD>";
-    echo "<TD ALIGN=right>";
-        echo "<FORM ACTION=index.php METHOD=get>";
-        echo " <INPUT TYPE=hidden NAME=id VALUE=$id>";
-        echo " <INPUT TYPE=hidden NAME=wdir VALUE=\"$wdir\">";
-        echo " <INPUT TYPE=hidden NAME=action VALUE=upload>";
-        echo " <INPUT TYPE=submit VALUE=\"$struploadafile\">";
-        echo "</FORM>";
-    echo "</TD></TR>";
-    echo "</TABLE>";
-    echo "<HR WIDTH=640 ALIGN=CENTER NOSHADE SIZE=1>";
+    echo "<td align=\"right\">";
+        echo "<form action=\"index.php\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"mkdir\" />";
+        echo " <input type=\"submit\" value=\"$strmakeafolder\" />";
+        echo "</form>";
+    echo "</td>";
+    echo "<td align=\"right\">";
+        echo "<form action=\"index.php\" method=\"get\">";
+        echo " <input type=\"hidden\" name=\"id\" value=\"$id\" />";
+        echo " <input type=\"hidden\" name=\"wdir\" value=\"$wdir\" />";
+        echo " <input type=\"hidden\" name=\"action\" value=\"upload\" />";
+        echo " <input type=\"submit\" value=\"$struploadafile\" />";
+        echo "</form>";
+    echo "</td></tr>";
+    echo "</table>";
+    echo "<hr width=\"640\" align=\"center\" noshade=\"noshade\" size=\"1\" />";
 
 }
 
index b14062b..ea2f2e1 100644 (file)
@@ -170,14 +170,14 @@ function outputText($texexp) {
 function tex2image($texexp, $md5) {
   global $CFG;
   $error_message1 = "Your system is not configured to run mimeTeX. ";
-  $error_message1 .= "You need to download the appropriate<br> executable ";
+  $error_message1 .= "You need to download the appropriate<br /> executable ";
   $error_message1 .= "from <a href=\"http://moodle.org/download/mimetex/\">";
   $error_message1 .= "http://moodle.org/download/mimetex/</a>, or obtain the ";
-  $error_message1 .= "C source<br> from <a href=\"http://www.forkosh.com/mimetex.zip\">";
+  $error_message1 .= "C source<br /> from <a href=\"http://www.forkosh.com/mimetex.zip\">";
   $error_message1 .= "http://www.forkosh.com/mimetex.zip</a>, compile it and ";
-  $error_message1 .= "put the executable into your<br> moodle/filter/tex/ directory. ";
-  $error_message1 .= "You also need to edit your moodle/filter/algebra/pix.php file<br>";
-  $error_message1 .= ' by adding the line<br><pre>       case "' . PHP_OS . "\":\n";
+  $error_message1 .= "put the executable into your<br /> moodle/filter/tex/ directory. ";
+  $error_message1 .= "You also need to edit your moodle/filter/algebra/pix.php file<br />";
+  $error_message1 .= ' by adding the line<br /><pre>       case "' . PHP_OS . "\":\n";
   $error_message1 .= "           \$cmd = \"\\\\\"\$CFG->dirroot/\$CFG->texfilterdir/";
   $error_message1 .= 'mimetex.' . strtolower(PHP_OS) . "\\\\\" -e \\\\\"\$pathname\\\\\" \". escapeshellarg(\$texexp);";
   $error_message1 .= "</pre>You also need to add this to your algebradebug.php file.";
@@ -236,28 +236,28 @@ function tex2image($texexp, $md5) {
            readfile("$pathname");
    } else {
            $ecmd = "$cmd 2>&1";
-           echo `$ecmd` . "<br>\n";
-           echo "The shell command<br>$cmd<br>returned status = $status<br>\n";
+           echo `$ecmd` . "<br />\n";
+           echo "The shell command<br />$cmd<br />returned status = $status<br />\n";
            if ($status == 4) {
-             echo "Status corresponds to illegal instruction<br>\n";
+             echo "Status corresponds to illegal instruction<br />\n";
            } else if ($status == 11) {
-             echo "Status corresponds to bus error<br>\n";
+             echo "Status corresponds to bus error<br />\n";
            } else if ($status == 22) {
-             echo "Status corresponds to abnormal termination<br>\n";
+             echo "Status corresponds to abnormal termination<br />\n";
            }
            if (file_exists($commandpath)) {
-              echo "File size of mimetex executable  $commandpath is " . filesize($commandpath) . "<br>";
-              echo "The file permissions are: " . decoct(fileperms($commandpath)) . "<br>";
+              echo "File size of mimetex executable  $commandpath is " . filesize($commandpath) . "<br />";
+              echo "The file permissions are: " . decoct(fileperms($commandpath)) . "<br />";
               if (function_exists("md5_file")) {
-                echo "The md5 checksum of the file is " . md5_file($commandpath) . "<br>";
+                echo "The md5 checksum of the file is " . md5_file($commandpath) . "<br />";
               } else {
                 $handle = fopen($commandpath,"rb");
                 $contents = fread($handle,16384);
                 fclose($handle);
-                echo "The md5 checksum of the first 16384 bytes is " . md5($contents) . "<br>";
+                echo "The md5 checksum of the first 16384 bytes is " . md5($contents) . "<br />";
               }
            } else {
-              echo "mimetex executable $commandpath not found!<br>";
+              echo "mimetex executable $commandpath not found!<br />";
            }
            echo "Image not found!";
    }
@@ -272,7 +272,7 @@ function tex2image($texexp, $md5) {
           <form action="algebradebug.php" method="get"
            target="inlineframe">
             <center>
-             <input type="text" name="algebra" size=50
+             <input type="text" name="algebra" size="50"
                     value="sin(z)/(x^2+y^2)">
             </center>
            <ol>
@@ -287,13 +287,13 @@ function tex2image($texexp, $md5) {
            <li>Finally click on this button <input type="submit" name="ShowImage" value="Show Image">
                to show a graphic image of the algebraic expression.</li>
            </ol>
-          </form> <br> <br>
+          </form> <br /> <br />
        <center>
           <iframe name="inlineframe" align="middle" width="80%" height="200">
           &lt;p&gt;Something is wrong...&lt;/p&gt; 
           </iframe>
-       </center> <br>
-<hr>
+       </center> <br />
+<hr />
 <a name="help">
 <h2>Debugging Help</h2>
 </a>
index adf1a86..21366d2 100644 (file)
@@ -93,8 +93,8 @@
         header("Content-type: $filetype");
         readfile("$pathname");
     } else {
-        echo "The shell command<br>$cmd<br>returned status = $status<br>\n";
-        echo "Image not found!<br>";
+        echo "The shell command<br />$cmd<br />returned status = $status<br />\n";
+        echo "Image not found!<br />";
         echo "Please try the <a href=\"$CFG->wwwroot/filter/algebra/algebradebug.php\">debugging script</a>";
     }
 
index 58a446b..4cc74a6 100644 (file)
@@ -24,11 +24,11 @@ function mediaplugin_filter($courseid, $text) {
         $replace  = '\\0&nbsp;<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
         $replace .= ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
         $replace .= ' width="35" height="18" id="mp3player" align="">';
-        $replace .= " <param name=movie value=\"$CFG->wwwroot/filter/mediaplugin/mp3player.swf?src=\\2.mp3\">";
-        $replace .= ' <param name=quality value=high>';
-        $replace .= ' <param name=bgcolor value="#333333">';
+        $replace .= " <param name=\"movie\" value=\"$CFG->wwwroot/filter/mediaplugin/mp3player.swf?src=\\2.mp3\">";
+        $replace .= ' <param name="quality" value="high">';
+        $replace .= ' <param name="bgcolor" value="#333333">';
         $replace .= " <embed src=\"$CFG->wwwroot/filter/mediaplugin/mp3player.swf?src=\\2.mp3\" ";
-        $replace .= "  quality=high bgcolor=\"#333333\" width=\"35\" height=\"18\" name=\"mp3player\" ";
+        $replace .= "  quality=\"high\" bgcolor=\"#333333\" width=\"35\" height=\"18\" name=\"mp3player\" ";
         $replace .= ' type="application/x-shockwave-flash" ';
         $replace .= ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
         $replace .= '</embed>';
@@ -43,10 +43,10 @@ function mediaplugin_filter($courseid, $text) {
         $replace  = '\\0<p class="mediaplugin"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
         $replace .= ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
         $replace .= ' width="400" height="300" id="mp3player" align="">';
-        $replace .= " <param name=movie value=\"\\2.swf\">";
-        $replace .= ' <param name=quality value=high>';
+        $replace .= " <param name=\"movie\" value=\"\\2.swf\">";
+        $replace .= ' <param name="quality" value="high">';
         $replace .= " <embed src=\"\\2.swf\" ";
-        $replace .= "  quality=high width=\"400\" height=\"300\" name=\"flashfilter\" ";
+        $replace .= "  quality=\"high\" width=\"400\" height=\"300\" name=\"flashfilter\" ";
         $replace .= ' type="application/x-shockwave-flash" ';
         $replace .= ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
         $replace .= '</embed>';
@@ -63,9 +63,9 @@ function mediaplugin_filter($courseid, $text) {
         $replace .= '        height="300" width="400"';
         $replace .= '        id="quicktime" align="" type="application/x-oleobject">';
         $replace .= "<param name=\"src\" value=\"\\2.mov\" />";
-        $replace .= '<param name="autoplay" value=false />';
-        $replace .= '<param name="loop" value=true />';
-        $replace .= '<param name="controller" value=true />';
+        $replace .= '<param name="autoplay" value="false" />';
+        $replace .= '<param name="loop" value="true" />';
+        $replace .= '<param name="controller" value="true" />';
         $replace .= '<param name="scale" value="aspect" />';
         $replace .= "\n<embed src=\"\\2.mov\" name=\"quicktime\" type=\"video/quicktime\" ";
         $replace .= ' height="300" width="400" scale="aspect" ';
@@ -85,15 +85,15 @@ function mediaplugin_filter($courseid, $text) {
         $replace .= ' standby="Loading Microsoft® Windows® Media Player components..." ';
         $replace .= ' id="msplayer" align="" type="application/x-oleobject">';
         $replace .= "<param name=\"Filename\" value=\"\\2.wmv\">";
-        $replace .= '<param name="ShowControls" value=true />';
-        $replace .= '<param name="AutoRewind" value=true />';
-        $replace .= '<param name="AutoStart" value=false />';
-        $replace .= '<param name="Autosize" value=true />';
-        $replace .= '<param name="EnableContextMenu" value=true />';
-        $replace .= '<param name="TransparentAtStart" value=false />';
-        $replace .= '<param name="AnimationAtStart" value=false />';
-        $replace .= '<param name="ShowGotoBar" value=false />';
-        $replace .= '<param name="EnableFullScreenControls" value=true />';
+        $replace .= '<param name="ShowControls" value="true" />';
+        $replace .= '<param name="AutoRewind" value="true" />';
+        $replace .= '<param name="AutoStart" value="false" />';
+        $replace .= '<param name="Autosize" value="true" />';
+        $replace .= '<param name="EnableContextMenu" value="true" />';
+        $replace .= '<param name="TransparentAtStart" value="false" />';
+        $replace .= '<param name="AnimationAtStart" value="false" />';
+        $replace .= '<param name="ShowGotoBar" value="false" />';
+        $replace .= '<param name="EnableFullScreenControls" value="true" />';
         $replace .= "\n<embed src=\"\\2.wmv\" name=\"msplayer\" type=\"video/x-ms\" ";
         $replace .= ' ShowControls="1" AutoRewind="1" AutoStart="0" Autosize="0" EnableContextMenu="1"';
         $replace .= ' TransparentAtStart="0" AnimationAtStart="0" ShowGotoBar="0" EnableFullScreenControls="1"';
index 1a99245..6748db5 100644 (file)
@@ -92,8 +92,8 @@
         header("Content-type: $filetype");
         readfile("$pathname");
     } else {
-        echo "The shell command<br>$cmd<br>returned status = $status<br>\n";
-        echo "Image not found!<br>";
+        echo "The shell command<br />$cmd<br />returned status = $status<br />\n";
+        echo "Image not found!<br />";
         echo "Please try the <a href=\"$CFG->wwwroot/$CFG->texfilterdir/texdebug.php\">debugging script</a>";
     }
 
index a911932..2a628ca 100644 (file)
     function tex2image($texexp) {
         global $CFG;
         $error_message1 = "Your system is not configured to run mimeTeX. ";
-        $error_message1 .= "You need to download the appropriate<br> executable ";
+        $error_message1 .= "You need to download the appropriate<br /> executable ";
         $error_message1 .= "from <a href=\"http://moodle.org/download/mimetex/\">";
         $error_message1 .= "http://moodle.org/download/mimetex/</a>, or obtain the ";
-        $error_message1 .= "C source<br> from <a href=\"http://www.forkosh.com/mimetex.zip\">";
+        $error_message1 .= "C source<br /> from <a href=\"http://www.forkosh.com/mimetex.zip\">";
         $error_message1 .= "http://www.forkosh.com/mimetex.zip</a>, compile it and ";
-        $error_message1 .= "put the executable into your<br> moodle/filter/tex/ directory. ";
-        $error_message1 .= "You also need to edit your moodle/filter/tex/pix.php file<br>";
-        $error_message1 .= ' by adding the line<br><pre>       case "' . PHP_OS . "\":\n";
+        $error_message1 .= "put the executable into your<br /> moodle/filter/tex/ directory. ";
+        $error_message1 .= "You also need to edit your moodle/filter/tex/pix.php file<br />";
+        $error_message1 .= ' by adding the line<br /><pre>       case "' . PHP_OS . "\":\n";
         $error_message1 .= "           \$cmd = \"\\\\\"\$CFG->dirroot/\$CFG->texfilterdir/";
         $error_message1 .= 'mimetex.' . strtolower(PHP_OS) . "\\\\\" -e \\\\\"\$pathname\\\\\" \". escapeshellarg(\$texexp);";
         $error_message1 .= "</pre>You also need to add this to your texdebug.php file.";
             readfile("$pathname");
         } else {
             $ecmd = "$cmd 2>&1";
-            echo `$ecmd` . "<br>\n";
-            echo "The shell command<br>$cmd<br>returned status = $status<br>\n";
+            echo `$ecmd` . "<br />\n";
+            echo "The shell command<br />$cmd<br />returned status = $status<br />\n";
             if ($status == 4) {
-                echo "Status corresponds to illegal instruction<br>\n";
+                echo "Status corresponds to illegal instruction<br />\n";
             } else if ($status == 11) {
-                echo "Status corresponds to bus error<br>\n";
+                echo "Status corresponds to bus error<br />\n";
             } else if ($status == 22) {
-                echo "Status corresponds to abnormal termination<br>\n";
+                echo "Status corresponds to abnormal termination<br />\n";
             }
             if (file_exists($commandpath)) {
-                echo "File size of mimetex executable  $commandpath is " . filesize($commandpath) . "<br>";
-                echo "The file permissions are: " . decoct(fileperms($commandpath)) . "<br>";
+                echo "File size of mimetex executable  $commandpath is " . filesize($commandpath) . "<br />";
+                echo "The file permissions are: " . decoct(fileperms($commandpath)) . "<br />";
                 if (function_exists("md5_file")) {
-                    echo "The md5 checksum of the file is " . md5_file($commandpath) . "<br>";
+                    echo "The md5 checksum of the file is " . md5_file($commandpath) . "<br />";
                 } else {
                     $handle = fopen($commandpath,"rb");
                     $contents = fread($handle,16384);
                     fclose($handle);
-                    echo "The md5 checksum of the first 16384 bytes is " . md5($contents) . "<br>";
+                    echo "The md5 checksum of the first 16384 bytes is " . md5($contents) . "<br />";
                 }
             } else {
-                echo "mimetex executable $commandpath not found!<br>";
+                echo "mimetex executable $commandpath not found!<br />";
             }
             echo "Image not found!";
         }
           <form action="texdebug.php" method="get"
            target="inlineframe">
             <center>
-             <input type="text" name="tex" size=50
+             <input type="text" name="tex" size="50"
                     value="f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt">
             </center>
            <ol>
            <li>Finally click on this button <input type="submit" name="ShowImage" value="Show Image">
                to show a graphic image of the algebraic expression.</li>
            </ol>
-          </form> <br> <br>
+          </form> <br /> <br />
        <center>
           <iframe name="inlineframe" align="middle" width="80%" height="200">
           &lt;p&gt;Something is wrong...&lt;/p&gt; 
           </iframe>
-       </center> <br>
-<hr>
+       </center> <br />
+<hr />
 <a name="help">
 <h2>Debugging Help</h2>
 </a>
index 10d5b28..112aa33 100644 (file)
        <center>
           <form action="texed.php" method="get"
            target="inlineframe">
-             <input type="text" name="formdata" size=50
+             <input type="text" name="formdata" size="50"
                     value="\Large f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt">
              <input type="submit">
-          </form> <br> <br>
+          </form> <br /> <br />
           <iframe name="inlineframe" align="middle" width="80%" height="100">
           &lt;p&gt;Something is wrong...&lt;/p&gt; 
           </iframe>
-       </center> <br>
+       </center> <br />
 </body>
 </html>
index 7a1cc0b..696181c 100644 (file)
--- a/index.php
+++ b/index.php
@@ -52,7 +52,7 @@
     }
 
     print_header(strip_tags($site->fullname), "$site->fullname", "home", "",
-                 "<meta name=\"description\" content=\"".s(strip_tags($site->summary))."\">",
+                 "<meta name=\"description\" content=\"".s(strip_tags($site->summary))."\" />",
                  true, "", "$loginstring$langmenu");
 
     $editing = isediting($site->id);
index 7ccef79..4954dda 100644 (file)
@@ -649,7 +649,7 @@ function upgrade_blocks_plugins($continueto) {
                 $db->debug = false;
                 if ($block->id = insert_record('blocks', $block)) {
                     notify(get_string('blocksuccess', '', $blocktitle), 'green');
-                    echo "<hr>";
+                    echo "<hr />";
                 } else {
                     error("$block->name block could not be added to the block list!");
                 }
index 680a0ce..fbf61f9 100644 (file)
@@ -2075,7 +2075,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
     if ($selectmod and $isteacher) {
         $logslink = "<td><a target=\"$CFG->framename\" href=".
                     "\"$CFG->wwwroot/course/log.php?chooselog=1&user=0&date=0&id=$course->id&modid=$selectmod->cm\">".
-                    "<img border=\"0\" height=\"16\" width=\"16\" src=\"$CFG->pixpath/i/log.gif\"></a></td>";
+                    "<img border=\"0\" height=\"16\" width=\"16\" src=\"$CFG->pixpath/i/log.gif\" /></a></td>";
 
     }
     if ($backmod) {
index 8b93c58..6ae790b 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../config.php");
 
@@ -48,9 +48,9 @@
                 add_to_log($course->id, "user", "change password", "view.php?id=$user->id&course=$course->id", "$user->id");
                 $fullname = fullname($USER, true);
                 print_header($strpasswordchanged, $strpasswordchanged,
-                             "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> ->
-                              <A HREF=\"$CFG->wwwroot/user/index.php?id=$course->id\">".get_string("participants")."</A> ->
-                              <A HREF=\"$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id\">$fullname</A> -> $strpasswordchanged", $focus);
+                             "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
+                              <a href=\"$CFG->wwwroot/user/index.php?id=$course->id\">".get_string("participants")."</a> ->
+                              <a href=\"$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id\">$fullname</a> -> $strpasswordchanged", $focus);
                 notice($strpasswordchanged, "$CFG->wwwroot/user/view.php?id=$USER->id&course=$id");
             } else {
                 add_to_log(SITEID, "user", "change password", "view.php?id=$user->id&course=".SITEID, "$course->id");
@@ -83,9 +83,9 @@
     if (!empty($course->id)) {
         $fullname = fullname($USER, true);
         print_header($strchangepassword, $strchangepassword,
-                     "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> ->
-                      <A HREF=\"$CFG->wwwroot/user/index.php?id=$course->id\">".get_string("participants")."</A> ->
-                      <A HREF=\"$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id\">$fullname</A> -> $strchangepassword", $focus);
+                     "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
+                      <a href=\"$CFG->wwwroot/user/index.php?id=$course->id\">".get_string("participants")."</a> ->
+                      <a href=\"$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id\">$fullname</a> -> $strchangepassword", $focus);
     } else {
         print_header($strchangepassword, $strchangepassword, $strchangepassword, $focus);
     }
index b3461ce..3447837 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../config.php");
     require_once("../auth/$CFG->auth/lib.php");
@@ -11,9 +11,9 @@
 
             if ($user->confirmed) {
                 print_header(get_string("alreadyconfirmed"), get_string("alreadyconfirmed"), "", "");
-                echo "<CENTER><H3>".get_string("thanks").", ". $user->firstname ." ". $user->lastname . "</H3>\n";
-                echo "<H4>".get_string("alreadyconfirmed")."</H4>\n";
-                echo "<H3> -> <A HREF=\"$CFG->wwwroot/course/\">".get_string("courses")."</A></H3>\n";
+                echo "<center><h3>".get_string("thanks").", ". $user->firstname ." ". $user->lastname . "</h3>\n";
+                echo "<h4>".get_string("alreadyconfirmed")."</h4>\n";
+                echo "<h3> -> <a href=\"$CFG->wwwroot/course/\">".get_string("courses")."</a></h3></center>\n";
                 print_footer();
                 exit;
             }
@@ -50,9 +50,9 @@
                 }
  
                 print_header(get_string("confirmed"), get_string("confirmed"), "", "");
-                echo "<CENTER><H3>".get_string("thanks").", ". $USER->firstname ." ". $USER->lastname . "</H3>\n";
-                echo "<H4>".get_string("confirmed")."</H4>\n";
-                echo "<H3> -> <A HREF=\"$CFG->wwwroot/course/\">".get_string("courses")."</A></H3>\n";
+                echo "<center><h3>".get_string("thanks").", ". $USER->firstname ." ". $USER->lastname . "</h3>\n";
+                echo "<h4>".get_string("confirmed")."</h4>\n";
+                echo "<h3> -> <a href=\"$CFG->wwwroot/course/\">".get_string("courses")."</a></h3></center>\n";
                 print_footer();
                 exit;
 
index d83341a..1cc8245 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
        require_once("../config.php");
 
@@ -73,7 +73,7 @@
        }
 
        print_header(get_string("senddetails"), get_string("senddetails"), 
-                 "<A HREF=\"$CFG->wwwroot/login/index.php\">".get_string("login")."</A> -> ".get_string("senddetails"), 
+                 "<a href=\"$CFG->wwwroot/login/index.php\">".get_string("login")."</a> -> ".get_string("senddetails"), 
                  "form.email");
        include("forgot_password_form.html");
     print_footer();
index 3a85746..625e8e7 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../config.php");
     optional_variable($loginguest, false); // determines whether visitors are logged in as guest automatically
 
     $loginsite = get_string("loginsite");
 
-    print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite, $focus, "", true, "<div align=right>$langmenu</div>"); 
+    print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite, $focus, "", true, "<div align=\"right\">$langmenu</div>"); 
     include("index_form.html");
     print_footer();
 
index ec50a1a..256840f 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 // Logs the user out and sends them to the home page
 
     require_once("../config.php");
index 5b06e1b..58a238d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../config.php");
     require_once("../auth/$CFG->auth/lib.php");
@@ -70,7 +70,7 @@
         $langmenu = popup_form ("$CFG->wwwroot/login/signup.php?lang=", $langs, "chooselang", $currlang, "", "", "", true);
     }
 
-    print_header($newaccount, $newaccount, "<A HREF=\"index.php\">$login</A> -> $newaccount", $focus, "", true, "<div align=right>$langmenu</div>");
+    print_header($newaccount, $newaccount, "<a href=\"index.php\">$login</a> -> $newaccount", $focus, "", true, "<div align=\"right\">$langmenu</div>");
     include("signup_form.html");
     print_footer();
 
@@ -126,7 +126,7 @@ function validate_form($user, &$err) {
         $err->email = get_string("invalidemail");
     
     } else if (record_exists("user", "email", $user->email)) {
-        $err->email = get_string("emailexists")." <A HREF=forgot_password.php>".get_string("newpassword")."?</A>";
+        $err->email = get_string("emailexists")." <a href=\"forgot_password.php\">".get_string("newpassword")."?</a>";
     }
     
 
index 14cd3f1..2859ddf 100644 (file)
-<?php\r
-   if (empty($user->username)) {\r
-       $user->username = "";\r
-   }\r
-   if (empty($user->password)) {\r
-       $user->password = "";\r
-   }\r
-   if (empty($user->email)) {\r
-       $user->email = "";\r
-   }\r
-   if (empty($user->email2)) {\r
-       $user->email2 = "";\r
-   }\r
-   if (empty($user->firstname)) {\r
-       $user->firstname = "";\r
-   }\r
-   if (empty($user->lastname)) {\r
-       $user->lastname = "";\r
-   }\r
-   if (empty($user->city)) {\r
-       $user->city = "";\r
-   }\r
-   if (empty($user->country)) {\r
-       $user->country = "";\r
-   }\r
-\r
-?>\r
-<table cellpadding="20" align="center"> <tr> <td bgcolor="<?php p($THEME->cellcontent2) ?>" class="generalbox">\r
-\r
-<form action="signup.php" method="post" name="form" id="form">\r
-<table>\r
-<tr valign="top">\r
-       <td colspan="2"><p><b><?php print_string("createuserandpass") ?>:</b></p></td>\r
-</tr>\r
-<tr valign="top">\r
-       <td align=right><p><?php print_string("username") ?>:</p></td>\r
-       <td><input type="text" name="username" size="12" value="<?php p($user->username) ?>" />\r
-       <?php if (!empty($err->username)) { formerr($err->username); } ?>\r
-       </td>\r
-</tr>\r
-<tr valign="top">\r
-       <td align=right><p><?php print_string("password") ?>:</p></td>\r
-       <td><input type="password" name="password" size="12" value="<?php p($user->password) ?>" />\r
-       <?php if (!empty($err->password)) { formerr($err->password); } ?>\r
-       </td>\r
-</tr>\r
-<tr valign="top">\r
-       <td colspan="2"><p><br />\r
-                  <b><?php print_string("supplyinfo") ?>:</b><br />\r
-                  (<?php print_string("emailmustbereal") ?>)</p>\r
-              </td>\r
-            </tr>\r
-<tr valign="top">\r
-       <td align=right><p><?php print_string("email") ?>:</p></td>\r
-       <td><input type="text" name="email" size="25" value="<?php p($user->email) ?>" />\r
-       <?php if (!empty($err->email)) { formerr($err->email); } ?>\r
-       </td>\r
-</tr>\r
-<tr valign="top">\r
-       <td align=right><p><?php print_string("emailagain") ?>:</p></td>\r
-       <td><input type="text" name="email2" size="25" value="<?php p($user->email2) ?>" />\r
-       <?php if (!empty($err->email2)) { formerr($err->email2); } ?>\r
-       </td>\r
-</tr>\r
-<tr valign="top">\r
-       <td align=right><p><?php print_string("firstname") ?>:</p></td>\r
-       <td><input type="text" name="firstname" size="25" value="<?php p($user->firstname) ?>" />\r
-       <?php if (!empty($err->firstname)) { formerr($err->firstname);} ?>\r
-       </td>\r
-</tr>\r
-<tr valign="top">\r
-       <td align=right><p><?php print_string("lastname") ?>:</p></td>\r
-       <td><input type="text" name="lastname" size="25" value="<?php p($user->lastname) ?>" />\r
-       <?php if (!empty($err->lastname)) { formerr($err->lastname);} ?>\r
-       </td>\r
-</tr>\r
-<tr valign="top">\r
-       <td align=right><p><?php print_string("city") ?>:</p></td>\r
-       <td><input type="text" name="city" size="25" value="<?php p($user->city) ?>" />\r
-       <?php if (!empty($err->city)) { formerr($err->city);} ?>\r
-       </td>\r
-</tr>\r
-<tr valign="top">\r
-       <td align=right><p><?php print_string("country") ?>:</p></td>\r
-       <td><?php choose_from_menu (get_list_of_countries(), "country", $user->country, get_string("selectacountry"), "", "") ?>\r
-       <?php if (!empty($err->country)) { formerr($err->country);} ?>\r
-       </td>\r
-</tr>\r
-<tr>\r
-       <td></td>\r
-       <td><input type="submit" value="<?php print_string("createaccount") ?>" /></td>\r
-</tr>\r
-</table>\r
-</form>\r
-\r
-</td></tr></table>\r
+<?php
+
+   if (empty($user->username)) {
+
+       $user->username = "";
+
+   }
+
+   if (empty($user->password)) {
+
+       $user->password = "";
+
+   }
+
+   if (empty($user->email)) {
+
+       $user->email = "";
+
+   }
+
+   if (empty($user->email2)) {
+
+       $user->email2 = "";
+
+   }
+
+   if (empty($user->firstname)) {
+
+       $user->firstname = "";
+
+   }
+
+   if (empty($user->lastname)) {
+
+       $user->lastname = "";
+
+   }
+
+   if (empty($user->city)) {
+
+       $user->city = "";
+
+   }
+
+   if (empty($user->country)) {
+
+       $user->country = "";
+
+   }
+
+
+
+?>
+
+<table cellpadding="20" align="center"> <tr> <td bgcolor="<?php p($THEME->cellcontent2) ?>" class="generalbox">
+
+
+
+<form action="signup.php" method="post" name="form" id="form">
+
+<table>
+
+<tr valign="top">
+
+       <td colspan="2"><p><b><?php print_string("createuserandpass") ?>:</b></p></td>
+
+</tr>
+
+<tr valign="top">
+
+       <td align="right"><p><?php print_string("username") ?>:</p></td>
+
+       <td><input type="text" name="username" size="12" value="<?php p($user->username) ?>" />
+
+       <?php if (!empty($err->username)) { formerr($err->username); } ?>
+
+       </td>
+
+</tr>
+
+<tr valign="top">
+
+       <td align="right"><p><?php print_string("password") ?>:</p></td>
+
+       <td><input type="password" name="password" size="12" value="<?php p($user->password) ?>" />
+
+       <?php if (!empty($err->password)) { formerr($err->password); } ?>
+
+       </td>
+
+</tr>
+
+<tr valign="top">
+
+       <td colspan="2"><p><br />
+
+                  <b><?php print_string("supplyinfo") ?>:</b><br />
+
+                  (<?php print_string("emailmustbereal") ?>)</p>
+
+              </td>
+
+            </tr>
+
+<tr valign="top">
+
+       <td align="right"><p><?php print_string("email") ?>:</p></td>
+
+       <td><input type="text" name="email" size="25" value="<?php p($user->email) ?>" />
+
+       <?php if (!empty($err->email)) { formerr($err->email); } ?>
+
+       </td>
+
+</tr>
+
+<tr valign="top">
+
+       <td align="right"><p><?php print_string("emailagain") ?>:</p></td>
+
+       <td><input type="text" name="email2" size="25" value="<?php p($user->email2) ?>" />
+
+       <?php if (!empty($err->email2)) { formerr($err->email2); } ?>
+
+       </td>
+
+</tr>
+
+<tr valign="top">
+
+       <td align="right"><p><?php print_string("firstname") ?>:</p></td>
+
+       <td><input type="text" name="firstname" size="25" value="<?php p($user->firstname) ?>" />
+
+       <?php if (!empty($err->firstname)) { formerr($err->firstname);} ?>
+
+       </td>
+
+</tr>
+
+<tr valign="top">
+
+       <td align="right"><p><?php print_string("lastname") ?>:</p></td>
+
+       <td><input type="text" name="lastname" size="25" value="<?php p($user->lastname) ?>" />
+
+       <?php if (!empty($err->lastname)) { formerr($err->lastname);} ?>
+
+       </td>
+
+</tr>
+
+<tr valign="top">
+
+       <td align="right"><p><?php print_string("city") ?>:</p></td>
+
+       <td><input type="text" name="city" size="25" value="<?php p($user->city) ?>" />
+
+       <?php if (!empty($err->city)) { formerr($err->city);} ?>
+
+       </td>
+
+</tr>
+
+<tr valign="top">
+
+       <td align="right"><p><?php print_string("country") ?>:</p></td>
+
+       <td><?php choose_from_menu (get_list_of_countries(), "country", $user->country, get_string("selectacountry"), "", "") ?>
+
+       <?php if (!empty($err->country)) { formerr($err->country);} ?>
+
+       </td>
+
+</tr>
+
+<tr>
+
+       <td></td>
+
+       <td><input type="submit" value="<?php print_string("createaccount") ?>" /></td>
+
+</tr>
+
+</table>
+
+</form>
+
+
+
+</td></tr></table>
+
index eced064..9a9b9df 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //assignment mods
 
index 6546f0f..ba10bd2 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function assignment_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index c1e24bd..91c45d5 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function assignment_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index c15072c..ed7e85c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function assignment_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 7cbe078..7b6c8cf 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index ff17c7a..249c2cf 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 require_once("$CFG->dirroot/files/mimetypes.php");
 
@@ -534,7 +534,7 @@ function assignment_get_submission($assignment, $user) {
 function assignment_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)";
@@ -544,45 +544,45 @@ function assignment_print_difference($time) {
 function assignment_print_submission($assignment, $user, $submission, $teachers, $grades) {
     global $THEME, $USER;
 
-    echo "\n<TABLE BORDER=1 CELLSPACING=0 valign=top cellpadding=10 align=center>";
+    echo "\n<table BORDER=1 CELLSPACING=0 valign=top cellpadding=10 align=center>";
 
-    echo "\n<TR>";
+    echo "\n<tr>";
     if ($assignment->type == OFFLINE) {
-        echo "\n<TD BGCOLOR=\"$THEME->body\" WIDTH=35 VALIGN=TOP>";
+        echo "\n<td BGCOLOR=\"$THEME->body\" WIDTH=35 VALIGN=TOP>";
     } else {
-        echo "\n<TD ROWSPAN=2 BGCOLOR=\"$THEME->body\" WIDTH=35 VALIGN=TOP>";
+        echo "\n<td ROWSPAN=2 BGCOLOR=\"$THEME->body\" WIDTH=35 VALIGN=TOP>";
     }
     print_user_picture($user->id, $assignment->course, $user->picture);
-    echo "</TD>";
-    echo "<TD NOWRAP BGCOLOR=\"$THEME->cellheading\">".fullname($user, true);
+    echo "</td>";
+    echo "<td NOWRAP BGCOLOR=\"$THEME->cellheading\">".fullname($user, true);
     if ($assignment->type != OFFLINE and $submission->timemodified) {
-        echo "&nbsp;&nbsp;<FONT SIZE=1>".get_string("lastmodified").": ";
+        echo "&nbsp;&nbsp;<font SIZE=1>".get_string("lastmodified").": ";
         echo userdate($submission->timemodified);
         echo assignment_print_difference($assignment->timedue - $submission->timemodified);
-        echo "</FONT>";
+        echo "</font>";
     }
-    echo "</TR>";
+    echo "</tr>";
 
     if ($assignment->type != OFFLINE) {
-        echo "\n<TR><TD BGCOLOR=\"$THEME->cellcontent\">";
+        echo "\n<tr><td BGCOLOR=\"$THEME->cellcontent\">";
         if ($submission->timemodified) {
             assignment_print_user_files($assignment, $user);
         } else {
             print_string("notsubmittedyet", "assignment");
         }
-        echo "</TD></TR>";
+        echo "</td></tr>";
     }
 
-    echo "\n<TR>";
-    echo "<TD WIDTH=35 VALIGN=TOP>";
+    echo "\n<tr>";
+    echo "<td width=35 valign=TOP>";
     if (!$submission->teacher) {
         $submission->teacher = $USER->id;
     }
     print_user_picture($submission->teacher, $assignment->course, $teachers[$submission->teacher]->picture);
     if ($submission->timemodified > $submission->timemarked) {
-        echo "<TD BGCOLOR=\"$THEME->cellheading2\">";
+        echo "<td bgcolor=\"$THEME->cellheading2\">";
     } else {
-        echo "<TD BGCOLOR=\"$THEME->cellheading\">";
+        echo "<td bgcolor=\"$THEME->cellheading\">";
     }
     if (!$submission->grade and !$submission->timemarked) {
         $submission->grade = -1;   /// Hack to stop zero being selected on the menu below (so it shows 'no grade')
@@ -590,14 +590,14 @@ function assignment_print_submission($assignment, $user, $submission, $teachers,
     echo get_string("feedback", "assignment").":";
     choose_from_menu($grades, "g$submission->id", $submission->grade, get_string("nograde"));
     if ($submission->timemarked) {
-        echo "&nbsp;&nbsp;<FONT SIZE=1>".userdate($submission->timemarked)."</FONT>";
+        echo "&nbsp;&nbsp;<font size=1>".userdate($submission->timemarked)."</font>";
     }
-    echo "<BR><TEXTAREA NAME=\"c$submission->id\" ROWS=6 COLS=60 WRAP=virtual>";
+    echo "<br><textarea name=\"c$submission->id\" rows=6 cols=60 wrap=virtual>";
     p($submission->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";
 }
 
 function assignment_print_feedback($course, $submission, $assignment) {
@@ -607,20 +607,20 @@ function assignment_print_feedback($course, $submission, $assignment) {
         error("Weird assignment 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 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 ($assignment->grade) {
         if ($submission->grade or $submission->timemarked) {
             echo get_string("grade").": $submission->grade";
@@ -628,11 +628,11 @@ function assignment_print_feedback($course, $submission, $assignment) {
             echo get_string("nograde");
         }
     }
-    echo "</I></FONT></P>";
+    echo "</i></font></p>";
 
     echo text_to_html($submission->comment);
-    echo "</TD></TR></TABLE>";
-    echo "</TD></TR></TABLE>";
+    echo "</td></tr></table>";
+    echo "</td></tr></table>";
 }
 
 
@@ -680,14 +680,14 @@ function assignment_delete_user_files($assignment, $user, $exception) {
 function assignment_print_upload_form($assignment) {
 // Arguments are objects
 
-    echo "<DIV ALIGN=CENTER>";
-    echo "<FORM ENCTYPE=\"multipart/form-data\" METHOD=\"POST\" ACTION=\"upload.php?id=$assignment->id\">";
-    echo " <INPUT TYPE=hidden NAME=MAX_FILE_SIZE value=\"$assignment->maxbytes\" />";
-    echo " <INPUT TYPE=hidden NAME=id VALUE=\"$assignment->id\" />";
-    echo " <INPUT NAME=\"newfile\" TYPE=\"file\" size=\"50\" />";
-    echo " <INPUT TYPE=submit NAME=save VALUE=\"".get_string("uploadthisfile")."\" />";
-    echo "</FORM>";
-    echo "</DIV>";
+    echo "<div align=CENTER>";
+    echo "<form enctype=\"multipart/form-data\" method=\"POST\" action=\"upload.php?id=$assignment->id\">";
+    echo " <input type=hidden name=MAX_FILE_SIZE value=\"$assignment->maxbytes\" />";
+    echo " <input type=hidden name=id value=\"$assignment->id\" />";
+    echo " <input name=\"newfile\" type=\"file\" size=\"50\" />";
+    echo " <input type=submit name=save value=\"".get_string("uploadthisfile")."\" />";
+    echo "</form>";
+    echo "</div>";
 }
 
 function assignment_get_recent_mod_activity(&$activities, &$index, $sincetime, $courseid, $assignment="0", $user="", $groupid="")  {
@@ -780,7 +780,7 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)
         if ($activity->content->type == UPLOADSINGLE) {
             $file = assignment_get_user_file($assignment, $user);
             echo "<img src=\"$CFG->pixpath/f/$file->icon\" height=16 width=16 border=0 alt=\"file\">";
-            echo "&nbsp;<a target=\"uploadedfile\" HREF=\"$CFG->wwwroot/$file->url\">$file->name</A>";
+            echo "&nbsp;<a target=\"uploadedfile\" href=\"$CFG->wwwroot/$file->url\">$file->name</a>";
         }
         echo "<br />";
     }
index 2956885..ebbaa96 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //assignment mods
 
index 8412ef2..4371ffe 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index a7d4110..240f666 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
@@ -32,8 +32,8 @@
     $strupload      = get_string("upload");
 
     print_header_simple("$assignment->name : $strupload", "",
-                 "<A HREF=index.php?id=$course->id>$strassignments</A> -> 
-                  <A HREF=\"view.php?a=$assignment->id\">$assignment->name</A> -> $strupload", 
+                 "<a href=index.php?id=$course->id>$strassignments</a> -> 
+                  <a href=\"view.php?a=$assignment->id\">$assignment->name</a> -> $strupload", 
                   "", "", true);
 
     if ($submission = get_record("assignment_submissions", "assignment", $assignment->id, "userid", $USER->id)) {
index fa67847..c0e8b81 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
index 32e6da4..b81625d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
@@ -39,7 +39,7 @@
     $strassignment  = get_string("modulename", "assignment");
 
     print_header_simple($assignment->name, "",
-                 "<A HREF=index.php?id=$course->id>$strassignments</A> -> $assignment->name", 
+                 "<a href=index.php?id=$course->id>$strassignments</a> -> $assignment->name", 
                   "", "", true, update_module_button($cm->id, $course->id, $strassignment), navmenu($course, $cm));
 
     if (isteacher($course->id)) {
index c9f9826..8ed4941 100644 (file)
@@ -132,8 +132,8 @@ if (isset($_POST["course"]))  {
 
     if ($course->category) {
         print_header("$course->shortname: $streditinga", "$course->fullname",
-                     "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> -> 
-                      <A HREF=\"$CFG->wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural</A> -> 
+                     "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> -> 
+                      <a href=\"$CFG->wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural</a> -> 
                       $streditinga", "form.name", "", false);
     } else {
         print_header("$course->shortname: $streditinga", "$course->fullname",
@@ -164,24 +164,24 @@ $form->maxgrade = isset($CFG->attendance_maxgrade)?$CFG->attendance_maxgrade:0;
 $form->hours = isset($CFG->attendance_default_hours)?$CFG->attendance_default_hours:1;
 
 ?>
-<FORM name="form" method="post" action="<?php echo $ME ?>">
-<CENTER>
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
-<INPUT type="submit" name="cancel" value="<?php  print_string("cancel") ?>" />
-<TABLE cellpadding=5>
-
-<TR valign=top>
-    <TD align=right><P><B><?php print_string("startmulti", "attendance") ?>:</B></P></TD>
-    <TD colspan="3"><?php print_date_selector("startday", "startmonth", "startyear",$course->startdate) ?></TD>
-</TR>
-<TR valign=top>
-    <TD align=right><P><B><?php print_string("endmulti", "attendance") ?>:</B></P></TD>
-    <TD colspan="3"><?php print_date_selector("endday", "endmonth", "endyear",$course->enddate) ?></TD>
-</TR>
-
-<TR valign=top>
-    <TD align=right><P><B><?php print_string("choosedays", "attendance") ?>:</B></P></TD>
-    <TD colspan="3">
+<form name="form" method="post" action="<?php echo $ME ?>">
+<center>
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" name="cancel" value="<?php  print_string("cancel") ?>" />
+<table cellpadding=5>
+
+<tr valign=top>
+    <td align=right><p><b><?php print_string("startmulti", "attendance") ?>:</b></p></td>
+    <td colspan="3"><?php print_date_selector("startday", "startmonth", "startyear",$course->startdate) ?></td>
+</tr>
+<tr valign=top>
+    <td align=right><p><b><?php print_string("endmulti", "attendance") ?>:</b></p></td>
+    <td colspan="3"><?php print_date_selector("endday", "endmonth", "endyear",$course->enddate) ?></td>
+</tr>
+
+<tr valign=top>
+    <td align=right><p><b><?php print_string("choosedays", "attendance") ?>:</b></p></td>
+    <td colspan="3">
     <?php print_string("sunday","attendance"); echo ":"; ?>
     <input type="checkbox" name="sun" >
     <?php print_string("monday","attendance"); echo ":"; ?>
@@ -197,12 +197,12 @@ $form->hours = isset($CFG->attendance_default_hours)?$CFG->attendance_default_ho
     <?php print_string("saturday","attendance"); echo ":"; ?>
     <input type="checkbox" name="sat" >
 <?php helpbutton("choosedays", get_string("choosedays","attendance"), "attendance");?>
-    </TD>
-</TR>
+    </td>
+</tr>
 
 <tr valign=top>
-    <TD align="right"><P><B><?php print_string("dynamicsectionmulti", "attendance") ?>:</B></P></TD>
-    <TD align="left">
+    <td align="right"><p><b><?php print_string("dynamicsectionmulti", "attendance") ?>:</b></p></td>
+    <td align="left">
 <?php
         $options = array();
         $options[0] = get_string("no");
@@ -211,11 +211,11 @@ $form->hours = isset($CFG->attendance_default_hours)?$CFG->attendance_default_ho
         helpbutton("dynsection", get_string("dynamicsectionmulti","attendance"), "attendance");
 ?>
 <!--      <input type="checkbox" name="dynsection" <?php echo !empty($form->dynsection) ? 'checked' : '' ?> > -->
-</TD>
+</td>
 </tr>
 <tr valign=top>
-    <TD align="right"><P><B><?php print_string("autoattendmulti", "attendance") ?>:</B></P></TD>
-    <TD align="left">
+    <td align="right"><p><b><?php print_string("autoattendmulti", "attendance") ?>:</b></p></td>
+    <td align="left">
 <?php
         $options = array();
         $options[0] = get_string("no");
@@ -226,20 +226,20 @@ $form->hours = isset($CFG->attendance_default_hours)?$CFG->attendance_default_ho
 
 
 <!--      <input type="checkbox" name="autoattend" <?php echo !empty($form->autoattend) ? 'checked' : '' ?> > -->
-    </TD>
+    </td>
 </tr>
 <?php // starting with 2 to allow for the nothing value in choose_from_menu to be the default of 1
 for ($i=2;$i<=24;$i++){ $opt[$i] = $i; } ?>
-<TR valign=top>
-    <TD align=right><P><B><?php print_string("hoursineachclass", "attendance") ?>:</B></P></TD>
-    <TD  colspan="3" align="left"><?php choose_from_menu($opt, "hours", $form->hours, "1","","1") ?>
+<tr valign=top>
+    <td align=right><p><b><?php print_string("hoursineachclass", "attendance") ?>:</b></p></td>
+    <td  colspan="3" align="left"><?php choose_from_menu($opt, "hours", $form->hours, "1","","1") ?>
 <?php helpbutton("hours", get_string("hoursinclass","attendance"), "attendance"); ?>
 </td>
 </tr>
 
 <tr valign=top>
-    <TD align="right"><P><B><?php print_string("gradevaluemulti", "attendance") ?>:</B></P></TD>
-    <TD align="left">
+    <td align="right"><p><b><?php print_string("gradevaluemulti", "attendance") ?>:</b></p></td>
+    <td align="left">
 <?php
         $options = array();
         $options[0] = get_string("no");
@@ -249,33 +249,33 @@ for ($i=2;$i<=24;$i++){ $opt[$i] = $i; } ?>
 ?>
 
 <!--      <input type="checkbox" name="grade" <?php echo !empty($form->grade) ? 'checked' : '' ?> > -->
-    </TD>
+    </td>
 </tr>
 <?php // starting with 2 to allow for the nothing value in choose_from_menu to be the default of 1
 for ($i=0;$i<=100;$i++){ $opt2[$i] = $i; } ?>
-<TR valign=top>
-    <TD align=right><P><B><?php print_string("maxgradevalue", "attendance") ?>:</B></P></TD>
-    <TD  colspan="3" align="left"><?php choose_from_menu($opt2, "maxgrade", $form->maxgrade, "0","","0"); 
+<tr valign=top>
+    <td align=right><p><b><?php print_string("maxgradevalue", "attendance") ?>:</b></p></td>
+    <td  colspan="3" align="left"><?php choose_from_menu($opt2, "maxgrade", $form->maxgrade, "0","","0"); 
    helpbutton("maxgrade", get_string("maxgradevalue","attendance"), "attendance");
 ?></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="hidden" name=numsections   value="<?php p($course->numsections) ?>" />
-<BR />
-<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
-<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
-</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="hidden" name=numsections   value="<?php p($course->numsections) ?>" />
+<br />
+<input type="submit" value="<?php print_string("savechanges") ?>" />
+<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
+</center>
+</form>
 
 <?php
     print_simple_box_end();
index 57315ae..08c49c4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //attendance mods
 
index 7fa84db..0e0812f 100644 (file)
@@ -1,28 +1,56 @@
-<?PHP\r
-\r
-function attendance_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 < 2003091802) {\r
-        execute_sql("ALTER TABLE `{$CFG->prefix}attendance` ADD `edited` TINYINT( 1 ) DEFAULT '0' NOT NULL;");\r
-               execute_sql("UPDATE `{$CFG->prefix}attendance` set `edited` = 1;");\r
-    }\r
-    if ($oldversion < 2003092500) {\r
-        execute_sql("ALTER TABLE `{$CFG->prefix}attendance` ADD `autoattend` TINYINT( 1 ) DEFAULT '0' NOT NULL;");\r
-    }\r
-\r
-    if ($oldversion < 2004050301) {\r
-        modify_database("", "INSERT INTO {$CFG->prefix}log_display VALUES ('attendance', 'view', 'attendance', 'name');");\r
-        modify_database("", "INSERT INTO {$CFG->prefix}log_display VALUES ('attendance', 'viewall', 'attendance', 'name');");\r
-        modify_database("", "INSERT INTO {$CFG->prefix}log_display VALUES ('attendance', 'viewweek', 'attendance', 'name');");\r
-    }\r
-\r
-\r
-\r
-    return true;\r
-}\r
-\r
-?>\r
+<?php
+
+
+
+function attendance_upgrade($oldversion) {
+
+/// This function does anything necessary to upgrade 
+
+/// older versions to match current functionality 
+
+
+
+    global $CFG;
+
+
+
+    if ($oldversion < 2003091802) {
+
+        execute_sql("ALTER TABLE `{$CFG->prefix}attendance` ADD `edited` TINYINT( 1 ) DEFAULT '0' NOT NULL;");
+
+               execute_sql("UPDATE `{$CFG->prefix}attendance` set `edited` = 1;");
+
+    }
+
+    if ($oldversion < 2003092500) {
+
+        execute_sql("ALTER TABLE `{$CFG->prefix}attendance` ADD `autoattend` TINYINT( 1 ) DEFAULT '0' NOT NULL;");
+
+    }
+
+
+
+    if ($oldversion < 2004050301) {
+
+        modify_database("", "INSERT INTO {$CFG->prefix}log_display VALUES ('attendance', 'view', 'attendance', 'name');");
+
+        modify_database("", "INSERT INTO {$CFG->prefix}log_display VALUES ('attendance', 'viewall', 'attendance', 'name');");
+
+        modify_database("", "INSERT INTO {$CFG->prefix}log_display VALUES ('attendance', 'viewweek', 'attendance', 'name');");
+
+    }
+
+
+
+
+
+
+
+    return true;
+
+}
+
+
+
+?>
+
index 8d14e8e..451707b 100755 (executable)
@@ -1,11 +1,22 @@
-<?PHP\r
-\r
-function attendance_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
+<?php
+
+
+
+function attendance_upgrade($oldversion) {
+
+/// This function does anything necessary to upgrade 
+
+/// older versions to match current functionality 
+
+
+
+    global $CFG;
+
+    return true;
+
+}
+
+
+
+?>
+
index 7922744..eacdeeb 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 /// index.php for attendance module
 /// This page lists all the instances of NEWMODULE in a particular course
    if ($attendances) foreach ($attendances as $attendance) {
         if (!$attendance->visible) {
             //Show dimmed if the mod is hidden
-            $link = "<A class=\"dimmed\" HREF=\"view.php?id=$attendance->coursemodule\">$attendance->name</A>";
+            $link = "<a class=\"dimmed\" href=\"view.php?id=$attendance->coursemodule\">$attendance->name</a>";
         } else {
             //Show normal if the mod is visible
-            $link = "<A HREF=\"view.php?id=$attendance->coursemodule\">$attendance->name</A>";
+            $link = "<a href=\"view.php?id=$attendance->coursemodule\">$attendance->name</a>";
         }
 
         if ($course->format == "weeks" or $course->format == "topics") {
@@ -69,7 +69,7 @@
         }
     }
 
-    echo "<BR>";
+    echo "<br>";
 
     print_table($table);
 
index da704be..1ed9c07 100755 (executable)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of functions and constants for attendance module
 
index 3e2a10d..9920f4b 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //attendance mods
 
index 6b24525..6f308ce 100755 (executable)
@@ -74,8 +74,8 @@
 
     if ($course->category) {
         print_header("$course->shortname: $streditinga", "$course->fullname",
-                     "<A HREF=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</A> -> 
-                      <A HREF=\"$CFG->wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural</A> -> 
+                     "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> -> 
+                      <a href=\"$CFG->wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural</a> -> 
                       $streditinga", $focuscursor, "", false);
     } else {
         print_header("$course->shortname: $streditinga", "$course->fullname",
@@ -109,10 +109,10 @@ if (empty($form->id)) {
        $form->notes = "";
 }
     ?>
-<FORM name="form" method="post" action="<?php echo "$CFG->wwwroot/course/mod.php"; ?>">
-<CENTER>
-<INPUT type="submit" value="<?php  print_string("savechanges") ?>" />
-<INPUT type="submit" name="cancel" value="<?php  print_string("cancel") ?>" />
+<form name="form" method="post" action="<?php echo "$CFG->wwwroot/course/mod.php"; ?>">
+<center>
+<input type="submit" value="<?php  print_string("savechanges") ?>" />
+<input type="submit" name="cancel" value="<?php  print_string("cancel") ?>" />
 
 <?php  // if we're modifying an existing instance of attendance instead 
     //   of creating a new one
@@ -204,21 +204,21 @@ if ($form->hours >1) {
 } // if ($form->id)
 ?>
 <!-- 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) ?>" />
-<BR />
+<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) ?>" />
+<br />
 <?php
   echo "<a href=\"../mod/attendance/add.php?id=".$form->course . "&section=".$form->section ."\">Add multiple rolls</a><br /><br />";
 ?>
-<INPUT type="submit" value="<?php print_string("savechanges") ?>" />
-<INPUT type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
-</CENTER>
-</FORM>
+<input type="submit" value="<?php print_string("savechanges") ?>" />
+<input type="submit" name="cancel" value="<?php print_string("cancel") ?>" />
+</center>
+</form>
 
 
 
index c9038f4..8b87c48 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 /////////////////////////////////////////////////////////////////////////////////
 ///  Code fragment to define the version of attendance
index d5f7b25..5d6f005 100644 (file)
@@ -39,7 +39,7 @@
     $strteacheredit = get_string("teacheredit", "attendance");
 
     print_header_simple($attendance->name, "",
-                 "<A HREF=index.php?id=$course->id>$strattendances</A> -> $attendance->name", 
+                 "<a href=index.php?id=$course->id>$strattendances</a> -> $attendance->name", 
                   "", "", true, update_module_button($cm->id, $course->id, $strattendance), 
                   navmenu($course, $cm));
 
index bba4108..d2a2025 100644 (file)
@@ -437,8 +437,8 @@ if ($onepage) {$page++; echo "<br /> <br />\n"; }
   if (!$onepage) { attendance_print_pagenav(); }
 
 
-  echo "<center><TABLE BORDER=0 ALIGN=CENTER><TR>";
-  echo "<TD>";
+  echo "<center><table border=0 align=CENTER><tr>";
+  echo "<td>";
   if (($numhours-4) > 255) {
     echo "<form><input type=\"button\" value=\"".get_string("downloadexcelfull", "attendance").
     "\" onclick=\"alert('Sorry, you have more than 251 days on this report.  This will not fit into an Excel Spreadsheet. ".
@@ -449,19 +449,19 @@ if ($onepage) {$page++; echo "<br /> <br />\n"; }
     $options["dlsub"] = "all";  
     print_single_button("viewall.php", $options, get_string("downloadexcelfull", "attendance"));
   }
-  echo "</td><TD>";
+  echo "</td><td>";
   $options["id"] = "$course->id";
   $options["download"] = "xls";
   $options["dlsub"] = "totals";  
   print_single_button("viewall.php", $options, get_string("downloadexceltotals", "attendance"));
-  echo "</td><TD>";
+  echo "</td><td>";
   $options["download"] = "txt";
   $options["dlsub"] = "all";  
   print_single_button("viewall.php", $options, get_string("downloadtextfull", "attendance"));
-  echo "</td><TD>";
+  echo "</td><td>";
   $options["dlsub"] = "totals";  
   print_single_button("viewall.php", $options, get_string("downloadtexttotals", "attendance"));
-  echo "</td></TABLE></center>";
+  echo "</td></table></center>";
 
   
 } else { error("There are no attendance rolls in this course.");} // for no attendance rolls  
@@ -479,7 +479,7 @@ function attendance_print_header() {
     $strattendance  = get_string("modulename", "attendance");
     $strallattendance  = get_string("allmodulename", "attendance");
     print_header_simple("$strallattendance", "",
-                 "<A HREF=index.php?id=$course->id>$strattendances</A> -> $strallattendance", 
+                 "<a href=index.php?id=$course->id>$strattendances</a> -> $strallattendance", 
                   "", "", true, "&nbsp;", 
                   navmenu($course, $cm));
 }
index 798e8d8..e5880a3 100644 (file)
@@ -444,8 +444,8 @@ if ($onepage) {$page++; echo "<br /> <br />\n"; }
   if (!$onepage) { attendance_print_pagenav(); }
 
 
-  echo "<center><TABLE BORDER=0 ALIGN=CENTER><TR>";
-  echo "<TD>";
+  echo "<center><table border=0 align=CENTER><tr>";
+  echo "<td>";
   if (($numhours-4) > 255) {
     echo "<form><input type=\"button\" value=\"".get_string("downloadexcelfull", "attendance").
     "\" onclick=\"alert('Sorry, you have more than 251 days on this report.  This will not fit into an Excel Spreadsheet. ".
@@ -456,19 +456,19 @@ if ($onepage) {$page++; echo "<br /> <br />\n"; }
     $options["dlsub"] = "all";  
     print_single_button("viewweek.php", $options, get_string("downloadexcelfull", "attendance"));
   }
-  echo "</td><TD>";
+  echo "</td><td>";
   $options["id"] = "$id";
   $options["download"] = "xls";
   $options["dlsub"] = "totals";  
   print_single_button("viewweek.php", $options, get_string("downloadexceltotals", "attendance"));
-  echo "</td><TD>";
+  echo "</td><td>";
   $options["download"] = "txt";
   $options["dlsub"] = "all";  
   print_single_button("viewweek.php", $options, get_string("downloadtextfull", "attendance"));
-  echo "</td><TD>";
+  echo "</td><td>";
   $options["dlsub"] = "totals";  
   print_single_button("viewweek.php", $options, get_string("downloadtexttotals", "attendance"));
-  echo "</td></TABLE></center>";
+  echo "</td></table></center>";
 
 
 
@@ -521,7 +521,7 @@ function attendance_print_header()  {
     $strattendance  = get_string("modulename", "attendance");
     $strweekattendance  = get_string("weekmodulename", "attendance");
     print_header_simple("$strallattendance", "",
-                 "<A HREF=index.php?id=$course->id>$strattendances</A> -> $strweekattendance", 
+                 "<a href=index.php?id=$course->id>$strattendances</a> -> $strweekattendance", 
                   "", "", true, "&nbsp;", 
                   navmenu($course, $cm));
 }
index 9b5798a..40bdbf8 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //dialogue mods
 
index c2f7df0..3384fae 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function dialogue_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 51920dd..179d2ee 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function dialogue_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 05e0e96..236d215 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /*************************************************
     ACTIONS handled are:
index d995ad8..385008d 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index e54c9c5..2d4cb57 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 $DIALOGUE_DAYS = array (0 => 0, 7 => 7, 14 => 14, 30 => 30, 150 => 150, 365 => 365 );
 
index 1c90021..bcc84cf 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of extra functions for the dialogue module
 
index 2b8b30b..c5249a5 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //dialogue mods
 
index fa67847..c0e8b81 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
index 4e63e67..56e9d36 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
     require_once("../../config.php");
     require_once("lib.php");
index 0f60d47..485d1f1 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:
@@ -49,7 +49,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> ->";
     }
 
     $strworkshops = get_string("modulenameplural", "workshop");
@@ -58,8 +58,8 @@
 
     // ... print the header and...
     print_header_simple("$workshop->name", "",
-                 "<A HREF=index.php?id=$course->id>$strworkshops</A> -> 
-                  <A HREF=\"view.php?id=$cm->id\">$workshop->name</A> -> $strassessments", 
+                 "<a HREF=index.php?id=$course->id>$strworkshops</a> -> 
+                  <a HREF=\"view.php?id=$cm->id\">$workshop->name</a> -> $strassessments", 
                   "", "", true);
 
        //...get the action 
                        error("Submission not found");
                        }
                ?>
-               <FORM NAME="commentform" ACTION="assessments.php" METHOD="post">
-               <INPUT TYPE="HIDDEN" NAME="action" VALUE="insertcomment" />
-               <INPUT TYPE="HIDDEN" NAME="id" VALUE="<?PHP echo $cm->id ?>" />
-               <INPUT TYPE="HIDDEN" NAME="aid" VALUE="<?PHP echo $_REQUEST['aid'] ?>" />
-               <CENTER>
-               <TABLE CELLPADDING=5 BORDER=1>
-               <?PHP
+               <form NAME="commentform" ACTION="assessments.php" METHOD="post">
+               <input TYPE="HIDDEN" NAME="action" VALUE="insertcomment" />
+               <input TYPE="HIDDEN" NAME="id" VALUE="<?php echo $cm->id ?>" />
+               <input TYPE="HIDDEN" NAME="aid" VALUE="<?php echo $_REQUEST['aid'] ?>" />
+               <center>
+               <table CELLPADDING=5 BORDER=1>
+               <?php
 
                // now get the comment
-               echo "<TR valign=top>\n";
+               echo "<tr valign=top>\n";
 
-               echo "  <TD align=right><P><B>". get_string("comment", "workshop").":</B></P></TD>\n";
+               echo "  <td align=right><p><b>". get_string("comment", "workshop").":</b></p></td>\n";
 
-               echo "  <TD>\n";
+               echo "  <td>\n";
 
                echo "          <textarea name=\"comments\" rows=5 cols=75 wrap=\"virtual\">\n";
                echo "</textarea>\n";
 
-               echo "  </TD></TR></TABLE>\n";
-               echo "<INPUT TYPE=submit VALUE=\"".get_string("savemycomment", "workshop")."\" />\n";
-               echo "</CENTER></FORM>\n";
-               echo "<P><CENTER><B>".get_string("assessment", "workshop"). "</B></CENTER>\n";
+               echo "  </td></tr></table>\n";
+               echo "<input TYPE=submit VALUE=\"".get_string("savemycomment", "workshop")."\" />\n";
+               echo "</center></form>\n";
+               echo "<p><center><b>".get_string("assessment", "workshop"). "</b></center>\n";
                workshop_print_assessment($workshop, $assessment);
                }
 
                        }
                //save time of agreement
                set_field("workshop_assessments", "timeagreed", $timenow, "id", $assessment->id);
-               echo "<CENTRE><B>".get_string("savedok", "workshop")."</B></CENTER><BR>\n";
+               echo "<centre><b>".get_string("savedok", "workshop")."</b></center><br>\n";
                        
                add_to_log($course->id, "workshop", "agree", "assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$assessment->id");
                print_continue("view.php?id=$cm->id");
                        error("Edit Comment: Submission not found");
                        }
                ?>
-               <FORM NAME="gradingform" ACTION="assessments.php" METHOD="post">
-               <INPUT TYPE="HIDDEN" NAME="action" VALUE="updatecomment" />
-               <INPUT TYPE="HIDDEN" NAME="id" VALUE="<?PHP echo $cm->id ?>" />
-               <INPUT TYPE="HIDDEN" NAME="cid" VALUE="<?PHP echo $_GET['cid'] ?>" />
-               <CENTER>
-               <TABLE CELLPADDING=5 BORDER=1>
-               <?PHP
+               <form NAME="gradingform" ACTION="assessments.php" METHOD="post">
+               <input TYPE="HIDDEN" NAME="action" VALUE="updatecomment" />
+               <input TYPE="HIDDEN" NAME="id" VALUE="<?php echo $cm->id ?>" />
+               <input TYPE="HIDDEN" NAME="cid" VALUE="<?php echo $_GET['cid'] ?>" />
+               <center>
+               <table CELLPADDING=5 BORDER=1>
+               <?php
 
                // now show the comment
-               echo "<TR valign=top>\n";
-               echo "  <TD align=right><P><B>". get_string("comment", "workshop").":</B></P></TD>\n";
-               echo "  <TD>\n";
+               echo "<tr valign=top>\n";
+               echo "  <td align=right><p><b>". get_string("comment", "workshop").":</b></p></td>\n";
+               echo "  <td>\n";
                echo "          <textarea name=\"comments\" rows=5 cols=75 wrap=\"virtual\">\n";
                if (isset($comment->comments)) {
                        echo $comment->comments;
                        }
                echo "      </textarea>\n";
-               echo "  </TD></TR></TABLE>\n";
-               echo "<INPUT TYPE=submit VALUE=\"".get_string("savemycomment", "workshop")."\" />\n";
-               echo "</CENTER></FORM>\n";
+               echo "  </td></tr></table>\n";
+               echo "<input TYPE=submit VALUE=\"".get_string("savemycomment", "workshop")."\" />\n";
+               echo "</center></form>\n";
                workshop_print_assessment($workshop, $assessment);
                }
 
                print_heading_with_help(get_string("editingassessmentelements", "workshop"), "elements", "workshop");
                ?>
                <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("workshop_elements", "workshopid", $workshop->id, "elementno ASC" )) {
                        case 0: // no grading
                                for ($i=0; $i<$workshop->nelements; $i++) {
                                        $iplus1 = $i+1;
-                                       echo "<TR valign=top>\n";
-                                       echo "  <TD ALIGN=RIGHT><P><B>". get_string("element","workshop")." $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 "<tr valign=top>\n";
+                                       echo "  <td ALIGN=RIGHT><p><b>". get_string("element","workshop")." $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";
                                }
                                break;
 
                                }
                                for ($i=0; $i<$workshop->nelements; $i++) {
                                        $iplus1 = $i+1;
-                                       echo "<TR valign=top>\n";
-                                       echo "  <TD ALIGN=RIGHT><P><B>". get_string("element","workshop")." $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", "workshop"). ":</B></P></TD>\n";
-                                       echo "<TD valign=\"top\">\n";
+                                       echo "<tr valign=top>\n";
+                                       echo "  <td ALIGN=RIGHT><p><b>". get_string("element","workshop")." $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", "workshop"). ":</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", "workshop").":</B></TD><TD>\n";
+                                       echo "</tr>\n";
+                                       echo "<tr valign=top><td ALIGN=RIGHT><b>".get_string("elementweight", "workshop").":</b></td><td>\n";
                                        workshop_choose_from_menu($WORKSHOP_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<$workshop->nelements; $i++) {
                                        $iplus1 = $i+1;
-                                       echo "<TR valign=top>\n";
-                                       echo "  <TD ALIGN=RIGHT><P><B>". get_string("element","workshop")." $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>\n";
+                                       echo "  <td ALIGN=RIGHT><p><b>". get_string("element","workshop")." $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";
                                        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", "workshop").":</B></TD><TD>\n";
+                                       echo "</tr>\n";
+                                       echo "<tr valign=top><td ALIGN=RIGHT><b>".get_string("elementweight", "workshop").":</b></td><td>\n";
                                        workshop_choose_from_menu($WORKSHOP_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","workshop")."</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","workshop")."</b></center>\n";
+                               echo "<center><table cellpadding=5 border=1><tr><td ALIGN=\"CENTER\">".
                                        get_string("numberofnegativeresponses", "workshop");
-                               echo "</TD><TD>". get_string("suggestedgrade", "workshop")."</TD></TR>\n";
+                               echo "</td><td>". get_string("suggestedgrade", "workshop")."</td></tr>\n";
                                for ($j = $workshop->grade; $j >= 0; $j--) {
                                        $numbers[$j] = $j;
                                }
                                for ($i=0; $i<=$workshop->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";
                                }
-                               echo "</TABLE></CENTER>\n";
+                               echo "</table></center>\n";
                                break;
                                
                        case 3: // criterion grading
                                }
                                for ($i=0; $i<$workshop->nelements; $i++) {
                                        $iplus1 = $i+1;
-                                       echo "<TR valign=top>\n";
-                                       echo "  <TD ALIGN=RIGHT><P><B>". get_string("criterion","workshop")." $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", "workshop").":</B></TD><TD>\n";
+                                       echo "<tr valign=top>\n";
+                                       echo "  <td ALIGN=RIGHT><p><b>". get_string("criterion","workshop")." $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", "workshop").":</b></td><td>\n";
                                        choose_from_menu($numbers, "maxscore[$i]", $elements[$i]->maxscore, "");
-                                       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<$workshop->nelements; $i++) {
                                        $iplus1 = $i+1;
-                                       echo "<TR valign=top>\n";
-                                       echo "  <TD ALIGN=RIGHT><P><B>". get_string("element","workshop")." $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", "workshop").":</B></TD><TD>\n";
+                                       echo "<tr valign=top>\n";
+                                       echo "  <td ALIGN=RIGHT><p><b>". get_string("element","workshop")." $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", "workshop").":</b></td><td>\n";
                                        workshop_choose_from_menu($WORKSHOP_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","workshop")." $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 "<tr valign=top>\n";
+                                               echo "  <td ALIGN=RIGHT><p><b>". get_string("grade","workshop")." $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 "<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;
                        }
                // close table and form
 
                ?>
-               </TABLE>
+               </table>
                <input type="submit" value="<?php  print_string("savechanges") ?>" />
                <input type="submit" name=cancel value="<?php  print_string("cancel") ?>" />
-               </CENTER>
-               </FORM>
-               <?PHP
+               </center>
+               </form>
+               <?php
        }
        
        
                }
                // get the teacher's assessment first
                if ($teachersassessment = workshop_get_submission_assessment($submission, $USER)) {
-                       echo "<P><CENTER><B>".get_string("teacherassessments", "workshop", $course->teacher)."</B></CENTER>\n";
+                       echo "<p><center><b>".get_string("teacherassessments", "workshop", $course->teacher)."</b></center>\n";
                        workshop_print_assessment($workshop, $teachersassessment);
                }
                // now the student's assessment (don't allow changes)
                $user = get_record("user", "id", $assessment->userid);
-               echo "<P><CENTER><B>".get_string("assessmentby", "workshop", $user->firstname." ".$user->lastname)."</B></CENTER>\n";
+               echo "<p><center><b>".get_string("assessmentby", "workshop", $user->firstname." ".$user->lastname)."</b></center>\n";
                workshop_print_assessment($workshop, $assessment);
                
                ?>
-               <FORM NAME="gradingform" ACTION="assessments.php" METHOD="post">
-               <INPUT TYPE="HIDDEN" NAME="action" VALUE="updategrading" />
-               <INPUT TYPE="HIDDEN" NAME="id" VALUE="<?PHP echo $cm->id ?>" />
-               <INPUT TYPE="HIDDEN" NAME="stype" VALUE="<?PHP echo $_GET['stype'] ?>" />
-               <INPUT TYPE="HIDDEN" NAME="aid" VALUE="<?PHP echo $_GET['aid'] ?>" />
-               <CENTER>
-               <TABLE CELLPADDING=5 BORDER=1>
-               <?PHP
+               <form NAME="gradingform" ACTION="assessments.php" METHOD="post">
+               <input TYPE="HIDDEN" NAME="action" VALUE="updategrading" />
+               <input TYPE="HIDDEN" NAME="id" VALUE="<?php echo $cm->id ?>" />
+               <input TYPE="HIDDEN" NAME="stype" VALUE="<?php echo $_GET['stype'] ?>" />
+               <input TYPE="HIDDEN" NAME="aid" VALUE="<?php echo $_GET['aid'] ?>" />
+               <center>
+               <table CELLPADDING=5 BORDER=1>
+               <?php
 
                // now get the teacher's comment
-               echo "<TR valign=top>\n";
-               echo "  <TD align=right><P><B>". get_string("teacherscomment", "workshop").":</B></P></TD>\n";
-               echo "  <TD>\n";
+               echo "<tr valign=top>\n";
+               echo "  <td align=right><p><b>". get_string("teacherscomment", "workshop").":</b></p></td>\n";
+               echo "  <td>\n";
                echo "          <textarea name=\"teachercomment\" rows=5 cols=75 wrap=\"virtual\">\n";
                if (isset($assessment->teachercomment)) {
                        echo $assessment->teachercomment;
                }
                echo "</textarea>\n";
-               echo "  </TD>\n";
-               echo "</TR>\n";
-               echo "<TR><TD ALIGN=RIGHT><B>".get_string("gradeforstudentsassessment", "workshop")."</TD><TD>\n";
+               echo "  </td>\n";
+               echo "</tr>\n";
+               echo "<tr><td ALIGN=RIGHT><b>".get_string("gradeforstudentsassessment", "workshop")."</td><td>\n";
                choose_from_menu($num, "gradinggrade", $assessment->gradinggrade, "");
-               echo "</TD></TR></TABLE>\n";
-               echo "<INPUT TYPE=submit VALUE=\"".get_string("savemygrading", "workshop")."\" />\n";
-               echo "</CENTER></FORM>\n";
+               echo "</td></tr></table>\n";
+               echo "<input TYPE=submit VALUE=\"".get_string("savemygrading", "workshop")."\" />\n";
+               echo "</center></form>\n";
        }
 
 
                                                $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;
                 } elseif ($grade > 100) {
                     $grade = 100;
                 }
-                               echo "<P><B>".get_string("weightederrorcount", "workshop", intval($error + 0.5))."</B>\n";
+                               echo "<p><b>".get_string("weightederrorcount", "workshop", intval($error + 0.5))."</b>\n";
                                break;
                        
                        case 3: // criteria grading
             set_field("workshop_comments", "timecreated", $timenow, "id", $comment->id);
             // ..and kick to comment into life (probably not needed but just in case)
             set_field("workshop_comments", "mailed", 0, "id", $comment->id);
-            echo "<CENTRE><B>".get_string("savedok", "workshop")."</B></CENTER><BR>\n";
+            echo "<centre><b>".get_string("savedok", "workshop")."</b></center><br>\n";
             
             add_to_log($course->id, "workshop", "comment", 
                     "assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$comment->id");
             set_field("workshop_assessments", "gradinggrade", $form->gradinggrade, "id", $assessment->id);
             set_field("workshop_assessments", "timegraded", $timenow, "id", $assessment->id);
             set_field("workshop_assessments", "mailed", 0, "id", $assessment->id);
-            echo "<CENTRE><B>".get_string("savedok", "workshop")."</B></CENTRE><BR>\n";
+            echo "<centre><b>".get_string("savedok", "workshop")."</b></centre><br>\n";
             
             add_to_log($course->id, "workshop", "grade", 
                  "assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$assessment->id", "$cm->id");
index 1d16030..19794b0 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //workshop mods
 
index 75bfcf6..8300fc4 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function workshop_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index a04437a..de19776 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP
+<?php
 
 function workshop_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index 708aa4c..039778c 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 function workshop_upgrade($oldversion) {
 // This function does anything necessary to upgrade
index e423c12..0028d45 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
     require("../../config.php");
     require("lib.php");
                     $submitted = userdate($submission->timecreated);
                 } 
                 else {
-                    $submitted = "<FONT COLOR=red>".userdate($submission->timecreated)."</FONT>";
+                    $submitted = "<font COLOR=red>".userdate($submission->timecreated)."</font>";
                 }
                 $due = userdate($workshop->deadline);
                 if (!$workshop->visible) {
                     //Show dimmed if the mod is hidden
-                    $link = "<A class=\"dimmed\" HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A><br />";
+                    $link = "<a class=\"dimmed\" HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</a><br />";
                 } else {
                     //Show normal if the mod is visible
-                    $link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A><br />";
+                    $link = "<a HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</a><br />";
                 }
                 if (isstudent($course->id)) {
                     $link .= " ($submission->title)"; // show students the title of their submission(s)
             $due = userdate($workshop->deadline);
             if (!$workshop->visible) {
                 //Show dimmed if the mod is hidden
-                $link = "<A class=\"dimmed\" HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A>";
+                $link = "<a class=\"dimmed\" HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</a>";
             } else {
                 //Show normal if the mod is visible
-                $link = "<A HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</A>";
+                $link = "<a HREF=\"view.php?id=$workshop->coursemodule\">$workshop->name</a>";
             }
             if ($course->format == "weeks" or $course->format == "topics") {
                     $table->data[] = array ($workshop->section, $link, $info, $submitted, $due);
index df2a628..c6079ce 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
 
 // workshop constants and standard Moodle functions plus the workshop functions 
 // called by the standard functions
@@ -202,14 +202,14 @@ function workshop_cron () {
             $posttext .= "   $CFG->wwwroot/mod/workshop/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/workshop/index.php?id=$course->id\">$strworkshops</A> ->".
-                    "<A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</A></FONT></P>";
-                $posthtml .= "<HR><FONT FACE=sans-serif>";
-                $posthtml .= "<P>$msg</P>";
-                $posthtml .= "<P>".get_string("mail3", "workshop").
-                    " <A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->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/workshop/index.php?id=$course->id\">$strworkshops</a> ->".
+                    "<a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a></font></p>";
+                $posthtml .= "<hr><font FACE=sans-serif>";
+                $posthtml .= "<p>$msg</p>";
+                $posthtml .= "<p>".get_string("mail3", "workshop").
+                    " <a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a>.</p></font><hr>";
             } else {
                 $posthtml = "";
             }
@@ -291,14 +291,14 @@ function workshop_cron () {
             $posttext .= "   $CFG->wwwroot/mod/workshop/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/workshop/index.php?id=$course->id\">$strworkshops</A> ->".
-                  "<A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</A></FONT></P>";
-                $posthtml .= "<HR><FONT FACE=sans-serif>";
-                $posthtml .= "<P>$msg</P>";
-                $posthtml .= "<P>".get_string("mail3", "workshop").
-                  " <A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->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/workshop/index.php?id=$course->id\">$strworkshops</a> ->".
+                  "<a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a></font></p>";
+                $posthtml .= "<hr><font FACE=sans-serif>";
+                $posthtml .= "<p>$msg</p>";
+                $posthtml .= "<p>".get_string("mail3", "workshop").
+                  " <a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a>.</p></font><hr>";
             } 
             else {
               $posthtml = "";
@@ -391,15 +391,15 @@ function workshop_cron () {
                 $posttext .= "   $CFG->wwwroot/mod/workshop/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/workshop/index.php?id=$course->id\">$strworkshops</A> ->".
-                    "<A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</A></FONT></P>";
-                    $posthtml .= "<HR><FONT FACE=sans-serif>";
-                    $posthtml .= "<P>$msg</P>";
-                    $posthtml .= "<P>".get_string("mail3", "workshop").
-                        " <A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->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/workshop/index.php?id=$course->id\">$strworkshops</a> ->".
+                    "<a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a></font></p>";
+                    $posthtml .= "<hr><font FACE=sans-serif>";
+                    $posthtml .= "<p>$msg</p>";
+                    $posthtml .= "<p>".get_string("mail3", "workshop").
+                        " <a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a>
+                        .</p></font><hr>";
                     } 
                 else {
                     $posthtml = "";
@@ -438,14 +438,14 @@ function workshop_cron () {
                 $posttext .= "   $CFG->wwwroot/mod/workshop/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/workshop/index.php?id=$course->id\">$strworkshops</A> ->".
-                    "<A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</A></FONT></P>";
-                    $posthtml .= "<HR><FONT FACE=sans-serif>";
-                    $posthtml .= "<P>$msg</P>";
-                    $posthtml .= "<P>".get_string("mail3", "workshop").
-                        " <A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->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/workshop/index.php?id=$course->id\">$strworkshops</a> ->".
+                    "<a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a></font></p>";
+                    $posthtml .= "<hr><font FACE=sans-serif>";
+                    $posthtml .= "<p>$msg</p>";
+                    $posthtml .= "<p>".get_string("mail3", "workshop").
+                        " <a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a>.</p></font><hr>";
                     } 
                 else {
                     $posthtml = "";
@@ -534,14 +534,14 @@ function workshop_cron () {
             $posttext .= "   $CFG->wwwroot/mod/workshop/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/workshop/index.php?id=$course->id\">$strworkshops</A> ->".
-                    "<A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</A></FONT></P>";
-                $posthtml .= "<HR><FONT FACE=sans-serif>";
-                $posthtml .= "<P>$msg</P>";
-                $posthtml .= "<P>".get_string("mail3", "workshop").
-                    " <A HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->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/workshop/index.php?id=$course->id\">$strworkshops</a> ->".
+                    "<a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a></font></p>";
+                $posthtml .= "<hr><font FACE=sans-serif>";
+                $posthtml .= "<p>$msg</p>";
+                $posthtml .= "<p>".get_string("mail3", "workshop").
+                    " <a HREF=\"$CFG->wwwroot/mod/workshop/view.php?id=$cm->id\">$workshop->name</a>.</p></font><hr>";
             } else {
               $posthtml = "";
             }
index bfdeadf..9739645 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP  // $Id$
+<?php  // $Id$
 
 /// Library of extra functions and module workshop 
 
@@ -101,31 +101,31 @@ function workshop_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;
@@ -711,8 +711,8 @@ function workshop_list_all_submissions($workshop, $user) {
                     AND userid = $user->id")) {
                 $curtime = time();
                 if (($curtime - $assessment->timecreated) > $CFG->maxeditingtime) {
-                    $action = "<A HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">"
-                        .get_string("view", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">"
+                        .get_string("view", "workshop")."</a>";
                     // has teacher graded user's assessment?
                     if ($assessment->timegraded) {
                         if (($curtime - $assessment->timegraded) > $CFG->maxeditingtime) {
@@ -721,13 +721,13 @@ function workshop_list_all_submissions($workshop, $user) {
                         }
                     }
                 else { // there's still time left to edit...
-                    $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                        get_string("edit", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("edit", "workshop")."</a>";
                     }
                 }
             else { // user has not graded this submission
-                $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                    get_string("assess", "workshop")."</A>";
+                $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                    get_string("assess", "workshop")."</a>";
                 }
             $table->data[] = array(workshop_print_submission_title($workshop, $submission), $action, 
                                 $comment);
@@ -735,8 +735,8 @@ function workshop_list_all_submissions($workshop, $user) {
         print_table($table);
         }
 
-    echo "<CENTER><P><B>".get_string("studentsubmissions", "workshop", $course->student).
-        "</B></CENTER><BR>\n";
+    echo "<center><p><b>".get_string("studentsubmissions", "workshop", $course->student).
+        "</b></center><br>\n";
     unset($table);
     $table->head = array (get_string("title", "workshop"), get_string("action", "workshop"), 
                         get_string("comment", "workshop"));
@@ -758,8 +758,8 @@ function workshop_list_all_submissions($workshop, $user) {
                     AND userid = $user->id")) {
                 $curtime = time();
                 if (($curtime - $assessment->timecreated) > $CFG->maxeditingtime) {
-                    $action = "<A HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">".
-                        get_string("view", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">".
+                        get_string("view", "workshop")."</a>";
                     // has teacher graded on user's assessment?
                     if ($assessment->timegraded) {
                         if (($curtime - $assessment->timegraded) > $CFG->maxeditingtime) {
@@ -768,18 +768,18 @@ function workshop_list_all_submissions($workshop, $user) {
                         }
                     $otherassessments = workshop_get_assessments($submission);
                     if (count($otherassessments) > 1) {
-                        $comment .= "<A HREF=\"assessments.php?action=viewallassessments&id=$cm->id&sid=$submission->id\">".
-                        get_string("viewotherassessments", "workshop")."</A>";
+                        $comment .= "<a HREF=\"assessments.php?action=viewallassessments&id=$cm->id&sid=$submission->id\">".
+                        get_string("viewotherassessments", "workshop")."</a>";
                         }
                     }
                 else { // there's still time left to edit...
-                    $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                        get_string("edit", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("edit", "workshop")."</a>";
                     }
                 }
             else { // user has not assessed this submission
-                $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                    get_string("assess", "workshop")."</A>";
+                $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                    get_string("assess", "workshop")."</a>";
                 }
             $table->data[] = array(workshop_print_submission_title($workshop, $submission), $action, 
                                 $comment);
@@ -809,12 +809,12 @@ function workshop_list_all_ungraded_assessments($workshop) {
         foreach ($assessments as $assessment) {
             if (!isteacher($workshop->course, $assessment->userid)) {
                 if (($timenow - $assessment->timegraded) < $CFG->maxeditingtime) {
-                    $action = "<A HREF=\"assessments.php?action=gradeassessment&id=$cm->id&aid=$assessment->id\">".
-                        get_string("edit", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=gradeassessment&id=$cm->id&aid=$assessment->id\">".
+                        get_string("edit", "workshop")."</a>";
                     }
                 else {
-                    $action = "<A HREF=\"assessments.php?action=gradeassessment&id=$cm->id&aid=$assessment->id\">".
-                        get_string("gradeassessment", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=gradeassessment&id=$cm->id&aid=$assessment->id\">".
+                        get_string("gradeassessment", "workshop")."</a>";
                     }
                 $submission = get_record("workshop_submissions", "id", $assessment->submissionid);
                 $table->data[] = array(workshop_print_submission_title($workshop, $submission), 
@@ -859,21 +859,21 @@ function workshop_list_assessed_submissions($workshop, $user) {
             if ($assessment->timecreated < ($timenow - $CFG->maxeditingtime)) { // it's cold
                 if ($workshop->agreeassessments) {
                     if (!$assessment->timeagreed) {
-                        $action = "<A HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id&".
+                        $action = "<a HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id&".
                             "allowcomments=$workshop->agreeassessments\">".
-                            get_string("view", "workshop")."</A>";
-                        $action .= " | <A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                            get_string("reassess", "workshop")."</A>";
+                            get_string("view", "workshop")."</a>";
+                        $action .= " | <a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                            get_string("reassess", "workshop")."</a>";
                     } else {
                         $action = "";
                     }
                 } else {
                     if ($assessment->timegraded) {
-                        $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                            get_string("reassess", "workshop")."</A>";
+                        $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                            get_string("reassess", "workshop")."</a>";
                     } else {
-                        $action = "<A HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">".
-                            get_string("view", "workshop")."</A>";
+                        $action = "<a HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">".
+                            get_string("view", "workshop")."</a>";
                     }
                 }          
                 if ($assessment->timecreated < $timenow) { // only show the date if it's in the past (future dates cause confusion
@@ -910,7 +910,7 @@ function workshop_list_assessed_submissions($workshop, $user) {
         print_table($table);
     }
     else {
-        echo "<CENTER>".get_string("noassessmentsdone", "workshop")."</CENTER>\n";
+        echo "<center>".get_string("noassessmentsdone", "workshop")."</center>\n";
     }
 }
 
@@ -943,9 +943,9 @@ function workshop_list_peer_assessments($workshop, $user) {
                             ($assessment->userid != $user->id)) { 
                         $timenow = time();
                         if (($timenow - $assessment->timecreated) > $CFG->maxeditingtime) {
-                            $action = "<A HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id&".
+                            $action = "<a HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id&".
                                 "allowcomments=$workshop->agreeassessments\">".
-                                get_string("view", "workshop")."</A>";
+                                get_string("view", "workshop")."</a>";
                             $comment = get_string("assessedon", "workshop", userdate($assessment->timecreated));
                             $grade = number_format($assessment->grade * $workshop->grade / 100, 1);
                             $comment .= "; ".get_string("gradeforsubmission", "workshop").
@@ -981,7 +981,7 @@ function workshop_list_peer_assessments($workshop, $user) {
         print_table($table);
         }
     else {
-        echo "<CENTER>".get_string("noassessmentsdone", "workshop")."</CENTER>\n";
+        echo "<center>".get_string("noassessmentsdone", "workshop")."</center>\n";
         }
     }
 
@@ -1014,15 +1014,15 @@ function workshop_list_self_assessments($workshop, $user) {
                 if ($submission->userid == $user->id) { // this will always be true
                     $comment = get_string("ownwork", "workshop"); // just in case they don't know!
                     }
-                $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                    get_string("assess", "workshop")."</A>";
+                $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                    get_string("assess", "workshop")."</a>";
                 $table->data[] = array(workshop_print_submission_title($workshop, $submission), $action, $comment);
                 }
             }
         }
     if (isset($table->data)) {
-        echo "<P><CENTER><B>".get_string("pleaseassessyoursubmissions", "workshop", $course->student).
-            "</B></CENTER><BR>\n";
+        echo "<p><center><b>".get_string("pleaseassessyoursubmissions", "workshop", $course->student).
+            "</b></center><br>\n";
         print_table($table);
         }
     }
@@ -1134,13 +1134,13 @@ function workshop_list_student_submissions($workshop, $user) {
                 // just assessed but still editable [warm]; and "static" (may or may not have been graded by teacher, that
                 // is shown in the comment) [cold] 
                 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", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("assess", "workshop")."</a>";
                     $table->data[] = array(workshop_print_submission_title($workshop, $submission), $action, $comment);
                     }
                 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", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("edit", "workshop")."</a>";
                     $table->data[] = array(workshop_print_submission_title($workshop, $submission), $action, $comment);
                     }
                 }
@@ -1148,12 +1148,12 @@ function workshop_list_student_submissions($workshop, $user) {
         }
     
     if (isset($table->data)) {
-        echo "<P><CENTER><B>".get_string("pleaseassessthesestudentsubmissions", "workshop", $course->student).
-            "</B></CENTER><BR>\n";
+        echo "<p><center><b>".get_string("pleaseassessthesestudentsubmissions", "workshop", $course->student).
+            "</b></center><br>\n";
         print_table($table);
         }
     else {
-        echo "<P><CENTER><B>".get_string("nosubmissionsavailableforassessment", "workshop")."</B></CENTER><BR>\n";
+        echo "<p><center><b>".get_string("nosubmissionsavailableforassessment", "workshop")."</b></center><br>\n";
         }
     }
 
@@ -1403,8 +1403,8 @@ function workshop_list_teacher_assessments($workshop, $user) {
             if ($assessments = workshop_get_assessments($submission)) {
                 foreach ($assessments as $assessment) {
                     if (isteacher($workshop->course, $assessment->userid)) { // assessments by teachers only
-                        $action = "<A HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">".
-                            get_string("view", "workshop")."</A>";
+                        $action = "<a HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">".
+                            get_string("view", "workshop")."</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", "workshop", $course->teacher);
@@ -1422,7 +1422,7 @@ function workshop_list_teacher_assessments($workshop, $user) {
         print_table($table);
         }
     else {
-        echo "<CENTER>".get_string("noassessmentsdone", "workshop")."</CENTER>\n";
+        echo "<center>".get_string("noassessmentsdone", "workshop")."</center>\n";
         }
     }
 
@@ -1497,17 +1497,17 @@ function workshop_list_teacher_submissions($workshop, $user) {
                 // user assessment has two states: record created but not assessed (date created in the future); 
                 // assessed but always available for re-assessment 
                 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", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("assess", "workshop")."</a>";
                 }
                 elseif ($assessment->timegraded) { 
                     // allow student to improve on their assessment once it's been graded
-                    $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                        get_string("reassess", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("reassess", "workshop")."</a>";
                 } else {
                     // allow student  just to see their assessment if it hasn't been graded
-                    $action = "<A HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">".
-                        get_string("view", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id\">".
+                        get_string("view", "workshop")."</a>";
                 }
                 // see if the assessment is graded
                 if ($assessment->timegraded) {
@@ -1568,16 +1568,16 @@ function workshop_list_unassessed_student_submissions($workshop, $user) {
                 if (($timenow - $assessment->timecreated < $CFG->maxeditingtime)) {
                     // last chance salon
                     $submissionowner = get_record("user", "id", $submission->userid);
-                    $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                        get_string("edit", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("edit", "workshop")."</a>";
                     $table->data[] = array(workshop_print_submission_title($workshop, $submission), 
                         fullname($submissionowner), $action, $comment);
                     }
                 }
             else { // no assessment
                 $submissionowner = get_record("user", "id", $submission->userid);
-                $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                    get_string("assess", "workshop")."</A>";
+                $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                    get_string("assess", "workshop")."</a>";
                 $table->data[] = array(workshop_print_submission_title($workshop, $submission), 
                     fullname($submissionowner), $action, $comment);
                 }
@@ -1614,14 +1614,14 @@ function workshop_list_unassessed_teacher_submissions($workshop, $user) {
                 $timenow = time();
                 if (($timenow - $assessment->timecreated < $CFG->maxeditingtime)) {
                     // last chance salon
-                    $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                        get_string("edit", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                        get_string("edit", "workshop")."</a>";
                     $table->data[] = array(workshop_print_submission_title($workshop, $submission), $action, $comment);
                     }
                 }
             else { // no assessment
-                $action = "<A HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
-                    get_string("assess", "workshop")."</A>";
+                $action = "<a HREF=\"assessments.php?action=assesssubmission&id=$cm->id&sid=$submission->id\">".
+                    get_string("assess", "workshop")."</a>";
                 $table->data[] = array(workshop_print_submission_title($workshop, $submission), $action, $comment);
                 }
             }
@@ -1661,12 +1661,12 @@ function workshop_list_ungraded_assessments($workshop, $stype) {
         foreach ($assessments as $assessment) {
             if (!isteacher($workshop->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", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=gradeassessment&id=$cm->id&stype=$stype&aid=$assessment->id\">".
+                        get_string("edit", "workshop")."</a>";
                     }
                 else {
-                    $action = "<A HREF=\"assessments.php?action=gradeassessment&id=$cm->id&stype=$stype&aid=$assessment->id\">".
-                        get_string("grade", "workshop")."</A>";
+                    $action = "<a HREF=\"assessments.php?action=gradeassessment&id=$cm->id&stype=$stype&aid=$assessment->id\">".
+                        get_string("grade", "workshop")."</a>";
                     }
                 $submission = get_record("workshop_submissions", "id", $assessment->submissionid);
                 $submissionowner = get_record("user", "id", $submission->userid);
@@ -1749,13 +1749,13 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
             $showgrades = true;
             }
             
-        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 (!$submission = get_record("workshop_submissions", "id", $assessment->submissionid)) {
             error ("Workshop_print_assessment: Submission record not found");
             }
         echo workshop_print_submission_title($workshop, $submission);
-        echo "</TD></TR></TABLE><BR CLEAR=ALL>\n";
+        echo "</td></tr></table><br CLEAR=ALL>\n";
     
         // see if this is a pre-filled assessment for a re-submission...
         if ($assessment->resubmission) {
@@ -1765,15 +1765,15 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
         
         // print agreement time if the workshop requires peer agreement
         if ($workshop->agreeassessments and $assessment->timeagreed) {
-            echo "<P>".get_string("assessmentwasagreedon", "workshop", userdate($assessment->timeagreed));
+            echo "<p>".get_string("assessmentwasagreedon", "workshop", userdate($assessment->timeagreed));
             }
 
         // first print any comments on this assessment
         if ($comments = workshop_get_comments($assessment)) {
-            echo "<TABLE CELLPADDING=2 BORDER=1>\n";
+            echo "<table CELLPADDING=2 BORDER=1>\n";
             $firstcomment = TRUE;
             foreach ($comments as $comment) {
-                echo "<TR valign=top><TD BGCOLOR=\"$THEME->cellheading2\"><P><B>".
+                echo "<tr valign=top><td BGCOLOR=\"$THEME->cellheading2\"><p><b>".
                     get_string("commentby","workshop")." ";
                 if (isteacher($workshop->course, $comment->userid)) {
                     echo $course->teacher;
@@ -1784,43 +1784,43 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                 else {
                     print_string("authorofsubmission", "workshop");
                     }
-                echo " ".get_string("on", "workshop", userdate($comment->timecreated))."</B></P></TD></TR><TR><TD>\n";
+                echo " ".get_string("on", "workshop", userdate($comment->timecreated))."</b></p></td></tr><tr><td>\n";
                 echo text_to_html($comment->comments)."&nbsp;\n";
                 // add the links if needed
                 if ($firstcomment and $showcommentlinks and !$assessment->timeagreed) {
                     // show links depending on who doing the viewing
                     $firstcomment = FALSE;
                     if (isteacher($workshop->course, $USER->id) and ($comment->userid != $USER->id)) {
-                        echo "<P ALIGN=RIGHT><A HREF=\"assessments.php?action=addcomment&id=$cm->id&aid=$assessment->id\">".
-                            get_string("reply", "workshop")."</A>\n";
+                        echo "<p ALIGN=RIGHT><a HREF=\"assessments.php?action=addcomment&id=$cm->id&aid=$assessment->id\">".
+                            get_string("reply", "workshop")."</a>\n";
                         }
                     elseif (($comment->userid ==$USER->id) and (($timenow - $comment->timecreated) < $CFG->maxeditingtime)) {
-                        echo "<P ALIGN=RIGHT><A HREF=\"assessments.php?action=editcomment&id=$cm->id&cid=$comment->id\">".
-                            get_string("edit", "workshop")."</A>\n";
+                        echo "<p ALIGN=RIGHT><a HREF=\"assessments.php?action=editcomment&id=$cm->id&cid=$comment->id\">".
+                            get_string("edit", "workshop")."</a>\n";
                         if ($USER->id == $submission->userid) {
-                            echo " | <A HREF=\"assessments.php?action=agreeassessment&id=$cm->id&aid=$assessment->id\">".
-                                get_string("agreetothisassessment", "workshop")."</A>\n";
+                            echo " | <a HREF=\"assessments.php?action=agreeassessment&id=$cm->id&aid=$assessment->id\">".
+                                get_string("agreetothisassessment", "workshop")."</a>\n";
                             }
                         }
                     elseif (($comment->userid != $USER->id) and (($USER->id == $assessment->userid) or 
                         ($USER->id == $submission->userid))) {
-                        echo "<P ALIGN=RIGHT><A HREF=\"assessments.php?action=addcomment&id=$cm->id&aid=$assessment->id\">".
-                            get_string("reply", "workshop")."</A>\n";
+                        echo "<p ALIGN=RIGHT><a HREF=\"assessments.php?action=addcomment&id=$cm->id&aid=$assessment->id\">".
+                            get_string("reply", "workshop")."</a>\n";
                         if ($USER->id == $submission->userid) {
-                            echo " | <A HREF=\"assessments.php?action=agreeassessment&id=$cm->id&aid=$assessment->id\">".
-                                get_string("agreetothisassessment", "workshop")."</A>\n";
+                            echo " | <a HREF=\"assessments.php?action=agreeassessment&id=$cm->id&aid=$assessment->id\">".
+                                get_string("agreetothisassessment", "workshop")."</a>\n";
                             }
                         }
                     }
-                echo "</TD></TR>\n";
+                echo "</td></tr>\n";
                 }
-            echo "</TABLE>\n";
+            echo "</table>\n";
             }
             
         // only show the grade if grading strategy > 0 and the grade is positive
         if ($showgrades and $workshop->gradingstrategy and $assessment->grade >= 0) { 
-            echo "<CENTER><B>".get_string("thegradeis", "workshop").": ".number_format($assessment->grade, 2)." (".
-                get_string("maximumgrade")." ".number_format($workshop->grade, 0).")</B></CENTER><BR CLEAR=ALL>\n";
+            echo "<center><b>".get_string("thegradeis", "workshop").": ".number_format($assessment->grade, 2)." (".
+                get_string("maximumgrade")." ".number_format($workshop->grade, 0).")</b></center><br CLEAR=ALL>\n";
             }
         }
         
@@ -1875,13 +1875,13 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
             // 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","workshop")." $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","workshop")." $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";
                     if (isset($grades[$i]->feedback)) {
@@ -1892,11 +1892,11 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                 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;
             
@@ -1904,16 +1904,16 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
             // 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","workshop")." $iplus1:</B></P></TD>\n";
-                echo "  <TD>".text_to_html($elements[$i]->description);
-                echo "<P align=right><FONT size=1>".get_string("weight", "workshop").": ".
-                    number_format($WORKSHOP_EWEIGHTS[$elements[$i]->weight], 2)."</FONT>\n";
-                echo "</TD></TR>\n";
+                echo "<tr valign=top>\n";
+                echo "  <td align=right><p><b>". get_string("element","workshop")." $iplus1:</b></p></td>\n";
+                echo "  <td>".text_to_html($elements[$i]->description);
+                echo "<p align=right><font size=1>".get_string("weight", "workshop").": ".
+                    number_format($WORKSHOP_EWEIGHTS[$elements[$i]->weight], 2)."</font>\n";
+                echo "</td></tr>\n";
                 if ($showgrades) {
-                    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("grade"). ":</b></p></td>\n";
+                    echo "  <td valign=\"top\">\n";
                     
                     // get the appropriate scale
                     $scalenumber=$elements[$i]->scale;
@@ -1921,7 +1921,7 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                     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)) { 
@@ -1935,13 +1935,13 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                                             }
                                         }
                                     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);
@@ -1957,12 +1957,12 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                                 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";
                     if (isset($grades[$i]->feedback)) {
@@ -1973,11 +1973,11 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                 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;
             
@@ -1986,22 +1986,22 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
             $negativecount = 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","workshop")." $iplus1:</B></P></TD>\n";
-                echo "  <TD>".text_to_html($elements[$i]->description);
-                echo "<P align=right><FONT size=1>".get_string("weight", "workshop").": ".
-                    number_format($WORKSHOP_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","workshop")." $iplus1:</b></p></td>\n";
+                echo "  <td>".text_to_html($elements[$i]->description);
+                echo "<p align=right><font size=1>".get_string("weight", "workshop").": ".
+                    number_format($WORKSHOP_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) $WORKSHOP_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)) { 
@@ -2015,13 +2015,13 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                                         }
                                     }
                                 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);
@@ -2037,11 +2037,11 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                             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";
                     if (isset($grades[$i]->feedback)) {
@@ -2054,39 +2054,39 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                         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)) {
                     $negativecount++;
                     }
                 }
             // print the number of negative elements
-            // echo "<TR><TD>".get_string("numberofnegativeitems", "workshop")."</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", "workshop")."</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","workshop")."</B></CENTER>\n";
-            echo "<CENTER><TABLE cellpadding=5 border=1><TR><TD ALIGN=\"CENTER\">".
+            echo "<p><center><b>".get_string("gradetable","workshop")."</b></center>\n";
+            echo "<center><table cellpadding=5 border=1><tr><td ALIGN=\"CENTER\">".
                 get_string("numberofnegativeresponses", "workshop");
-            echo "</TD><TD>". get_string("suggestedgrade", "workshop")."</TD></TR>\n";
+            echo "</td><td>". get_string("suggestedgrade", "workshop")."</td></tr>\n";
             for ($j = 100; $j >= 0; $j--) {
                 $numbers[$j] = $j;
                 }
             for ($i=0; $i<=$workshop->nelements; $i++) {
                 if ($i == $negativecount) {
-                    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><b>".get_string("optionaladjustment", 
-                    "workshop")."</b></TD><TD>\n";
+            echo "</table></center>\n";
+            echo "<p><center><table cellpadding=5 border=1><tr><td><b>".get_string("optionaladjustment", 
+                    "workshop")."</b></td><td>\n";
             unset($numbers);
             for ($j = 20; $j >= -20; $j--) {
                 $numbers[$j] = $j;
@@ -2097,15 +2097,15 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
             else {
                 choose_from_menu($numbers, "grade[$workshop->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","workshop")."</B></TD>\n";
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>".get_string("select", "workshop")."</B></TD>\n";
-            echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>".get_string("suggestedgrade", "workshop")."</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","workshop")."</b></td>\n";
+            echo "  <td BGCOLOR=\"$THEME->cellheading2\"><b>".get_string("select", "workshop")."</b></td>\n";
+            echo "  <td BGCOLOR=\"$THEME->cellheading2\"><b>".get_string("suggestedgrade", "workshop")."</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;
@@ -2116,19 +2116,19 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
             // 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><b>".get_string("optionaladjustment", 
-                    "workshop")."</b></TD><TD>\n";
+            echo "</table></center>\n";
+            echo "<p><center><table cellpadding=5 border=1><tr><td><b>".get_string("optionaladjustment", 
+                    "workshop")."</b></td><td>\n";
             unset($numbers);
             for ($j = 20; $j >= -20; $j--) {
                 $numbers[$j] = $j;
@@ -2139,21 +2139,21 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
             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", "workshop")." $iplus1:</b></TD>\n";
-                echo "<TD>".text_to_html($elements[$i]->description).
-                     "<P align=\"right\"><font size=\"1\">".get_string("weight", "workshop").": ".
-                    number_format($WORKSHOP_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", "workshop")."</B></TD>\n";
-                echo "  <TD BGCOLOR=\"$THEME->cellheading2\"><B>". get_string("criterion","workshop")."</B></TD></tr>\n";
+                echo "<tr valign=\"top\">\n";
+                echo "<td align=\"right\"><b>".get_string("element", "workshop")." $iplus1:</b></td>\n";
+                echo "<td>".text_to_html($elements[$i]->description).
+                     "<p align=\"right\"><font size=\"1\">".get_string("weight", "workshop").": ".
+                    number_format($WORKSHOP_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", "workshop")."</b></td>\n";
+                echo "  <td BGCOLOR=\"$THEME->cellheading2\"><b>". get_string("criterion","workshop")."</b></td></tr>\n";
                 if (isset($grades[$i])) {
                     $selection = $grades[$i]->grade;
                     } else {
@@ -2170,17 +2170,17 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                         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";
                         if (isset($grades[$i]->feedback)) {
@@ -2194,7 +2194,7 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
                     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";
                     }
                 }
@@ -2207,10 +2207,10 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
         case 0:
         case 1:
         case 4 : // no grading, accumulative and rubic
-            echo "  <td align=\"right\"><P><B>". get_string("generalcomment", "workshop").":</B></P></TD>\n";
+            echo "  <td align=\"right\"><p><b>". get_string("generalcomment", "workshop").":</b></p></td>\n";
             break; 
         default : 
-            echo "  <td align=\"right\"><P><B>". get_string("reasonforadjustment", "workshop").":</B></P></TD>\n";
+            echo "  <td align=\"right\"><p><b>". get_string("reasonforadjustment", "workshop").":</b></p></td>\n";
         }
     echo "  <td>\n";
     if ($allowchanges) {
@@ -2233,7 +2233,7 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
     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";
     
     $timenow = time();
@@ -2351,7 +2351,7 @@ function workshop_print_assignment_info($workshop) {
 function workshop_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)";
@@ -2367,30 +2367,30 @@ function workshop_print_feedback($course, $submission) {
         error("Weird workshop 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 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>";
 }
 
 
@@ -2571,8 +2571,8 @@ function workshop_print_submission_title($workshop, $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$submission->id\" 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$submission->id\" HREF=\"$CFG->wwwroot/$ffurl\">$submission->title</a>";
         }
     }
 }
@@ -2666,7 +2666,7 @@ function workshop_print_tabbed_heading($tabs) {
 function workshop_print_time_to_deadline($time) {
     if ($time < 0) {
         $timetext = get_string("afterdeadline", "workshop", format_time($time));
-        return " (<FONT COLOR=RED>$timetext</FONT>)";
+        return " (<font COLOR=RED>$timetext</font>)";
     } else {
         $timetext = get_string("beforedeadline", "workshop", format_time($time));
         return " ($timetext)";
@@ -2685,15 +2685,15 @@ function workshop_print_upload_form($workshop) {
         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=\"$workshop->maxbytes\" />";
-    echo " <INPUT TYPE=hidden NAME=id VALUE=\"$cm->id\" />";
-    echo "<b>".get_string("title", "workshop")."</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 "</FORM>";
-    echo "</DIV>";
+    echo "<div ALIGN=CENTER>";
+    echo "<form ENCTYPE=\"multipart/form-data\" METHOD=\"POST\" ACTION=upload.php>";
+    echo " <input TYPE=hidden NAME=MAX_FILE_SIZE value=\"$workshop->maxbytes\" />";
+    echo " <input TYPE=hidden NAME=id VALUE=\"$cm->id\" />";
+    echo "<b>".get_string("title", "workshop")."</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 "</form>";
+    echo "</div>";
 }
 
 
index 64d2f1c..4e40352 100644 (file)
@@ -66,7 +66,7 @@
 <form name="form" method="post" action="mod.php">
 <table cellpadding=5>
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("title", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("title", "workshop") ?>:</b></p></td>
     <td>
         <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("gradeforassessments", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("gradeforassessments", "workshop") ?>:</b></p></td>
     <td>
         <?php
         for ($i=100; $i>=0; $i--) {
 </tr>
 
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("gradeforsubmission", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("gradeforsubmission", "workshop") ?>:</b></p></td>
     <td>
         <?php
         choose_from_menu($grades, "grade", "$form->grade", "");
 </tr>
 
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("gradingstrategy", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("gradingstrategy", "workshop") ?>:</b></p></td>
     <td>
-    <?PHP
+    <?php
           choose_from_menu($WORKSHOP_TYPE, "gradingstrategy", $form->gradingstrategy, "");
        helpbutton("gradingstrategy", get_string("gradingstrategy", "workshop"), "workshop");
     ?>
 </tr>
 
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("numberofassessmentelements", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("numberofassessmentelements", "workshop") ?>:</b></p></td>
     <td valign="middle">
         <?php
         for ($i=20; $i>=0; $i--) {
 </tr>
 
 <tr>
-    <td align=right><P><B><?php  print_string("allowresubmit", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("allowresubmit", "workshop") ?>:</b></p></td>
     <td>
-    <?PHP 
+    <?php 
         $options[0] = get_string("no"); $options[1] = get_string("yes");
         choose_from_menu($options, "resubmit", $form->resubmit, "");
         helpbutton("resubmit", get_string("allowresubmit", "workshop"), "workshop");
 </tr>
 
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("numberofassessmentsofteachersexamples", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("numberofassessmentsofteachersexamples", "workshop") ?>:</b></p></td>
     <td>
-               <?PHP
+               <?php
         unset($numbers);
                for ($i=20; $i>=0; $i--) {
                        $numbers[$i] = $i;
 </tr>
 
 <tr>
-    <td align=right><P><B><?php print_string("comparisonofassessments", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php print_string("comparisonofassessments", "workshop") ?>:</b></p></td>
     <td>
         <?php
                // set up comparison names
 </tr>
 
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("numberofassessmentsofstudentsubmissions", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("numberofassessmentsofstudentsubmissions", "workshop") ?>:</b></p></td>
     <td>
-               <?PHP
+               <?php
         unset($numbers);
                for ($i=20; $i>=0; $i--) {
                        $numbers[$i] = $i;
 </tr>
 
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("weightforteacherassessments", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("weightforteacherassessments", "workshop") ?>:</b></p></td>
     <td>
-               <?PHP
+               <?php
         unset($numbers);
                for ($i=10; $i>=0; $i--) {
                        $numbers[$i] = $i;
 </tr>
 
 <tr>
-    <td align=right><P><B><?php  print_string("selfassessment", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("selfassessment", "workshop") ?>:</b></p></td>
     <td>
-    <?PHP 
+    <?php 
         $options[0] = get_string("no"); $options[1] = get_string("yes");
         choose_from_menu($options, "includeself", $form->includeself, "");
         helpbutton("selfassessment", get_string("selfassessment", "workshop"), "workshop");
 </tr>
 
 <tr>
-    <td align=right><P><B><?php  print_string("assessmentsmustbeagreed", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("assessmentsmustbeagreed", "workshop") ?>:</b></p></td>
     <td>
-    <?PHP 
+    <?php 
         choose_from_menu($options, "agreeassessments", $form->agreeassessments, "");
         helpbutton("agreeassessments", get_string("assessmentsmustbeagreed", "workshop"), "workshop");
     ?>
 </tr>
 
 <tr>
-    <td align=right><P><B><?php  print_string("hidegradesbeforeagreement", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("hidegradesbeforeagreement", "workshop") ?>:</b></p></td>
     <td>
-    <?PHP 
+    <?php 
         choose_from_menu($options, "hidegrades", $form->hidegrades, "");
         helpbutton("showinggrades", get_string("hidegradesbeforeagreement", "workshop"), "workshop");
     ?>
 </tr>
 
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("maximumsize", "workshop") ?>:</B></P></TD>
+    <td align=right><p><b><?php  print_string("maximumsize", "workshop") ?>:</b></p></td>
     <td>
         <?php
         $sizelist = array("10Kb", "50Kb", "100Kb", "500Kb", "1Mb", "2Mb", "5Mb", "10Mb", "20Mb", "50Mb");
 </tr>
 
 <tr valign=top>
-    <td align=right><P><B><?php  print_string("deadline", "workshop") ?>:</B></td>
+    <td align=right><p><b><?php  print_string("deadline", "workshop") ?>:</b></td>
     <td><?php
            print_date_selector("deadlineday", "deadlinemonth", "deadlineyear", $form->deadline);
            echo "&nbsp;-&nbsp;";
 </tr>
 
 </table>
-<BR>
-<CENTER>
+<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="submit" value="<?php  print_string("savechanges") ?>" />
 <input type="submit" name=cancel value="<?php  print_string("cancel") ?>" />
 <p>
-<p><?PHP notify(get_string("noteonassessmentelements", "workshop")); ?>
+<p><?php notify(get_string("noteonassessmentelements", "workshop")); ?>
 
-</CENTER>
-</FORM>
+</center>
+</form>
index 2f5e34d..bc16cf8 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP //$Id$
+<?php //$Id$
     //This php script contains all the stuff to backup/restore
     //workshop mods
 
index d1e43a8..66e9eb9 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:
@@ -42,8 +42,8 @@
 
     // ... print the header and...
     print_header_simple("$workshop->name", "",
-                 "<A HREF=index.php?id=$course->id>$strworkshops</A> -> 
-                  <A HREF=\"view.php?id=$cm->id\">$workshop->name</A> -> $strsubmissions", 
+                 "<a HREF=index.php?id=$course->id>$strworkshops</a> -> 
+                  <a HREF=\"view.php?id=$cm->id\">$workshop->name</a> -> $strsubmissions", 
                   "", "", true);
 
     //...get the action or set up an suitable default
         ?>
         <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", "workshop").":</b></p></td>\n";
+        echo "  <td align=\"right\"><p><b>". get_string("title", "workshop").":</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 "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("gradeforsubmission", 
                 "workshop")."</b></td>";
                echo "<td bgcolor=\"$THEME->cellheading2\" align=\"center\"><b>".get_string("overallgrade", "workshop").
-                "</b></td></TR>\n";
+                "</b></td></tr>\n";
 
         foreach ($users as $user) {
             // skip if student not in group
index 8ed2171..7619bc3 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");
@@ -25,8 +25,8 @@
     $strupload      = get_string("upload");
 
     print_header_simple("$workshop->name : $strupload", "",
-                 "<A HREF=index.php?id=$course->id>$strworkshops</A> -> 
-                  <A HREF=\"view.php?a=$workshop->id\">$workshop->name</A> -> $strupload", 
+                 "<a HREF=index.php?id=$course->id>$strworkshops</a> -> 
+                  <a HREF=\"view.php?a=$workshop->id\">$workshop->name</a> -> $strupload", 
                   "", "", true);
  /****
     if ($submissions = workshop_get_submissions($workshop, $USER)) {
index bfc90b1..f795221 100644 (file)
@@ -1,4 +1,4 @@
-<?PHP // $Id$
+<?php // $Id$
 
 ////////////////////////////////////////////////////////////////////////////////
 //  Code fragment to define the module version etc.
index cd9ee17..47c9110 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:
@@ -43,7 +43,7 @@
 
     // ...display header...
     print_header_simple("$workshop->name", "",
-                 "<A HREF=index.php?id=$course->id>$strworkshops</A> -> $workshop->name", 
+                 "<a HREF=index.php?id=$course->id>$strworkshops</a> -> $workshop->name", 
                   "", "", true, update_module_button($cm->id, $course->id, $strworkshop), navmenu($course, $cm));
 
     // ...and if necessary set default action 
             echo "<td align=\"center\"><b>".get_string("studentassessments", "workshop", 
                         $course->student)."</b></td>";
             echo "<td align=\"center\"><b>".get_string("gradeforsubmission", "workshop")."</b></td>";
-            echo "<td align=\"center\"><b>".get_string("overallgrade", "workshop")."</b></td></TR>\n";
+            echo "<td align=\"center\"><b>".get_string("overallgrade", "workshop")."</b></td></tr>\n";
             $gradinggrade = workshop_gradinggrade($workshop, $USER);
             foreach ($submissions as $submission) {
                 $grade = workshop_submission_grade($workshop, $submission);
-                echo "<TR><td>".workshop_print_submission_title($workshop, $submission)."</td>\n";
+                echo "<tr><td>".workshop_print_submission_title($workshop, $submission)."</td>\n";
                 echo "<td align=\"center\">".workshop_print_user_assessments($workshop, $USER)."</td>";
                 echo "<td align=\"center\">$gradinggrade</td>";
                 echo "<td align=\"center\">".workshop_print_submission_assessments($workshop, 
                 echo "<td align=\"center\">".workshop_print_submission_assessments($workshop, 
                             $submission, "student")."</td>";
                 echo "<td align=\"center\">$grade</td>";
-                echo "<td align=\"center\">".number_format($gradinggrade + $grade, 1)."</td></TR>\n";
+                echo "<td align=\"center\">".number_format($gradinggrade + $grade, 1)."</td></tr>\n";
             }
         }
-        echo "</TABLE><BR CLEAR=ALL>\n";
+        echo "</table><br CLEAR=ALL>\n";
                workshop_print_key($workshop);
         if ($workshop->showleaguetable) {
                        workshop_print_league_table($workshop);
                     }
                                }
                                // allow user to list their submissions and assessments in a general way????
-                               // print_heading("<A HREF=\"submissions.php?action=listallsubmissions&id=$cm->id\">".
+                               // print_heading("<a HREF=\"submissions.php?action=listallsubmissions&id=$cm->id\">".
                                //      get_string("listofallsubmissions", "workshop"));
                        }
                }
                        
                $strdifference = format_time($workshop->deadline - time());
                if (($workshop->deadline - time()) < 0) {
-                       $strdifference = "<FONT COLOR=RED>$strdifference</FONT>";
+                       $strdifference = "<font COLOR=RED>$strdifference</font>";
                }
                $strduedate = userdate($workshop->deadline)." ($strdifference)";
        
                // list previous submissions from teacher 
                workshop_list_user_submissions($workshop, $USER);
        
-               echo "<HR SIZE=1 NOSHADE>";
+               echo "<hr SIZE=1 NOSHADE>";
        
                // print upload form
                print_heading(get_string("submitassignment", "assignment").":");
                           workshop_count_student_submissions_for_assessment($workshop, $USER))."</a></b> \n";
                     helpbutton("gradingsubmissions", 
                             get_string("studentsubmissionsforassessment", "workshop"), "workshop");
-                    print_heading("<A HREF=\"submissions.php?id=$cm->id&action=displayfinalgrades\">".
-                          get_string("displayoffinalgrades", "workshop")."</A>");
+                    print_heading("<a HREF=\"submissions.php?id=$cm->id&action=displayfinalgrades\">".
+                          get_string("displayoffinalgrades", "workshop")."</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 14567f3..fdb4a4f 100644 (file)
@@ -22,7 +22,7 @@
   <table width="100%" cellpadding="10" cellspacing="0" border="0" class="headerhome">
     <tr>
       <td valign="top" class="headerhomemain"><img 
-          border="0" src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/logo.jpg" ?>"></td>
+          border="0" src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/logo.jpg" ?>" /></td>
       <td align="right" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
     </tr>
   </table>
       ?></td>
     </tr>
   </table>
-  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height=5 width=1><br>
+  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
 
 <?php } else if ($heading) { // If no navigation, but a heading, then print a line  ?>
 
-  <hr size="1" noshade />
+  <hr size="1" noshade="noshade" />
 
 <?php } ?>
 
index 66432e8..6646cde 100644 (file)
@@ -1,10 +1,10 @@
 <!-- START OF FOOTER -->
-<CENTER>
-<HR SIZE=1 NOSHADE>
-<FONT SIZE=1>
-<P><?php echo $loggedinas ?></P>
-<P><?php echo $homelink ?></P>
-</FONT>
+<center>
+<hr size="1" noshade="noshade" />
+<font size="1">
+<p><?php echo $loggedinas ?></p>
+<p><?php echo $homelink ?></p>
+</font>
 
-</BODY>
-</HTML>
+</body>
+</html>
index a0d0177..b4a5633 100644 (file)
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html<?php echo $direction ?>>\r
-<head>\r
-<?php echo $meta ?>\r
-<title><?php echo $title ?></title>\r
-<meta name="keywords" content="moodle, <?php echo $title ?> " />\r
-<link rel="stylesheet" type="text/css" href="<?php echo $styles ?>" />\r
-<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" />\r
-<?php include("$CFG->javascript"); ?>\r
-</head>\r
-\r
-<body<?php \r
-   echo " $bodytags";\r
-   if ($focus) { \r
-       echo " onload=setfocus()"; \r
-   } \r
-   echo " bgcolor=\"$THEME->body\">";\r
-?>\r
-\r
-<?php if ($home) {  // This is what gets printed on the home page only  ?>\r
-\r
-  <table width="100%" cellpadding="10" cellspacing="0" border="0" class="headerhome">\r
-    <tr>\r
-      <td valign="top" class="headerhomemain">\r
-         <img border="0" src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/logo.jpg" ?>">\r
-         </td>\r
-      <td align="right" valign="top" class="headerhomemenu"><?php echo $menu ?></td>\r
-    </tr>\r
-  </table>\r
-\r
-<?php } else if ($heading) {  // This is what gets printed on any other page with a heading ?>\r
-\r
-  <table width="100%" cellpadding="0" cellspacing="0" border="0" class="header">\r
-    <tr>\r
-      <td valign="top" class="headermain">\r
-         <img border="0" src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/logo_small.jpg" ?>">\r
-      <td align="right" valign="top" class="headermenu"><?php echo $menu ?></td>\r
-    </tr>\r
-  </table>\r
-\r
-<?php } ?>\r
-\r
-\r
-<?php if ($navigation) { // This is the navigation table with breadcrumbs  ?>\r
-\r
-  <table border="0" cellpadding="3" cellspacing="0" width="100%">\r
-    <tr>\r
-      <td bgcolor="<?php echo $THEME->cellheading?>" class="navbar">\r
-        <?php print_navigation("$navigation"); ?>\r
-      </td>\r
-      <td bgcolor="<?php echo $THEME->cellheading?>" class="navbar" align="right" width="20" valign="top"><?php \r
-          echo $button;\r
-      ?></td>\r
-    </tr>\r
-  </table>\r
-  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />\r
-\r
-<?php } else if ($heading) { // If no navigation, but a heading, then print a line  ?>\r
-\r
-  <hr size="1" noshade="noshade" />\r
-\r
-<?php } ?>\r
-\r
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html<?php echo $direction ?>>
+
+<head>
+
+<?php echo $meta ?>
+
+<title><?php echo $title ?></title>
+
+<meta name="keywords" content="moodle, <?php echo $title ?> " />
+
+<link rel="stylesheet" type="text/css" href="<?php echo $styles ?>" />
+
+<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" />
+
+<?php include("$CFG->javascript"); ?>
+
+</head>
+
+
+
+<body<?php 
+
+   echo " $bodytags";
+
+   if ($focus) { 
+
+       echo " onload=setfocus()"; 
+
+   } 
+
+   echo " bgcolor=\"$THEME->body\">";
+
+?>
+
+
+
+<?php if ($home) {  // This is what gets printed on the home page only  ?>
+
+
+
+  <table width="100%" cellpadding="10" cellspacing="0" border="0" class="headerhome">
+
+    <tr>
+
+      <td valign="top" class="headerhomemain">
+
+         <img border="0" src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/logo.jpg" ?>" />
+
+         </td>
+
+      <td align="right" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
+
+    </tr>
+
+  </table>
+
+
+
+<?php } else if ($heading) {  // This is what gets printed on any other page with a heading ?>
+
+
+
+  <table width="100%" cellpadding="0" cellspacing="0" border="0" class="header">
+
+    <tr>
+
+      <td valign="top" class="headermain">
+
+         <img border="0" src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/logo_small.jpg" ?>" />
+
+      <td align="right" valign="top" class="headermenu"><?php echo $menu ?></td>
+
+    </tr>
+
+  </table>
+
+
+
+<?php } ?>
+
+
+
+
+
+<?php if ($navigation) { // This is the navigation table with breadcrumbs  ?>
+
+
+
+  <table border="0" cellpadding="3" cellspacing="0" width="100%">
+
+    <tr>
+
+      <td bgcolor="<?php echo $THEME->cellheading?>" class="navbar">
+
+        <?php print_navigation("$navigation"); ?>
+
+      </td>
+
+      <td bgcolor="<?php echo $THEME->cellheading?>" class="navbar" align="right" width="20" valign="top"><?php 
+
+          echo $button;
+
+      ?></td>
+
+    </tr>
+
+  </table>
+
+  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
+
+
+
+<?php } else if ($heading) { // If no navigation, but a heading, then print a line  ?>
+
+
+
+  <hr size="1" noshade="noshade" />
+
+
+
+<?php } ?>
+
+
+
 <!-- END OF HEADER -->
\ No newline at end of file
index e8283b3..d90f152 100755 (executable)
@@ -1,6 +1,6 @@
 <!-- START OF FOOTER -->
 <center>
-<hr size=2 noshade="noshade" />
+<hr size="2" noshade="noshade" />
 <p class="logininfo"><?php echo $loggedinas ?></p>
 <p class="homelink"><?php echo $homelink ?></p>
 
index 1d47cbd..d166195 100755 (executable)
       ?></td>
     </tr>
   </table>
-  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height=5 width=1><br>
+  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
 
 <?php } else if ($heading) { // If no navigation, but a heading, then print a line  ?>
 
-  <hr size="1" noshade />
+  <hr size="1" noshade="noshade" />
 
 <?php } ?>
 
index 54ecaba..b5c8c25 100644 (file)
@@ -69,8 +69,8 @@
 
     $themes = get_list_of_plugins("theme");
 
-    echo "<TABLE ALIGN=CENTER cellpadding=7 cellspacing=5>";
-    echo "<TR><TH class=\"generaltableheader\">$strtheme<TH class=\"generaltableheader\">&nbsp;</TR>";
+    echo "<table align=\"center\" cellpadding=\"7\" cellspacing=\"5\">";
+    echo "<tr><th class=\"generaltableheader\">$strtheme<th class=\"generaltableheader\">&nbsp;</tr>";
     foreach ($themes as $theme) {
 
         if (!file_exists("$CFG->dirroot/theme/$theme/config.php")) {   // bad folder
         }
         include ("$CFG->dirroot/theme/$theme/config.php");
 
-        echo "<TR>";
+        echo "<tr>";
         if ($CFG->theme == $theme) {
-            echo "<TD ALIGN=CENTER BGCOLOR=\"$THEME->body\">$theme</TD>";
-            echo "<TD ALIGN=CENTER><A HREF=\"index.php?choose=$theme\">$strsavechanges</A></TD>";
+            echo "<td align=\"center\" bgcolor=\"$THEME->body\">$theme</td>";
+            echo "<td align=\"center\"><a href=\"index.php?choose=$theme\">$strsavechanges</a></td>";
         } else {
-            echo "<TD ALIGN=CENTER BGCOLOR=\"$THEME->body\">";
-            echo "<A TITLE=\"$strpreview\" HREF=\"index.php?preview=$theme\">$theme</A>";
-            echo "</TD>";
-            echo "<TD>&nbsp;</TD>";
+            echo "<td align=\"center\" bgcolor=\"$THEME->body\">";
+            echo "<a title=\"$strpreview\" href=\"index.php?preview=$theme\">$theme</a>";
+            echo "</td>";
+            echo "<td>&nbsp;</td>";
         }
         echo "</tr>";
     }
     echo "</table>";
 
-    echo "<br><div align=center>";
+    echo "<br /><div align=\"center\">";
     $options["frame"] = "developer.html";
     $options["sub"] = "themes";
     print_single_button("$CFG->wwwroot/doc/index.php", $options, get_string("howtomakethemes"));
index 1d47cbd..d166195 100644 (file)
       ?></td>
     </tr>
   </table>
-  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height=5 width=1><br>
+  <img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
 
 <?php } else if ($heading) { // If no navigation, but a heading, then print a line  ?>
 
-  <hr size="1" noshade />
+  <hr size="1" noshade="noshade" />
 
 <?php } ?>
 
index 0bbc897..025a804 100644 (file)
@@ -37,8 +37,8 @@
 </table><table border="0" cellspacing="0" cellpadding="0" width="<?php  echo $THEME->themewidth?>">
 <tr>
 <td width="93" height="19" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/client_tools_bot_mid.gif"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/login_lower_left.gif" width="93" height="19" /></td>
-<td height="19" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/client_tools_bot_mid.gif"><center><FONT SIZE=1><?php echo $loggedinas ?></FONT></center></td>
+<td height="19" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/client_tools_bot_mid.gif"><center><font size="1"><?php echo $loggedinas ?></font></center></td>
 <td width="93" height="19" align="right" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/client_tools_bot_mid.gif"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/login_lower_right.gif" width="93" height="19" border="0" /></a></td>
 </tr>
 </table>
-<P align=center><font size="1"><?php echo $homelink ?></font></P>
+<p align="center"><font size="1"><?php echo $homelink ?></font></p>
index d79b10b..e89ceb2 100644 (file)
  To read the license please visit http://www.gnu.org/copyleft/gpl.html
 */
 ?>
-<HTML<?php echo $direction?>>
-<HEAD>
+<html<?php echo $direction?>>
+<head>
 <?php echo $meta ?>
-<TITLE><?php echo $title ?></TITLE>
-<META NAME="keywords" CONTENT="Moodle, <?php echo $title ?> " />
+<title><?php echo $title ?></title>
+<meta name="keywords" content="Moodle, <?php echo $title ?> " />
 <meta name="ROBOTS" content="INDEX,FOLLOW" />
 <meta name="resource-type" content="document" />
 <meta http-equiv="expires" content="0" />
 <meta name="generator" content="Moodle - http://moodle.com" />
 <meta name="rating" content="General" />
 
-<LINK REL="stylesheet" HREF="<?php echo $styles ?>" />
-<LINK REL="SHORTCUT ICON" HREF="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/favicon.ico" />
+<link rel="stylesheet" href="<?php echo $styles ?>" />
+<link rel="SHORTCUT ICON" href="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/favicon.ico" />
 </script>
 <?php  include("$CFG->javascript"); ?>
-</HEAD>
+</head>
 
-<BODY <?php  echo " $bodytags"; if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\" topmargin=\"$THEME->topmargin\" leftmargin=\"$THEME->leftmargin\" marginheight=\"$THEME->marginheight\" marginwidth=\"$THEME->marginwidth\" />"; ?>
+<body <?php  echo " $bodytags"; if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\" topmargin=\"$THEME->topmargin\" leftmargin=\"$THEME->leftmargin\" marginheight=\"$THEME->marginheight\" marginwidth=\"$THEME->marginwidth\" />"; ?>
 
 
 <?php  if ($home) {  // This is what gets printed on the home page only  ?>
 </tr>
 <tr>
 <td width="6" bgcolor="<?php  echo $THEME->body?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
-<td align="left" valign="top"><A TARGET="<?php  echo $CFG->framename?>" HREF="<?php  echo $CFG->wwwroot?>"><img src="<?php  echo "$CFG->wwwroot/theme/$CFG->theme/$THEME->frontlogo" ?>" border="0" /></A></td>
+<td align="left" valign="top"><a target="<?php  echo $CFG->framename?>" href="<?php  echo $CFG->wwwroot?>"><img src="<?php  echo "$CFG->wwwroot/theme/$CFG->theme/$THEME->frontlogo" ?>" border="0" /></a></td>