| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php 2 3 if ($course->password != '' and !(isguestuser() and !empty($USER->enrolkey[$course->id]))) { // password 4 print_box_start('generalbox centerpara'); 5 echo '<p align="center">'; 6 7 $this->print_enrolmentkeyfrom( $course ); 8 ?> 9 </p> 10 11 <p align="center"><?php if (! empty($this->errormsg)) {formerr($this->errormsg);} ?></p> 12 13 14 <form method="post" action="enrol.php"> 15 <table align="center" width="100%"> 16 <tr> 17 <td align="right"><?php print_string("enrolmentkey") ?>:</td> 18 <td> 19 <input type="password" name="password" size="20" value="<?php p($password) ?>" /> 20 <input type="hidden" name="id" value="<?php p($course->id) ?>" /> 21 <input type="hidden" name="enrol" value="manual" /> 22 <input type="submit" value="<?php print_string("enrolme") ?>" /> 23 </td> 24 </tr> 25 </table> 26 </form> 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 35 <?php 36 print_box_end(); 37 } 38 39 40 if (isguestuser()) { 41 print_box_start('centerpara'); 42 if (empty($CFG->loginhttps)) { 43 $loginurl = $CFG->wwwroot .'/login/index.php'; 44 } else { 45 $wwwroot = str_replace('http:','https:', $CFG->wwwroot); 46 $loginurl = $wwwroot .'/login/index.php'; 47 } 48 print_single_button($loginurl, null, get_string('login')); 49 print_box_end(); 50 } 51 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |