git-svn-id: https://svn.code.sf.net/p/freetel/code@482 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 18 May 2012 04:54:04 +0000 (04:54 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 18 May 2012 04:54:04 +0000 (04:54 +0000)
mini-asterisk-gui2/phones.js

index 4f3cb52fe9cc93a2066d954fd9903c1e50e182f3..93ada138c700ee630918f00f10eabb8596ba11a1 100644 (file)
@@ -73,6 +73,20 @@ function initialisePage() {
             html += "<tr>";
            html += "<td>" + j + "</td>" + "<td>" + "IP Phone" + "</td>";
            html += "<td>" + ip_ext[j] + "</td>";
+
+            // the reception checkbox code
+           html += "<td>" + '<input type="checkbox" name="reception' + ip_ext[j] ;
+           // todo ian change zap[i] to array of reception info 
+            if (ip_ext[j] == 'reception') {
+                   html += '" checked/>';
+               }
+           else {
+                   html += '" unchecked/>';
+           }
+            html += "</td>";
+       
+           html += "<td>(Reception)</td>";
+
             html += "<td>" + '<img src="tick.png" />' + "</td>";
             html += "</tr>";
        }