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