/web/acc/phpsysinfo/plugins/smart/css/smart.css |
---|
0,0 → 1,10 |
/* |
$Id: smart.css 661 2012-08-27 11:26:39Z namiltd $ |
*/ |
#Plugin_SMARTTable tbody tr td { |
text-align: right; |
} |
#Plugin_SMARTTable thead tr th { |
cursor: pointer; |
} |
/web/acc/phpsysinfo/plugins/smart/js/smart.js |
---|
0,0 → 1,148 |
/*************************************************************************** |
* 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: smart.js 707 2012-11-28 10:20:49Z namiltd $ |
/*global $, jQuery, genlang, formatTemp, plugin_translate, buildBlock, datetime */ |
"use strict"; |
var smart_show = false, smart_table; |
//appendcss("./plugins/SMART/css/SMART.css"); |
/** |
* fill the plugin block with table structure |
*/ |
function smart_buildTable(xml) { |
var html = ""; |
html += "<div style=\"overflow-x:auto;\">\n"; |
html += " <table id=\"Plugin_SMARTTable\" style=\"border-collapse:collapse;\">\n"; |
html += " <thead>\n"; |
html += " <tr>\n"; |
html += " <th class=\"right\">" + genlang(2, "SMART") + "</th>\n"; |
$("Plugins Plugin_SMART columns column", xml).each(function smart_table_header() { |
html += " <th class=\"right\">" + genlang(100 + parseInt($(this).attr("id"), 10), "SMART") + "</th>\n"; |
}); |
html += " </tr>\n"; |
html += " </thead>\n"; |
html += " <tbody>\n"; |
html += " </tbody>\n"; |
html += " </table>\n"; |
html += "</div>\n"; |
$("#Plugin_SMART").append(html); |
smart_table = $("#Plugin_SMARTTable").dataTable({ |
"bPaginate": false, |
"bLengthChange": false, |
"bFilter": false, |
"bSort": true, |
"bInfo": false, |
"bProcessing": true, |
"bAutoWidth": false, |
"bStateSave": true |
}); |
} |
/** |
* insert content into table |
* @param {jQuery} xml plugin-XML |
*/ |
function smart_populate(xml) { |
var name = "", columns = []; |
smart_table.fnClearTable(); |
// Get datas that the user want to be displayed |
$("Plugins Plugin_SMART columns column", xml).each(function smart_find_columns() { |
columns[parseInt($(this).attr("id"), 10)] = $(this).attr("name"); |
smart_show = true; |
}); |
// Now we add selected datas in the table |
$("Plugins Plugin_SMART disks disk", xml).each(function smart_fill_table() { |
var values = [], display = [], i; |
name = $(this).attr("name").replace(/\)/g, ")<wbr>"); |
$(this).find("attribute").each(function smart_fill_data() { |
if (columns[parseInt($(this).attr("id"), 10)] && columns[parseInt($(this).attr("id"), 10)] !== "") { |
values[parseInt($(this).attr("id"), 10)] = $(this).attr(columns[parseInt($(this).attr("id"), 10)]); |
} |
}); |
display.push("<span style=\"display:none;\">" + name + "</span>" + name); |
// On "columns" so we get the right order |
// fixed for Firefox (fix wrong order) |
$("Plugins Plugin_SMART columns column", xml).each(function smart_find_columns() { |
i = parseInt($(this).attr("id"), 10); |
if (typeof(values[i])==='undefined') { |
display.push("<span style=\"display:none;\"></span>"); |
} |
else if (i === 194) { |
display.push("<span style=\"display:none;\">" + values[i] + "</span>" + formatTemp(values[i], xml)); |
} |
else { |
display.push("<span style=\"display:none;\">" + values[i] + "</span>" + values[i]); |
} |
}); |
smart_table.fnAddData(display); |
}); |
} |
/** |
* load the xml via ajax |
*/ |
function smart_request() { |
$("#Reload_SMARTTable").attr("title", "reload"); |
$.ajax({ |
url: "xml.php?plugin=SMART", |
dataType: "xml", |
error: function smart_error() { |
$.jGrowl("Error loading XML document for Plugin SMART"); |
}, |
success: function smart_buildBlock(xml) { |
populateErrors(xml); |
if ((smart_table === undefined) || (typeof(smart_table) !== "object")) { |
smart_buildTable(xml); |
} |
smart_populate(xml); |
if (smart_show) { |
plugin_translate("SMART"); |
$("#Plugin_SMART").show(); |
} |
} |
}); |
} |
$(document).ready(function smart_buildpage() { |
var html = ""; |
$("#footer").before(buildBlock("SMART", 1, true)); |
$("#Plugin_SMART").css("width", "915px"); |
smart_request(); |
$("#Reload_SMARTTable").click(function smart_reload(id) { |
smart_request(); |
$(this).attr("title", datetime()); |
}); |
}); |
/web/acc/phpsysinfo/plugins/smart/js/smart_bootstrap.js |
---|
0,0 → 1,85 |
function renderPlugin_smart(data) { |
if ((data.Plugins.Plugin_SMART !== undefined) && (data.Plugins.Plugin_SMART.columns !== undefined) && (items(data.Plugins.Plugin_SMART.columns.column).length > 0) && (data.Plugins.Plugin_SMART.disks !== undefined) && (items(data.Plugins.Plugin_SMART.disks.disk).length > 0)) { |
var smartitems = items(data.Plugins.Plugin_SMART.columns.column); |
var smartnames = { |
1:"plugin_smart_101", // "Raw Read Error Rate", |
2:"plugin_smart_102", // "Throughput Performance", |
3:"plugin_smart_103", // "Spin Up Time", |
4:"plugin_smart_104", // "Start Stop Count", |
5:"plugin_smart_105", // "Reallocated Sector Ct", |
7:"plugin_smart_106", // "Seek Error Rate", |
8:"plugin_smart_108", // "Seek Time Performance", |
9:"plugin_smart_109", // "Power On Hours", |
10:"plugin_smart_110", // "Spin Retry Count", |
11:"plugin_smart_111", // "Calibration Retry Count", |
12:"plugin_smart_112", // "Power Cycle Count", |
190:"plugin_smart_290", // "Airflow Temperature", |
191:"plugin_smart_291", // "G-sense Error Rate", |
192:"plugin_smart_292", // "Power-Off Retract Count", |
193:"plugin_smart_293", // "Load Cycle Count", |
194:"plugin_smart_294", // "Temperature", |
195:"plugin_smart_295", // "Hardware ECC Recovered", |
196:"plugin_smart_296", // "Reallocated Event Count", |
197:"plugin_smart_297", // "Current Pending Sector", |
198:"plugin_smart_298", // "Offline Uncorr.", |
199:"plugin_smart_299", // "UDMA CRC Error Count", |
200:"plugin_smart_300", // "Multi Zone Error Rate", |
201:"plugin_smart_301", // "Soft Read Error Rate", |
202:"plugin_smart_302", // "Data Address Mark Errors", |
223:"plugin_smart_323", // "Load Retry Count", |
225:"plugin_smart_325", }; // "Load Cycle Count" |
var html = ''; |
var i,j; |
var smartid; |
html+="<thead>"; |
html+="<tr>"; |
html+="<th id=\"smart_name\" class=\"rightCell\">"+genlang(2, 'smart')+"</th>"; // Name |
for (i = 0; i < smartitems.length ; i++) { |
smartid = smartitems[i]["@attributes"].id; |
if (smartnames[smartid] !== undefined) { |
html+="<th class=\"sorttable_numeric rightCell\">"+ genlang(100+parseInt(smartid), 'smart') + "</th>"; |
} else { |
html+="<th class=\"sorttable_numeric rightCell\">"+ smartid + "</th>"; |
} |
} |
html+="</tr>"; |
html+="</thead>"; |
var diskitems = items(data.Plugins.Plugin_SMART.disks.disk); |
html += '<tbody>'; |
for (i = 0; i < diskitems.length; i++) { |
html += '<tr>'; |
html += '<th class="rightCell">'+ diskitems[i]["@attributes"].name + '</th>'; |
attribitems = items(diskitems[i].attribute); |
var valarray = []; |
for (j = 0;j < attribitems.length; j++) { |
valarray[attribitems[j]["@attributes"].id] = attribitems[j]["@attributes"].raw_value; |
} |
for (j = 0; j < smartitems.length; j++) { |
smartid = smartitems[j]["@attributes"].id; |
var itemvalue = valarray[smartid]; |
if ((itemvalue !== undefined) && (itemvalue !== '' )) { |
if (smartid === "194") { |
html += '<td class="rightCell">' + formatTemp(itemvalue, data.Options["@attributes"].tempFormat) + '</td>'; |
} else { |
html += '<td class="rightCell">' + itemvalue + '</td>'; |
} |
} else { |
html += '<td></td>'; |
} |
} |
html += '</tr>'; |
} |
html += '</tbody>'; |
$('#smart').empty().append(html); |
$('#smart').addClass("sortable"); |
sorttable.makeSortable($('#smart')[0]); |
sorttable.innerSortFunction.apply($('#smart_name')[0], []); |
$('#block_smart').show(); |
} else { |
$('#block_smart').hide(); |
} |
} |
/web/acc/phpsysinfo/plugins/smart/lang/cz.xml |
---|
0,0 → 1,94 |
<?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_smart_001" name="smart_title"> |
<exp>S.M.A.R.T Informace</exp> |
</expression> |
<expression id="plugin_smart_002" name="smart_name"> |
<exp>Název</exp> |
</expression> |
<expression id="plugin_smart_101" name="smart_raw_read_error_rate"> |
<exp>Raw Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_102" name="smart_throughput_performance"> |
<exp>Throughput Performance</exp> |
</expression> |
<expression id="plugin_smart_103" name="smart_spin_up_time"> |
<exp>Spin Up Time</exp> |
</expression> |
<expression id="plugin_smart_104" name="smart_start_stop_count"> |
<exp>Start Stop Count</exp> |
</expression> |
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct"> |
<exp>Reallocated Sector Ct</exp> |
</expression> |
<expression id="plugin_smart_107" name="smart_seek_error_rate"> |
<exp>Seek Error Rate</exp> |
</expression> |
<expression id="plugin_smart_108" name="smart_seek_time_performance"> |
<exp>Seek Time Performance</exp> |
</expression> |
<expression id="plugin_smart_109" name="smart_power_on_hours"> |
<exp>Power On Hours</exp> |
</expression> |
<expression id="plugin_smart_110" name="smart_spin_retry_count"> |
<exp>Spin Retry Count</exp> |
</expression> |
<expression id="plugin_smart_111" name="smart_calibration_retry_count"> |
<exp>Calibration Retry Count</exp> |
</expression> |
<expression id="plugin_smart_112" name="smart_power_cycle_count"> |
<exp>Power Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel"> |
<exp>Airflow Temperature</exp> |
</expression> |
<expression id="plugin_smart_291" name="smart_g_sense_error_rate"> |
<exp>G-sense Error Rate</exp> |
</expression> |
<expression id="plugin_smart_292" name="smart_power_off_retry_count"> |
<exp>Power-Off Retract Count</exp> |
</expression> |
<expression id="plugin_smart_293" name="smart_load_cycle_count"> |
<exp>Load Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_294" name="smart_temperature"> |
<exp>Temperature</exp> |
</expression> |
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered"> |
<exp>Hardware ECC Recovered</exp> |
</expression> |
<expression id="plugin_smart_296" name="smart_reallocated_event_count"> |
<exp>Reallocated Event Count</exp> |
</expression> |
<expression id="plugin_smart_297" name="smart_current_pending_sector"> |
<exp>Current Pending Sector</exp> |
</expression> |
<expression id="plugin_smart_298" name="smart_offline_uncorrectable"> |
<exp>Offline Uncorr.</exp> |
</expression> |
<expression id="plugin_smart_299" name="smart_udma_crc_error_count"> |
<exp>UDMA CRC Error Count</exp> |
</expression> |
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate"> |
<exp>Multi Zone Error Rate</exp> |
</expression> |
<expression id="plugin_smart_301" name="smart_soft_read_error_rate"> |
<exp>Soft Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_302" name="smart_data_address_mark_errs"> |
<exp>Data Address Mark Errors</exp> |
</expression> |
<expression id="plugin_smart_323" name="smart_load_retry_count"> |
<exp>Load Retry Count</exp> |
</expression> |
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt"> |
<exp>Load Cycle Count</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/smart/lang/en.xml |
---|
0,0 → 1,94 |
<?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: Antoine Bertin |
--> |
<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_smart_001" name="smart_title"> |
<exp>S.M.A.R.T Informations</exp> |
</expression> |
<expression id="plugin_smart_002" name="smart_name"> |
<exp>Name</exp> |
</expression> |
<expression id="plugin_smart_101" name="smart_raw_read_error_rate"> |
<exp>Raw Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_102" name="smart_throughput_performance"> |
<exp>Throughput Performance</exp> |
</expression> |
<expression id="plugin_smart_103" name="smart_spin_up_time"> |
<exp>Spin Up Time</exp> |
</expression> |
<expression id="plugin_smart_104" name="smart_start_stop_count"> |
<exp>Start Stop Count</exp> |
</expression> |
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct"> |
<exp>Reallocated Sector Ct</exp> |
</expression> |
<expression id="plugin_smart_107" name="smart_seek_error_rate"> |
<exp>Seek Error Rate</exp> |
</expression> |
<expression id="plugin_smart_108" name="smart_seek_time_performance"> |
<exp>Seek Time Performance</exp> |
</expression> |
<expression id="plugin_smart_109" name="smart_power_on_hours"> |
<exp>Power On Hours</exp> |
</expression> |
<expression id="plugin_smart_110" name="smart_spin_retry_count"> |
<exp>Spin Retry Count</exp> |
</expression> |
<expression id="plugin_smart_111" name="smart_calibration_retry_count"> |
<exp>Calibration Retry Count</exp> |
</expression> |
<expression id="plugin_smart_112" name="smart_power_cycle_count"> |
<exp>Power Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel"> |
<exp>Airflow Temperature</exp> |
</expression> |
<expression id="plugin_smart_291" name="smart_g_sense_error_rate"> |
<exp>G-sense Error Rate</exp> |
</expression> |
<expression id="plugin_smart_292" name="smart_power_off_retry_count"> |
<exp>Power-Off Retract Count</exp> |
</expression> |
<expression id="plugin_smart_293" name="smart_load_cycle_count"> |
<exp>Load Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_294" name="smart_temperature"> |
<exp>Temperature</exp> |
</expression> |
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered"> |
<exp>Hardware ECC Recovered</exp> |
</expression> |
<expression id="plugin_smart_296" name="smart_reallocated_event_count"> |
<exp>Reallocated Event Count</exp> |
</expression> |
<expression id="plugin_smart_297" name="smart_current_pending_sector"> |
<exp>Current Pending Sector</exp> |
</expression> |
<expression id="plugin_smart_298" name="smart_offline_uncorrectable"> |
<exp>Offline Uncorr.</exp> |
</expression> |
<expression id="plugin_smart_299" name="smart_udma_crc_error_count"> |
<exp>UDMA CRC Error Count</exp> |
</expression> |
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate"> |
<exp>Multi Zone Error Rate</exp> |
</expression> |
<expression id="plugin_smart_301" name="smart_soft_read_error_rate"> |
<exp>Soft Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_302" name="smart_data_address_mark_errs"> |
<exp>Data Address Mark Errors</exp> |
</expression> |
<expression id="plugin_smart_323" name="smart_load_retry_count"> |
<exp>Load Retry Count</exp> |
</expression> |
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt"> |
<exp>Load Cycle Count</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/smart/lang/fr.xml |
---|
0,0 → 1,94 |
<?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: Antoine Bertin |
--> |
<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_smart_001" name="smart_title"> |
<exp>Informations S.M.A.R.T</exp> |
</expression> |
<expression id="plugin_smart_002" name="smart_name"> |
<exp>Nom</exp> |
</expression> |
<expression id="plugin_smart_101" name="smart_raw_read_error_rate"> |
<exp>Raw Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_102" name="smart_throughput_performance"> |
<exp>Throughput Performance</exp> |
</expression> |
<expression id="plugin_smart_103" name="smart_spin_up_time"> |
<exp>Spin Up Time</exp> |
</expression> |
<expression id="plugin_smart_104" name="smart_start_stop_count"> |
<exp>Start Stop Count</exp> |
</expression> |
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct"> |
<exp>Reallocated Sector Ct</exp> |
</expression> |
<expression id="plugin_smart_107" name="smart_seek_error_rate"> |
<exp>Seek Error Rate</exp> |
</expression> |
<expression id="plugin_smart_108" name="smart_seek_time_performance"> |
<exp>Seek Time Performance</exp> |
</expression> |
<expression id="plugin_smart_109" name="smart_power_on_hours"> |
<exp>Power On Hours</exp> |
</expression> |
<expression id="plugin_smart_110" name="smart_spin_retry_count"> |
<exp>Spin Retry Count</exp> |
</expression> |
<expression id="plugin_smart_111" name="smart_calibration_retry_count"> |
<exp>Calibration Retry Count</exp> |
</expression> |
<expression id="plugin_smart_112" name="smart_power_cycle_count"> |
<exp>Power Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel"> |
<exp>Airflow Temperature</exp> |
</expression> |
<expression id="plugin_smart_291" name="smart_g_sense_error_rate"> |
<exp>G-sense Error Rate</exp> |
</expression> |
<expression id="plugin_smart_292" name="smart_power_off_retry_count"> |
<exp>Power-Off Retract Count</exp> |
</expression> |
<expression id="plugin_smart_293" name="smart_load_cycle_count"> |
<exp>Load Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_294" name="smart_temperature"> |
<exp>Temperature</exp> |
</expression> |
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered"> |
<exp>Hardware ECC Recovered</exp> |
</expression> |
<expression id="plugin_smart_296" name="smart_reallocated_event_count"> |
<exp>Reallocated Event Count</exp> |
</expression> |
<expression id="plugin_smart_297" name="smart_current_pending_sector"> |
<exp>Current Pending Sector</exp> |
</expression> |
<expression id="plugin_smart_298" name="smart_offline_uncorrectable"> |
<exp>Offline Uncorr.</exp> |
</expression> |
<expression id="plugin_smart_299" name="smart_udma_crc_error_count"> |
<exp>UDMA CRC Error Count</exp> |
</expression> |
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate"> |
<exp>Multi Zone Error Rate</exp> |
</expression> |
<expression id="plugin_smart_301" name="smart_soft_read_error_rate"> |
<exp>Soft Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_302" name="smart_data_address_mark_errs"> |
<exp>Data Address Mark Errors</exp> |
</expression> |
<expression id="plugin_smart_323" name="smart_load_retry_count"> |
<exp>Load Retry Count</exp> |
</expression> |
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt"> |
<exp>Load Cycle Count</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/smart/lang/gr.xml |
---|
0,0 → 1,94 |
<?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_smart_001" name="smart_title"> |
<exp>Πληροφορίες S.M.A.R.T</exp> |
</expression> |
<expression id="plugin_smart_002" name="smart_name"> |
<exp>Συσκευή</exp> |
</expression> |
<expression id="plugin_smart_101" name="smart_raw_read_error_rate"> |
<exp>Raw Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_102" name="smart_throughput_performance"> |
<exp>Throughput Performance</exp> |
</expression> |
<expression id="plugin_smart_103" name="smart_spin_up_time"> |
<exp>Spin Up Time</exp> |
</expression> |
<expression id="plugin_smart_104" name="smart_start_stop_count"> |
<exp>Start Stop Count</exp> |
</expression> |
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct"> |
<exp>Ανακτημένοι Τομείς</exp> |
</expression> |
<expression id="plugin_smart_107" name="smart_seek_error_rate"> |
<exp>Seek Error Rate</exp> |
</expression> |
<expression id="plugin_smart_108" name="smart_seek_time_performance"> |
<exp>Seek Time Performance</exp> |
</expression> |
<expression id="plugin_smart_109" name="smart_power_on_hours"> |
<exp>Ώρες λειτουργίας</exp> |
</expression> |
<expression id="plugin_smart_110" name="smart_spin_retry_count"> |
<exp>Spin Retry Count</exp> |
</expression> |
<expression id="plugin_smart_111" name="smart_calibration_retry_count"> |
<exp>Calibration Retry Count</exp> |
</expression> |
<expression id="plugin_smart_112" name="smart_power_cycle_count"> |
<exp>Power Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel"> |
<exp>Θερμοκρασία Αέρος</exp> |
</expression> |
<expression id="plugin_smart_291" name="smart_g_sense_error_rate"> |
<exp>G-sense Error Rate</exp> |
</expression> |
<expression id="plugin_smart_292" name="smart_power_off_retry_count"> |
<exp>Power-Off Retract Count</exp> |
</expression> |
<expression id="plugin_smart_293" name="smart_load_cycle_count"> |
<exp>Load Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_294" name="smart_temperature"> |
<exp>Θερμοκρασία</exp> |
</expression> |
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered"> |
<exp>Hardware ECC Recovered</exp> |
</expression> |
<expression id="plugin_smart_296" name="smart_reallocated_event_count"> |
<exp>Reallocated Event Count</exp> |
</expression> |
<expression id="plugin_smart_297" name="smart_current_pending_sector"> |
<exp>Current Pending Sector</exp> |
</expression> |
<expression id="plugin_smart_298" name="smart_offline_uncorrectable"> |
<exp>Offline Uncorr.</exp> |
</expression> |
<expression id="plugin_smart_299" name="smart_udma_crc_error_count"> |
<exp>UDMA CRC Error Count</exp> |
</expression> |
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate"> |
<exp>Multi Zone Error Rate</exp> |
</expression> |
<expression id="plugin_smart_301" name="smart_soft_read_error_rate"> |
<exp>Soft Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_302" name="smart_data_address_mark_errs"> |
<exp>Data Address Mark Errors</exp> |
</expression> |
<expression id="plugin_smart_323" name="smart_load_retry_count"> |
<exp>Load Retry Count</exp> |
</expression> |
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt"> |
<exp>Load Cycle Count</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/smart/lang/pl.xml |
---|
0,0 → 1,94 |
<?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_smart_001" name="smart_title"> |
<exp>Informacje S.M.A.R.T</exp> |
</expression> |
<expression id="plugin_smart_002" name="smart_name"> |
<exp>Nazwa</exp> |
</expression> |
<expression id="plugin_smart_101" name="smart_raw_read_error_rate"> |
<exp>Raw Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_102" name="smart_throughput_performance"> |
<exp>Throughput Performance</exp> |
</expression> |
<expression id="plugin_smart_103" name="smart_spin_up_time"> |
<exp>Spin Up Time</exp> |
</expression> |
<expression id="plugin_smart_104" name="smart_start_stop_count"> |
<exp>Start Stop Count</exp> |
</expression> |
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct"> |
<exp>Reallocated Sector Ct</exp> |
</expression> |
<expression id="plugin_smart_107" name="smart_seek_error_rate"> |
<exp>Seek Error Rate</exp> |
</expression> |
<expression id="plugin_smart_108" name="smart_seek_time_performance"> |
<exp>Seek Time Performance</exp> |
</expression> |
<expression id="plugin_smart_109" name="smart_power_on_hours"> |
<exp>Power On Hours</exp> |
</expression> |
<expression id="plugin_smart_110" name="smart_spin_retry_count"> |
<exp>Spin Retry Count</exp> |
</expression> |
<expression id="plugin_smart_111" name="smart_calibration_retry_count"> |
<exp>Calibration Retry Count</exp> |
</expression> |
<expression id="plugin_smart_112" name="smart_power_cycle_count"> |
<exp>Power Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel"> |
<exp>Airflow Temperature</exp> |
</expression> |
<expression id="plugin_smart_291" name="smart_g_sense_error_rate"> |
<exp>G-sense Error Rate</exp> |
</expression> |
<expression id="plugin_smart_292" name="smart_power_off_retry_count"> |
<exp>Power-Off Retract Count</exp> |
</expression> |
<expression id="plugin_smart_293" name="smart_load_cycle_count"> |
<exp>Load Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_294" name="smart_temperature"> |
<exp>Temperature</exp> |
</expression> |
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered"> |
<exp>Hardware ECC Recovered</exp> |
</expression> |
<expression id="plugin_smart_296" name="smart_reallocated_event_count"> |
<exp>Reallocated Event Count</exp> |
</expression> |
<expression id="plugin_smart_297" name="smart_current_pending_sector"> |
<exp>Current Pending Sector</exp> |
</expression> |
<expression id="plugin_smart_298" name="smart_offline_uncorrectable"> |
<exp>Offline Uncorr.</exp> |
</expression> |
<expression id="plugin_smart_299" name="smart_udma_crc_error_count"> |
<exp>UDMA CRC Error Count</exp> |
</expression> |
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate"> |
<exp>Multi Zone Error Rate</exp> |
</expression> |
<expression id="plugin_smart_301" name="smart_soft_read_error_rate"> |
<exp>Soft Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_302" name="smart_data_address_mark_errs"> |
<exp>Data Address Mark Errors</exp> |
</expression> |
<expression id="plugin_smart_323" name="smart_load_retry_count"> |
<exp>Load Retry Count</exp> |
</expression> |
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt"> |
<exp>Load Cycle Count</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/smart/lang/ro.xml |
---|
0,0 → 1,94 |
<?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_smart_001" name="smart_title"> |
<exp>Informații S.M.A.R.T</exp> |
</expression> |
<expression id="plugin_smart_002" name="smart_name"> |
<exp>Nume</exp> |
</expression> |
<expression id="plugin_smart_101" name="smart_raw_read_error_rate"> |
<exp>Raw Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_102" name="smart_throughput_performance"> |
<exp>Throughput Performance</exp> |
</expression> |
<expression id="plugin_smart_103" name="smart_spin_up_time"> |
<exp>Spin Up Time</exp> |
</expression> |
<expression id="plugin_smart_104" name="smart_start_stop_count"> |
<exp>Start Stop Count</exp> |
</expression> |
<expression id="plugin_smart_105" name="smart_reallocated_sector_ct"> |
<exp>Reallocated Sector Ct</exp> |
</expression> |
<expression id="plugin_smart_107" name="smart_seek_error_rate"> |
<exp>Seek Error Rate</exp> |
</expression> |
<expression id="plugin_smart_108" name="smart_seek_time_performance"> |
<exp>Seek Time Performance</exp> |
</expression> |
<expression id="plugin_smart_109" name="smart_power_on_hours"> |
<exp>Power On Hours</exp> |
</expression> |
<expression id="plugin_smart_110" name="smart_spin_retry_count"> |
<exp>Spin Retry Count</exp> |
</expression> |
<expression id="plugin_smart_111" name="smart_calibration_retry_count"> |
<exp>Calibration Retry Count</exp> |
</expression> |
<expression id="plugin_smart_112" name="smart_power_cycle_count"> |
<exp>Power Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_290" name="smart_airflow_temperature_cel"> |
<exp>Airflow Temperature</exp> |
</expression> |
<expression id="plugin_smart_291" name="smart_g_sense_error_rate"> |
<exp>G-sense Error Rate</exp> |
</expression> |
<expression id="plugin_smart_292" name="smart_power_off_retry_count"> |
<exp>Power-Off Retract Count</exp> |
</expression> |
<expression id="plugin_smart_293" name="smart_load_cycle_count"> |
<exp>Load Cycle Count</exp> |
</expression> |
<expression id="plugin_smart_294" name="smart_temperature"> |
<exp>Temperature</exp> |
</expression> |
<expression id="plugin_smart_295" name="smart_hardware_ecc_recovered"> |
<exp>Hardware ECC Recovered</exp> |
</expression> |
<expression id="plugin_smart_296" name="smart_reallocated_event_count"> |
<exp>Reallocated Event Count</exp> |
</expression> |
<expression id="plugin_smart_297" name="smart_current_pending_sector"> |
<exp>Current Pending Sector</exp> |
</expression> |
<expression id="plugin_smart_298" name="smart_offline_uncorrectable"> |
<exp>Offline Uncorr.</exp> |
</expression> |
<expression id="plugin_smart_299" name="smart_udma_crc_error_count"> |
<exp>UDMA CRC Error Count</exp> |
</expression> |
<expression id="plugin_smart_300" name="smart_multi_zone_error_rate"> |
<exp>Multi Zone Error Rate</exp> |
</expression> |
<expression id="plugin_smart_301" name="smart_soft_read_error_rate"> |
<exp>Soft Read Error Rate</exp> |
</expression> |
<expression id="plugin_smart_302" name="smart_data_address_mark_errs"> |
<exp>Data Address Mark Errors</exp> |
</expression> |
<expression id="plugin_smart_323" name="smart_load_retry_count"> |
<exp>Load Retry Count</exp> |
</expression> |
<expression id="plugin_smart_325" name="smart_load_cycle_count_alt"> |
<exp>Load Cycle Count</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/snmppinfo/js/snmppinfo.js |
---|
0,0 → 1,160 |
/*************************************************************************** |
* 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: snmppinfo.js 661 2012-08-27 11:26:39Z namiltd $ |
// |
/*global $, jQuery, buildBlock, datetime, plugin_translate, createBar, genlang */ |
"use strict"; |
var snmppinfo_show = false; |
/** |
* build the table where content is inserted |
* @param {jQuery} xml plugin-XML |
*/ |
function snmppinfo_buildTable(xml) { |
var html = "", tree = [], closed = []; |
$("#Plugin_SNMPPInfo #Plugin_SNMPPInfoTable").remove(); |
html += " <div style=\"overflow-x:auto;\">\n"; |
html += " <table id=\"Plugin_SNMPPInfoTable\" class=\"tablemain\">\n"; |
html += " <thead>\n"; |
html += " <tr>\n"; |
html += " <th>" + genlang(2, "SNMPPInfo") + "</th>\n"; |
html += " <th style=\"width:120px;\">" + genlang(3, "SNMPPInfo") + "</th>\n"; |
html += " <th class=\"right\" style=\"width:100px;\">" + genlang(4, "SNMPPInfo") + "</th>\n"; |
html += " </tr>\n"; |
html += " </thead>\n"; |
html += " <tbody class=\"tree\">\n"; |
var lastdev="", index = 0 ; |
$("Plugins Plugin_SNMPPInfo Printer MarkerSupplies", xml).each(function snmppinfo_getprinters(id) { |
var close = 0, name = "", device = "", desc = "", unit = 0, max = 0, level = 0, percent = 0, units = "", supply = 0, sunits = ""; |
name = $(this).parent().attr("Name"); |
device = $(this).parent().attr("Device"); |
desc = $(this).attr("Description"); |
unit = parseInt($(this).attr("SupplyUnit"), 10); |
max = parseInt($(this).attr("MaxCapacity"), 10); |
level = parseInt($(this).attr("Level"), 10); |
supply = parseInt($(this).attr("SupplyUnit"), 10); |
if (max>0 && (level>=0) && (level<=max) ) { |
percent = Math.round(100*level/max); |
units = level+" / "+max; |
} else if (max==-2 && (level>=0) && (level<=100) ) { |
percent = level; |
units = level+" / 100"; |
} else if (level==-3) { |
percent = 100; |
units = genlang(5, "SNMPPInfo"); |
} else { |
percent = 0; |
units = genlang(6, "SNMPPInfo"); |
} |
if (device!=lastdev) { |
html += " <tr><td colspan=\"3\"><div class=\"treediv\"><span class=\"treespanbold\">" + device + " (" + name + ") </div></span></td></tr>\n"; |
index = tree.push(0); |
lastdev = device; |
} |
if (!isNaN(supply)) { |
switch (supply) { |
case 7: |
sunits = "<br>" + genlang(9, "SNMPPInfo"); |
break; |
case 13: |
sunits = "<br>" + genlang(8, "SNMPPInfo"); |
break; |
case 15: |
sunits = "<br>" + genlang(7, "SNMPPInfo"); |
break; |
case 19: |
sunits = "<br>" + genlang(3, "SNMPPInfo"); |
break; |
} |
} |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + desc + "</div></span></td><td>" + createBar(percent) +"</td><td class=\"right\">" + units + sunits + "</td></tr>\n"; |
tree.push(index); |
snmppinfo_show = true; |
}); |
html += " </tbody>\n"; |
html += " </table>\n"; |
html += " </div>\n"; |
$("#Plugin_SNMPPInfo").append(html); |
$("#Plugin_SNMPPInfoTable").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 snmppinfo_request() { |
$("#Reload_SNMPPInfoTable").attr("title", "reload"); |
$.ajax({ |
url: "xml.php?plugin=SNMPPInfo", |
dataType: "xml", |
error: function snmppinfo_error() { |
$.jGrowl("Error loading XML document for Plugin SNMPPInfo!"); |
}, |
success: function snmppinfo_buildblock(xml) { |
populateErrors(xml); |
snmppinfo_buildTable(xml); |
if (snmppinfo_show) { |
plugin_translate("SNMPPInfo"); |
$("#Plugin_SNMPPInfo").show(); |
} |
} |
}); |
} |
$(document).ready(function snmppinfo_buildpage() { |
$("#footer").before(buildBlock("SNMPPInfo", 1, true)); |
$("#Plugin_SNMPPInfo").css("width", "451px"); |
snmppinfo_request(); |
$("#Reload_SNMPPInfoTable").click(function snmppinfo_reload(id) { |
snmppinfo_request(); |
$(this).attr("title", datetime()); |
}); |
}); |
/web/acc/phpsysinfo/plugins/snmppinfo/js/snmppinfo_bootstrap.js |
---|
0,0 → 1,117 |
function renderPlugin_snmppinfo(data) { |
var directives = { |
Device: { |
text: function () { |
var Name = (this.Name !== undefined) ? (' (' + this.Name + ')'): ''; |
return this.Device + Name; |
} |
}, |
Percent: { |
html: function () { |
var max = parseInt(this.MaxCapacity); |
var level = parseInt(this.Level); |
var percent = 0; |
if (max>0 && (level>=0) && (level<=max) ) { |
percent = Math.round(100*level/max); |
} else if (max==-2 && (level>=0) && (level<=100) ) { |
percent = level; |
} else if (level==-3) { |
percent = 100; |
} |
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + percent + '%;"></div>' + |
'</div><div class="percent">' + percent + '%</div>'; |
} |
}, |
Units: { |
html: function () { |
var max = parseInt(this.MaxCapacity); |
var level = parseInt(this.Level); |
if (max>0 && (level>=0) && (level<=max) ) { |
return level+" / "+max; |
} else if (max==-2 && (level>=0) && (level<=100) ) { |
return level+" / 100"; |
} else if (level==-3) { |
return genlang(5, 'snmppinfo'); // enough |
} else { |
return genlang(6, 'snmppinfo'); // unknown |
} |
} |
}, |
SUnits: { |
html: function () { |
var supply = parseInt(this.SupplyUnit); |
if (isNaN(supply)) { |
return ""; |
} else { |
switch (supply) { |
case 7: |
return "<br>" + genlang(9, "snmppinfo"); |
case 13: |
return "<br>" + genlang(8, "snmppinfo"); |
case 15: |
return "<br>" + genlang(7, "snmppinfo"); |
case 19: |
return "<br>" + genlang(3, "snmppinfo"); |
} |
} |
} |
} |
}; |
if (data.Plugins.Plugin_SNMPPInfo !== undefined) { |
var printers = items(data.Plugins.Plugin_SNMPPInfo.Printer); |
if (printers.length > 0) { |
var i, j, datas; |
var html = ""; |
for (i = 0; i < printers.length; i++) { |
html+="<tr id=\"snmppinfo-" + i + "\" class=\"treegrid-snmppinfo-" + i + "\" style=\"display:none;\" >"; |
html+="<td colspan=\"3\"><span class=\"treegrid-spanbold\" data-bind=\"Device\"></span></td>"; |
html+="</tr>"; |
try { |
datas = items(printers[i].MarkerSupplies); |
for (j = 0; j < datas.length; j++) { |
html+="<tr id=\"snmppinfo-" + i + "-" + j +"\" class=\"treegrid-parent-snmppinfo-" + i + "\">"; |
html+="<td><span class=\"treegrid-spanbold\" data-bind=\"Description\"></span></td>"; |
html+="<td><span data-bind=\"Percent\"></span></td>"; |
html+="<td class=\"rightCell\"><span data-bind=\"Units\"></span><span data-bind=\"SUnits\"></span></td>"; |
html+="</tr>"; |
} |
} |
catch (err) { |
$("#snmppinfo-" + i).hide(); |
} |
} |
$("#snmppinfo-data").empty().append(html); |
for (i = 0; i < printers.length; i++) { |
$('#snmppinfo-'+ i).render(printers[i]["@attributes"], directives); |
try { |
datas = items(printers[i].MarkerSupplies); |
for (j = 0; j < datas.length; j++) { |
$('#snmppinfo-'+ i+ "-" + j).render(datas[j]["@attributes"], directives); |
} |
} |
catch (err) { |
$("#snmppinfo-" + i).hide(); |
} |
} |
$('#snmppinfo').treegrid({ |
initialState: 'expanded', |
expanderExpandedClass: 'normalicon normalicon-down', |
expanderCollapsedClass: 'normalicon normalicon-right' |
}); |
$('#block_snmppinfo').show(); |
} else { |
$('#block_snmppinfo').hide(); |
} |
} else { |
$('#block_snmppinfo').hide(); |
} |
} |
/web/acc/phpsysinfo/plugins/snmppinfo/lang/cz.xml |
---|
0,0 → 1,36 |
<?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_snmppinfo_001" name="snmppinfo_title"> |
<exp>Informace o tiskárnách</exp> |
</expression> |
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer"> |
<exp>Tiskárna</exp> |
</expression> |
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent"> |
<exp>Procenta</exp> |
</expression> |
<expression id="plugin_snmppinfo_004" name="snmppinfo_units"> |
<exp>Jednotky</exp> |
</expression> |
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough"> |
<exp>dostatek</exp> |
</expression> |
<expression id="plugin_snmppinfo_006" name="snmppinfo_unknown"> |
<exp>neznámé</exp> |
</expression> |
<expression id="plugin_snmppinfo_007" name="snmppinfo_tenthsml"> |
<exp>Tenths of ml</exp> |
</expression> |
<expression id="plugin_snmppinfo_008" name="snmppinfo_tenthsgrams"> |
<exp>Tenths of grams</exp> |
</expression> |
<expression id="plugin_snmppinfo_009" name="snmppinfo_impressions"> |
<exp>Impressions</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/snmppinfo/lang/de.xml |
---|
0,0 → 1,36 |
<?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_snmppinfo_001" name="snmppinfo_title"> |
<exp>Drucker Information</exp> |
</expression> |
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer"> |
<exp>Drucker</exp> |
</expression> |
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent"> |
<exp>Prozent</exp> |
</expression> |
<expression id="plugin_snmppinfo_004" name="snmppinfo_units"> |
<exp>Units</exp> |
</expression> |
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough"> |
<exp>genug</exp> |
</expression> |
<expression id="plugin_snmppinfo_006" name="snmppinfo_unknown"> |
<exp>unbekannt</exp> |
</expression> |
<expression id="plugin_snmppinfo_007" name="snmppinfo_tenthsml"> |
<exp>Zehntel ml</exp> |
</expression> |
<expression id="plugin_snmppinfo_008" name="snmppinfo_tenthsgrams"> |
<exp>Tenths of Gramm</exp> |
</expression> |
<expression id="plugin_snmppinfo_009" name="snmppinfo_impressions"> |
<exp>Auflagen</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/snmppinfo/lang/en.xml |
---|
0,0 → 1,36 |
<?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: Mieczyslaw Nalewaj |
--> |
<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_snmppinfo_001" name="snmppinfo_title"> |
<exp>Printer Information</exp> |
</expression> |
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer"> |
<exp>Printer</exp> |
</expression> |
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent"> |
<exp>Percent</exp> |
</expression> |
<expression id="plugin_snmppinfo_004" name="snmppinfo_units"> |
<exp>Units</exp> |
</expression> |
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough"> |
<exp>enough</exp> |
</expression> |
<expression id="plugin_snmppinfo_006" name="snmppinfo_unknown"> |
<exp>unknown</exp> |
</expression> |
<expression id="plugin_snmppinfo_007" name="snmppinfo_tenthsml"> |
<exp>Tenths of ml</exp> |
</expression> |
<expression id="plugin_snmppinfo_008" name="snmppinfo_tenthsgrams"> |
<exp>Tenths of grams</exp> |
</expression> |
<expression id="plugin_snmppinfo_009" name="snmppinfo_impressions"> |
<exp>Impressions</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/snmppinfo/lang/fr.xml |
---|
0,0 → 1,35 |
<?xml version="1.0" encoding="utf-8"?> |
<!-- |
phpSysInfo language file Language: French Created by: phpsysinfo |
--> |
<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_snmppinfo_001" name="snmppinfo_title"> |
<exp>Imprimantes</exp> |
</expression> |
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer"> |
<exp>Imprimante</exp> |
</expression> |
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent"> |
<exp>Pourcent</exp> |
</expression> |
<expression id="plugin_snmppinfo_004" name="snmppinfo_units"> |
<exp>Unité</exp> |
</expression> |
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough"> |
<exp>suffisamment</exp> |
</expression> |
<expression id="plugin_snmppinfo_006" name="snmppinfo_unknown"> |
<exp>inconnu</exp> |
</expression> |
<expression id="plugin_snmppinfo_007" name="snmppinfo_tenthsml"> |
<exp>Dixièmes de ml</exp> |
</expression> |
<expression id="plugin_snmppinfo_008" name="snmppinfo_tenthsgrams"> |
<exp>Dixièmes de gramme</exp> |
</expression> |
<expression id="plugin_snmppinfo_009" name="snmppinfo_impressions"> |
<exp>Impressions</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/snmppinfo/lang/gr.xml |
---|
0,0 → 1,36 |
<?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_snmppinfo_001" name="snmppinfo_title"> |
<exp>Πληροφορίες Εκτυπωτή</exp> |
</expression> |
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer"> |
<exp>Εκτυπωτής</exp> |
</expression> |
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent"> |
<exp>Ποσοστό</exp> |
</expression> |
<expression id="plugin_snmppinfo_004" name="snmppinfo_units"> |
<exp>Μονάδες</exp> |
</expression> |
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough"> |
<exp>αρκετό</exp> |
</expression> |
<expression id="plugin_snmppinfo_006" name="snmppinfo_unknown"> |
<exp>άγνωστο</exp> |
</expression> |
<expression id="plugin_snmppinfo_007" name="snmppinfo_tenthsml"> |
<exp>Δεκάδες ml</exp> |
</expression> |
<expression id="plugin_snmppinfo_008" name="snmppinfo_tenthsgrams"> |
<exp>Δεκάδες γραμμάρια</exp> |
</expression> |
<expression id="plugin_snmppinfo_009" name="snmppinfo_impressions"> |
<exp>Εκτυπώσεις</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/snmppinfo/lang/pl.xml |
---|
0,0 → 1,36 |
<?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_snmppinfo_001" name="snmppinfo_title"> |
<exp>Drukarki</exp> |
</expression> |
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer"> |
<exp>Drukarka</exp> |
</expression> |
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent"> |
<exp>Procent</exp> |
</expression> |
<expression id="plugin_snmppinfo_004" name="snmppinfo_units"> |
<exp>Jednostek</exp> |
</expression> |
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough"> |
<exp>dość</exp> |
</expression> |
<expression id="plugin_snmppinfo_006" name="snmppinfo_unknown"> |
<exp>nieznany</exp> |
</expression> |
<expression id="plugin_snmppinfo_007" name="snmppinfo_tenthsml"> |
<exp>Dziesiątych ml</exp> |
</expression> |
<expression id="plugin_snmppinfo_008" name="snmppinfo_tenthsgrams"> |
<exp>Dziesiątych grama</exp> |
</expression> |
<expression id="plugin_snmppinfo_009" name="snmppinfo_impressions"> |
<exp>Impresji</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/snmppinfo/lang/ro.xml |
---|
0,0 → 1,36 |
<?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_snmppinfo_001" name="snmppinfo_title"> |
<exp>Informații Imprimantă</exp> |
</expression> |
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer"> |
<exp>Imprimantă</exp> |
</expression> |
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent"> |
<exp>Procent</exp> |
</expression> |
<expression id="plugin_snmppinfo_004" name="snmppinfo_units"> |
<exp>Unități</exp> |
</expression> |
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough"> |
<exp>suficient</exp> |
</expression> |
<expression id="plugin_snmppinfo_006" name="snmppinfo_unknown"> |
<exp>necunoscut</exp> |
</expression> |
<expression id="plugin_snmppinfo_007" name="snmppinfo_tenthsml"> |
<exp>Tenths of ml</exp> |
</expression> |
<expression id="plugin_snmppinfo_008" name="snmppinfo_tenthsgrams"> |
<exp>Tenths of grams</exp> |
</expression> |
<expression id="plugin_snmppinfo_009" name="snmppinfo_impressions"> |
<exp>Impressions</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/snmppinfo/lang/ru.xml |
---|
0,0 → 1,36 |
<?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_snmppinfo_001" name="snmppinfo_title"> |
<exp>Информация о принтерах</exp> |
</expression> |
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer"> |
<exp>Принтер</exp> |
</expression> |
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent"> |
<exp>Процент</exp> |
</expression> |
<expression id="plugin_snmppinfo_004" name="snmppinfo_units"> |
<exp>Еденицы</exp> |
</expression> |
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough"> |
<exp>достаточно</exp> |
</expression> |
<expression id="plugin_snmppinfo_006" name="snmppinfo_unknown"> |
<exp>неизвестный</exp> |
</expression> |
<expression id="plugin_snmppinfo_007" name="snmppinfo_tenthsml"> |
<exp>Десятых мл</exp> |
</expression> |
<expression id="plugin_snmppinfo_008" name="snmppinfo_tenthsgrams"> |
<exp>Десятых грамма</exp> |
</expression> |
<expression id="plugin_snmppinfo_009" name="snmppinfo_impressions"> |
<exp>Отпечатков</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/stablebit/gfx/off.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/stablebit/gfx/on.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/stablebit/js/stablebit.js |
---|
0,0 → 1,208 |
/*************************************************************************** |
* 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: stablebit.js 661 2012-08-27 11:26:39Z namiltd $ |
// |
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang */ |
"use strict"; |
var stablebit_show = false; |
/** |
* build the table where content is inserted |
* @param {jQuery} xml plugin-XML |
*/ |
function stablebit_buildTable(xml) { |
var html = "", tree = [], closed = []; |
$("#Plugin_StableBit #Plugin_StableBitTable").remove(); |
html += " <div style=\"overflow-x:auto;\">\n"; |
html += " <table id=\"Plugin_StableBitTable\" class=\"tablemain\">\n"; |
html += " <thead>\n"; |
html += " <tr>\n"; |
html += " <th>" + genlang(2, "StableBit") + "</th>\n"; |
html += " <th style=\"width:120px;\">" + genlang(3, "StableBit") + "</th>\n"; |
html += " </tr>\n"; |
html += " </thead>\n"; |
html += " <tbody class=\"tree\">\n"; |
var index = 0; |
$("Plugins Plugin_StableBit Disk", xml).each(function stablebit_getdisks(id) { |
var name = ""; |
name = $(this).attr("Name"); |
if (name !== undefined) { |
var serialnumber = "", firmware = "", size = 0, powerstate = "", temperaturec = "", |
ishot = 0, issmartwarning = 0, issmartpastthresholds = 0, issmartpastadvisorythresholds = 0, |
issmartfailurepredicted = 0, isdamaged = 0; |
html += " <tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespanbold\">" + name + "</div></span></td></tr>\n"; |
index = tree.push(0); |
serialnumber = $(this).attr("SerialNumber"); |
if (serialnumber !== undefined) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(4, "StableBit") + "</div></span></td><td>" + serialnumber +"</td></tr>\n"; |
tree.push(index); |
} |
firmware = $(this).attr("Firmware"); |
if (firmware !== undefined) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(5, "StableBit") + "</div></span></td><td>" + firmware +"</td></tr>\n"; |
tree.push(index); |
} |
size = parseInt($(this).attr("Size"), 10); |
if (!isNaN(size)) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(6, "StableBit") + "</div></span></td><td>" + formatBytes(size, xml) +"</td></tr>\n"; |
tree.push(index); |
} |
powerstate = $(this).attr("PowerState"); |
if (powerstate !== undefined) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(7, "StableBit") + "</div></span></td><td>" + powerstate +"</td></tr>\n"; |
tree.push(index); |
} |
temperaturec = $(this).attr("TemperatureC"); |
if (temperaturec !== undefined) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(8, "StableBit") + "</div></span></td><td>" + formatTemp(temperaturec, xml) +"</td></tr>\n"; |
tree.push(index); |
} |
if ($(this).attr("IsHot") !== undefined) { |
ishot = parseInt($(this).attr("IsHot"), 10); |
if (!isNaN(ishot) && (ishot === 1)) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(9, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
else { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(9, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
tree.push(index); |
} |
if ($(this).attr("IsSmartWarning") !== undefined) { |
issmartwarning = parseInt($(this).attr("IsSmartWarning"), 10); |
if (!isNaN(issmartwarning) && (issmartwarning === 1)) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(10, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
else { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(10, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
tree.push(index); |
} |
if ($(this).attr("IsSmartPastThresholds") !== undefined) { |
issmartpastthresholds = parseInt($(this).attr("IsSmartPastThresholds"), 10); |
if (!isNaN(issmartpastthresholds) && (issmartpastthresholds === 1)) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(11, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
else { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(11, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
tree.push(index); |
} |
if ($(this).attr("IsSmartPastAdvisoryThresholds") !== undefined) { |
issmartpastadvisorythresholds = parseInt($(this).attr("IsSmartPastAdvisoryThresholds"), 10); |
if (!isNaN(issmartpastadvisorythresholds) && (issmartpastadvisorythresholds === 1)) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(12, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
else { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(12, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
tree.push(index); |
} |
if ($(this).attr("IsSmartFailurePredicted") !== undefined) { |
issmartfailurepredicted = parseInt($(this).attr("IsSmartFailurePredicted"), 10); |
if (!isNaN(issmartfailurepredicted) && (issmartfailurepredicted === 1)) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(13, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
else { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(13, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
tree.push(index); |
} |
if ($(this).attr("IsDamaged") !== undefined) { |
isdamaged = parseInt($(this).attr("IsDamaged"), 10); |
if (!isNaN(isdamaged) && (isdamaged === 1)) { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(14, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/on.gif\" alt=\"on\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
else { |
html += " <tr><td><div class=\"treediv\"><span class=\"treespan\">" + genlang(14, "StableBit") + "</div></span></td><td><img src=\"./plugins/stablebit/gfx/off.gif\" alt=\"off\" title=\"\" style=\"width:18px;\" /></td></tr>\n"; |
} |
tree.push(index); |
} |
stablebit_show = true; |
} |
}); |
html += " </tbody>\n"; |
html += " </table>\n"; |
html += " </div>\n"; |
$("#Plugin_StableBit").append(html); |
$("#Plugin_StableBitTable").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 stablebit_request() { |
$("#Reload_StableBitTable").attr("title", "reload"); |
$.ajax({ |
url: "xml.php?plugin=StableBit", |
dataType: "xml", |
error: function stablebit_error() { |
$.jGrowl("Error loading XML document for Plugin StableBit!"); |
}, |
success: function stablebit_buildblock(xml) { |
populateErrors(xml); |
stablebit_buildTable(xml); |
if (stablebit_show) { |
plugin_translate("StableBit"); |
$("#Plugin_StableBit").show(); |
} |
} |
}); |
} |
$(document).ready(function stablebit_buildpage() { |
$("#footer").before(buildBlock("StableBit", 1, true)); |
$("#Plugin_StableBit").css("width", "451px"); |
stablebit_request(); |
$("#Reload_StableBitTable").click(function stablebit_reload(id) { |
stablebit_request(); |
$(this).attr("title", datetime()); |
}); |
}); |
/web/acc/phpsysinfo/plugins/stablebit/js/stablebit_bootstrap.js |
---|
0,0 → 1,102 |
function renderPlugin_stablebit(data) { |
var directives = { |
IsHot: { |
html: function () { |
return (this.IsHot === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>"; |
} |
}, |
IsSmartWarning: { |
html: function () { |
return (this.IsSmartWarning === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>"; |
} |
}, |
IsSmartPastThresholds: { |
html: function () { |
return (this.IsSmartPastThresholds === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>"; |
} |
}, |
IsSmartPastAdvisoryThresholds: { |
html: function () { |
return (this.IsSmartPastAdvisoryThresholds === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>"; |
} |
}, |
IsSmartFailurePredicted: { |
html: function () { |
return (this.IsSmartFailurePredicted === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>"; |
} |
}, |
IsDamaged: { |
html: function () { |
return (this.IsDamaged === "1") ? "<span class=\"badge badge-danger\">YES</span>" : "<span class=\"badge badge-success\">NO</span>"; |
} |
}, |
TemperatureC: { |
html: function () { |
return formatTemp(this.TemperatureC, data.Options["@attributes"].tempFormat); |
} |
}, |
Size: { |
html: function () { |
return formatBytes(this.Size, data.Options["@attributes"].byteFormat); |
} |
} |
}; |
if (data.Plugins.Plugin_StableBit !== undefined) { |
var disks = items(data.Plugins.Plugin_StableBit.Disk); |
if (disks.length > 0) { |
var i, proc_param; |
var html = ""; |
var paramlist = {SerialNumber:4, Firmware:5, Size:6, PowerState:7, TemperatureC:8, IsHot:9, IsSmartWarning:10, IsSmartPastThresholds:11, IsSmartPastAdvisoryThresholds:12, IsSmartFailurePredicted:13, IsDamaged:14}; |
for (i = 0; i < disks.length; i++) { |
try { |
html+="<tr id=\"stablebit-" + i + "\" class=\"treegrid-stablebit-" + i + "\" style=\"display:none;\" >"; |
html+="<td><span class=\"treegrid-spanbold\" data-bind=\"Name\"></span></td>"; |
html+="<td></td>"; |
html+="</tr>"; |
for (proc_param in paramlist) { |
if (disks[i]["@attributes"][proc_param] !== undefined) { |
html+="<tr id=\"stablebit-" + i + "-" + proc_param + "\" class=\"treegrid-parent-stablebit-" + i + "\">"; |
html+="<td><span class=\"treegrid-spanbold\">" + genlang(paramlist[proc_param], 'stablebit') + "</span></td>"; |
html+="<td class=\"rightCell\"><span data-bind=\"" + proc_param + "\"></span></td>"; |
html+="</tr>"; |
} |
} |
} |
catch (err) { |
$("#stablebit-" + i).hide(); |
} |
} |
$("#stablebit-data").empty().append(html); |
for (i = 0; i < disks.length; i++) { |
try { |
$('#stablebit-'+ i).render(disks[i]["@attributes"]); |
$("#stablebit-" + i).show(); |
for (proc_param in paramlist) { |
if (disks[i]["@attributes"][proc_param] !== undefined) { |
$('#stablebit-'+ i+ "-" + proc_param).render(disks[i]["@attributes"], directives); |
} |
} |
} |
catch (err) { |
$("#stablebit-" + i).hide(); |
} |
} |
$('#stablebit').treegrid({ |
initialState: 'expanded', |
expanderExpandedClass: 'normalicon normalicon-down', |
expanderCollapsedClass: 'normalicon normalicon-right' |
}); |
$('#block_stablebit').show(); |
} else { |
$('#block_stablebit').hide(); |
} |
} else { |
$('#block_stablebit').hide(); |
} |
} |
/web/acc/phpsysinfo/plugins/stablebit/lang/en.xml |
---|
0,0 → 1,51 |
<?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: Mieczyslaw Nalewaj |
--> |
<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_stablebit_001" name="stablebit_title"> |
<exp>StableBit Scanner Information</exp> |
</expression> |
<expression id="plugin_stablebit_002" name="stablebit_disk"> |
<exp>Disk</exp> |
</expression> |
<expression id="plugin_stablebit_003" name="stablebit_value"> |
<exp>Value</exp> |
</expression> |
<expression id="plugin_stablebit_004" name="stablebit_serialnumber"> |
<exp>Serial Number</exp> |
</expression> |
<expression id="plugin_stablebit_005" name="stablebit_firmware"> |
<exp>Firmware</exp> |
</expression> |
<expression id="plugin_stablebit_006" name="stablebit_size"> |
<exp>Size</exp> |
</expression> |
<expression id="plugin_stablebit_007" name="stablebit_powerstate"> |
<exp>Power state</exp> |
</expression> |
<expression id="plugin_stablebit_008" name="stablebit_temperaturec"> |
<exp>Temperature</exp> |
</expression> |
<expression id="plugin_stablebit_009" name="stablebit_ishot"> |
<exp>Is Hot</exp> |
</expression> |
<expression id="plugin_stablebit_010" name="stablebit_issmartwarning"> |
<exp>Is SMART Warning</exp> |
</expression> |
<expression id="plugin_stablebit_011" name="stablebit_issmartpastthresholds"> |
<exp>Is SMART Past Thresholds</exp> |
</expression> |
<expression id="plugin_stablebit_012" name="stablebit_issmartpastadvisorythresholds"> |
<exp>Is SMART Past Advisory Thresholds</exp> |
</expression> |
<expression id="plugin_stablebit_013" name="stablebit_issmartfailurepredicted"> |
<exp>Is SMART Failure Predicted</exp> |
</expression> |
<expression id="plugin_stablebit_014" name="stablebit_isdamaged"> |
<exp>Is Damaged</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/stablebit/lang/gr.xml |
---|
0,0 → 1,51 |
<?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_stablebit_001" name="stablebit_title"> |
<exp>Πληροφορίες Ανιχνευτή StableBit</exp> |
</expression> |
<expression id="plugin_stablebit_002" name="stablebit_disk"> |
<exp>Δίσκος</exp> |
</expression> |
<expression id="plugin_stablebit_003" name="stablebit_value"> |
<exp>Τιμή</exp> |
</expression> |
<expression id="plugin_stablebit_004" name="stablebit_serialnumber"> |
<exp>Σειριακός Αριθμός</exp> |
</expression> |
<expression id="plugin_stablebit_005" name="stablebit_firmware"> |
<exp>Yλικολογισμικό</exp> |
</expression> |
<expression id="plugin_stablebit_006" name="stablebit_size"> |
<exp>Μέγεθος</exp> |
</expression> |
<expression id="plugin_stablebit_007" name="stablebit_powerstate"> |
<exp>Κατάσταση ενέργειας</exp> |
</expression> |
<expression id="plugin_stablebit_008" name="stablebit_temperaturec"> |
<exp>Θερμοκρασία</exp> |
</expression> |
<expression id="plugin_stablebit_009" name="stablebit_ishot"> |
<exp>Είναι πολύ ζεστός</exp> |
</expression> |
<expression id="plugin_stablebit_010" name="stablebit_issmartwarning"> |
<exp>Έχει Προειδοποίηση SMART</exp> |
</expression> |
<expression id="plugin_stablebit_011" name="stablebit_issmartpastthresholds"> |
<exp>Έχει Προηγούμενα Όρια SMART</exp> |
</expression> |
<expression id="plugin_stablebit_012" name="stablebit_issmartpastadvisorythresholds"> |
<exp>Έχει Προηγούμενα Ενδεικνυόμενα Κατώτατα Όρια SMART</exp> |
</expression> |
<expression id="plugin_stablebit_013" name="stablebit_issmartfailurepredicted"> |
<exp>Έχει προβλεπόμενη αποτυχία SMART</exp> |
</expression> |
<expression id="plugin_stablebit_014" name="stablebit_isdamaged"> |
<exp>Έχει Βλάβη</exp> |
</expression> |
</tns:translationPlugin> |
/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> |
/web/acc/phpsysinfo/plugins/uprecords/js/uprecords.js |
---|
0,0 → 1,126 |
/*************************************************************************** |
* 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: uprecords.js 661 2014-01-08 11:26:39 aolah76 $ |
/*global $, jQuery, buildBlock, datetime, plugin_translate, genlang, createBar */ |
"use strict"; |
var uprecords_show = false; |
/** |
* insert content into table |
* @param {jQuery} xml plugin-XML |
*/ |
function uprecords_populate(xml) { |
var html = "", datetimeFormat = ""; |
$("Options", xml).each(function getByteFormat(id) { |
datetimeFormat = $(this).attr("datetimeFormat"); |
}); |
$("Plugins Plugin_uprecords uprecords Item", xml).each(function uprecords_getitem(idp) { |
html += " <tr>\n"; |
html += " <td style=\"font-weight:normal\">" + $(this).attr("hash") + "</td>\n"; |
html += " <td style=\"font-weight:normal\">" + $(this).attr("Uptime") + "</td>\n"; |
html += " <td style=\"font-weight:normal\">" + $(this).attr("System") + "</td>\n"; |
/* |
var lastboot = new Date($(this).attr("Bootup")); |
if (typeof(lastboot.toUTCString)==="function") { |
html += " <td style=\"font-weight:normal\">" + lastboot.toUTCString() + "</td>\n"; |
} else { //deprecated |
html += " <td style=\"font-weight:normal\">" + lastboot.toGMTString() + "</td>\n"; |
} |
*/ |
if ((datetimeFormat !== undefined) && (datetimeFormat.toLowerCase() === "locale")) { |
var lastboot = new Date($(this).attr("Bootup")); |
html += " <td style=\"font-weight:normal\">" + lastboot.toLocaleString() + "</td>\n"; |
} else { |
html += " <td style=\"font-weight:normal\">" + $(this).attr("Bootup") + "</td>\n"; |
} |
html += " </tr>\n"; |
uprecords_show = true; |
}); |
$("#Plugin_uprecordsTable-tbody").empty().append(html); |
$('#Plugin_uprecordsTable tr:nth-child(even)').addClass('even'); |
} |
function uprecords_buildTable() { |
var html = ""; |
html += "<div style=\"overflow-x:auto;\">\n"; |
html += " <table id=\"Plugin_uprecordsTable\" class=\"stripeMe\" style=\"border-collapse:collapse;\">\n"; |
html += " <thead>\n"; |
html += " <tr>\n"; |
html += " <th>" + genlang(101, "uprecords") + "</th>\n"; |
html += " <th>" + genlang(102, "uprecords") + "</th>\n"; |
html += " <th>" + genlang(103, "uprecords") + "</th>\n"; |
html += " <th>" + genlang(104, "uprecords") + "</th>\n"; |
html += " </tr>\n"; |
html += " </thead>\n"; |
html += " <tbody id=\"Plugin_uprecordsTable-tbody\">\n"; |
html += " </tbody>\n"; |
html += " </table>\n"; |
html += "</div>\n"; |
$("#Plugin_uprecords").append(html); |
} |
/** |
* load the xml via ajax |
*/ |
function uprecords_request() { |
$("#Reload_uprecordsTable").attr("title", "reload"); |
$.ajax({ |
url: "xml.php?plugin=uprecords", |
dataType: "xml", |
error: function uprecords_error() { |
$.jGrowl("Error loading XML document for Plugin uprecords!"); |
}, |
success: function uprecords_buildblock(xml) { |
populateErrors(xml); |
uprecords_populate(xml); |
if (uprecords_show) { |
plugin_translate("uprecords"); |
$("#Plugin_uprecords").show(); |
} |
} |
}); |
} |
$(document).ready(function uprecords_buildpage() { |
$("#footer").before(buildBlock("uprecords", 1, true)); |
$("#Plugin_uprecords").css("width", "915px"); |
uprecords_buildTable(); |
uprecords_request(); |
$("#Reload_uprecordsTable").click(function uprecords_reload(id) { |
uprecords_request(); |
$(this).attr("title", datetime()); |
}); |
}); |
/web/acc/phpsysinfo/plugins/uprecords/js/uprecords_bootstrap.js |
---|
0,0 → 1,35 |
function renderPlugin_uprecords(data) { |
var directives = { |
hash: { |
html: function () { |
return this.hash; |
} |
}, |
Bootup: { |
html: function () { |
if (((datetimeFormat = data.Options["@attributes"].datetimeFormat) !== undefined) && (datetimeFormat.toLowerCase() === "locale")) { |
var bootup = new Date(this.Bootup); |
return bootup.toLocaleString(); |
} else { |
return this.Bootup; |
} |
} |
} |
}; |
if ((data.Plugins.Plugin_uprecords !== undefined) && (data.Plugins.Plugin_uprecords.Uprecords !== undefined)) { |
var upitems = items(data.Plugins.Plugin_uprecords.Uprecords.Item); |
if (upitems.length > 0) { |
var up_memory = []; |
up_memory.push_attrs(upitems); |
$('#uprecords-data').render(up_memory, directives); |
$('#block_uprecords').show(); |
} else { |
$('#block_uprecords').hide(); |
} |
} else { |
$('#block_uprecords').hide(); |
} |
} |
/web/acc/phpsysinfo/plugins/uprecords/lang/en.xml |
---|
0,0 → 1,24 |
<?xml version="1.0" encoding="utf-8"?> |
<!-- $Id: en.xml 661 2014-01-08 11:26:39Z aolah76 $ --> |
<!-- |
phpSysInfo language file Language: English Created by: Ambrus Sandor Olah |
--> |
<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_uprecords_001" name="uprecords_title"> |
<exp>Uprecords</exp> |
</expression> |
<expression id="plugin_uprecords_101" name="uprecords_hash"> |
<exp>#</exp> |
</expression> |
<expression id="plugin_uprecords_102" name="uprecords_uptime"> |
<exp>Uptime</exp> |
</expression> |
<expression id="plugin_uprecords_103" name="uprecords_system"> |
<exp>System</exp> |
</expression> |
<expression id="plugin_uprecords_104" name="uprecords_bootup"> |
<exp>Boot up</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/uprecords/lang/fr.xml |
---|
0,0 → 1,23 |
<?xml version="1.0" encoding="utf-8"?> |
<!-- |
phpSysInfo language file Language: French Created by: phpsysinfo |
--> |
<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_uprecords_001" name="uprecords_title"> |
<exp>Uprecords</exp> |
</expression> |
<expression id="plugin_uprecords_101" name="uprecords_hash"> |
<exp>#</exp> |
</expression> |
<expression id="plugin_uprecords_102" name="uprecords_uptime"> |
<exp>Uptime</exp> |
</expression> |
<expression id="plugin_uprecords_103" name="uprecords_system"> |
<exp>Système</exp> |
</expression> |
<expression id="plugin_uprecords_104" name="uprecords_bootup"> |
<exp>Démarrage</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/uprecords/lang/gr.xml |
---|
0,0 → 1,24 |
<?xml version="1.0" encoding="utf-8"?> |
<!-- $Id: gr.xml 661 2014-01-08 11:26:39Z aolah76 $ --> |
<!-- |
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_uprecords_001" name="uprecords_title"> |
<exp>Uprecords</exp> |
</expression> |
<expression id="plugin_uprecords_101" name="uprecords_hash"> |
<exp>#</exp> |
</expression> |
<expression id="plugin_uprecords_102" name="uprecords_uptime"> |
<exp>Ώρες Λειτουργίας</exp> |
</expression> |
<expression id="plugin_uprecords_103" name="uprecords_system"> |
<exp>Σύστημα</exp> |
</expression> |
<expression id="plugin_uprecords_104" name="uprecords_bootup"> |
<exp>Εκκίνηση</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/uprecords/lang/hu.xml |
---|
0,0 → 1,24 |
<?xml version="1.0" encoding="utf-8"?> |
<!-- $Id: hu.xml 661 2014-01-08 11:26:39Z aolah76 $ --> |
<!-- |
phpSysInfo language file Language: Hungarian Created by: Ambrus Sandor Olah |
--> |
<tns:translationPlugin language="hungarian" 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_uprecords_001" name="uprecords_title"> |
<exp>Uprecords</exp> |
</expression> |
<expression id="plugin_uprecords_101" name="uprecords_hash"> |
<exp>#</exp> |
</expression> |
<expression id="plugin_uprecords_102" name="uprecords_uptime"> |
<exp>Uptime</exp> |
</expression> |
<expression id="plugin_uprecords_103" name="uprecords_system"> |
<exp>Rendszer</exp> |
</expression> |
<expression id="plugin_uprecords_104" name="uprecords_bootup"> |
<exp>Rendszerindítás időpontja</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/uprecords/lang/pl.xml |
---|
0,0 → 1,24 |
<?xml version="1.0" encoding="utf-8"?> |
<!-- $Id: pl.xml 661 2014-01-08 11:26:39Z aolah76 $ --> |
<!-- |
phpSysInfo language file Language: Polish Created by: 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_uprecords_001" name="uprecords_title"> |
<exp>Uprecords</exp> |
</expression> |
<expression id="plugin_uprecords_101" name="uprecords_hash"> |
<exp>#</exp> |
</expression> |
<expression id="plugin_uprecords_102" name="uprecords_uptime"> |
<exp>Czas pracy</exp> |
</expression> |
<expression id="plugin_uprecords_103" name="uprecords_system"> |
<exp>System</exp> |
</expression> |
<expression id="plugin_uprecords_104" name="uprecords_bootup"> |
<exp>Wystartował</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/uprecords/lang/ro.xml |
---|
0,0 → 1,24 |
<?xml version="1.0" encoding="utf-8"?> |
<!-- $Id: ro.xml 661 2014-01-08 11:26:39Z aolah76 $ --> |
<!-- |
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_uprecords_001" name="uprecords_title"> |
<exp>Uprecords</exp> |
</expression> |
<expression id="plugin_uprecords_101" name="uprecords_hash"> |
<exp>#</exp> |
</expression> |
<expression id="plugin_uprecords_102" name="uprecords_uptime"> |
<exp>Uptime</exp> |
</expression> |
<expression id="plugin_uprecords_103" name="uprecords_system"> |
<exp>System</exp> |
</expression> |
<expression id="plugin_uprecords_104" name="uprecords_bootup"> |
<exp>Boot up</exp> |
</expression> |
</tns:translationPlugin> |
/web/acc/phpsysinfo/plugins/uprecords/lang/ru.xml |
---|
0,0 → 1,24 |
<?xml version="1.0" encoding="utf-8"?> |
<!-- $Id: ru.xml 661 2015-01-05 11:26:39Z $ --> |
<!-- |
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_uprecords_001" name="uprecords_title"> |
<exp>Состояное системы</exp> |
</expression> |
<expression id="plugin_uprecords_101" name="uprecords_hash"> |
<exp>#</exp> |
</expression> |
<expression id="plugin_uprecords_102" name="uprecords_uptime"> |
<exp>Аптайм</exp> |
</expression> |
<expression id="plugin_uprecords_103" name="uprecords_system"> |
<exp>Система</exp> |
</expression> |
<expression id="plugin_uprecords_104" name="uprecords_bootup"> |
<exp>Загружено</exp> |
</expression> |
</tns:translationPlugin> |