added reception stuff to main page
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 18 May 2012 04:45:26 +0000 (04:45 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 18 May 2012 04:45:26 +0000 (04:45 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@481 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2/pa_cppbinding_test/Release/.gitignore [new file with mode: 0644]
mini-asterisk-gui2/phones.js

diff --git a/fdmdv2/pa_cppbinding_test/Release/.gitignore b/fdmdv2/pa_cppbinding_test/Release/.gitignore
new file mode 100644 (file)
index 0000000..e69de29
index 3c5cb418d94cb6bee2ae2b8f8dda83c5cc3e431f..4f3cb52fe9cc93a2066d954fd9903c1e50e182f3 100644 (file)
@@ -27,7 +27,7 @@ function initialisePage() {
     var icon = '<img src="tick.png" alt="Analog Phone OK" />';
     var html = '';
 
-    html += '<table align="right" width=600>';
+    html += '<table align="right" width=600 cellspacing=2>';
 
     // print out internet connection
 
@@ -46,11 +46,26 @@ function initialisePage() {
 //         html += "<td>Port" + i  + "<td>" +"   <img src=" + "tick.png" + " />"+"</td>" + "</td></tr>";
 //         html += "<td>Port" + i  + "<td>" + '<img src="tick.png" />' + "</td>" + "</td></tr>";
            html += "<td>Port" + i  + "</td>";
+           //html += "<td>(Reception)</td>";
+            // the reception checkbox code
+           html += "<td>" + '<input type="checkbox" name="reception' + analog_ext[i] ;
+           // todo ian change zap[i] to array of reception info 
+            if (zap[i] == 'reception') {
+                   html += '" checked/>';
+               }
+           else {
+                   html += '" unchecked/>';
+           }
+            html += "</td>";
+       
+           html += "<td>(Reception)</td>";
             html += "<td>" + '<img src="tick.png" />' + "</td>";
             html += "</tr>";
        }
     }
 
+
+
     // print out IP phones
 
     for (j in ip_ext) {
@@ -63,6 +78,18 @@ function initialisePage() {
        }
     }
 
+    // print out submit button
+
+
+    html += "<tr>";
+    html += "<td>";
+    html += "<a href=ipphones.html    /a>Add IP Phone";
+    html += "</td>";
+    html += "<td>";
+    html += "<input type='submit' value='Update Reception' />";
+    html += "</td>";
+    html += "</tr>";
+
     // print out phone lines
 
     html += '<tr><td colspan="4" align="left" valign="top"><h2>Phone Lines</h2></td></tr>';
@@ -76,6 +103,14 @@ function initialisePage() {
        }
     }
 
+    // add a voip line
+
+    html += "<tr>";
+    html += "<td>";
+    html += "<a href=voiplines.html    /a>Add Voip line";
+    html += "</td>";
+    html += "</tr>";
+
     html += '</table>';
 
     document.getElementById("phones_table").innerHTML += html;