]> git.mjollnir.org Git - moodle.git/commitdiff
minor xhtml fixes
authorskodak <skodak>
Thu, 30 Nov 2006 09:50:01 +0000 (09:50 +0000)
committerskodak <skodak>
Thu, 30 Nov 2006 09:50:01 +0000 (09:50 +0000)
calendar/view.php
mod/assignment/config.html
mod/assignment/lib.php
mod/assignment/type/online/assignment.class.php
mod/assignment/type/upload/assignment.class.php
mod/glossary/editcategories.php
mod/glossary/view.php

index 75a69de97631cc29418194dc19f00635dbad41de..07f6285617608d22de7b8486e1ecd73fb2eb37bc 100644 (file)
     if (!empty($USER->id)) {
         $authtoken = sha1($USER->username . $USER->password);
         $usernameencoded = urlencode($USER->username);
-        echo "<p><a href=\"export_execute.php?preset_what=all&preset_time=recentupcoming&username=$usernameencoded&authtoken=$authtoken\">" . get_string('quickdownloadcalendar', 'calendar') . '</a></p>';
+        echo "<p><a href=\"export_execute.php?preset_what=all&amp;preset_time=recentupcoming&amp;username=$usernameencoded&amp;authtoken=$authtoken\">" . get_string('quickdownloadcalendar', 'calendar') . '</a></p>';
     }
 
     echo '</td>';
index 9b2bf28201d3ce8136cb252b39c61f0a6d6c7ef4..54bd74f7368b7d1e77f7c2759e565c9f8a546410 100644 (file)
@@ -1,7 +1,7 @@
 <form method="post" action="module.php" name="form">
 <input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
 
-<table cellpadding=9 cellspacing=0 >
+<table cellpadding="9" cellspacing="0" >
 <tr valign=top>
     <td align=right><p>assignment_maxbytes:</td>
     <td><?php
@@ -14,8 +14,8 @@
     </td>
 </tr>
 
-<tr valign=top>
-    <td align=right><p>assignment_itemstocount:</td>
+<tr valign="top">
+    <td align="right"><p>assignment_itemstocount:</td>
     <td><?php
     unset($options);
     $options[ASSIGNMENT_COUNT_WORDS] = trim(get_string('numwords', ''));
@@ -29,8 +29,8 @@
 </tr>
 
 <tr>
-    <td colspan=3 align=center>
-    <input type="submit" value="<?php print_string("savechanges") ?>"></td>
+    <td colspan="3" align="center">
+    <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
 </tr>
 </table>
 
index 9901266a17de3ff377c2c90d042a3f3970350546..d738d0c32a181930cbaac7b2211c176e1cda4c13 100644 (file)
@@ -165,7 +165,7 @@ class assignment_base {
      * The default implementation prints the assignment description in a box
      */
     function view_intro() {
-        print_simple_box_start('center', '', '', '', 'generalbox', 'intro');
+        print_simple_box_start('center', '', '', 0, 'generalbox', 'intro');
         $formatoptions = new stdClass;
         $formatoptions->noclean = true;
         echo format_text($this->assignment->description, $this->assignment->format, $formatoptions);
@@ -183,7 +183,7 @@ class assignment_base {
             return;
         }
 
-        print_simple_box_start('center', '', '', '', 'generalbox', 'dates');
+        print_simple_box_start('center', '', '', 0, 'generalbox', 'dates');
         echo '<table>';
         if ($this->assignment->timeavailable) {
             echo '<tr><td class="c0">'.get_string('availabledate','assignment').':</td>';
index 205270d000ca806d40f7d6e5ae279b12a21a946d..20b2ecaa82355c4ef84b219105550e3fe11f87f5 100644 (file)
@@ -89,7 +89,7 @@ class assignment_online extends assignment_base {
         }
 
         if (has_capability('mod/assignment:submit', $context)) {
-            print_simple_box_start('center', '70%', '', '', 'generalbox', 'online');
+            print_simple_box_start('center', '70%', '', 0, 'generalbox', 'online');
             if ($editmode) {
                 $mform->display();
             } else {
@@ -124,7 +124,7 @@ class assignment_online extends assignment_base {
             return;
         }
 
-        print_simple_box_start('center', '', '', '', 'generalbox', 'dates');
+        print_simple_box_start('center', '', '', 0, 'generalbox', 'dates');
         echo '<table>';
         if ($this->assignment->timeavailable) {
             echo '<tr><td class="c0">'.get_string('availabledate','assignment').':</td>';
index 4c5aef22a8c7f8c6b320f7372cf46770261cbac3..648b11d27dcb21e3c96dfacc6c71e63038059d4d 100644 (file)
@@ -26,7 +26,7 @@ class assignment_upload extends assignment_base {
         if ($this->assignment->timeavailable > time()
           and !has_capability('mod/assignment:grade', $this->context)      // grading user can see it anytime
           and $this->assignment->var3) {                                   // force hiding before available date
-            print_simple_box_start('center', '', '', '', 'generalbox', 'intro');
+            print_simple_box_start('center', '', '', 0, 'generalbox', 'intro');
             print_string('notavailableyet', 'assignment');
             print_simple_box_end();
         } else {
index 87a562aa03384bc49479b83425bf585322d8b867..a81114deff4a51ccea6d3da38781b593d6baeead 100644 (file)
              $options['hook'] = $hook;
              echo print_single_button("view.php", $options, get_string("back","glossary") );
              echo "</td></tr>";
-             echo "</tablee>";
+             echo "</table>";
 
             ?>
         </td>
index 6116a65169be0e1553b732ba6663a3cd7ec622dc..e8dea1308d71312d9d48136f67f8122f365ac8a8 100644 (file)
     $printicon = '';
     if ( $isuserframe and $mode != 'search') {
         if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
-            $printicon = " <a title =\"". get_string("printerfriendly","glossary") . "\" alt =\"". get_string("printerfriendly","glossary") . "\" target=\"printview\" href=\"print.php?id=$cm->id&amp;mode=$mode&amp;hook=$hook&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\"><img border=\"0\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
+            $printicon = " <a title =\"". get_string("printerfriendly","glossary") ."\" target=\"printview\" href=\"print.php?id=$cm->id&amp;mode=$mode&amp;hook=$hook&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\"><img border=\"0\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
         }
     }
     print_heading(format_string($glossary->name).$printicon);