MMDVMHost-Dashboard/include/sysinfo_ajax.php

30 lines
915 B
PHP
Raw Normal View History

2016-10-12 18:54:11 +02:00
<div class="panel panel-default">
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading">System Info</div>
<!-- Tabelle -->
2017-01-10 15:04:51 +01:00
<div class="table-responsive">
<table id="sysinfo" class="table table-condensed">
</table>
</div>
2016-10-12 18:54:11 +02:00
</div>
<script>
function loadXMLDocSysinfo() {
2017-01-10 15:04:51 +01:00
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();
2016-10-12 18:54:11 +02:00
2017-01-10 15:04:51 +01:00
var timeout = window.setTimeout("loadXMLDocSysinfo()", 20000);
2016-10-12 18:54:11 +02:00
}
loadXMLDocSysinfo();
</script>