Polished.
[moodle.git] / course / enrol.html
bloba9e1c74dd1f855c496617f9f2565ddfe93d231ae
1 <CENTER>
3 <table cellpadding=20>
4 <tr valign=top>
5 <td>
6 <P ALIGN=CENTER>
7 <? if ($teacher) {
8 $teacher->fullname = "$teacher->firstname $teacher->lastname";
9 $teachername = "<A HREF=../user/view.php?id=$teacher->id&course=$site->id>$teacher->fullname</A>.";
10 } else {
11 $teachername = get_string("yourteacher", "", strtolower($course->teacher));
13 print_string("enrolmentkeyfrom", "", $teachername);
15 </P>
16 </td>
17 </tr>
18 <tr valign=top>
19 <td bgcolor="<?=$THEME->cellheading?>"> <CENTER><? formerr($errormsg) ?> </CENTER>
20 <form name="form" method="post" action="enrol.php">
21 <table>
22 <tr>
23 <td width=50% align=right><P><? print_string("enrolmentkey") ?>:</P></td>
24 <td width=50% >
25 <input type="password" name="password" size=20 value="<? p($password) ?>" >
26 <input type="hidden" name="id" value="<? p($id) ?>" >
27 </td>
28 <tr>
29 <td width=50%>&nbsp;</td>
30 <td width=50%>
31 <table cellpadding=1 cellspacing=0><tr>
32 <td><input type=submit value="<? print_string("login") ?>"></form></td>
33 <td><form action="<?=$CFG->wwwroot?>/index.php" method=post>
34 <input type=submit value="<? print_string("cancel") ?>"></form></td>
35 </tr></table>
37 </td>
38 </table>
39 </td>
40 </tr>
41 </table>