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