Globally replace luci.dispatcher.build_url(...) with url(...) invocations
[project/luci.git] / applications / luci-app-ltqtapi / luasrc / view / telephony_status.htm
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
12                         tr.insertCell(-1).innerHTML = st.status;
13                         tr.insertCell(-1).innerHTML = st.line1;
14                         tr.insertCell(-1).innerHTML = st.line2;
15                 }
16         }
17 );
18 //]]></script>
19
20 <fieldset class="cbi-section">
21         <legend><%:Current Telephony State%></legend>
22         <table class="cbi-section-table" id="telephony_status_table">
23                 <tr class="cbi-section-table-titles">
24                         <th class="cbi-section-table-cell"><%:Uplink%></th>
25                         <th class="cbi-section-table-cell"><%:Port1%></th>
26                         <th class="cbi-section-table-cell"><%:Port2%></th>
27                 </tr>
28                 <tr class="cbi-section-table-row">
29                         <td colspan="5"><em><br /><%:Collecting data...%></em></td>
30                 </tr>
31         </table>
32 </fieldset>