moodle/course/enrol.html

42 lines
1.3 KiB
HTML

<CENTER>
<table cellpadding=20>
<tr valign=top>
<td>
<P ALIGN=CENTER>This course requires an "enrolment key" - a one-time<BR>
password that you should have got from
<? if ($teacher) {
echo "<A HREF=\"../user/view.php?id=$teacher->id&course=$site->id\">$teacher->firstname $teacher->lastname.</A>";
} else {
echo "your teacher";
}
?>
</P>
</td>
</tr>
<tr valign=top>
<td bgcolor="<?=$THEME->cellheading?>"> <CENTER><? formerr($errormsg) ?> </CENTER>
<form name="form" method="post" action="enrol.php">
<table>
<tr>
<td width=50% align=right><P>Enrolment Key:</P></td>
<td width=50% >
<input type="password" name="password" size=20 value="<? p($password) ?>" >
<input type="hidden" name="id" value="<? p($id) ?>" >
</td>
<tr>
<td width=50%>&nbsp;</td>
<td width=50%>
<table cellpadding=1 cellspacing=0><tr>
<td><input type=submit value=Login></form></td>
<td><form action="<?=$CFG->wwwroot?>/" method=post>
<input type=submit value=Cancel></form></td>
</tr></table>
</td>
</table>
</td>
</tr>
</table>