diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-07 06:07:18 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-07 06:07:18 +0000 |
commit | 2c60683b106fad0c3410ba30d669679955508958 (patch) | |
tree | 905a87d19e5ba5dd264ac7fef3a6c493d81506b6 /UI | |
parent | 297c220ffce8d03f2ca8a196336d47d3754ce95c (diff) |
Login is still broken. However, a lot of progress has been made. THis also includes the COGS changes made since 1.2.8
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1712 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI')
-rw-r--r-- | UI/login.css | 2 | ||||
-rw-r--r-- | UI/login.html | 96 |
2 files changed, 55 insertions, 43 deletions
diff --git a/UI/login.css b/UI/login.css index 2809fe74..3b38893c 100644 --- a/UI/login.css +++ b/UI/login.css @@ -10,7 +10,7 @@ div.login { div.login div.login { width: 21em; - height: 20em; + height: 23em; border-width: 1px; border-style: solid; padding-bottom: 2em; diff --git a/UI/login.html b/UI/login.html index fb9ff629..6dcf560f 100644 --- a/UI/login.html +++ b/UI/login.html @@ -13,35 +13,60 @@ <meta name="robots" content="noindex,nofollow" /> - <script language="JavaScript" type="text/javascript"> - <!-- - var agt = navigator.userAgent.toLowerCase(); - var is_major = parseInt(navigator.appVersion); - var is_nav = ((agt.indexOf('mozilla') != -1) && (agt.indexOf('spoofer') == -1) - && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera') == -1) - && (agt.indexOf('webtv') == -1)); - var is_nav4lo = (is_nav && (is_major <= 4)); - - function jsp() { - if (is_nav4lo){ - document.login.js.value = "0"; - } else { - document.login.js.value = "1"; - } - } + <script language="JavaScript" type="text/javascript" + src="UI/login.js"> + </script> + <script language="JavaScript" type="text/javascript" > +function setup_page() { + var credential_html; - function sf() { document.login.login.focus(); } - // End --> + var cred_div = document.getElementById("credentials"); + credential_html = + '<div class="labelledinput">' + + '<div class="label">' + + '<label for="login">' + + "<?lsmb text('Name') ?>"+ + "</label>" + + '</div>' + + '<div class="input">' + + '<input class="login" ' + + 'name="login" size="30" ' + + 'value="" id="login" '+ + 'accesskey="n" />' + + '</div>' + + '</div>' + + '<div class="labelledinput">' + + '<div class="label">' + + '<label for="password">' + + "<?lsmb text('Password') ?>" + + '</label>' + + '</div>' + + '<div class="input">' + + '<input class="login" ' + + 'type="password" ' + + 'name="password" ' + + 'size="30" ' + + 'id="password" ' + + 'accesskey="p" />' + + '</div>' + + '</div>'; + if (<?lsmb IF blacklisted ?>false<?lsmb ELSE ?>true<?lsmb END ?> + && get_http_request_object()){ + cred_div.innerHTML = credential_html; + } + document.login.login.focus(); +} </script> </head> -<body class="login" onload="jsp(); sf();"> +<body class="login" onload="setup_page();"> <br /><br /> <center> - <form method="post" action="login.pl" name="login"> + <form method="post" action="login.pl" name="login" + onsubmit="return submit_form()"> <input type="hidden" name="menubar" value="<?lsmb menubar ?>"> <div class="login"> @@ -49,35 +74,22 @@ <a href="http://www.ledgersmb.org/" target="_top"><img src="images/ledgersmb.png" class="logo" alt="LedgerSMB Logo" /></a> <h1 class="login" align="center">Version SVN Trunk</h1> <div align="center"> - <div class="labelledinput"> - <div class="label"> - <label for="login"> - <?lsmb text('Name') ?> - </label> - </div> - <div class="input"> - <input class="login" - name="login" size="30" - value="" - id="login" - accesskey="n" /> - </div> - </div> - <div class="labelledinput"> + <div id="credentials"></div> + <div id="company"> + <div class="labelledinput"> <div class="label"> - <label for="password"> - <?lsmb text('Password') + <label for="company"> + <?lsmb text('Company') ?> </label> </div> <div class="input"> <input class="login" - type="password" - name="password" + type="text" + name="company" size="30" - id="password" - accesskey="p" /> - </div> + id="company" + accesskey="c" /> </div> </div> <button type="submit" name="action" value="login" accesskey="l"><?lsmb text('Login') ?></button> |