diff options
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> |