Add idnumber to list of course students
[moodle.git] / login / index_form.html
blobd06e5a96f104d4fb681561769a97ea423e0b2d05
1 <table width="90%" border="0" cellspacing="10" cellpadding="5" align="center" style="font-size: small">
2 <tr>
3 <?php if ($show_instructions) { ?>
4 <td width="50%" bgcolor="<?php p($THEME->cellheading2) ?>" class="headingblock">
5 <p align="center"><b><font size="3"><?php print_string("returningtosite") ?></font></b></p>
6 </td>
7 <td width="50%" bgcolor="<?php p($THEME->cellheading2) ?>" class="headingblock">
8 <p align="center"><b><font size="3"><?php print_string("firsttime") ?></font></b></p>
9 </td>
10 <?php } ?>
11 </tr>
12 <tr>
13 <td width="50%" align="center" valign="top" bgcolor="<?php p($THEME->cellcontent2) ?>" class="generalbox">
14 <p><?php print_string("loginusing") ?>:<br />
15 (<?php print_string("cookiesenabled");?>)
16 <?php helpbutton("cookies", get_string("cookiesenabled"))?><br /><?php formerr($errormsg) ?>
17 </p>
18 <form action="index.php" method="post" name="login" id="login">
19 <table border="0" align="center" style="font-size: small">
20 <tr>
21 <td width="80%">
22 <table align="center" style="font-size: small">
23 <tr>
24 <td align="right">
25 <p><?php print_string("username") ?>:</p>
26 </td>
27 <td>
28 <input type="text" name="username" size="15" value="<?php p($frm->username) ?>" />
29 </td>
30 </tr>
31 <tr>
32 <td align="right">
33 <p><?php print_string("password") ?>:</p>
34 </td>
35 <td>
36 <input type="password" name="password" size="15" value="<?php p($frm->password) ?>" />
37 </td>
38 </tr>
39 </table>
40 </td>
41 <td width="20%">
42 <input type="submit" value="<?php print_string("login") ?>" />
43 </td>
44 </tr>
45 </table>
46 </form>
48 <?php if ($CFG->guestloginbutton) { ?>
49 <hr width="80%" />
50 <p><?php print_string("someallowguest") ?>:</p>
51 <p>
52 <form action="index.php" method="post" name="guestlogin">
53 <input type="hidden" name="username" value="guest" />
54 <input type="hidden" name="password" value="guest" />
55 <input type="submit" value="<?php print_string("loginguest") ?>" />
56 </form>
57 </p>
58 <?php } ?>
60 <?php if ($CFG->changepassword or is_internal_auth() ) {
61 if (is_internal_auth()) {
62 $changepassword = "forgot_password.php";
63 $changebuttonname = get_string("senddetails");
64 } else {
65 $changepassword = $CFG->changepassword;
66 $changebuttonname = get_string("passwordrecovery");
69 <hr width="80%" />
70 <p><?php print_string("forgotten") ?></p>
71 <p>
72 <form action="<?php p($changepassword) ?>" method="get" name="changepassword">
73 <input type="submit" value="<?php p($changebuttonname) ?>" />
74 </form>
75 </p>
76 <?php } ?>
78 </td>
80 <?php if ($show_instructions) { ?>
81 <td width="50%" valign="top" bgcolor="<?php p($THEME->cellcontent2) ?>" class="generalbox">
82 <?php switch ($CFG->auth) {
83 case "email":
84 echo "<p>".get_string("loginsteps", "", "signup.php")."</p>";
86 <div align="center">
87 <form action="signup.php" method="get" name="signup">
88 <input type="submit" value="<?php print_string("startsignup") ?>" />
89 </form>
90 </div>
91 <?php break;
92 case "none":
93 echo "<p>".get_string("loginstepsnone")."</p>";
94 break;
95 default:
96 echo format_text($CFG->auth_instructions);
97 require_once("../auth/$CFG->auth/lib.php");
98 if (!empty($CFG->auth_user_create) and function_exists('auth_user_create') ){
100 <div align="center">
101 <form action="signup.php" method="get" name="signup">
102 <input type="submit" value="<?php print_string("startsignup") ?>" />
103 </form>
104 </div>
105 <?php }
108 </td></tr>
109 <?php } ?>
110 </table>