New translationd added.
[moodle.git] / course / enrol.html
blob13fe31ee224f38f4008d06add83c443a5467830e
1 <table cellpadding="20" align="center">
2 <tr valign="top">
3 <td>
4 <p align="center">
5 <?php
6 if ($teacher) {
7 $teachername = "<a href=\"../user/view.php?id=$teacher->id&course=$site->id\">".
8 "$teacher->firstname $teacher->lastname</a>.";
9 } else {
10 $teachername = get_string("yourteacher", "", strtolower($course->teacher));
12 print_string("enrolmentkeyfrom", "", $teachername);
14 </p>
15 </td>
17 </tr>
18 <tr valign=top>
19 <td class="generalbox" bgcolor="<?php p($THEME->cellheading)?>"><center><?php if (isset ($errormsg)) {formerr($errormsg);} ?></center>
20 <form name="form" method="post" action="enrol.php">
21 <table>
22 <tr>
23 <td width="50%" align="right"><p><?php print_string("enrolmentkey") ?>:</p></td>
24 <td width="50%">
25 <input type="password" name="password" size="20" value="<?php p($password) ?>" >
26 <input type="hidden" name="id" value="<?php p($id) ?>" >
27 </td>
28 <tr>
29 <td width="50%">&nbsp;</td>
30 <td width="50%">
31 <table cellpadding="1" cellspacing="0" align="center">
32 <tr>
34 <td><input type="submit" value="<?php print_string("login") ?>">&nbsp;&nbsp;</form></td>
35 <td><form action="<?php p($CFG->wwwroot)?>/index.php" method=post>
36 <input type="submit" value="<?php print_string("cancel") ?>"></form></td>
37 </tr>
38 </table>
39 </td>
40 </table>
41 </td>
43 </tr>
44 </table>