git-svn-id: https://svn.code.sf.net/p/freetel/code@1146 01035d8c-6547-0410-b346-abe4f...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 20 Dec 2012 20:51:38 +0000 (20:51 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 20 Dec 2012 20:51:38 +0000 (20:51 +0000)
mini-asterisk-gui2/login.html [new file with mode: 0644]
mini-asterisk-gui2/minicommon.js

diff --git a/mini-asterisk-gui2/login.html b/mini-asterisk-gui2/login.html
new file mode 100644 (file)
index 0000000..24b6bb1
--- /dev/null
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
+<title>Mini Asterisk - Login</title>
+
+<link rel="stylesheet" type="text/css" href="ministyle.css" />
+<link rel="stylesheet" href="tooltip.css" type="text/css" />
+<script type="text/javascript" src="minicommon.js"></script>
+<script type="text/javascript" src="tooltip.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+//      <input name="update_recept" type="button" style="width:100%" value="update reception" onClick="onClickUpdateReception()" />
+
+</script>
+
+</head>
+
+<body>
+  
+    <table align="center" width=600>
+    <tr><td colspan="2" align="left"><h2>Login</h2></td>
+    <tr>
+      <tr><td>Password:</td><td><input type="password" name="pass" ></td></tr>
+      <tr><td><input name="submit_password" type="button" style="width:50%" value="Login" onClick="onClickLogin()"></td></tr>
+
+    </tr>
+    <tr><td></td><td>Default password is uClinux</td>
+    </table>
+  
+</body>
+</html>
index e89c843ec928cf93191afbe2d3773b34d332ae3e..295d0734c8837e3f20e1c8b0dccc1437f002a7ac 100644 (file)
@@ -6,6 +6,8 @@
   Common functions used by Mini Asterisk GUI.
 */
 
+var    logged_in = 0;
+
 // index Zaptel port number (1,2,...), value extension (6001,6002...)
 
 var analog_ext = [];
@@ -411,5 +413,17 @@ function downloadUrl2(url, callback) {
 
 }
 
+function onClickLogin() {
+
+       // load password from file
+       
+       // Test submit against pw
+
+       // If ok then
+       logged_in = 1;
+       // else
+       
+       // fail
+}