Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2782 → Rev 2783

/web/acc/phpsysinfo/plugins/quotas/css/quotas.css
0,0 → 1,7
/*
$Id: quotas.css 661 2012-08-27 11:26:39Z namiltd $
*/
#Plugin_QuotasTable thead tr th {
cursor: pointer;
text-align: center;
}
/web/acc/phpsysinfo/plugins/quotas/js/quotas.js
0,0 → 1,149
/***************************************************************************
* 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: quotas.js 661 2012-08-27 11:26:39Z namiltd $
//
 
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang, formatBytes, createBar */
 
"use strict";
 
var quotas_show = false, quotas_table;
 
//appendcss("./plugins/Quotas/css/Quotas.css");
 
/**
* insert content into table
* @param {jQuery} xml plugin-XML
*/
function quotas_populate(xml) {
quotas_table.fnClearTable();
 
$("Plugins Plugin_Quotas Quota", xml).each(function quotas_getquota(id) {
var user = "", bused = 0, bsoft = 0, bhard = 0, bpuse = 0, fpuse = 0, fused = 0, fsoft = 0, fhard = 0;
user = $(this).attr("User");
bused = parseInt($(this).attr("ByteUsed"), 10);
bsoft = parseInt($(this).attr("ByteSoft"), 10);
bhard = parseInt($(this).attr("ByteHard"), 10);
bpuse = parseInt($(this).attr("BytePercentUsed"), 10);
fused = parseInt($(this).attr("FileUsed"), 10);
fsoft = parseInt($(this).attr("FileSoft"), 10);
fhard = parseInt($(this).attr("FileHard"), 10);
fpuse = parseInt($(this).attr("FilePercentUsed"), 10);
 
quotas_table.fnAddData(["<span style=\"display:none;\">" + user + "</span>" + user, "<span style=\"display:none;\">" + bused + "</span>" + formatBytes(bused, xml), "<span style=\"display:none;\">" + bsoft + "</span>" + formatBytes(bsoft, xml), "<span style=\"display:none;\">" + bhard + "</span>" + formatBytes(bhard, xml), "<span style=\"display:none;\">" + bpuse + "</span>" + createBar(bpuse), "<span style=\"display:none;\">" + fused + "</span>" + fused, "<span style=\"display:none;\">" + fsoft + "</span>" + fsoft, "<span style=\"display:none;\">" + fhard + "</span>" + fhard, "<span style=\"display:none;\">" + fpuse + "</span>" + createBar(fpuse)]);
quotas_show = true;
});
}
 
/**
* fill the plugin block with table structure
*/
function quotas_buildTable() {
var html = "";
 
html += "<div style=\"overflow-x:auto;\">\n";
html += " <table id=\"Plugin_QuotasTable\" style=\"border-collapse:collapse;\">\n";
html += " <thead>\n";
html += " <tr>\n";
html += " <th>" + genlang(2, "Quotas") + "</th>\n";
html += " <th class=\"right\">" + genlang(3, "Quotas") + "</th>\n";
html += " <th class=\"right\">" + genlang(4, "Quotas") + "</th>\n";
html += " <th class=\"right\">" + genlang(5, "Quotas") + "</th>\n";
html += " <th>" + genlang(6, "Quotas") + "</th>\n";
html += " <th class=\"right\">" + genlang(7, "Quotas") + "</th>\n";
html += " <th class=\"right\">" + genlang(8, "Quotas") + "</th>\n";
html += " <th class=\"right\">" + genlang(9, "Quotas") + "</th>\n";
html += " <th>" + genlang(10, "Quotas") + "</th>\n";
html += " </tr>\n";
html += " </thead>\n";
html += " <tbody>\n";
html += " </tbody>\n";
html += " </table>\n";
html += "</div>\n";
 
$("#Plugin_Quotas").append(html);
 
quotas_table = $("#Plugin_QuotasTable").dataTable({
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bSort": true,
"bInfo": false,
"bProcessing": true,
"bAutoWidth": false,
"bStateSave": true,
"aoColumns": [{
"sType": 'span-string'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number'
}, {
"sType": 'span-number'
}]
});
}
 
/**
* load the xml via ajax
*/
function quotas_request() {
$("#Reload_QuotasTable").attr("title", "reload");
$.ajax({
url: "xml.php?plugin=Quotas",
dataType: "xml",
error: function quotas_error() {
$.jGrowl("Error loading XML document for Plugin quotas!");
},
success: function quotas_buildblock(xml) {
populateErrors(xml);
quotas_populate(xml);
if (quotas_show) {
plugin_translate("Quotas");
$("#Plugin_Quotas").show();
}
}
});
}
 
$(document).ready(function quotas_buildpage() {
$("#footer").before(buildBlock("Quotas", 1, true));
$("#Plugin_Quotas").css("width", "915px");
 
quotas_buildTable();
 
quotas_request();
 
$("#Reload_QuotasTable").click(function quotas_reload(id) {
quotas_request();
$(this).attr("title", datetime());
});
});
/web/acc/phpsysinfo/plugins/quotas/js/quotas_bootstrap.js
0,0 → 1,50
function renderPlugin_quotas(data) {
 
var directives = {
 
ByteUsed: {
html: function () {
return formatBytes(this.ByteUsed, data.Options["@attributes"].byteFormat);
}
},
ByteSoft: {
html: function () {
return formatBytes(this.ByteSoft, data.Options["@attributes"].byteFormat);
}
},
ByteHard: {
html: function () {
return formatBytes(this.ByteHard, data.Options["@attributes"].byteFormat);
}
},
BytePercentUsed: {
html: function () {
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.BytePercentUsed + '%;"></div>' +
'</div><div class="percent">' + this.BytePercentUsed + '%</div>';
}
},
FilePercentUsed: {
html: function () {
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.FilePercentUsed + '%;"></div>' +
'</div><div class="percent">' + this.FilePercentUsed + '%</div>';
}
}
};
 
if (data.Plugins.Plugin_Quotas !== undefined) {
var qtitems = items(data.Plugins.Plugin_Quotas.Quota);
if (qtitems.length > 0) {
var qt_memory = [];
qt_memory.push_attrs(qtitems);
$('#quotas-data').render(qt_memory, directives);
$('#quotas_User').removeClass("sorttable_sorted"); // reset sort order
sorttable.innerSortFunction.apply($('#quotas_User')[0], []);
 
$('#block_quotas').show();
} else {
$('#block_quotas').hide();
}
} else {
$('#block_quotas').hide();
}
}
/web/acc/phpsysinfo/plugins/quotas/lang/cz.xml
0,0 → 1,39
<?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_quotas_001" name="quotas_title">
<exp>Stav kvót</exp>
</expression>
<expression id="plugin_quotas_002" name="quotas_user">
<exp>Uživatel</exp>
</expression>
<expression id="plugin_quotas_003" name="quotas_bused">
<exp>Využité místo</exp>
</expression>
<expression id="plugin_quotas_004" name="quotas_bsoft">
<exp>Měkký limit</exp>
</expression>
<expression id="plugin_quotas_005" name="quotas_bhard">
<exp>Tvrdý limit</exp>
</expression>
<expression id="plugin_quotas_006" name="quotas_bpuse">
<exp>Procento využití</exp>
</expression>
<expression id="plugin_quotas_007" name="quotas_fused">
<exp>Počet soouborů</exp>
</expression>
<expression id="plugin_quotas_008" name="quotas_fsoft">
<exp>Měkký souborový limit</exp>
</expression>
<expression id="plugin_quotas_009" name="quotas_fhard">
<exp>Tvrdý souborový limit</exp>
</expression>
<expression id="plugin_quotas_010" name="quotas_fpuse">
<exp>Procento využití souborů</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/quotas/lang/de.xml
0,0 → 1,39
<?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: Matthias Freund (MAFLO321)
-->
<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_quotas_001" name="quotas_title">
<exp>Quota Status</exp>
</expression>
<expression id="plugin_quotas_002" name="quotas_user">
<exp>Benutzer</exp>
</expression>
<expression id="plugin_quotas_003" name="quotas_bused">
<exp>Bytes (Belegt)</exp>
</expression>
<expression id="plugin_quotas_004" name="quotas_bsoft">
<exp>Bytes (Soft Limit)</exp>
</expression>
<expression id="plugin_quotas_005" name="quotas_bhard">
<exp>Bytes (Hard Limit)</exp>
</expression>
<expression id="plugin_quotas_006" name="quotas_bpuse">
<exp>Bytes (Belegt Prozent)</exp>
</expression>
<expression id="plugin_quotas_007" name="quotas_fused">
<exp>Dateien (Benutzt)</exp>
</expression>
<expression id="plugin_quotas_008" name="quotas_fsoft">
<exp>Dateien (Soft Limit)</exp>
</expression>
<expression id="plugin_quotas_009" name="quotas_fhard">
<exp>Dateien (Hard Limit)</exp>
</expression>
<expression id="plugin_quotas_010" name="quotas_fpuse">
<exp>Dateien (Benutzt Prozent)</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/quotas/lang/en.xml
0,0 → 1,39
<?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_quotas_001" name="quotas_title">
<exp>Quota Status</exp>
</expression>
<expression id="plugin_quotas_002" name="quotas_user">
<exp>User</exp>
</expression>
<expression id="plugin_quotas_003" name="quotas_bused">
<exp>Bytes Used</exp>
</expression>
<expression id="plugin_quotas_004" name="quotas_bsoft">
<exp>Bytes Soft</exp>
</expression>
<expression id="plugin_quotas_005" name="quotas_bhard">
<exp>Bytes Hard</exp>
</expression>
<expression id="plugin_quotas_006" name="quotas_bpuse">
<exp>Bytes Used Percent</exp>
</expression>
<expression id="plugin_quotas_007" name="quotas_fused">
<exp>Files Used</exp>
</expression>
<expression id="plugin_quotas_008" name="quotas_fsoft">
<exp>Files Soft</exp>
</expression>
<expression id="plugin_quotas_009" name="quotas_fhard">
<exp>Files Hard</exp>
</expression>
<expression id="plugin_quotas_010" name="quotas_fpuse">
<exp>Files Used Percent</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/quotas/lang/fr.xml
0,0 → 1,39
<?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_quotas_001" name="quotas_title">
<exp>Etat des quotas</exp>
</expression>
<expression id="plugin_quotas_002" name="quotas_user">
<exp>Utilisateurs</exp>
</expression>
<expression id="plugin_quotas_003" name="quotas_bused">
<exp>Espace utilisés</exp>
</expression>
<expression id="plugin_quotas_004" name="quotas_bsoft">
<exp>Espace limite souple</exp>
</expression>
<expression id="plugin_quotas_005" name="quotas_bhard">
<exp>Espace limite stricte</exp>
</expression>
<expression id="plugin_quotas_006" name="quotas_bpuse">
<exp>Pourcentage espace utilisés</exp>
</expression>
<expression id="plugin_quotas_007" name="quotas_fused">
<exp>Inodes utilisés</exp>
</expression>
<expression id="plugin_quotas_008" name="quotas_fsoft">
<exp>Inodes limite souple</exp>
</expression>
<expression id="plugin_quotas_009" name="quotas_fhard">
<exp>Inodes limite stricte</exp>
</expression>
<expression id="plugin_quotas_010" name="quotas_fpuse">
<exp>Pourcentage inodes utilisés</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/quotas/lang/gr.xml
0,0 → 1,39
<?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: ChriZathens
-->
<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_quotas_001" name="quotas_title">
<exp>Κατάσταση Quota</exp>
</expression>
<expression id="plugin_quotas_002" name="quotas_user">
<exp>Χρήστης</exp>
</expression>
<expression id="plugin_quotas_003" name="quotas_bused">
<exp>Bytes σε Χρήση</exp>
</expression>
<expression id="plugin_quotas_004" name="quotas_bsoft">
<exp>Bytes Soft</exp>
</expression>
<expression id="plugin_quotas_005" name="quotas_bhard">
<exp>Bytes Hard</exp>
</expression>
<expression id="plugin_quotas_006" name="quotas_bpuse">
<exp>Ποσοστό Χρήσης Bytes</exp>
</expression>
<expression id="plugin_quotas_007" name="quotas_fused">
<exp>Αρχεία σε χρήση</exp>
</expression>
<expression id="plugin_quotas_008" name="quotas_fsoft">
<exp>Αρχεία Soft</exp>
</expression>
<expression id="plugin_quotas_009" name="quotas_fhard">
<exp>Αρχεία Hard</exp>
</expression>
<expression id="plugin_quotas_010" name="quotas_fpuse">
<exp>Ποσοστό Χρήσης Αρχείων</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/quotas/lang/pl.xml
0,0 → 1,39
<?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_quotas_001" name="quotas_title">
<exp>Status Quoty</exp>
</expression>
<expression id="plugin_quotas_002" name="quotas_user">
<exp>Użytkownik</exp>
</expression>
<expression id="plugin_quotas_003" name="quotas_bused">
<exp>Bajtów wykorzystanych</exp>
</expression>
<expression id="plugin_quotas_004" name="quotas_bsoft">
<exp>Miękki limit bajtów</exp>
</expression>
<expression id="plugin_quotas_005" name="quotas_bhard">
<exp>Twardy limit bajtów</exp>
</expression>
<expression id="plugin_quotas_006" name="quotas_bpuse">
<exp>Procentowo bajtów</exp>
</expression>
<expression id="plugin_quotas_007" name="quotas_fused">
<exp>Plików wykorzystanych</exp>
</expression>
<expression id="plugin_quotas_008" name="quotas_fsoft">
<exp>Miękki limit plików</exp>
</expression>
<expression id="plugin_quotas_009" name="quotas_fhard">
<exp>Twardy limit plików</exp>
</expression>
<expression id="plugin_quotas_010" name="quotas_fpuse">
<exp>Procentowo plików</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/quotas/lang/ro.xml
0,0 → 1,39
<?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_quotas_001" name="quotas_title">
<exp>Stare Quota</exp>
</expression>
<expression id="plugin_quotas_002" name="quotas_user">
<exp>Utilizator</exp>
</expression>
<expression id="plugin_quotas_003" name="quotas_bused">
<exp>Bytes Folositi</exp>
</expression>
<expression id="plugin_quotas_004" name="quotas_bsoft">
<exp>Bytes Soft</exp>
</expression>
<expression id="plugin_quotas_005" name="quotas_bhard">
<exp>Bytes Hard</exp>
</expression>
<expression id="plugin_quotas_006" name="quotas_bpuse">
<exp>Bytes Percent Folosiți</exp>
</expression>
<expression id="plugin_quotas_007" name="quotas_fused">
<exp>Fișiere Folosite</exp>
</expression>
<expression id="plugin_quotas_008" name="quotas_fsoft">
<exp>Fișiere Soft</exp>
</expression>
<expression id="plugin_quotas_009" name="quotas_fhard">
<exp>Fișiere Hard</exp>
</expression>
<expression id="plugin_quotas_010" name="quotas_fpuse">
<exp>Fișiere Percent Folosite</exp>
</expression>
</tns:translationPlugin>
/web/acc/phpsysinfo/plugins/quotas/lang/ru.xml
0,0 → 1,39
<?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_quotas_001" name="quotas_title">
<exp>Состояние Квоты</exp>
</expression>
<expression id="plugin_quotas_002" name="quotas_user">
<exp>Пользователь</exp>
</expression>
<expression id="plugin_quotas_003" name="quotas_bused">
<exp>Используется</exp>
</expression>
<expression id="plugin_quotas_004" name="quotas_bsoft">
<exp>Программы</exp>
</expression>
<expression id="plugin_quotas_005" name="quotas_bhard">
<exp>Жесткий диск</exp>
</expression>
<expression id="plugin_quotas_006" name="quotas_bpuse">
<exp>Процентов</exp>
</expression>
<expression id="plugin_quotas_007" name="quotas_fused">
<exp>Файлы Используется</exp>
</expression>
<expression id="plugin_quotas_008" name="quotas_fsoft">
<exp>Файлов программ</exp>
</expression>
<expression id="plugin_quotas_009" name="quotas_fhard">
<exp>Файлы на жестком диске</exp>
</expression>
<expression id="plugin_quotas_010" name="quotas_fpuse">
<exp>Проценты файлов</exp>
</expression>
</tns:translationPlugin>