Merge pull request #1847 from dibdot/lxc_fix
[oweals/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.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
19 <fieldset class="cbi-section">
20         <legend><%:Current Telephony State%></legend>
21         <div class="table cbi-section-table" id="telephony_status_table">
22                 <div class="tr cbi-section-table-titles">
23                         <div class="th cbi-section-table-cell"><%:Uplink%></div>
24                         <div class="th cbi-section-table-cell"><%:Port1%></div>
25                         <div class="th cbi-section-table-cell"><%:Port2%></div>
26                 </div>
27                 <div class="tr cbi-section-table-row">
28                         <div class="td" colspan="5"><em><br /><%:Collecting data...%></em></div>
29                 </div>
30         </div>
31 </fieldset>