initial commit of file from CVS for smeserver-phpsysinfo on Sat Sep 7 20:53:46 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:53:46 +10:00
parent 8f9c36d1f5
commit 9552652292
693 changed files with 86806 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
function renderPlugin_psstatus(data) {
var directives = {
Status: {
text: function () {
return (this['Status'] === "1") ? "ON" : "OFF";
}
}
};
if (data['Plugins']['Plugin_PSStatus'] !== undefined) {
var psitems = items(data['Plugins']['Plugin_PSStatus']['Process']);
if (psitems.length > 0) {
var ps_memory = [];
ps_memory.push_attrs(psitems);
$('#psstatus-data').render(ps_memory, directives);
$('#psstatus_Name').removeClass("sorttable_sorted"); // reset sort order
sorttable.innerSortFunction.apply($('#psstatus_Name')[0], []);
$('#block_psstatus').show();
} else {
$('#block_psstatus').hide();
}
} else {
$('#block_psstatus').hide();
}
}