| 17 | | for( var i = 0; i < st.leases.length; i++ ) |
| 18 | | { |
| 19 | | var tr = tb.insertRow(-1); |
| 20 | | tr.className = 'cbi-section-table-row cbi-rowstyle-' + ((i % 2) + 1); |
| 21 | | |
| 22 | | tr.insertCell(-1).innerHTML = st.leases[i].addr; |
| 23 | | tr.insertCell(-1).innerHTML = String.format('%t', st.leases[i].age); |
| 24 | | } |
| 25 | | |
| 26 | | if( tb.rows.length == 1 ) |
| 27 | | { |
| 28 | | var tr = tb.insertRow(-1); |
| 29 | | tr.className = 'cbi-section-table-row'; |
| 30 | | |
| 31 | | var td = tr.insertCell(-1); |
| 32 | | td.colSpan = 2; |
| 33 | | td.innerHTML = '<em><br /><%:There are no active leases.%></em>'; |
| 34 | | } |
| 35 | | |
| 36 | | if( st.uid == '00:00:00:00:00:00:00:00' ) |
| 37 | | tx.innerHTML = 'The AHCP Service is not running.'; |
| 38 | | else |
| 39 | | tx.innerHTML = String.format('The AHCP Service is running with ID %s.', st.uid); |
| | 18 | tr.insertCell(-1).innerHTML = st.leases[i].addr; |
| | 19 | tr.insertCell(-1).innerHTML = String.format('%t', st.leases[i].age); |
| 42 | | window.setTimeout(func, 5000); |
| | 22 | if( tb.rows.length == 1 ) |
| | 23 | { |
| | 24 | var tr = tb.insertRow(-1); |
| | 25 | tr.className = 'cbi-section-table-row'; |
| | 26 | |
| | 27 | var td = tr.insertCell(-1); |
| | 28 | td.colSpan = 2; |
| | 29 | td.innerHTML = '<em><br /><%:There are no active leases.%></em>'; |
| | 30 | } |
| | 31 | |
| | 32 | if( st.uid == '00:00:00:00:00:00:00:00' ) |
| | 33 | tx.innerHTML = 'The AHCP Service is not running.'; |
| | 34 | else |
| | 35 | tx.innerHTML = String.format('The AHCP Service is running with ID %s.', st.uid); |