]> git.mjollnir.org Git - moodle.git/commitdiff
fixed capitalization and quoting of attribute values
authorgustav_delius <gustav_delius>
Sun, 12 Sep 2004 20:45:41 +0000 (20:45 +0000)
committergustav_delius <gustav_delius>
Sun, 12 Sep 2004 20:45:41 +0000 (20:45 +0000)
enrol/enrol.class.php
enrol/flatfile/config.html
enrol/internal/enrol.html
enrol/paypal/config.html
enrol/paypal/enrol.php
error/index.php

index 1c4261d9c15feda49fe55b4c68108c9ed5f2102b..d935f6aa0a92635a4871c815284c4446267c1300 100644 (file)
@@ -169,7 +169,7 @@ function print_entry($course) {
     }
 
 
-    print_header($strloginto, $course->fullname, "<A HREF=\".\">$strcourses</A> -> $strloginto", "form.password");
+    print_header($strloginto, $course->fullname, "<a href=\".\">$strcourses</a> -> $strloginto", "form.password");
 
     print_course($course);
 
index 2002d0bcca4f779768d888ac5fde9eb18366ec79..cdb3b0b56c1bbde4472b3db86e5a7adbeb573f1a 100644 (file)
@@ -13,7 +13,7 @@
 <tr valign="top">
        <td align="right"><p>enrol_mailstudents:</p></td>
        <td>
-        <input type="checkbox" value=1 name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"true\"" ?> />
+        <input type="checkbox" value="1" name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"true\"" ?> />
     </td>
     <td>
     <?php  print_string("mailstudents") ?>
@@ -23,7 +23,7 @@
 <tr valign="top">
        <td align="right"><p>enrol_mailteachers:</p></td>
        <td>
-        <input type="checkbox" value=1 name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"true\"" ?> />
+        <input type="checkbox" value="1" name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"true\"" ?> />
     </td>
     <td>
     <?php  print_string("mailteachers") ?>
@@ -33,7 +33,7 @@
 <tr valign="top">
        <td align="right"><p>enrol_mailadmins:</p></td>
        <td>
-        <input type="checkbox" value=1 name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
+        <input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
     </td>
     <td>
     <?php  print_string("mailadmins") ?>
@@ -43,7 +43,7 @@
 <tr valign="top">
        <td align="right"><p>enrol_allowinternal:</p></td>
        <td>
-        <input type="checkbox" value=1 name="enrol_allowinternal" <?php if ($frm->enrol_allowinternal) echo "checked=\"true\"" ?> />
+        <input type="checkbox" value="1" name="enrol_allowinternal" <?php if ($frm->enrol_allowinternal) echo "checked=\"true\"" ?> />
     </td>
     <td>
     <?php  print_string('allowinternal') ?>
index 90d29c39d2f80a19dccbe58ba2d22a8b62b5cc61..539458691c8eb8f8a49f97a4a577892aa79eec9b 100644 (file)
@@ -1 +1 @@
-<table cellpadding="20" align="center">\r\r  <tr valign="top">\r    <td>\r      <p align="center">\r      <?php\r          if ($teacher) {\r              $site = get_site();\r              $teachername = "<a href=\"../user/view.php?id=$teacher->id&course=$site->id\">".\r                             "$teacher->firstname $teacher->lastname</a>.";\r          } else {\r              $teachername = get_string("yourteacher", "", strtolower($course->teacher));\r          }\r          print_string("enrolmentkeyfrom", "", $teachername);\r       ?>\r       </p>\r    </td>\r  </tr>\r\r  <tr valign=top>\r    <td class="generalbox" bgcolor="<?php p($THEME->cellcontent) ?>">\r      <center><?php if (! empty($this->errormsg)) {formerr($this->errormsg);} ?></center>\r      <form name="form" method="post" action="enrol.php">\r        <table>\r          <tr>\r            <td width="50%" align="right"><p><?php print_string("enrolmentkey") ?>:</p></td>\r            <td width="50%">\r              <input type="password" name="password" size="20" value="<?php p($password) ?>" >\r              <input type="hidden" name="id" value="<?php p($course->id) ?>" >\r            </td>\r          <tr>\r            <td width="50%">&nbsp;</td>\r            <td width="50%">\r              <table cellpadding="1" cellspacing="0" align="center">\r                <tr>\r                    <td><input type="submit" value="<?php print_string("login") ?>">&nbsp;&nbsp;</form></td>\r                    <td><form action="<?php p($CFG->wwwroot)?>/index.php" method=post>\r                        <input type="submit" value="<?php print_string("cancel") ?>"></form></td>\r                </tr>\r              </table>\r            </td>\r        </table>\r    </td>\r  </tr>\r\r</table> 
\ No newline at end of file
+<table cellpadding="20" align="center">\r\r  <tr valign="top">\r    <td>\r      <p align="center">\r      <?php\r          if ($teacher) {\r              $site = get_site();\r              $teachername = "<a href=\"../user/view.php?id=$teacher->id&course=$site->id\">".\r                             "$teacher->firstname $teacher->lastname</a>.";\r          } else {\r              $teachername = get_string("yourteacher", "", strtolower($course->teacher));\r          }\r          print_string("enrolmentkeyfrom", "", $teachername);\r       ?>\r       </p>\r    </td>\r  </tr>\r\r  <tr valign="top">\r    <td class="generalbox" bgcolor="<?php p($THEME->cellcontent) ?>">\r      <center><?php if (! empty($this->errormsg)) {formerr($this->errormsg);} ?></center>\r      <form name="form" method="post" action="enrol.php">\r        <table>\r          <tr>\r            <td width="50%" align="right"><p><?php print_string("enrolmentkey") ?>:</p></td>\r            <td width="50%">\r              <input type="password" name="password" size="20" value="<?php p($password) ?>" >\r              <input type="hidden" name="id" value="<?php p($course->id) ?>" >\r            </td>\r          <tr>\r            <td width="50%">&nbsp;</td>\r            <td width="50%">\r              <table cellpadding="1" cellspacing="0" align="center">\r                <tr>\r                    <td><input type="submit" value="<?php print_string("login") ?>">&nbsp;&nbsp;</form></td>\r                    <td><form action="<?php p($CFG->wwwroot)?>/index.php" method="post">\r                        <input type="submit" value="<?php print_string("cancel") ?>"></form></td>\r                </tr>\r              </table>\r            </td>\r        </table>\r    </td>\r  </tr>\r\r</table> 
\ No newline at end of file
index 5e72888180ce66b89e023b341d8f693a4451f351..04a7252d11e6068572605018c62c620aa249dd4b 100644 (file)
@@ -33,7 +33,7 @@
 <tr valign="top">
        <td align="right"><p>enrol_mailstudents:</p></td>
        <td>
-        <input type="checkbox" value=1 name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"true\"" ?> />
+        <input type="checkbox" value="1" name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"true\"" ?> />
     </td>
     <td>
     <?php  print_string("mailstudents") ?>
@@ -43,7 +43,7 @@
 <tr valign="top">
        <td align="right"><p>enrol_mailteachers:</p></td>
        <td>
-        <input type="checkbox" value=1 name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"true\"" ?> />
+        <input type="checkbox" value="1" name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"true\"" ?> />
     </td>
     <td>
     <?php  print_string("mailteachers") ?>
@@ -53,7 +53,7 @@
 <tr valign="top">
        <td align="right"><p>enrol_mailadmins:</p></td>
        <td>
-        <input type="checkbox" value=1 name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
+        <input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
     </td>
     <td>
     <?php  print_string("mailadmins") ?>
index a322f930637e50a427373a179a008b032d80b346..13ab1f3153397864c2200f2ef16926a68801ee3e 100644 (file)
@@ -90,7 +90,7 @@ function get_access_icons($course) {
            default:    $currency = '$'; break;
         }
         
-        $str .= "<p class=\"coursecost\"><font size=-1>$strcost: ".
+        $str .= "<p class=\"coursecost\"><font size=\"-1\">$strcost: ".
                 "<a title=\"$strrequirespayment\" href=\"$CFG->wwwroot/course/view.php?id=$course->id\"></a>";
         $str .= "$currency".format_float($cost,2).'</a></p>';
         
index 3728e31653c9b6d6d03f7485aded1b5669b6308c..d43cb379589437209917e212647ca5f1f0aa7d23 100644 (file)
     
     print_header("$site->fullname:Error", "$site->fullname: Error 404", "", "form.text");
 
-    print_simple_box("An unusual error occurred (tried to reach a page that doesn't exist).<P align=center>$REDIRECT_URL", "center", "", "$THEME->cellheading");
+    print_simple_box("An unusual error occurred (tried to reach a page that doesn't exist).<p align="center">$REDIRECT_URL", "center", "", "$THEME->cellheading");
   
 ?>
   
-  <CENTER>
-  <P>If you have time, please let us know what you were trying 
+  <center>
+  <p>If you have time, please let us know what you were trying 
      to do when the error occurred:
-  <P><FORM action="<?php echo $CFG->wwwroot ?>/error/index.php" name=form method=post>
-     <TEXTAREA ROWS=3 COLS=50 NAME=text></TEXTAREA><BR>
-     <INPUT TYPE=hidden NAME=referer VALUE="<?php echo $HTTP_REFERER ?>">
-     <INPUT TYPE=hidden NAME=requested VALUE="<?php echo $REQUEST_URI ?>">
-     <INPUT TYPE=submit VALUE="Send this off">
-     </FORM>
+  <p><form action="<?php echo $CFG->wwwroot ?>/error/index.php" name="form" method="post">
+     <textarea rows="3" cols="50" name="text"></textarea><br>
+     <input type="hidden" name="referer" value="<?php echo $HTTP_REFERER ?>">
+     <input type="hidden" name="requested" value="<?php echo $REQUEST_URI ?>">
+     <input type="submit" value="Send this off">
+     </form>
 <?php
 
   print_footer();