/web/acc/phpsysinfo/plugins/updatenotifier/js/updatenotifier.js |
---|
0,0 → 1,115 |
/*************************************************************************** |
* 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. * |
***************************************************************************/ |
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang, createBar */ |
"use strict"; |
var UpdateNotifier_show = false, UpdateNotifier_table; |
/** |
* insert content into table |
* @param {jQuery} xml plugin-XML |
*/ |
function updatenotifier_populate(xml) { |
var html = ""; |
$("Plugins Plugin_UpdateNotifier UpdateNotifier", xml).each(function(idp) { |
var packages = "", security = ""; |
packages = $("packages", this).text(); |
security = $("security", this).text(); |
//UpdateNotifier_table.fnAddData([packages]); |
//UpdateNotifier_table.fnAddData([security]); |
html = " <tr>\n"; |
html += " <td>" + packages + " " + genlang(3, "UpdateNotifier") + "</td>\n"; |
html += " </tr>\n"; |
html += " <tr>\n"; |
html += " <td>" + security + " " + genlang(4, "UpdateNotifier") + "</td>\n"; |
html += " </tr>\n"; |
$("#Plugin_UpdateNotifier tbody").empty().append(html); |
if ((packages <= 0) && (security <= 0)) { |
$("#UpdateNotifierTable-info").html(genlang(5, "UpdateNotifier")); |
} else { |
$("#UpdateNotifierTable-info").html(genlang(2, "UpdateNotifier")); |
} |
UpdateNotifier_show = true; |
}); |
} |
/** |
* fill the plugin block with table structure |
*/ |
function updatenotifier_buildTable() { |
var html = ""; |
html += "<div style=\"overflow-x:auto;\">\n"; |
html += " <table id=\"Plugin_UpdateNotifierTable\" style=\"border-collapse:collapse;\">\n"; |
html += " <thead>\n"; |
html += " <tr>\n"; |
html += " <th id=\"UpdateNotifierTable-info\">" + genlang(2, "UpdateNotifier") + "</th>\n"; |
html += " </tr>\n"; |
html += " </thead>\n"; |
html += " <tbody>\n"; |
html += " </tbody>\n"; |
html += " </table>\n"; |
html += "</div>\n"; |
$("#Plugin_UpdateNotifier").append(html); |
} |
/** |
* load the xml via ajax |
*/ |
function updatenotifier_request() { |
$("#Reload_UpdateNotifierTable").attr("title", "reload"); |
$.ajax({ |
url: "xml.php?plugin=UpdateNotifier", |
dataType: "xml", |
error: function () { |
$.jGrowl("Error loading XML document for Plugin UpdateNotifier!"); |
}, |
success: function updatenotifier_buildblock(xml) { |
populateErrors(xml); |
updatenotifier_populate(xml); |
if (UpdateNotifier_show) { |
plugin_translate("UpdateNotifier"); |
$("#Plugin_UpdateNotifier").show(); |
} |
} |
}); |
} |
$(document).ready(function() { |
$("#footer").before(buildBlock("UpdateNotifier", 1, true)); |
$("#Plugin_UpdateNotifier").css("width", "451px"); |
updatenotifier_buildTable(); |
updatenotifier_request(); |
$("#Reload_UpdateNotifierTable").click(function updatenotifier_reload(id) { |
updatenotifier_request(); |
$(this).attr("title", datetime()); |
}); |
}); |
/web/acc/phpsysinfo/plugins/updatenotifier/js/updatenotifier_bootstrap.js |
---|
0,0 → 1,25 |
function renderPlugin_updatenotifier(data) { |
var directives = { |
updateNotifierNbPackages: { |
text: function () { |
return this.packages; |
} |
}, |
updateNotifierNbSecPackages: { |
text: function () { |
return this.security; |
} |
} |
}; |
if ((data.Plugins.Plugin_UpdateNotifier !== undefined) && (data.Plugins.Plugin_UpdateNotifier.UpdateNotifier !== undefined)){ |
$('#updatenotifier').render(data.Plugins.Plugin_UpdateNotifier.UpdateNotifier, directives); |
if ((data.Plugins.Plugin_UpdateNotifier.UpdateNotifier.packages <= 0) && |
(data.Plugins.Plugin_UpdateNotifier.UpdateNotifier.security <= 0) ) { |
$("#updatenotifier-info").html("<strong>"+genlang(5, 'updatenotifier')+"</strong>"); |
} |
$('#block_updatenotifier').show(); |
} else { |
$('#block_updatenotifier').hide(); |
} |
} |
/web/acc/phpsysinfo/plugins/updatenotifier/lang/cz.xml |
---|
0,0 → 1,30 |
<?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_updatenotifier_001" name="updatenotifier_title"> |
<exp>Notifikátor aktualizací</exp> |
</expression> |
<expression id="plugin_updatenotifier_002" name="updatenotifier_th"> |
<exp>Jsou dostupné aktualizace!</exp> |
</expression> |
<expression id="plugin_updatenotifier_003" name="updatenotifier_packages"> |
<exp>balíčků je připraveno k aktualizaci.</exp> |
</expression> |
<expression id="plugin_updatenotifier_004" name="updatenotifier_security"> |
<exp>balíčků obsahuje bezpečnostní aktualizace.</exp> |
</expression> |
<expression id="plugin_updatenotifier_005" name="updatenotifier_no"> |
<exp>Žádné aktualizace jsou dostupné</exp> |
</expression> |
<expression id="plugin_updatenotifier_006" name="updatenotifier_no_packages"> |
<exp>Number of packages</exp> |
</expression> |
<expression id="plugin_updatenotifier_007" name="updatenotifier_no_security"> |
<exp>Number of security packages</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/updatenotifier/lang/de.xml |
---|
0,0 → 1,30 |
<?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_updatenotifier_001" name="updatenotifier_title"> |
<exp>Updates Notifier</exp> |
</expression> |
<expression id="plugin_updatenotifier_002" name="updatenotifier_th"> |
<exp>Updates verfügbar</exp> |
</expression> |
<expression id="plugin_updatenotifier_003" name="updatenotifier_packages"> |
<exp>Pakete können aktualisiert werden.</exp> |
</expression> |
<expression id="plugin_updatenotifier_004" name="updatenotifier_security"> |
<exp>Updates sind Sicherheits-Updates.</exp> |
</expression> |
<expression id="plugin_updatenotifier_005" name="updatenotifier_no"> |
<exp>Keine Updates verfügbar</exp> |
</expression> |
<expression id="plugin_updatenotifier_006" name="updatenotifier_no_packages"> |
<exp>Anzahl Pakete</exp> |
</expression> |
<expression id="plugin_updatenotifier_007" name="updatenotifier_no_security"> |
<exp>Anzahl Sicherheitspakete</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/updatenotifier/lang/en.xml |
---|
0,0 → 1,30 |
<?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: Damien ROTH |
--> |
<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_updatenotifier_001" name="updatenotifier_title"> |
<exp>Updates Notifier</exp> |
</expression> |
<expression id="plugin_updatenotifier_002" name="updatenotifier_th"> |
<exp>Updates available</exp> |
</expression> |
<expression id="plugin_updatenotifier_003" name="updatenotifier_packages"> |
<exp>packages can be updated.</exp> |
</expression> |
<expression id="plugin_updatenotifier_004" name="updatenotifier_security"> |
<exp>updates are security updates.</exp> |
</expression> |
<expression id="plugin_updatenotifier_005" name="updatenotifier_no"> |
<exp>No updates available</exp> |
</expression> |
<expression id="plugin_updatenotifier_006" name="updatenotifier_no_packages"> |
<exp>Number of packages</exp> |
</expression> |
<expression id="plugin_updatenotifier_007" name="updatenotifier_no_security"> |
<exp>Number of security packages</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/updatenotifier/lang/fr.xml |
---|
0,0 → 1,30 |
<?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: Damien ROTH |
--> |
<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_updatenotifier_001" name="updatenotifier_title"> |
<exp>Updates Notifier</exp> |
</expression> |
<expression id="plugin_updatenotifier_002" name="updatenotifier_th"> |
<exp>Mises à jour disponibles</exp> |
</expression> |
<expression id="plugin_updatenotifier_003" name="updatenotifier_packages"> |
<exp>paquets peuvent être mit à jour.</exp> |
</expression> |
<expression id="plugin_updatenotifier_004" name="updatenotifier_security"> |
<exp>mises à jour concernent la sécurité.</exp> |
</expression> |
<expression id="plugin_updatenotifier_005" name="updatenotifier_no"> |
<exp>Pas de mises à jour disponibles</exp> |
</expression> |
<expression id="plugin_updatenotifier_006" name="updatenotifier_no_packages"> |
<exp>Number of packages</exp> |
</expression> |
<expression id="plugin_updatenotifier_007" name="updatenotifier_no_security"> |
<exp>Number of security packages</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/updatenotifier/lang/gr.xml |
---|
0,0 → 1,30 |
<?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_updatenotifier_001" name="updatenotifier_title"> |
<exp>Ειδοποιήσεις Ενημερώσεων</exp> |
</expression> |
<expression id="plugin_updatenotifier_002" name="updatenotifier_th"> |
<exp>Διαθέσιμες Ενημερώσεις</exp> |
</expression> |
<expression id="plugin_updatenotifier_003" name="updatenotifier_packages"> |
<exp>πακέτα μπορούν να ενημερωθούν.</exp> |
</expression> |
<expression id="plugin_updatenotifier_004" name="updatenotifier_security"> |
<exp>ενημερώσεις είναι ενημερώσεις ασφαλείας.</exp> |
</expression> |
<expression id="plugin_updatenotifier_005" name="updatenotifier_no"> |
<exp>Δεν υπάρχουν ενημερώσεις</exp> |
</expression> |
<expression id="plugin_updatenotifier_006" name="updatenotifier_no_packages"> |
<exp>Αριθμός πακέτων</exp> |
</expression> |
<expression id="plugin_updatenotifier_007" name="updatenotifier_no_security"> |
<exp>Αριθμός πακέτων ασφαλείας</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/updatenotifier/lang/pl.xml |
---|
0,0 → 1,30 |
<?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_updatenotifier_001" name="updatenotifier_title"> |
<exp>Updates Notifier</exp> |
</expression> |
<expression id="plugin_updatenotifier_002" name="updatenotifier_th"> |
<exp>Aktualizacje dostępne</exp> |
</expression> |
<expression id="plugin_updatenotifier_003" name="updatenotifier_packages"> |
<exp>pakietów do aktualizacji.</exp> |
</expression> |
<expression id="plugin_updatenotifier_004" name="updatenotifier_security"> |
<exp>to aktualizacje zabezpieczeń.</exp> |
</expression> |
<expression id="plugin_updatenotifier_005" name="updatenotifier_no"> |
<exp>Brak dostępnych aktualizacji</exp> |
</expression> |
<expression id="plugin_updatenotifier_006" name="updatenotifier_no_packages"> |
<exp>Liczba pakietów aktualizacyjnych</exp> |
</expression> |
<expression id="plugin_updatenotifier_007" name="updatenotifier_no_security"> |
<exp>Liczba pakietów aktualizacji zabezpieczeń</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/updatenotifier/lang/ro.xml |
---|
0,0 → 1,30 |
<?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_updatenotifier_001" name="updatenotifier_title"> |
<exp>Updates Notifier</exp> |
</expression> |
<expression id="plugin_updatenotifier_002" name="updatenotifier_th"> |
<exp>Actualizări Disponibile</exp> |
</expression> |
<expression id="plugin_updatenotifier_003" name="updatenotifier_packages"> |
<exp>Pachetele pot fi actualizate.</exp> |
</expression> |
<expression id="plugin_updatenotifier_004" name="updatenotifier_security"> |
<exp>Sunt actualizări de securitate.</exp> |
</expression> |
<expression id="plugin_updatenotifier_005" name="updatenotifier_no"> |
<exp>Nu actualizări disponibile</exp> |
</expression> |
<expression id="plugin_updatenotifier_006" name="updatenotifier_no_packages"> |
<exp>Number of packages</exp> |
</expression> |
<expression id="plugin_updatenotifier_007" name="updatenotifier_no_security"> |
<exp>Number of security packages</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/updatenotifier/lang/ru.xml |
---|
0,0 → 1,30 |
<?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_updatenotifier_001" name="updatenotifier_title"> |
<exp>Оповещения об обновлениях</exp> |
</expression> |
<expression id="plugin_updatenotifier_002" name="updatenotifier_th"> |
<exp>Доступно обновление</exp> |
</expression> |
<expression id="plugin_updatenotifier_003" name="updatenotifier_packages"> |
<exp>Пакеты могут быть обновлены.</exp> |
</expression> |
<expression id="plugin_updatenotifier_004" name="updatenotifier_security"> |
<exp>Обновления безопасности.</exp> |
</expression> |
<expression id="plugin_updatenotifier_005" name="updatenotifier_no"> |
<exp>Нет доступных обновлений</exp> |
</expression> |
<expression id="plugin_updatenotifier_006" name="updatenotifier_no_packages"> |
<exp>Number of packages</exp> |
</expression> |
<expression id="plugin_updatenotifier_007" name="updatenotifier_no_security"> |
<exp>Number of security packages</exp> |
</expression> |
</tns:translationPlugin> |