git-svn-id: https://svn.code.sf.net/p/freetel/code@652 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 31 Aug 2012 21:06:24 +0000 (21:06 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 31 Aug 2012 21:06:24 +0000 (21:06 +0000)
mini-asterisk-gui2/network.html
mini-asterisk-gui2/phones.js

index 7275ed3423a3ad236a5d8f9347e5b170a458218a..5f9b259ebc7e4d5ebe23351a6d811aa5d7d0fb3c 100644 (file)
       <form name="network">
       <table align="center" width=600 border=0>
         <tr><td colspan="2" align="left" valign="top"><h2>Network</h2></td></tr>
-        <tr>
-          <td><input type="radio" id="static" name="dhcp" value="no" onClick="doStatic()">Static</td>
-          <td><input type="radio" id="dhcp" name="dhcp" value="yes" onClick="doDHCP()">DHCP</td>
-        </tr>
+       <tr><td colspan="1" align="middle" valign="top"><input type="radio" id="dhcp" name="dhcp" value="yes" onClick="doDHCP()">DHCP</td></tr>
+       <tr><td colspan="1" align="middle" valign="top"><input type="radio" id="static" name="dhcp" value="no" onClick="doStatic()">Static</td></tr>
         <tr><td>IP Address:</td><td><input type="text" name="ipaddress" onBlur="isIP(this)"></td></tr>
         <tr><td>Netmask:</td><td><input type="text" name="netmask" onBlur="isIP(this)"></td></tr>
         <tr><td>Gateway:</td><td><input type="text" name="gateway" onBlur="isIP(this)"></td></tr>
index fcb6b3a4b0d3cbae96c2ca2440731cb65227ce76..f5b0b8df6ad911503930d8d3aff9f5abc34389b1 100644 (file)
@@ -37,7 +37,7 @@ function initialisePage() {
     html += '<tr><td colspan="2">Phone System IP Address:</td><td> </td><td div id="ipaddress"></div></td></tr>';
     html += '<tr><td>&nbsp</td></tr>';
  
-    html += '<form action="/cgi-bin/setring.cgi" method="get">';
+    html += '<form name="phones" method="get">';
 
     // print out analog phones
     html += '<tr><td colspan="4" align="left" valign="top"><h2>Phones</h2></td></tr>';
@@ -106,7 +106,7 @@ function initialisePage() {
     html += "<a href=ipphones.html    /a>Add IP Phone";
     html += "</td>";
     html += "<td>";
-    html += "<input type='submit' value='Update Reception' />";
+    html += "<input type='submit' value='Update Reception' onClick='onClickApply(event)'/>";
     html += "</td>";
     html += "</tr>";
 
@@ -164,3 +164,13 @@ function processIfconfig(doc, status) {
 
     document.getElementById('ipaddress').innerHTML = ip;
 }
+
+function onClickApply(e) {
+
+//     firmwareurl=document.firmwareurl.value;
+       // get the arguments from the form
+       arg1=document.phones.submit();
+//     downloadUrl("/cgi-bin/setring.cgi?"+arg1,null);
+
+
+}