]> git.mjollnir.org Git - moodle.git/commitdiff
Changes for XHTML and accessibility compatibility. General tidy up.
authormoodler <moodler>
Fri, 21 Jan 2005 05:07:51 +0000 (05:07 +0000)
committermoodler <moodler>
Fri, 21 Jan 2005 05:07:51 +0000 (05:07 +0000)
mod/assignment/mod.html
mod/choice/mod.html

index 1fe0a400e973af02bccd28451d4b134dbdf634ea..a69c7295a456b28a24b572798b4845fdba6eef60 100644 (file)
@@ -1,18 +1,18 @@
 <?php
     if (empty($form->name)) {
-        $form->name = "";
+        $form->name = '';
     }
     if (empty($form->description)) {
-        $form->description = "";
+        $form->description = '';
     }
     if (empty($form->format)) {
-        $form->format = "";
+        $form->format = '';
     }
     if (empty($form->type)) {
-        $form->type = "";
+        $form->type = '';
     }
     if (empty($form->resubmit)) {
-        $form->resubmit = "";
+        $form->resubmit = '';
     }
     if (!isset($form->grade)) {
         $form->grade = 100;
         $form->maxbytes = $CFG->assignment_maxbytes;
     }
     if (empty($form->timedue)) {
-        $form->timedue = "";
+        $form->timedue = '';
     }
     if (empty($form->emailteachers)) {
-        $form->emailteachers = "";
+        $form->emailteachers = '';
     }
 ?>
 
 <form name="form" method="post" action="mod.php">
 <table cellpadding="5">
 <tr valign="top">
-    <td align="right"><b><?php print_string("assignmentname", "assignment") ?>:</b></td>
+    <td align="right"><b><?php print_string('assignmentname', 'assignment') ?>:</b></td>
     <td>
-        <input type="text" name="name" size="60" value="<?php p($form->name) ?>" alt="<?php print_string("assignmentname", "assignment") ?>" />
+        <input type="text" name="name" size="60" value="<?php p($form->name) ?>" alt="<?php print_string('assignmentname', 'assignment') ?>" />
     </td>
 </tr>
 <tr valign="top">
-    <td align="right"><b><?php print_string("description", "assignment") ?>:</b><br />
-    <font size="1">
+    <td align="right"><b><?php print_string('description', 'assignment') ?>:</b><br />
      <?php
-        helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
-        echo "<br />";
-        helpbutton("questions", get_string("helpquestions"), "moodle", true, true);
-        echo "<br />";
+        helpbutton('writing', get_string('helpwriting'), 'moodle', true, true);
+        echo '<br />';
+        helpbutton('questions', get_string('helpquestions'), 'moodle', true, true);
+        echo '<br />';
         if ($usehtmleditor) {
            helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
         } else {
            emoticonhelpbutton("form", "description");
-        } 
+        }
       ?>
-      <br />
-    </font>
     </td>
     <td>
     <?php
@@ -60,7 +57,7 @@
        if ($usehtmleditor) {
            echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
        } else {
-           echo '<p align="right">';
+           echo '<div align="right">';
            helpbutton("textformat", get_string("formattexttype"));
            print_string("formattexttype");
            echo ':&nbsp;';
@@ -68,7 +65,7 @@
                $form->format = $defaultformat;
            }
            choose_from_menu(format_text_menu(), "format", $form->format, ""); 
-           echo '</p>';
+           echo '</div>';
        }
     ?>
     </td>
index 758940cf90c539f17be4b56b783471e373bc742d..a60a1fd6970ce60d270a4195e8cd66cd630dcca4 100644 (file)
 <tr valign="top">
     <td align="right"><b><?php print_string("choicename","choice") ?>:</b></td>
     <td>
-        <input type="text" name="name" size="30" value="<?php p($form->name) ?>" />
+        <input type="text" name="name" size="30" alt="<?php print_string("choicename","choice") ?>" value="<?php p($form->name) ?>" />
     </td>
 </tr>
 
 <tr valign="top">
-    <td align="right"><b><?php print_string("choicetext","choice") ?>:</b>
-    <font size="1">
+    <td align="right"><b><?php print_string("choicetext","choice") ?>:</b><br />
      <?php
         helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
         echo "<br />";
@@ -74,8 +73,6 @@
            emoticonhelpbutton("form", "text");
         }   
       ?>
-      <br />
-    </font>
     </td>
     <td>
     <?php 
@@ -84,7 +81,7 @@
        if ($usehtmleditor) {
            echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
        } else {
-           echo "<p align=\"right\">";
+           echo "<div align=\"right\">";
            helpbutton("textformat", get_string("formattexttype"));
            print_string("formattexttype");
            echo ":&nbsp;";
@@ -92,7 +89,7 @@
                $form->format = $defaultformat;
            }
            choose_from_menu(format_text_menu(), "format", $form->format, ""); 
-           echo "</p>";
+           echo "</div>";
        }
     ?>
     </td>
 <tr valign="top">
     <td align="right"><b><?php print_string("choice","choice","1") ?>:</b></td>
     <td>
-        <input type="text" name="answer1" size="60" value="<?php p($form->answer1) ?>" />
+        <input type="text" name="answer1" size="60" alt="<?php print_string("choice","choice","1") ?>" value="<?php p($form->answer1) ?>" />
         <?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
     </td>
 </tr>
 <tr valign="top">
     <td align="right"><b><?php print_string("choice","choice","2") ?>:</b></td>
     <td>
-        <input type="text" name="answer2" size="60" value="<?php p($form->answer2) ?>" />
+        <input type="text" name="answer2" size="60" alt="<?php print_string("choice","choice","2") ?>" value="<?php p($form->answer2) ?>" />
         <?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
     </td>
 </tr>
 <tr valign="top">
     <td align="right"><b><?php print_string("choice","choice","3") ?>:</b></td>
     <td>
-        <input type="text" name="answer3" size="60" value="<?php p($form->answer3) ?>" />
+        <input type="text" name="answer3" size="60" alt="<?php print_string("choice","choice","3") ?>" value="<?php p($form->answer3) ?>" />
         <?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
     </td>
 </tr>
 <tr valign="top">
     <td align="right"><b><?php print_string("choice","choice","4") ?>:</b></td>
     <td>
-        <input type="text" name="answer4" size="60" value="<?php p($form->answer4) ?>" />
+        <input type="text" name="answer4" size="60" alt="<?php print_string("choice","choice","4") ?>" value="<?php p($form->answer4) ?>" />
         <?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
     </td>
 </tr>
 <tr valign="top">
     <td align="right"><b><?php print_string("choice","choice","5") ?>:</b></td>
     <td>
-        <input type="text" name="answer5" size="60" value="<?php p($form->answer5) ?>" />
+        <input type="text" name="answer5" size="60" alt="<?php print_string("choice","choice","5") ?>" value="<?php p($form->answer5) ?>" />
         <?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
     </td>
 </tr>
 <tr valign="top">
     <td align="right"><b><?php print_string("choice","choice","6") ?>:</b></td>
     <td>
-        <input type="text" name="answer6" size="60" value="<?php p($form->answer6) ?>" />
+        <input type="text" name="answer6" size="60" alt="<?php print_string("choice","choice","6") ?>" value="<?php p($form->answer6) ?>" />
         <?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
     </td>
 </tr>
             var timeitems = ['openday','openmonth','openyear','openhour', 'openminute', 'closeday','closemonth','closeyear','closehour','closeminute'];
         </script>
 
-        <input name="timerestrict" type="checkbox" value="1" onclick="return lockoptions('form','timerestrict', timeitems)" <?php if ($form->timerestrict) echo "checked"; ?> />
+        <input name="timerestrict" type="checkbox" value="1" alt="<?php print_string("timerestrict", "choice") ?>" onclick="return lockoptions('form','timerestrict', timeitems)" <?php if ($form->timerestrict) echo 'checked="checked"'; ?> />
     <?php
         helpbutton("timerestrict", get_string("timerestrict","choice"), "choice");
      ?>