From c5e81150a719ad4d21b0f1e534856eedbc1f28f5 Mon Sep 17 00:00:00 2001 From: horse69 Date: Fri, 18 May 2012 04:45:26 +0000 Subject: [PATCH] added reception stuff to main page git-svn-id: https://svn.code.sf.net/p/freetel/code@481 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2/pa_cppbinding_test/Release/.gitignore | 0 mini-asterisk-gui2/phones.js | 37 +++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 fdmdv2/pa_cppbinding_test/Release/.gitignore diff --git a/fdmdv2/pa_cppbinding_test/Release/.gitignore b/fdmdv2/pa_cppbinding_test/Release/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/mini-asterisk-gui2/phones.js b/mini-asterisk-gui2/phones.js index 3c5cb418..4f3cb52f 100644 --- a/mini-asterisk-gui2/phones.js +++ b/mini-asterisk-gui2/phones.js @@ -27,7 +27,7 @@ function initialisePage() { var icon = 'Analog Phone OK'; var html = ''; - html += ''; + html += '
'; // print out internet connection @@ -46,11 +46,26 @@ function initialisePage() { // html += "" + ""; // html += "" + ""; html += ""; + //html += ""; + // the reception checkbox code + html += ""; + + html += ""; html += ""; html += ""; } } + + // print out IP phones for (j in ip_ext) { @@ -63,6 +78,18 @@ function initialisePage() { } } + // print out submit button + + + html += ""; + html += ""; + html += ""; + html += ""; + // print out phone lines html += ''; @@ -76,6 +103,14 @@ function initialisePage() { } } + // add a voip line + + html += ""; + html += ""; + html += ""; + html += '
Port" + i + "" +" "+"
Port" + i + "" + '' + "
Port" + i + "(Reception)" + ''; + } + else { + html += '" unchecked/>'; + } + html += "(Reception)" + '' + "
"; + html += "Add IP Phone"; + html += ""; + html += ""; + html += "

Phone Lines

"; + html += "Add Voip line"; + html += "
'; document.getElementById("phones_table").innerHTML += html; -- 2.25.1