minidlna_status.htm 685 B

1234567891011121314151617181920212223242526272829
  1. <script type="text/javascript">//<![CDATA[
  2. XHR.poll(5, '<%=url("admin/services/minidlna_status")%>', null,
  3. function(x, st)
  4. {
  5. var tb = document.getElementById('minidlna_status');
  6. if (st && tb)
  7. {
  8. if (st.running)
  9. {
  10. tb.innerHTML = String.format(
  11. '<%:The miniDLNA service is active, serving %d audio, %d video and %d image files.%>',
  12. st.audio, st.video, st.image
  13. );
  14. }
  15. else
  16. {
  17. tb.innerHTML = '<em><%:The miniDLNA service is not running.%></em>';
  18. }
  19. }
  20. }
  21. );
  22. //]]></script>
  23. <fieldset class="cbi-section">
  24. <legend><%:miniDLNA Status%></legend>
  25. <p id="minidlna_status">
  26. <em><%:Collecting data...%></em>
  27. </p>
  28. </fieldset>