file letter.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000
[moodle.git] / login / index_form.html
blobcacbcb3c8b82b0f3baac514b9c552857bfc98cb9
1 <table width="90%" border="0" cellspacing="10" cellpadding="5" align="center" class="loginbox">
2 <?php if ($show_instructions) { ?>
3 <tr>
4 <th width="50%" class="header left">
5 <?php print_string("returningtosite") ?>
6 </th>
7 <th width="50%" class="header right">
8 <?php print_string("firsttime") ?>
9 </th>
10 </tr>
11 <?php } ?>
12 <tr>
13 <td width="50%" align="center" valign="top" class="content left">
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">
20 <tr>
21 <td width="80%">
22 <table align="center" class="loginform">
23 <tr class="username">
24 <td align="right" class="c0">
25 <?php print_string("username") ?>:
26 </td>
27 <td class="c1">
28 <input type="text" name="username" size="15" value="<?php p($frm->username) ?>" alt="<?php print_string("username") ?>" />
29 </td>
30 </tr>
31 <tr class="password">
32 <td align="right" class="c0">
33 <?php print_string("password") ?>:
34 </td>
35 <td class="c1">
36 <input type="password" name="password" size="15" value="" alt="<?php print_string("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 <form action="index.php" method="post" name="guestlogin">
52 <input type="hidden" name="username" value="guest" />
53 <input type="hidden" name="password" value="guest" />
54 <input type="submit" value="<?php print_string("loginguest") ?>" />
55 </form>
56 <?php } ?>
58 <?php if ($CFG->changepassword or is_internal_auth() ) {
59 if (is_internal_auth()) {
60 $changepassword = "forgot_password.php";
61 $changebuttonname = get_string("senddetails");
62 } else {
63 $changepassword = $CFG->changepassword;
64 $changebuttonname = get_string("passwordrecovery");
67 <hr width="80%" />
68 <p><?php print_string("forgotten") ?></p>
69 <form action="<?php p($changepassword) ?>" method="get" name="changepassword">
70 <input type="submit" value="<?php p($changebuttonname) ?>" />
71 </form>
72 <?php } ?>
74 </td>
76 <?php if ($show_instructions) { ?>
77 <td width="50%" valign="top" class="content right">
78 <?php switch ($CFG->auth) {
79 case "email":
80 print_string("loginsteps", "", "signup.php");
82 <div align="center">
83 <form action="signup.php" method="get" name="signup">
84 <input type="submit" value="<?php print_string("startsignup") ?>" />
85 </form>
86 </div>
87 <?php break;
88 case "none":
89 print_string("loginstepsnone");
90 break;
91 default:
92 echo format_text($CFG->auth_instructions);
93 if (!function_exists('auth_user_login')) {
94 require_once("../auth/$CFG->auth/lib.php");
96 if (!empty($CFG->auth_user_create) and function_exists('auth_user_create') ){
98 <div align="center">
99 <form action="signup.php" method="get" name="signup">
100 <input type="submit" value="<?php print_string("startsignup") ?>" />
101 </form>
102 </div>
103 <?php }
106 </td></tr>
107 <?php } ?>
108 </table>