2005-03-04 01:53:53 +00:00
|
|
|
<?php print_simple_box_start('center'); ?>
|
|
|
|
<p align="center">
|
|
|
|
<?php
|
|
|
|
if ($teacher) {
|
|
|
|
$teachername = "<a href=\"../user/view.php?id=$teacher->id&course=".SITEID."\">".fullname($teacher)."</a>.";
|
|
|
|
} else {
|
2006-10-07 20:47:54 +00:00
|
|
|
$teachername = get_string('yourteacher', '', $course->teacher);
|
2005-03-04 01:53:53 +00:00
|
|
|
}
|
|
|
|
print_string('enrolmentkeyfrom', '', $teachername);
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p align="center"><?php if (! empty($this->errormsg)) {formerr($this->errormsg);} ?></p>
|
2004-09-29 21:13:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
<form name="form" method="post" action="enrol.php">
|
2005-03-04 02:14:44 +00:00
|
|
|
<table align="center" width="100%">
|
2004-09-29 21:13:53 +00:00
|
|
|
<tr>
|
2005-03-04 02:14:44 +00:00
|
|
|
<td align="right"><?php print_string("enrolmentkey") ?>:</td>
|
2005-03-04 01:53:53 +00:00
|
|
|
<td>
|
2005-03-04 02:14:44 +00:00
|
|
|
<input type="password" name="password" size="20" value="<?php p($password) ?>" />
|
|
|
|
<input type="hidden" name="id" value="<?php p($course->id) ?>" />
|
2006-09-03 20:16:24 +00:00
|
|
|
<input type="hidden" name="enrol" value="manual" />
|
2005-03-04 02:14:44 +00:00
|
|
|
<input type="submit" value="<?php print_string("enrolme") ?>" />
|
2004-09-29 21:13:53 +00:00
|
|
|
</td>
|
2005-03-04 02:14:44 +00:00
|
|
|
</tr>
|
2004-09-29 21:13:53 +00:00
|
|
|
</table>
|
2005-03-04 01:53:53 +00:00
|
|
|
</form>
|
2005-03-04 02:14:44 +00:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<div align="center">
|
|
|
|
<form action="<?php p($CFG->wwwroot)?>/index.php" method="post">
|
|
|
|
<input type="submit" value="<?php print_string("cancel") ?>" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2005-03-04 01:53:53 +00:00
|
|
|
<?php
|
|
|
|
print_simple_box_end();
|
|
|
|
|
|
|
|
|
2006-06-28 15:26:31 +00:00
|
|
|
if ($course->guest and !isguest()) {
|
2005-03-04 01:53:53 +00:00
|
|
|
print_simple_box_start('center');
|
|
|
|
?>
|
2005-02-05 16:58:28 +00:00
|
|
|
<form name="form" method="post" action="enrol.php">
|
|
|
|
<table align="center" cellpadding="20">
|
|
|
|
<tr>
|
2005-03-04 01:53:53 +00:00
|
|
|
<td><?php print_string('allowguests') ?>: </td>
|
2005-02-05 16:58:28 +00:00
|
|
|
<td>
|
2005-03-04 01:53:53 +00:00
|
|
|
<input name="id" value="<?php p($course->id) ?>" type="hidden">
|
2005-02-05 16:58:28 +00:00
|
|
|
<input name="loginasguest" value="yes" type="hidden">
|
2005-03-04 01:53:53 +00:00
|
|
|
<input value="<?php print_string('loginguest') ?>" type="submit">
|
2005-02-05 16:58:28 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
2005-03-04 01:53:53 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
print_simple_box_end();
|
|
|
|
}
|
|
|
|
?>
|