MMDVMHost-Dashboard/include/sysinfo_ajax.php
2016-10-26 09:46:15 +02:00

31 lines
873 B
PHP

<div class="panel panel-default">
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading">System Info</div>
<!-- Tabelle -->
<div class="table-responsive">
<table id="sysinfo" class="table table-condensed">
</table>
</div>
</div>
</div>
<script>
function loadXMLDocSysinfo() {
var xmlhttp;
if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else {// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
document.getElementById("sysinfo").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","ajax.php?section=sysinfo",true);
xmlhttp.send();
var timeout = window.setTimeout("loadXMLDocSysinfo()", 20000);
}
loadXMLDocSysinfo();
</script>