1 <?php print_simple_box_start('center'); ?>
5 $teachername = "<a href=\"../user/view.php?id=$teacher->id&course=".SITEID
."\">".fullname($teacher)."</a>.";
7 $teachername = get_string('yourteacher', '', strtolower($course->teacher
));
9 print_string('enrolmentkeyfrom', '', $teachername);
13 <p align=
"center"><?php if (! empty($this->errormsg
)) {formerr($this->errormsg
);} ?></p>
16 <form name=
"form" method=
"post" action=
"enrol.php">
17 <table align=
"center" width=
"100%">
19 <td align=
"right"><?php print_string("enrolmentkey") ?>:
</td>
21 <input type=
"password" name=
"password" size=
"20" value=
"<?php p($password) ?>" />
22 <input type
="hidden" name
="id" value
="<?php p($course->id) ?>" />
23 <input type
="submit" value
="<?php print_string("enrolme
") ?>" />
31 <form action
="<?php p($CFG->wwwroot)?>/index.php" method
="post">
32 <input type
="submit" value
="<?php print_string("cancel
") ?>" />
37 print_simple_box_end();
40 if ($course->guest
and !isguest()) {
41 print_simple_box_start('center');
43 <form name=
"form" method=
"post" action=
"enrol.php">
44 <table align=
"center" cellpadding=
"20">
46 <td><?php print_string('allowguests') ?>:
</td>
48 <input name=
"id" value=
"<?php p($course->id) ?>" type
="hidden">
49 <input name
="loginasguest" value
="yes" type
="hidden">
50 <input value
="<?php print_string('loginguest') ?>" type
="submit">
57 print_simple_box_end();