summaryrefslogtreecommitdiff
path: root/UI
diff options
context:
space:
mode:
authoraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-15 23:10:31 +0000
committeraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-15 23:10:31 +0000
commitd340ccd5ecbb731c273a07876ad0dfc0a9b33379 (patch)
tree15acb5cc66a14c787ef49a6bab8910cdca0f82c9 /UI
parentc366b783a65dfdd7dadb105962ae0807cddaa6b9 (diff)
Significant work on the Entity and Administrative code. It's buggy, so please test, etc. thoroughly.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1869 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI')
-rw-r--r--UI/Admin/main.html2
-rw-r--r--UI/get_password.html30
-rw-r--r--UI/login.js14
3 files changed, 34 insertions, 12 deletions
diff --git a/UI/Admin/main.html b/UI/Admin/main.html
index a7e07c73..adb03840 100644
--- a/UI/Admin/main.html
+++ b/UI/Admin/main.html
@@ -19,7 +19,7 @@
<td>Date Added</td>
</tr>
- <?lsmb FOREACH user = users.all ?>
+ <?lsmb FOREACH user = users ?>
<tr>
<td></td>
diff --git a/UI/get_password.html b/UI/get_password.html
index 774caea3..43e57eff 100644
--- a/UI/get_password.html
+++ b/UI/get_password.html
@@ -7,17 +7,27 @@
<meta http-equiv="Expires" content="-1" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/<?lsmb stylesheet ?>" type="text/css" />
+
<meta http-equiv="content-type"
content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow" />
-<script language="JavaScript" type="text/javascript">
-<!--
-function focus_input(){
- document.getpassword.password.focus();
-}
-// End -->
-</script>
+ <script language="JavaScript" type="text/javascript" src="UI/login.js" />
+
+ <script language="JavaScript" type="text/javascript">
+ <!--
+ function focus_input(){
+ document.getpassword.password.focus();
+ }
+ // End -->
+ </script>
+ <style>
+ div.admin_login {
+
+ align: center;
+ }
+
+ </style>
</head>
<body onload="focus_input()">
<?lsmb IF sessionexpired ?>
@@ -25,13 +35,13 @@ function focus_input(){
<?lsmb text('Session expired!') ?>
</span></p>
<?lsmb END ?>
-<form method="post" action="<?lsmb script ?>" name="getpassword">
+<form method="post" action="<?lsmb script?>.pl" name="getpassword">
-<div>
+<div class="admin_login">
<span align=right class="label"> <?lsmb text('Password') ?> </span>
<span class="input"><input type="password" name="password" size="30"/>
</span>
- <span class="input"><button type="submit" value="continue">
+ <span class="input"><button type="submit" name="action" value="continue">
<?lsmb text('Continue') ?>
</button></span>
</div>
diff --git a/UI/login.js b/UI/login.js
index fd421e26..aa2af97c 100644
--- a/UI/login.js
+++ b/UI/login.js
@@ -11,7 +11,7 @@ function get_http_request_object(){
function submit_form() {
var http = get_http_request_object();
- var username = document.login.login.value;
+ var username = document.login.login.value;
var password = document.login.password.value;
http.open("get", 'login.pl?action=authenticate&company='
+ document.login.company.value, false,
@@ -25,3 +25,15 @@ function submit_form() {
document.location = document.login.action + "?action=login&company="+
documnet.login.company.value;
}
+
+function check_auth() {
+
+ var http = get_http_request_object();
+ var username = "admin";
+ var password = document.login.password.value;
+
+ http.open("get", "login.pl?action=authenticate&company="
+ + document.login.company.value, false,
+ username, password
+ );
+} \ No newline at end of file