Added system info page
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 6 May 2012 23:24:03 +0000 (23:24 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 6 May 2012 23:24:03 +0000 (23:24 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@400 01035d8c-6547-0410-b346-abe4f91aad63

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

diff --git a/mini-asterisk-gui2/system.html b/mini-asterisk-gui2/system.html
new file mode 100644 (file)
index 0000000..56fb537
--- /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="system.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="system"></div></td>
+  </tr>
+
+  </table>
+</body>
+</html>
diff --git a/mini-asterisk-gui2/system.js b/mini-asterisk-gui2/system.js
new file mode 100644 (file)
index 0000000..be203bd
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+  about.js
+  Ian Roberts
+  May 7 2012
+
+  System screen for Mini Asterisk GUI2.
+*/
+
+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>System</h2></td></tr>';
+    html += '<tr><td colspan="2">Display results of the following shell commands</td></tr>';
+    html += '<tr><td colspan="2">cat /proc/version</td></tr>';
+    html += '<tr><td colspan="2">ipkg list_installed</td></tr>';
+    html += '<tr><td colspan="2">cat /proc/loadavg</td></tr>';
+    html += '<tr><td colspan="2">uptime</td></tr>';
+    html += '<tr><td colspan="2">cat /proc/cpuinfo</td></tr>';
+    html += '<tr><td colspan="2">cat /proc/mtd</td></tr>';
+    html += '<tr><td colspan="2">cat /proc/yaffs</td></tr>';
+    html += '<tr><td>&nbsp</td></tr>';
+    html += '</table>';
+
+    document.getElementById("system").innerHTML += html;
+
+}
+
+
+