Subversion Repositories ALCASAR

Compare Revisions

No changes between revisions

Ignore whitespace Rev 2783 → Rev 2784

/web/acc/phpsysinfo/plugins/ps/js/ps.js
0,0 → 1,142
/***************************************************************************
* Copyright (C) 2008 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
//
// $Id: ps.js 661 2012-08-27 11:26:39Z namiltd $
//
 
/*global $, jQuery, buildBlock, datetime, plugin_translate, createBar, genlang */
 
"use strict";
 
var ps_show = false;
 
/**
* build the table where content is inserted
* @param {jQuery} xml plugin-XML
*/
function ps_buildTable(xml) {
var html = "", tree = [], closed = [], memwas = false, cpuwas = false;
 
$("#Plugin_PS #Plugin_PSTable").remove();
 
html += " <div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_PSTable\" class=\"tablemain\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(2, "PS") + "</th>\n";
html += " <th style=\"width:40px;\">" + genlang(3, "PS") + "</th>\n";
html += " <th style=\"width:40px;\">" + genlang(4, "PS") + "</th>\n";
html += " <th style=\"width:120px;\">" + genlang(5, "PS") + "</th>\n";
html += " <th style=\"width:120px;\">" + genlang(6, "PS") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody class=\"tree\">\n";
 
$("Plugins Plugin_PS Process", xml).each(function ps_getprocess(id) {
var close = 0, pid = 0, ppid = 0, name = "", percent = 0, parentId = 0, expanded = 0, cpu = 0;
name = $(this).attr("Name").replace(/,/g, ",<wbr>").replace(/\s/g, " <wbr>").replace(/\./g, ".<wbr>").replace(/-/g, "<wbr>-").replace(/\//g, "<wbr>/"); /* split long name */
parentId = parseInt($(this).attr("ParentID"), 10);
pid = parseInt($(this).attr("PID"), 10);
ppid = parseInt($(this).attr("PPID"), 10);
percent = parseInt($(this).attr("MemoryUsage"), 10);
cpu = parseInt($(this).attr("CPUUsage"), 10);
expanded = parseInt($(this).attr("Expanded"), 10);
 
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + name + "</div></span></td><td>" + pid + "</td><td>" + ppid + "</td><td>" + createBar(percent) + "</td><td>" + createBar(cpu) + "</td></tr>\n";
close = tree.push(parentId);
if (!isNaN(expanded) && (expanded === 0)) {
closed.push(close);
}
if (!memwas && !isNaN(percent)) {
memwas = true;
}
if (!cpuwas && !isNaN(cpu)) {
cpuwas = true;
}
ps_show = true;
});
 
html += " </tbody>\n";
html += " </table>\n";
html += " </div>\n";
 
$("#Plugin_PS").append(html);
 
if (memwas) {
$('#Plugin_PSTable td:nth-child(4),#Plugin_PSTable th:nth-child(4)').show();
} else {
$('#Plugin_PSTable td:nth-child(4),#Plugin_PSTable th:nth-child(4)').hide();
}
if (cpuwas) {
$('#Plugin_PSTable td:nth-child(5),#Plugin_PSTable th:nth-child(5)').show();
} else {
$('#Plugin_PSTable td:nth-child(5),#Plugin_PSTable th:nth-child(5)').hide();
}
 
$("#Plugin_PSTable").jqTreeTable(tree, {
openImg: "./gfx/treeTable/tv-collapsable.gif",
shutImg: "./gfx/treeTable/tv-expandable.gif",
leafImg: "./gfx/treeTable/tv-item.gif",
lastOpenImg: "./gfx/treeTable/tv-collapsable-last.gif",
lastShutImg: "./gfx/treeTable/tv-expandable-last.gif",
lastLeafImg: "./gfx/treeTable/tv-item-last.gif",
vertLineImg: "./gfx/treeTable/vertline.gif",
blankImg: "./gfx/treeTable/blank.gif",
collapse: closed,
column: 0,
striped: true,
highlight: false,
state: false
});
}
 
/**
* load the xml via ajax
*/
function ps_request() {
$("#Reload_PSTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=PS",
dataType: "xml",
error: function ps_error() {
$.jGrowl("Error loading XML document for Plugin PS!");
},
success: function ps_buildblock(xml) {
populateErrors(xml);
ps_buildTable(xml);
if (ps_show) {
plugin_translate("PS");
$("#Plugin_PS").show();
}
}
});
}
 
$(document).ready(function ps_buildpage() {
$("#footer").before(buildBlock("PS", 1, true));
$("#Plugin_PS").css("width", "915px");
 
ps_request();
 
$("#Reload_PSTable").click(function ps_reload(id) {
ps_request();
$(this).attr("title", datetime());
});
});
/web/acc/phpsysinfo/plugins/ps/js/ps_bootstrap.js
0,0 → 1,85
function renderPlugin_ps(data) {
 
var directives = {
MemoryUsage: {
html: function () {
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.MemoryUsage + '%;"></div>' +
'</div><div class="percent">' + this.MemoryUsage + '%</div>';
}
},
CPUUsage: {
html: function () {
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.CPUUsage + '%;"></div>' +
'</div><div class="percent">' + this.CPUUsage + '%</div>';
}
},
Name: {
html: function () {
return this.Name.replace(/,/g, ",<wbr>").replace(/\s/g, " <wbr>").replace(/\./g, ".<wbr>").replace(/-/g, "<wbr>-").replace(/\//g, "<wbr>/"); /* split long name */
}
}
};
 
if (data.Plugins.Plugin_PS !== undefined) {
var psitems = items(data.Plugins.Plugin_PS.Process);
if (psitems.length > 0) {
 
var html = "", ps_item = [], expanded = 0, memwas = false, cpuwas = false;
for (var i = 0; i < psitems.length ; i++) {
ps_item = psitems[i]["@attributes"];
 
if (ps_item.ParentID === "0") {
html+="<tr id=\"ps-" + (i+1) + "\" class=\"treegrid-ps-" + (i+1) + "\" style=\"display:none;\" >";
} else {
html+="<tr id=\"ps-" + (i+1) + "\" class=\"treegrid-ps-" + (i+1) + " treegrid-parent-ps-" + ps_item.ParentID + "\" style=\"display:none;\" >";
}
html+="<td><span class=\"treegrid-span\" data-bind=\"Name\"></span></td>";
html+="<td><span data-bind=\"PID\"></span></td>";
html+="<td><span data-bind=\"PPID\"></span></td>";
html+="<td style=\"width:10%;\"><span data-bind=\"MemoryUsage\"></span></td>";
html+="<td style=\"width:10%;\"><span data-bind=\"CPUUsage\"></span></td>";
html+="</tr>";
}
 
$("#ps-data").empty().append(html);
 
$('#ps').treegrid({
initialState: 'expanded',
expanderExpandedClass: 'normalicon normalicon-down',
expanderCollapsedClass: 'normalicon normalicon-right'
});
 
for (var j = 0; j < psitems.length ; j++) {
ps_item = psitems[j]["@attributes"];
$('#ps-'+(j+1)).render(ps_item, directives);
if (!memwas && (ps_item.MemoryUsage !== undefined)) {
memwas = true;
}
if (!cpuwas && (ps_item.CPUUsage !== undefined)) {
cpuwas = true;
}
expanded = ps_item.Expanded;
if ((expanded !== undefined) && (expanded === "0")) {
$('#ps-'+(j+1)).treegrid('collapse');
}
}
 
if (memwas) {
$('#ps td:nth-child(4),#ps th:nth-child(4)').show();
} else {
$('#ps td:nth-child(4),#ps th:nth-child(4)').hide();
}
if (cpuwas) {
$('#ps td:nth-child(5),#ps th:nth-child(5)').show();
} else {
$('#ps td:nth-child(5),#ps th:nth-child(5)').hide();
}
 
$('#block_ps').show();
} else {
$('#block_ps').hide();
}
} else {
$('#block_ps').hide();
}
}
/web/acc/phpsysinfo/plugins/ps/lang/cz.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: cz.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Czech Created by: Tomáš Růžička
-->
<tns:translationPlugin language="czech" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Procesy</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Příkaz</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>PID</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>Rodičovský PID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Spotřeba paměti</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/ps/lang/de.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: de.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: German Created by: Michael Cramer
-->
<tns:translationPlugin language="german" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Prozess Status</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Befehl</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>Prozess ID</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>Eltern ID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Speichernutzung</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/ps/lang/en.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: en.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: English Created by: Michael Cramer
-->
<tns:translationPlugin language="english" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Process Status</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Command</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>Process ID</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>Parent ID</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Memory Usage</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/ps/lang/fr.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: fr.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: French Created by: Erkan VALENTIN
-->
<tns:translationPlugin language="french" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Etat des processus</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Commande</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID processus</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID processus père</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Utilisation mémoire</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/ps/lang/gr.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: gr.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Greek Created by: mojiro
-->
<tns:translationPlugin language="greek" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Διεργασίες Συστήματος</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Εντολή</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID Διεργασίας</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID Κύριας Διεργασίας</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Χρήση Μνήμης</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>Χρήση Επεξεργαστή</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/ps/lang/pl.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: pl.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Polish Created by: Mieczyslaw Nalewaj
-->
<tns:translationPlugin language="polish" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Status Procesów</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Polecenie</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>PID</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>PID rodzica</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Wykorzystanie pamięci</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>Wykorzystanie procesora</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/ps/lang/ro.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: ro.xml 661 2014-05-02 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Romană Created by: Iulian Alexe
-->
<tns:translationPlugin language="romana" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Stare proces</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Comanda</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID Proces</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID Parinte</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Utilizare Memorie</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/ps/lang/ru.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: ru.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Russian Created by: Denis Sevostyanov (den007)
-->
<tns:translationPlugin language="russian" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Статус процессов</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Команда</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID процесса</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID родителя</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Использовано памяти</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/ps/lang/uk.xml
0,0 → 1,27
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: uk.xml 661 2017-06-03 16:32:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Ukrainian Created by: Rostyslav Gaitkulov (nightfly)
-->
<tns:translationPlugin language="ukrainian" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_ps_001" name="ps_title">
<exp>Стан процесів</exp>
</expression>
<expression id="plugin_ps_002" name="ps_command">
<exp>Команда</exp>
</expression>
<expression id="plugin_ps_003" name="ps_pid">
<exp>ID процесу</exp>
</expression>
<expression id="plugin_ps_004" name="ps_ppid">
<exp>ID батьківський</exp>
</expression>
<expression id="plugin_ps_005" name="ps_mem">
<exp>Використано пам`яті</exp>
</expression>
<expression id="plugin_ps_006" name="ps_cpu">
<exp>CPU Usage</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/css/psstatus.css
0,0 → 1,6
/*
$Id: psstatus.css 661 2012-08-27 11:26:39Z namiltd $
*/
#Plugin_PSStatusTable thead tr th {
cursor: pointer;
}
/web/acc/phpsysinfo/plugins/psstatus/gfx/offline.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/acc/phpsysinfo/plugins/psstatus/gfx/online.gif
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/web/acc/phpsysinfo/plugins/psstatus/js/psstatus.js
0,0 → 1,127
/***************************************************************************
* Copyright (C) 2008 by phpSysInfo - A PHP System Information Script *
* http://phpsysinfo.sourceforge.net/ *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
//
// $Id: psstatus.js 679 2012-09-04 10:10:11Z namiltd $
//
 
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang */
 
"use strict";
 
var psstatus_show = false, psstatus_table;
 
//appendcss("./plugins/PSStatus/css/PSStatus.css");
 
/**
* insert content into table
* @param {jQuery} xml plugin-XML
*/
function psstatus_populate(xml) {
var name = "", status = 0, state = "";
 
psstatus_table.fnClearTable();
 
$("Plugins Plugin_PSStatus Process", xml).each(function psstatus_getprocess(idp) {
name = $(this).attr("Name");
status = parseInt($(this).attr("Status"), 10);
if (!isNaN(status) && (status === 1)) {
state = "<span style=\"display:none;\">" + status.toString() + "</span><img src=\"./plugins/psstatus/gfx/online.gif\" alt=\"online\" title=\"\" style=\"width:18px;\" />";
}
else {
state = "<span style=\"display:none;\">" + status.toString() + "</span><img src=\"./plugins/psstatus/gfx/offline.gif\" alt=\"offline\" title=\"\" style=\"width:18px;\" />";
}
psstatus_table.fnAddData(["<span style=\"display:none;\">" + name + "</span>" + name, state]);
psstatus_show = true;
});
}
 
/**
* fill the plugin block with table structure
*/
function psstatus_buildTable() {
var html = "";
 
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_PSStatusTable\" style=\"border-collapse:collapse;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(2, "PSStatus") + "</th>\n";
html += " <th>" + genlang(3, "PSStatus") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody>\n";
html += " </tbody>\n";
html += " </table>\n";
html += "</div>\n";
 
$("#Plugin_PSStatus").append(html);
 
psstatus_table = $("#Plugin_PSStatusTable").dataTable({
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bProcessing": true,
"bAutoWidth": false,
"bStateSave": true,
"aoColumns": [{
"sType": 'span-string'
}, {
"sType": 'span-number'
}]
});
}
 
/**
* load the xml via ajax
*/
function psstatus_request() {
$("#Reload_PSStatusTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=PSStatus",
dataType: "xml",
error: function psstatus_error() {
$.jGrowl("Error loading XML document for Plugin PSStatus!");
},
success: function psstatus_buildblock(xml) {
populateErrors(xml);
psstatus_populate(xml);
if (psstatus_show) {
plugin_translate("PSStatus");
$("#Plugin_PSStatus").show();
}
}
});
}
 
$(document).ready(function psstatus_buildpage() {
$("#footer").before(buildBlock("PSStatus", 1, true));
$("#Plugin_PSStatus").css("width", "451px");
 
psstatus_buildTable();
 
psstatus_request();
 
$("#Reload_PSStatusTable").click(function psstatus_reload(id) {
psstatus_request();
$(this).attr("title", datetime());
});
});
/web/acc/phpsysinfo/plugins/psstatus/js/psstatus_bootstrap.js
0,0 → 1,32
function renderPlugin_psstatus(data) {
 
var directives = {
Status1: {
text: function () {
return (this.Status === "1") ? "ON" : "";
}
},
Status0: {
text: function () {
return (this.Status === "1") ? "" : "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();
}
}
/web/acc/phpsysinfo/plugins/psstatus/lang/cz.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: cz.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Czech Created by: Tomáš Růžička
-->
<tns:translationPlugin language="czech" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Stav procesů</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Název</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Stav</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/lang/de.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: de.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: German Created by: Michael Cramer
-->
<tns:translationPlugin language="german" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Prozess Status</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Name</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Status</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/lang/en.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: en.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: English Created by: Michael Cramer
-->
<tns:translationPlugin language="english" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Process Status</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Name</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Status</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/lang/fr.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: fr.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: French Created by: Erkan VALENTIN
-->
<tns:translationPlugin language="french" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Etat des processus</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Nom</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Etat</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/lang/gr.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: gr.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Greek Created by: mojiro
-->
<tns:translationPlugin language="greek" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Κατάσταση Κρίσιμων Διεργασιών</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Διεργασία</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Κατάσταση</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/lang/pl.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: pl.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Polish Created by: Mieczyslaw Nalewaj
-->
<tns:translationPlugin language="polish" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Status Procesów</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Nazwa</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Status</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/lang/ro.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: ro.xml 661 2014-05-02 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Romană Created by: Iulian Alexe
-->
<tns:translationPlugin language="romana" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Stare proces</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Nume</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Stare</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/lang/ru.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: ru.xml 661 2012-08-27 11:26:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Russian Created by: Denis Sevostyanov (den007)
-->
<tns:translationPlugin language="russian" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Статус служб</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Имя службы</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Статус</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/psstatus/lang/uk.xml
0,0 → 1,18
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: uk.xml 661 2017-06-03 16:48:39Z namiltd $ -->
<!--
phpSysInfo language file Language: Ukrainian Created by: Rostyslav Gaitkulov (nightfly)
-->
<tns:translationPlugin language="ukrainian" charset="utf-8"
xmlns:tns="http://phpsysinfo.sourceforge.net/translation-plugin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://phpsysinfo.sourceforge.net/translation-plugin ../../../language/translation-plugin.xsd">
<expression id="plugin_psstatus_001" name="psstatus_title">
<exp>Стан процесів</exp>
</expression>
<expression id="plugin_psstatus_002" name="psstatus_name">
<exp>Ім`я процесу</exp>
</expression>
<expression id="plugin_psstatus_003" name="psstatus_status">
<exp>Стан</exp>
</expression>
</tns:translationPlugin>