MDL-17457 migrated all modules to new db/install.php; added upgrade.txt file for...
[moodle.git] / enrol / manual / enrol.html
CommitLineData
2b91b669 1<?php
2
3 if ($course->password != '' and !(isguestuser() and !empty($USER->enrolkey[$course->id]))) { // password
2b91b669 4 print_box_start('generalbox centerpara');
5 echo '<p align="center">';
4d3145f3 6
7 $this->print_enrolmentkeyfrom( $course );
553924dc 8 ?>
9 </p>
10
11 <p align="center"><?php if (! empty($this->errormsg)) {formerr($this->errormsg);} ?></p>
2e23c59d 12
2e23c59d 13
b7dc2256 14 <form method="post" action="enrol.php">
82eda1cf 15 <table align="center" width="100%">
2e23c59d 16 <tr>
82eda1cf 17 <td align="right"><?php print_string("enrolmentkey") ?>:</td>
553924dc 18 <td>
82eda1cf 19 <input type="password" name="password" size="20" value="<?php p($password) ?>" />
20 <input type="hidden" name="id" value="<?php p($course->id) ?>" />
afc36fdf 21 <input type="hidden" name="enrol" value="manual" />
82eda1cf 22 <input type="submit" value="<?php print_string("enrolme") ?>" />
2e23c59d 23 </td>
82eda1cf 24 </tr>
2e23c59d 25 </table>
553924dc 26 </form>
82eda1cf 27 <br />
28
29 <div align="center">
30 <form action="<?php p($CFG->wwwroot)?>/index.php" method="post">
31 <input type="submit" value="<?php print_string("cancel") ?>" />
32 </form>
33 </div>
34
553924dc 35<?php
2b91b669 36 print_box_end();
37 }
553924dc 38
553924dc 39
2b91b669 40 if (isguestuser()) {
41 print_box_start('centerpara');
93f66983 42 $loginurl = get_login_url();
2b91b669 43 print_single_button($loginurl, null, get_string('login'));
44 print_box_end();
553924dc 45 }
46?>