moodle/course/enrol.html
2002-08-04 02:10:00 +00:00

43 lines
1.5 KiB
HTML

<CENTER>
<table cellpadding=20>
<tr valign=top>
<td>
<P ALIGN=CENTER>
<? if ($teacher) {
$teacher->fullname = "$teacher->firstname $teacher->lastname";
$teachername = "<A HREF=../user/view.php?id=$teacher->id&course=$site->id>$teacher->fullname</A>.";
} else {
$teachername = get_string("yourteacher", "", strtolower($course->teacher));
}
print_string("enrolmentkeyfrom", "", $teachername);
?>
</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><? print_string("enrolmentkey") ?>:</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="<? print_string("login") ?>"></form></td>
<td><form action="<?=$CFG->wwwroot?>/" method=post>
<input type=submit value="<? print_string("cancel") ?>"></form></td>
</tr></table>
</td>
</table>
</td>
</tr>
</table>