1
0

telephony_status.htm 948 B

1234567891011121314151617181920212223242526272829303132
  1. <script type="text/javascript">//<![CDATA[
  2. XHR.poll(5, '<%=url('admin/telephony/status')%>', null,
  3. function(x, st)
  4. {
  5. var tb = document.getElementById('telephony_status_table');
  6. if (st && tb)
  7. {
  8. tb.deleteRow(1);
  9. var tr = tb.insertRow(-1);
  10. tr.className = 'cbi-section-table-row cbi-rowstyle-1';
  11. tr.insertCell(-1).innerHTML = st.status;
  12. tr.insertCell(-1).innerHTML = st.line1;
  13. tr.insertCell(-1).innerHTML = st.line2;
  14. }
  15. }
  16. );
  17. //]]></script>
  18. <fieldset class="cbi-section">
  19. <legend><%:Current Telephony State%></legend>
  20. <table class="cbi-section-table" id="telephony_status_table">
  21. <tr class="cbi-section-table-titles">
  22. <th class="cbi-section-table-cell"><%:Uplink%></th>
  23. <th class="cbi-section-table-cell"><%:Port1%></th>
  24. <th class="cbi-section-table-cell"><%:Port2%></th>
  25. </tr>
  26. <tr class="cbi-section-table-row">
  27. <td colspan="5"><em><br /><%:Collecting data...%></em></td>
  28. </tr>
  29. </table>
  30. </fieldset>