}
- 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);
<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") ?>
<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") ?>
<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") ?>
<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') ?>
-<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%"> </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") ?>"> </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%"> </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") ?>"> </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
<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") ?>
<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") ?>
<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") ?>
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>';
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();