about screen first pass
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 6 May 2012 22:28:24 +0000 (22:28 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 6 May 2012 22:28:24 +0000 (22:28 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@396 01035d8c-6547-0410-b346-abe4f91aad63

mini-asterisk-gui2/about.html [new file with mode: 0644]
mini-asterisk-gui2/about.js [new file with mode: 0644]
mini-asterisk-gui2/menu.js

diff --git a/mini-asterisk-gui2/about.html b/mini-asterisk-gui2/about.html
new file mode 100644 (file)
index 0000000..d111e87
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
+<title>About</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" src="about.js"></script>
+<script type="text/javascript">
+
+</script>
+
+</head>
+
+<body onload="initialise()">
+
+  <table align="center" width=800>
+  <tr>
+    <td><div id="menu"></div></td>
+    <td><div id="about"></div></td>
+  </tr>
+
+  </table>
+</body>
+</html>
diff --git a/mini-asterisk-gui2/about.js b/mini-asterisk-gui2/about.js
new file mode 100644 (file)
index 0000000..c62093c
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+  about.js
+  Ian Roberts
+  May 7 2010
+
+  About screen for Mini Asterisk GUI.
+*/
+
+var update_time = 10;
+
+
+// Called when we load page
+
+function initialise() {
+    mainMenu();
+
+    initialisePage();
+}
+
+
+function initialisePage() {
+    // 
+    
+    var icon = '<img src="tick.png" alt="Analog Phone OK" />';
+    var html = '';
+
+    html += '<table align="right" width=600>';
+
+    // print out info
+
+    html += '<tr><td colspan="3" align="left" valign="top"><h2>About</h2></td></tr>';
+    html += '<tr><td colspan="2">Mini Asterisk</td><td> </td><td>Revision XXX</td></tr>';
+    html += '<tr><td colspan="2">Brought to you by the</td><td> </td><td>Free Telephony Project</td></tr>';
+    html += '<tr><td colspan="2">Image goes here</td><td> </td><td>Pic</td></tr>';
+    html += '<tr><td>&nbsp</td></tr>';
+    // print out analog phones
+
+/*    html += '<tr><td colspan="4" align="left" valign="top"><h2>Phones</h2></td></tr>';
+    for(var i=0; i<zap.length; i++) {
+        if (zap[i] == 'FXS') {
+            html += "<tr>";
+           html += "<td>" + analog_ext[i] + "</td>" + "<td>" + "Analog Phone" + "</td>";
+           html += "<td>Port" + i  + "</td>";
+            html += "<td>" + '<img src="tick.png" />' + "</td>";
+            html += "</tr>";
+       }
+    }
+*/
+
+    html += '</table>';
+
+    document.getElementById("about").innerHTML += html;
+
+}
+
+
+
index 109113dda6a0081d102b107328a625c85bfac7a9..259c6ed932cab4cf03d6d2aba3344a997c1a97c5 100644 (file)
@@ -8,7 +8,7 @@
 
 var menuItems = [
     '<a href="phones.html">Phone System</a>',
-    '<a href="about.sh">About</a>',
+    '<a href="about.html">About</a>',
     '<a href="admin.sh">Admin</a>',
     '<a href="faq.sh">FAQ</a>',
     '<a href="ipphones.sh">IP Phones</a>',