Last change
on this file since 647 was
462,
checked in by anonymous, 11 years ago
|
Added 'Remember me' checkbox to login form. Renamed 'persistent' key to 'saved' in Prefs.inc.php.
|
File size:
1.5 KB
|
Rev | Line | |
---|
[421] | 1 | <?php |
---|
| 2 | $autocomplete = $auth->getParam('login_form_allow_autocomplete') ? '' : ' autocomplete="off"'; |
---|
| 3 | ?> |
---|
| 4 | <form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" class="sc-form"<?php echo $autocomplete; ?>> |
---|
[136] | 5 | <?php $app->printHiddenSession() ?> |
---|
[20] | 6 | <table> |
---|
[296] | 7 | <tr class="sc-form-row"> |
---|
[121] | 8 | <td class="sc-right"><label for="username"><?php echo _("Username"); ?></label></td> |
---|
[22] | 9 | <td> |
---|
[121] | 10 | <input type="text" class="sc-small" size="20" name="username" value="<?php echo oTxt($frm['username']); ?>" /> |
---|
[20] | 11 | </td> |
---|
[1] | 12 | </tr> |
---|
[296] | 13 | <tr class="sc-form-row"> |
---|
[121] | 14 | <td class="sc-right"><label for="password"><?php echo _("Password"); ?></label></td> |
---|
[22] | 15 | <td> |
---|
[421] | 16 | <input type="password" class="sc-small" size="20" name="password" value=""<?php echo $autocomplete; ?> /> |
---|
[20] | 17 | </td> |
---|
[1] | 18 | </tr> |
---|
[462] | 19 | <tr class="sc-form-row"> |
---|
| 20 | <td class="sc-right"> </td> |
---|
| 21 | <td> |
---|
| 22 | <label class="sc-label-secondary"><input type="checkbox" name="remember_me" id="remember_me" value="1"<?php frmChecked($frm['remember_me']) ?> /> <?php echo _("Remember my username"); ?></label> |
---|
| 23 | </td> |
---|
| 24 | </tr> |
---|
[1] | 25 | <tr> |
---|
[20] | 26 | <td> </td> |
---|
[22] | 27 | <td><input type="submit" value="<?php echo _("Login"); ?>" /></td> |
---|
[1] | 28 | </tr> |
---|
| 29 | </table> |
---|
| 30 | </form> |
---|
[462] | 31 | <script type="text/javascript" charset="utf-8"> |
---|
| 32 | /* <![CDATA[ */ |
---|
| 33 | $(document).ready(function() { |
---|
| 34 | if ($('input[name="username"]').val() != '') { |
---|
| 35 | $('input[name="password"]').focus(); |
---|
| 36 | } else { |
---|
| 37 | $('input[name="username"]').focus(); |
---|
| 38 | } |
---|
| 39 | }); |
---|
| 40 | /* ]]> */ |
---|
| 41 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.