37 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| Menu="NUTsettings"
 | |
| Title="NUT Details"
 | |
| ---
 | |
| <?PHP
 | |
| /* Copyright 2005-2016, Lime Technology
 | |
|  * Copyright 2015, Dan Landon.
 | |
|  * Copyright 2015, Bergware International.
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or
 | |
|  * modify it under the terms of the GNU General Public License version 2,
 | |
|  * as published by the Free Software Foundation.
 | |
|  *
 | |
|  * The above copyright notice and this permission notice shall be included in
 | |
|  * all copies or substantial portions of the Software.
 | |
|  */
 | |
| ?>
 | |
| <script>
 | |
| function getNUTstatus() {
 | |
|   $.get('/plugins/nut/include/nut_status.php',{all:'true'},function(data) {
 | |
|     if (data) {
 | |
|       data = data.split(/\n/);
 | |
|       $('#nut_summary').html(data[0]);
 | |
|       $('#nut_status').html(data[1]);
 | |
|     }
 | |
| <?if ($update):?>
 | |
|     setTimeout(getUPSstatus,<?=max(abs($display['refresh']),15000)?>);
 | |
| <?endif;?>
 | |
|   });
 | |
| }
 | |
| $(getNUTstatus);
 | |
| </script>
 | |
| 
 | |
| <table class="tablesorter shift">
 | |
| <thead><tr><th style="width:15%">Key</th><th style="width:35%">Value</th><th style="width:15%">Key</th><th style="width:35%">Value</th></tr></thead>
 | |
| <tbody id="nut_status"><tr><td colspan="4" style="text-align:center"><i class="fa fa-spinner fa-spin icon"></i><em>Please wait, retrieving UPS information...</em></td></tr></tbody>
 | |
| </table>
 |