MMDVMHost-Dashboard/include/sysinfo_ajax.php

32 lines
1 KiB
PHP
Raw Permalink Normal View History

2017-01-10 15:05:55 +01:00
<div class="panel panel-default">
<!-- Standard-Panel-Inhalt -->
<div class="panel-heading"><?php echo _("System Info"); ?><span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span></div>
2017-03-02 16:56:46 +01:00
<div class="panel-body">
2017-01-10 15:05:55 +01:00
<!-- Tabelle -->
<div class="table-responsive">
<table id="sysinfo" class="table sysinfo table-condensed">
2017-01-10 15:05:55 +01:00
</table>
</div>
2017-03-02 16:56:46 +01:00
</div>
2017-01-10 15:05:55 +01:00
</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>