source: trunk/services/templates/login_form.ihtml @ 816

Last change on this file since 816 was 815, checked in by anonymous, 4 months ago

Minor fixes

File size: 1.5 KB
RevLine 
[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; ?>>
[763]5<?php $app->printHiddenSession(['boomerang']) ?>
[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>
[815]10            <input type="text" class="sc-medium" 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>
[815]16            <input type="password" class="sc-medium" 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">&nbsp;</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>&nbsp;</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.