Automatically generated installer lang files
[moodle.git] / login / index_form.html
CommitLineData
7bc1c17f 1<?php
2if ($show_instructions) {
4b873929 3 $columns = 'twocolumns';
7bc1c17f 4} else {
4b873929 5 $columns = 'onecolumn';
7bc1c17f 6}
4eaee2c8
PS
7
8if (empty($CFG->xmlstrictheaders) and !empty($CFG->loginpasswordautocomplete)) {
9 $autocomplete = 'autocomplete="off"';
10} else {
11 $autocomplete = '';
12}
7bc1c17f 13?>
849728c0 14<div class="loginbox clearfix <?php echo $columns ?>">
5e1dc8e4 15 <div class="loginpanel">
639ac85f
RW
16<?php
17 if (($CFG->registerauth == 'email') || !empty($CFG->registerauth)) { ?>
18 <div class="skiplinks"><a class="skip" href="signup.php"><?php print_string("tocreatenewaccount"); ?></a></div>
19<?php
8a8f1c7c 20 } ?>
5e1dc8e4 21 <h2><?php print_string("returningtosite") ?></h2>
9a34376e 22 <div class="subcontent loginsub">
4b873929 23 <div class="desc">
24 <?php
25 print_string("loginusing");
98eaf27e
PS
26 echo '<br/>';
27 echo '('.get_string("cookiesenabled").')';
28 echo $OUTPUT->help_icon('cookiesenabled');
4b873929 29 ?>
30 </div>
fd78420b 31 <?php
4b873929 32 if (!empty($errormsg)) {
e99486c4
RW
33 echo html_writer::start_tag('div', array('class' => 'loginerrors'));
34 echo html_writer::link('#', $errormsg, array('id' => 'loginerrormessage', 'class' => 'accesshide'));
424e6bff 35 echo $OUTPUT->error_text($errormsg);
e99486c4 36 echo html_writer::end_tag('div');
4b873929 37 }
c632b7bb 38 ?>
4eaee2c8 39 <form action="<?php echo $CFG->httpswwwroot; ?>/login/index.php" method="post" id="login" <?php echo $autocomplete; ?> >
4b873929 40 <div class="loginform">
41 <div class="form-label"><label for="username"><?php print_string("username") ?></label></div>
9a34376e 42 <div class="form-input">
be544ec3 43 <input type="text" name="username" id="username" size="15" value="<?php p($frm->username) ?>" />
4b873929 44 </div>
45 <div class="clearer"><!-- --></div>
46 <div class="form-label"><label for="password"><?php print_string("password") ?></label></div>
9a34376e 47 <div class="form-input">
4eaee2c8 48 <input type="password" name="password" id="password" size="15" value="" <?php echo $autocomplete; ?> />
43d65a95 49 <input type="submit" id="loginbtn" value="<?php print_string("login") ?>" />
4b873929 50 </div>
c5f2853d 51 </div>
4b873929 52 <div class="clearer"><!-- --></div>
0342fc36 53 <?php if (isset($CFG->rememberusername) and $CFG->rememberusername == 2) { ?>
c5f2853d
AB
54 <div class="rememberpass">
55 <input type="checkbox" name="rememberusername" id="rememberusername" value="1" <?php if ($frm->username) {echo 'checked="checked"';} ?> />
56 <label for="rememberusername"><?php print_string('rememberusername', 'admin') ?></label>
57 </div>
0342fc36 58 <?php } ?>
0342fc36
PS
59 <div class="clearer"><!-- --></div>
60 <div class="forgetpass"><a href="forgot_password.php"><?php print_string("forgotten") ?></a></div>
4b873929 61 </form>
7bc1c17f 62 </div>
7b27ce2c 63
999b54af 64<?php if ($CFG->guestloginbutton and !isguestuser()) { ?>
9a34376e 65 <div class="subcontent guestsub">
f1906da1 66 <div class="desc">
67 <?php print_string("someallowguest") ?>
68 </div>
c7225fe2 69 <form action="index.php" method="post" id="guestlogin">
4b873929 70 <div class="guestform">
71 <input type="hidden" name="username" value="guest" />
72 <input type="hidden" name="password" value="guest" />
4b873929 73 <input type="submit" value="<?php print_string("loginguest") ?>" />
74 </div>
7b27ce2c 75 </form>
7bc1c17f 76 </div>
7b27ce2c 77<?php } ?>
4b873929 78 </div>
7b27ce2c 79<?php if ($show_instructions) { ?>
9a34376e 80 <div class="signuppanel">
849728c0 81 <h2><?php print_string("firsttime") ?></h2>
4b873929 82 <div class="subcontent">
6c3ef410 83<?php if (is_enabled_auth('none')) { // instructions override the rest for security reasons
3fe6b721 84 print_string("loginstepsnone");
85 } else if ($CFG->registerauth == 'email') {
86 if (!empty($CFG->auth_instructions)) {
87 echo format_text($CFG->auth_instructions);
88 } else {
89 print_string("loginsteps", "", "signup.php");
90 } ?>
4b873929 91 <div class="signupform">
c7225fe2 92 <form action="signup.php" method="get" id="signup">
93 <div><input type="submit" value="<?php print_string("startsignup") ?>" /></div>
7b27ce2c 94 </form>
95 </div>
3fe6b721 96<?php } else if (!empty($CFG->registerauth)) {
6bc1e5d5 97 echo format_text($CFG->auth_instructions); ?>
98 <div class="signupform">
99 <form action="signup.php" method="get" id="signup">
100 <div><input type="submit" value="<?php print_string("startsignup") ?>" /></div>
101 </form>
102 </div>
103<?php } else {
3fe6b721 104 echo format_text($CFG->auth_instructions);
105 } ?>
4b873929 106 </div>
107 </div>
7b27ce2c 108<?php } ?>
b257d7c4
PL
109<?php if (!empty($potentialidps)) { ?>
110 <div class="subcontent potentialidps">
111 <h6><?php print_string('potentialidps', 'auth'); ?></h6>
112 <div class="potentialidplist">
113<?php foreach ($potentialidps as $idp) {
114 echo '<div class="potentialidp"><a href="' . $idp['url']->out() . '" title="' . $idp['name'] . '">' . $OUTPUT->render($idp['icon'], $idp['name']) . '&nbsp;' . $idp['name'] . '</a></div>';
115} ?>
116 </div>
117 </div>
118<?php } ?>
849728c0 119</div>