2
0

telephony_status.htm 943 B

12345678910111213141516171819202122232425262728293031
  1. <script>
  2. XHR.poll(-1, '<%=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.removeChild(tb.firstChild);
  9. tb.appendChild(E('<div class="tr cbi-section-table-row cbi-rowstyle-1">', [
  10. E('<div class="td">', st.status),
  11. E('<div class="td">', st.line1),
  12. E('<div class="td">', st.line2)
  13. ]));
  14. }
  15. }
  16. );
  17. </script>
  18. <fieldset class="cbi-section">
  19. <legend><%:Current Telephony State%></legend>
  20. <div class="table cbi-section-table" id="telephony_status_table">
  21. <div class="tr cbi-section-table-titles">
  22. <div class="th cbi-section-table-cell"><%:Uplink%></div>
  23. <div class="th cbi-section-table-cell"><%:Port1%></div>
  24. <div class="th cbi-section-table-cell"><%:Port2%></div>
  25. </div>
  26. <div class="tr cbi-section-table-row">
  27. <div class="td" colspan="5"><em><br /><%:Collecting data...%></em></div>
  28. </div>
  29. </div>
  30. </fieldset>