* Mon May 12 2025 Brian Read <brianr@koozali.org> 11.0.0-1.sme
- Adding SM2 panel [SME: 13004] - Upgrade to phpsysinfo 3.4.4 - Add code to delete inline styles and add css to make it look better. - version saved / built uses the static version, which means no drops downs and choices.
This commit is contained in:
@@ -1,25 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* SNMPPInfo Plugin
|
||||
*
|
||||
* PHP version 5
|
||||
* SNMPPInfo Plugin, which displays printers info via SNMP
|
||||
*
|
||||
* @category PHP
|
||||
* @package PSI_Plugin_SNMPPInfo
|
||||
* @author Mieczyslaw Nalewaj <namiltd@users.sourceforge.net>
|
||||
* @copyright 2011 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @version SVN: $Id: class.snmppinfo.inc.php 661 2012-08-27 11:26:39Z namiltd $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
/**
|
||||
* SNMPPInfo Plugin, which displays battery state
|
||||
*
|
||||
* @category PHP
|
||||
* @package PSI_Plugin_SNMPPInfo
|
||||
* @author Mieczyslaw Nalewaj <namiltd@users.sourceforge.net>
|
||||
* @copyright 2011 phpSysInfo
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License version 2, or (at your option) any later version
|
||||
* @version $Id: class.snmppinfo.inc.php 661 2012-08-27 11:26:39Z namiltd $
|
||||
* @link http://phpsysinfo.sourceforge.net
|
||||
*/
|
||||
@@ -54,23 +41,32 @@ class SNMPPInfo extends PSI_Plugin
|
||||
$printers = array(PSI_PLUGIN_SNMPPINFO_DEVICES);
|
||||
}
|
||||
foreach ($printers as $printer) {
|
||||
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 ".$printer." .1.3.6.1.2.1.1.5", $buffer, PSI_DEBUG);
|
||||
if (strlen(trim($buffer)) > 0) {
|
||||
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 -t ".PSI_SNMP_TIMEOUT_INT." -r ".PSI_SNMP_RETRY_INT." ".$printer." .1.3.6.1.2.1.1.5", $buffer, PSI_DEBUG);
|
||||
if (strlen($buffer) > 0) {
|
||||
$this->_filecontent[$printer] = $buffer;
|
||||
|
||||
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 ".$printer." .1.3.6.1.2.1.43.11.1.1", $buffer2, PSI_DEBUG);
|
||||
if (strlen(trim($buffer2)) > 0) {
|
||||
$this->_filecontent[$printer] = $this->_filecontent[$printer]."\n".$buffer2;
|
||||
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 -t ".PSI_SNMP_TIMEOUT_INT." -r ".PSI_SNMP_RETRY_INT." ".$printer." .1.3.6.1.4.1.367.3.2.1.2.24.1.1", $buffer1, false);
|
||||
if (strlen($buffer1) > 0) {
|
||||
$this->_filecontent[$printer] .= "\n".$buffer1;
|
||||
}
|
||||
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 ".$printer." .1.3.6.1.2.1.43.18.1.1", $buffer3, PSI_DEBUG);
|
||||
if (strlen(trim($buffer3)) > 0) {
|
||||
$this->_filecontent[$printer] = $this->_filecontent[$printer]."\n".$buffer3;
|
||||
|
||||
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 -t ".PSI_SNMP_TIMEOUT_INT." -r ".PSI_SNMP_RETRY_INT." ".$printer." .1.3.6.1.2.1.43.11.1.1", $buffer2, PSI_DEBUG);
|
||||
if (strlen($buffer2) > 0) {
|
||||
$this->_filecontent[$printer] .= "\n".$buffer2;
|
||||
}
|
||||
CommonFunctions::executeProgram("snmpwalk", "-Ona -c public -v 1 -t ".PSI_SNMP_TIMEOUT_INT." -r ".PSI_SNMP_RETRY_INT." ".$printer." .1.3.6.1.2.1.43.18.1.1", $buffer3, PSI_DEBUG);
|
||||
if (strlen($buffer3) > 0) {
|
||||
$this->_filecontent[$printer] .= "\n".$buffer3;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case 'php-snmp':
|
||||
if (!extension_loaded("snmp")) {
|
||||
$this->global_error->addError("Requirements error", "SNMPPInfo plugin requires the snmp extension to php in order to work properly");
|
||||
break;
|
||||
}
|
||||
snmp_set_valueretrieval(SNMP_VALUE_LIBRARY);
|
||||
snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC);
|
||||
if (defined('PSI_PLUGIN_SNMPPINFO_DEVICES') && is_string(PSI_PLUGIN_SNMPPINFO_DEVICES)) {
|
||||
@@ -85,7 +81,7 @@ class SNMPPInfo extends PSI_Plugin
|
||||
$old_err_rep = error_reporting();
|
||||
error_reporting(E_ERROR); /* fatal errors only */
|
||||
}
|
||||
$bufferarr=snmprealwalk($printer, "public", ".1.3.6.1.2.1.1.5", 1000000, 1);
|
||||
$bufferarr=snmprealwalk($printer, "public", ".1.3.6.1.2.1.1.5", 1000000 * PSI_SNMP_TIMEOUT_INT, PSI_SNMP_RETRY_INT);
|
||||
if (! PSI_DEBUG) {
|
||||
error_reporting($old_err_rep); /* restore error level */
|
||||
set_error_handler('errorHandlerPsi'); /* restore error handler */
|
||||
@@ -93,22 +89,20 @@ class SNMPPInfo extends PSI_Plugin
|
||||
if (! empty($bufferarr)) {
|
||||
$buffer="";
|
||||
foreach ($bufferarr as $id=>$string) {
|
||||
$buffer=$buffer.$id." = ".$string."\n";
|
||||
$buffer .= $id." = ".$string."\n";
|
||||
}
|
||||
|
||||
if (! PSI_DEBUG) {
|
||||
restore_error_handler(); /* default error handler */
|
||||
$old_err_rep = error_reporting();
|
||||
error_reporting(E_ERROR); /* fatal errors only */
|
||||
}
|
||||
$bufferarr2=snmprealwalk($printer, "public", ".1.3.6.1.2.1.43.11.1.1", 1000000, 1);
|
||||
if (! PSI_DEBUG) {
|
||||
error_reporting($old_err_rep); /* restore error level */
|
||||
set_error_handler('errorHandlerPsi'); /* restore error handler */
|
||||
}
|
||||
if (! empty($bufferarr2)) {
|
||||
foreach ($bufferarr2 as $id=>$string) {
|
||||
$buffer=$buffer.$id." = ".$string."\n";
|
||||
restore_error_handler(); /* default error handler */
|
||||
$old_err_rep = error_reporting();
|
||||
error_reporting(E_ERROR); /* fatal errors only */
|
||||
|
||||
$bufferarr1=snmprealwalk($printer, "public", ".1.3.6.1.4.1.367.3.2.1.2.24.1.1", 1000000 * PSI_SNMP_TIMEOUT_INT, PSI_SNMP_RETRY_INT);
|
||||
|
||||
error_reporting($old_err_rep); /* restore error level */
|
||||
set_error_handler('errorHandlerPsi'); /* restore error handler */
|
||||
if (! empty($bufferarr1)) {
|
||||
foreach ($bufferarr1 as $id=>$string) {
|
||||
$buffer .= $id." = ".$string."\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,14 +111,30 @@ class SNMPPInfo extends PSI_Plugin
|
||||
$old_err_rep = error_reporting();
|
||||
error_reporting(E_ERROR); /* fatal errors only */
|
||||
}
|
||||
$bufferarr3=snmprealwalk($printer, "public", ".1.3.6.1.2.1.43.18.1.1", 1000000, 1);
|
||||
$bufferarr2=snmprealwalk($printer, "public", ".1.3.6.1.2.1.43.11.1.1", 1000000 * PSI_SNMP_TIMEOUT_INT, PSI_SNMP_RETRY_INT);
|
||||
if (! PSI_DEBUG) {
|
||||
error_reporting($old_err_rep); /* restore error level */
|
||||
set_error_handler('errorHandlerPsi'); /* restore error handler */
|
||||
}
|
||||
if (! empty($bufferarr2)) {
|
||||
foreach ($bufferarr2 as $id=>$string) {
|
||||
$buffer .= $id." = ".$string."\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (! PSI_DEBUG) {
|
||||
restore_error_handler(); /* default error handler */
|
||||
$old_err_rep = error_reporting();
|
||||
error_reporting(E_ERROR); /* fatal errors only */
|
||||
}
|
||||
$bufferarr3=snmprealwalk($printer, "public", ".1.3.6.1.2.1.43.18.1.1", 1000000 * PSI_SNMP_TIMEOUT_INT, PSI_SNMP_RETRY_INT);
|
||||
if (! PSI_DEBUG) {
|
||||
error_reporting($old_err_rep); /* restore error level */
|
||||
set_error_handler('errorHandlerPsi'); /* restore error handler */
|
||||
}
|
||||
if (! empty($bufferarr3)) {
|
||||
foreach ($bufferarr3 as $id=>$string) {
|
||||
$buffer=$buffer.$id." = ".$string."\n";
|
||||
$buffer .= $id." = ".$string."\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +144,7 @@ class SNMPPInfo extends PSI_Plugin
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case 'data':
|
||||
if (defined('PSI_PLUGIN_SNMPPINFO_DEVICES') && is_string(PSI_PLUGIN_SNMPPINFO_DEVICES)) {
|
||||
if (preg_match(ARRAY_EXP, PSI_PLUGIN_SNMPPINFO_DEVICES)) {
|
||||
@@ -145,7 +155,7 @@ class SNMPPInfo extends PSI_Plugin
|
||||
$pn=0;
|
||||
foreach ($printers as $printer) {
|
||||
$buffer="";
|
||||
if (CommonFunctions::rfts(APP_ROOT."/data/snmppinfo{$pn}.txt", $buffer) && !empty($buffer)) {
|
||||
if (CommonFunctions::rftsdata("snmppinfo{$pn}.tmp", $buffer) && !empty($buffer)) {
|
||||
$this->_filecontent[$printer] = $buffer;
|
||||
}
|
||||
$pn++;
|
||||
@@ -153,8 +163,7 @@ class SNMPPInfo extends PSI_Plugin
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$this->global_error->addError("switch(PSI_PLUGIN_SNMPPINFO_ACCESS)", "Bad SNMPPInfo configuration in phpsysinfo.ini");
|
||||
break;
|
||||
$this->global_error->addConfigError("__construct()", "[snmppinfo] ACCESS");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,28 +179,44 @@ class SNMPPInfo extends PSI_Plugin
|
||||
return;
|
||||
}
|
||||
foreach ($this->_filecontent as $printer=>$result) {
|
||||
$result = preg_replace('/End of MIB\r?\n/', '', $result);
|
||||
$result = preg_replace('/\s\r?\n([^\.])/', ' $1', $result);
|
||||
$lines = preg_split('/\r?\n/', $result);
|
||||
foreach ($lines as $line) {
|
||||
if (preg_match('/^(.+) = Hex-STRING:\s(.+)/', $line, $linetmp)) {
|
||||
$hexchars = explode(" ", trim($linetmp[2]));
|
||||
$newstring = "";
|
||||
foreach ($hexchars as $hexchar) {
|
||||
$hexint = hexdec($hexchar);
|
||||
if (($hexint<32) || ($hexint>126)) {
|
||||
$newstring .= ".";
|
||||
} else {
|
||||
$newstring .= chr($hexint);
|
||||
}
|
||||
}
|
||||
if ($newstring!=="") {
|
||||
$line = $linetmp[1]." = STRING: ".$newstring;
|
||||
}
|
||||
}
|
||||
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.6\.1\.(.*) = STRING:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][$data[1]]['prtMarkerSuppliesDescription']=trim($data[2], "\"");
|
||||
}
|
||||
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.7\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
} elseif (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.7\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][$data[1]]['prtMarkerSuppliesSupplyUnit']=$data[2];
|
||||
}
|
||||
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.8\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
} elseif (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.8\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][$data[1]]['prtMarkerSuppliesMaxCapacity']=$data[2];
|
||||
}
|
||||
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.9\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
} elseif (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.11\.1\.1\.9\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][$data[1]]['prtMarkerSuppliesLevel']=$data[2];
|
||||
}
|
||||
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.1\.5\.0 = STRING:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][0]['prtMarkerSuppliesDescription']=trim($data[1], "\"");;
|
||||
}
|
||||
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.18\.1\.1\.8\.1\.(.*) = STRING:\s(.*)/', $line, $data)) {
|
||||
} elseif (preg_match('/^\.1\.3\.6\.1\.2\.1\.1\.5\.0 = STRING:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][0]['prtMarkerSuppliesDescription']=trim($data[1], "\"");
|
||||
} elseif (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.18\.1\.1\.8\.1\.(.*) = STRING:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][99][$data[1]]["message"]=trim($data[2], "\"");
|
||||
}
|
||||
if (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.18\.1\.1\.2\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
} elseif (preg_match('/^\.1\.3\.6\.1\.2\.1\.43\.18\.1\.1\.2\.1\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][99][$data[1]]["severity"]=$data[2];
|
||||
|
||||
} elseif (preg_match('/^\.1\.3\.6\.1\.4\.1\.367\.3\.2\.1\.2\.24\.1\.1\.2\.(.*) = STRING:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][$data[1]]['prtMarkerSuppliesDescriptionRicoh']=trim($data[2], "\"");
|
||||
} elseif (preg_match('/^\.1\.3\.6\.1\.4\.1\.367\.3\.2\.1\.2\.24\.1\.1\.5\.(.*) = INTEGER:\s(.*)/', $line, $data)) {
|
||||
$this->_result[$printer][$data[1]]['prtMarkerSuppliesLevelRicoh']=$data[2];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -207,8 +232,15 @@ class SNMPPInfo extends PSI_Plugin
|
||||
foreach ($this->_result as $printer=>$markersupplies_item) {
|
||||
$xmlsnmppinfo_printer = $this->xml->addChild("Printer");
|
||||
$xmlsnmppinfo_printer->addAttribute("Device", $printer);
|
||||
foreach ($markersupplies_item as $marker=>$snmppinfo_item) {
|
||||
if (isset($markersupplies_item[1]) &&
|
||||
isset($markersupplies_item[1]['prtMarkerSuppliesDescriptionRicoh']) &&
|
||||
isset($markersupplies_item[1]['prtMarkerSuppliesLevelRicoh'])) {
|
||||
$ricoh = true;
|
||||
} else {
|
||||
$ricoh = false;
|
||||
}
|
||||
|
||||
foreach ($markersupplies_item as $marker=>$snmppinfo_item) {
|
||||
if ($marker==0) {
|
||||
$xmlsnmppinfo_printer->addAttribute("Name", $snmppinfo_item['prtMarkerSuppliesDescription']);
|
||||
} elseif ($marker==99) {
|
||||
@@ -220,16 +252,23 @@ class SNMPPInfo extends PSI_Plugin
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$xmlsnmppinfo = $xmlsnmppinfo_printer->addChild("MarkerSupplies");
|
||||
if ($ricoh) {
|
||||
if (isset($snmppinfo_item['prtMarkerSuppliesDescriptionRicoh'])) {
|
||||
$xmlsnmppinfo = $xmlsnmppinfo_printer->addChild("MarkerSupplies");
|
||||
|
||||
if (isset($snmppinfo_item['prtMarkerSuppliesDescription']))
|
||||
$xmlsnmppinfo->addAttribute("Description", $snmppinfo_item['prtMarkerSuppliesDescription']);
|
||||
else
|
||||
$xmlsnmppinfo->addAttribute("Description", ""); /* empty on some devices */
|
||||
$xmlsnmppinfo->addAttribute("Description", $snmppinfo_item['prtMarkerSuppliesDescriptionRicoh']);
|
||||
$xmlsnmppinfo->addAttribute("SupplyUnit", "19");
|
||||
$xmlsnmppinfo->addAttribute("MaxCapacity", "100");
|
||||
$xmlsnmppinfo->addAttribute("Level", isset($snmppinfo_item['prtMarkerSuppliesLevelRicoh']) ? $snmppinfo_item['prtMarkerSuppliesLevelRicoh'] : "");
|
||||
}
|
||||
} else {
|
||||
$xmlsnmppinfo = $xmlsnmppinfo_printer->addChild("MarkerSupplies");
|
||||
|
||||
$xmlsnmppinfo->addAttribute("SupplyUnit", $snmppinfo_item['prtMarkerSuppliesSupplyUnit']);
|
||||
$xmlsnmppinfo->addAttribute("MaxCapacity", $snmppinfo_item['prtMarkerSuppliesMaxCapacity']);
|
||||
$xmlsnmppinfo->addAttribute("Level", $snmppinfo_item['prtMarkerSuppliesLevel']);
|
||||
$xmlsnmppinfo->addAttribute("Description", isset($snmppinfo_item['prtMarkerSuppliesDescription']) ? $snmppinfo_item['prtMarkerSuppliesDescription'] : "");
|
||||
$xmlsnmppinfo->addAttribute("SupplyUnit", isset($snmppinfo_item['prtMarkerSuppliesSupplyUnit']) ? $snmppinfo_item['prtMarkerSuppliesSupplyUnit'] : "");
|
||||
$xmlsnmppinfo->addAttribute("MaxCapacity", isset($snmppinfo_item['prtMarkerSuppliesMaxCapacity']) ? $snmppinfo_item['prtMarkerSuppliesMaxCapacity'] : "");
|
||||
$xmlsnmppinfo->addAttribute("Level", isset($snmppinfo_item['prtMarkerSuppliesLevel']) ? $snmppinfo_item['prtMarkerSuppliesLevel'] : "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -32,23 +32,29 @@ var snmppinfo_show = false;
|
||||
* @param {jQuery} xml plugin-XML
|
||||
*/
|
||||
function snmppinfo_buildTable(xml) {
|
||||
var html = "", tree = [], closed = [];
|
||||
var html = "", tree = [], closed = [], hostname = "";
|
||||
|
||||
$("#Plugin_SNMPPInfo #Plugin_SNMPPInfoTable").remove();
|
||||
|
||||
html += " <table id=\"Plugin_SNMPPInfoTable\" class=\"tablemain\" style=\"width:100%;\">\n";
|
||||
html += " <thead>\n";
|
||||
html += " <tr>\n";
|
||||
html += " <th>" + genlang(3, false, "SNMPPInfo") + "</th>\n";
|
||||
html += " <th style=\"width:120px;\">" + genlang(4, false, "SNMPPInfo") + "</th>\n";
|
||||
html += " <th style=\"width:80px;\">" + genlang(5, false, "SNMPPInfo") + "</th>\n";
|
||||
html += " </tr>\n";
|
||||
html += " </thead>\n";
|
||||
html += " <tbody class=\"tree\">\n";
|
||||
hostname = $("Plugins Plugin_SNMPInfo", xml).attr('Hostname');
|
||||
if (hostname !== undefined) {
|
||||
$('span[class=Hostname_SNMPInfo]').html(hostname);
|
||||
}
|
||||
|
||||
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:31%;\">" + genlang(3, "SNMPPInfo") + "</th>\n";
|
||||
html += " <th class=\"right\" style=\"width:28.7%;\">" + 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 = "";
|
||||
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");
|
||||
@@ -56,6 +62,7 @@ function snmppinfo_buildTable(xml) {
|
||||
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);
|
||||
@@ -65,25 +72,43 @@ function snmppinfo_buildTable(xml) {
|
||||
units = level+" / 100";
|
||||
} else if (level==-3) {
|
||||
percent = 100;
|
||||
units = genlang(6, false, "SNMPPInfo")
|
||||
units = genlang(5, "SNMPPInfo");
|
||||
} else {
|
||||
percent = 0;
|
||||
units = genlang(7, false, "SNMPPInfo")
|
||||
units = genlang(6, "SNMPPInfo");
|
||||
}
|
||||
|
||||
if (device!=lastdev) {
|
||||
html += " <tr><td><strong>" + device + " (" + name + ") </strong></td></tr>\n";
|
||||
html += " <tr><td colspan=\"3\"><div class=\"treediv\"><span class=\"treespanbold\">" + device + " (" + name + ") </div></span></td></tr>\n";
|
||||
index = tree.push(0);
|
||||
lastdev = device;
|
||||
}
|
||||
html += " <tr><td>" + desc + "</td><td>" + createBar(percent) +"</td><td>" + units +"</td></tr>\n";
|
||||
|
||||
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 += " </tbody>\n";
|
||||
html += " </table>\n";
|
||||
html += " </div>\n";
|
||||
|
||||
$("#Plugin_SNMPPInfo").append(html);
|
||||
|
||||
@@ -109,6 +134,7 @@ function snmppinfo_buildTable(xml) {
|
||||
* load the xml via ajax
|
||||
*/
|
||||
function snmppinfo_request() {
|
||||
$("#Reload_SNMPPInfoTable").attr("title", "reload");
|
||||
$.ajax({
|
||||
url: "xml.php?plugin=SNMPPInfo",
|
||||
dataType: "xml",
|
||||
@@ -128,12 +154,12 @@ function snmppinfo_request() {
|
||||
|
||||
$(document).ready(function snmppinfo_buildpage() {
|
||||
$("#footer").before(buildBlock("SNMPPInfo", 1, true));
|
||||
$("#Plugin_SNMPPInfo").css("width", "451px");
|
||||
$("#Plugin_SNMPPInfo").addClass("halfsize");
|
||||
|
||||
snmppinfo_request();
|
||||
|
||||
$("#Reload_SNMPPInfoTable").click(function snmppinfo_reload(id) {
|
||||
snmppinfo_request();
|
||||
$("#Reload_SNMPPInfoTable").attr("title",datetime());
|
||||
$(this).attr("title", datetime());
|
||||
});
|
||||
});
|
||||
|
@@ -3,14 +3,14 @@ function renderPlugin_snmppinfo(data) {
|
||||
var directives = {
|
||||
Device: {
|
||||
text: function () {
|
||||
var Name = (this["Name"] !== undefined) ? (' (' + this["Name"] + ')'): '';
|
||||
return this["Device"] + Name;
|
||||
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 max = parseInt(this.MaxCapacity, 10);
|
||||
var level = parseInt(this.Level, 10);
|
||||
var percent = 0;
|
||||
|
||||
if (max>0 && (level>=0) && (level<=max) ) {
|
||||
@@ -20,76 +20,87 @@ function renderPlugin_snmppinfo(data) {
|
||||
} else if (level==-3) {
|
||||
percent = 100;
|
||||
}
|
||||
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width: ' + percent + '%;"></div>' +
|
||||
return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + percent + '%;"></div>' +
|
||||
'</div><div class="percent">' + percent + '%</div>';
|
||||
}
|
||||
},
|
||||
Units: {
|
||||
text: function () {
|
||||
var max = parseInt(this["MaxCapacity"]);
|
||||
var level = parseInt(this["Level"]);
|
||||
html: function () {
|
||||
var max = parseInt(this.MaxCapacity, 10);
|
||||
var level = parseInt(this.Level, 10);
|
||||
|
||||
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 "enough";
|
||||
return genlang(5, 'snmppinfo'); // enough
|
||||
} else {
|
||||
return "unknown";
|
||||
return genlang(6, 'snmppinfo'); // unknown
|
||||
}
|
||||
}
|
||||
},
|
||||
SUnits: {
|
||||
html: function () {
|
||||
var supply = parseInt(this.SupplyUnit, 10);
|
||||
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 (data.Plugins.Plugin_SNMPPInfo !== undefined) {
|
||||
var printers = items(data.Plugins.Plugin_SNMPPInfo.Printer);
|
||||
if (printers.length > 0) {
|
||||
var i, j, datas;
|
||||
var html = "";
|
||||
html+="<thead>";
|
||||
html+="<tr>";
|
||||
html+="<th>Printer</th>";
|
||||
html+="<th>Percent</th>";
|
||||
html+="<th class=\"rightCell\">Units</th>";
|
||||
html+="</tr>";
|
||||
html+="</thead>";
|
||||
for (var i = 0; i < printers.length; i++) {
|
||||
html+="<tr id=\"snmppinfo-" + i + "\" class=\"treegrid-snmppinfo-" + i + "\" style=\"display:none\" >";
|
||||
html+="<td><b><span data-bind=\"Device\"></span></b></td>";
|
||||
html+="<td></td>";
|
||||
html+="<td></td>";
|
||||
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 {
|
||||
var datas = items(printers[i]["MarkerSupplies"]);
|
||||
for (var j = 0; j < datas.length; j++) {
|
||||
datas = items(printers[i].MarkerSupplies);
|
||||
for (j = 0; j < datas.length; j++) {
|
||||
html+="<tr id=\"snmppinfo-" + i + "-" + j +"\" class=\"treegrid-parent-snmppinfo-" + i + "\">";
|
||||
html+="<th><span data-bind=\"Description\"></span></th>";
|
||||
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></td>";
|
||||
html+="<td class=\"rightCell\"><span data-bind=\"Units\"></span><span data-bind=\"SUnits\"></span></td>";
|
||||
html+="</tr>";
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
$("#snmppinfo-" + i).hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$("#snmppinfo").empty().append(html);
|
||||
|
||||
for (var i = 0; i < printers.length; i++) {
|
||||
$("#snmppinfo-data").empty().append(html);
|
||||
|
||||
for (i = 0; i < printers.length; i++) {
|
||||
$('#snmppinfo-'+ i).render(printers[i]["@attributes"], directives);
|
||||
try {
|
||||
var datas = items(printers[i]["MarkerSupplies"]);
|
||||
for (var j = 0; j < datas.length; j++) {
|
||||
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',
|
||||
|
@@ -9,22 +9,28 @@
|
||||
<expression id="plugin_snmppinfo_001" name="snmppinfo_title">
|
||||
<exp>Informace o tiskárnách</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
|
||||
<exp>Poslední aktualizace</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer">
|
||||
<exp>Tiskárna</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent">
|
||||
<exp>Procenta</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_units">
|
||||
<exp>Jednotky</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough">
|
||||
<exp>dostatek</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
|
||||
<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>
|
||||
|
@@ -9,22 +9,28 @@
|
||||
<expression id="plugin_snmppinfo_001" name="snmppinfo_title">
|
||||
<exp>Drucker Information</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
|
||||
<exp>Letzte Aktualisierung</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer">
|
||||
<exp>Drucker</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent">
|
||||
<exp>Prozent</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_units">
|
||||
<exp>Units</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough">
|
||||
<exp>genug</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
|
||||
<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>
|
||||
|
@@ -9,22 +9,28 @@
|
||||
<expression id="plugin_snmppinfo_001" name="snmppinfo_title">
|
||||
<exp>Printer Information</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
|
||||
<exp>Last refresh</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer">
|
||||
<exp>Printer</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent">
|
||||
<exp>Percent</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_units">
|
||||
<exp>Units</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough">
|
||||
<exp>enough</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
|
||||
<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>
|
||||
|
@@ -8,22 +8,28 @@
|
||||
<expression id="plugin_snmppinfo_001" name="snmppinfo_title">
|
||||
<exp>Imprimantes</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
|
||||
<exp>Dernière actualisation</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer">
|
||||
<exp>Imprimante</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent">
|
||||
<exp>Pourcent</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_units">
|
||||
<exp>Unité</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough">
|
||||
<exp>suffisamment</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
|
||||
<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>
|
||||
|
36
root/opt/phpsysinfo/plugins/snmppinfo/lang/gr.xml
Normal file
36
root/opt/phpsysinfo/plugins/snmppinfo/lang/gr.xml
Normal file
@@ -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>
|
@@ -9,22 +9,28 @@
|
||||
<expression id="plugin_snmppinfo_001" name="snmppinfo_title">
|
||||
<exp>Drukarki</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
|
||||
<exp>Ostatnie odświeżenie</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer">
|
||||
<exp>Drukarka</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent">
|
||||
<exp>Procent</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_units">
|
||||
<exp>Jednostek</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough">
|
||||
<exp>dość</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
|
||||
<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>
|
||||
|
@@ -9,22 +9,28 @@
|
||||
<expression id="plugin_snmppinfo_001" name="snmppinfo_title">
|
||||
<exp>Informații Imprimantă</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
|
||||
<exp>Ultimul refresh</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer">
|
||||
<exp>Imprimantă</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent">
|
||||
<exp>Procent</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_units">
|
||||
<exp>Unități</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough">
|
||||
<exp>suficient</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
|
||||
<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>
|
||||
|
@@ -9,22 +9,28 @@
|
||||
<expression id="plugin_snmppinfo_001" name="snmppinfo_title">
|
||||
<exp>Информация о принтерах</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_date">
|
||||
<exp>Последнее обновление</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_printer">
|
||||
<expression id="plugin_snmppinfo_002" name="snmppinfo_printer">
|
||||
<exp>Принтер</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_percent">
|
||||
<expression id="plugin_snmppinfo_003" name="snmppinfo_percent">
|
||||
<exp>Процент</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_units">
|
||||
<expression id="plugin_snmppinfo_004" name="snmppinfo_units">
|
||||
<exp>Еденицы</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_006" name="snmppinfo_enough">
|
||||
<expression id="plugin_snmppinfo_005" name="snmppinfo_enough">
|
||||
<exp>достаточно</exp>
|
||||
</expression>
|
||||
<expression id="plugin_snmppinfo_007" name="snmppinfo_unknown">
|
||||
<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>
|
||||
|
@@ -1,9 +1,23 @@
|
||||
<div class="col-lg-6" id="block_snmppinfo" style="display:none">
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">Printer Information</div>
|
||||
<div class="panel-body">
|
||||
<table id="snmppinfo" class="table table-hover table-condensed">
|
||||
</table>
|
||||
<div class="col-lg-6" id="block_snmppinfo" style="display:none;">
|
||||
<div class="card" id="panel_snmppinfo" style="display:none;">
|
||||
<div class="card-header"><span class="lang_plugin_snmppinfo_001">Printer Information</span>
|
||||
<span class="hostname_snmppinfo"></span>
|
||||
<div id="reload_snmppinfo" class="reload" title="reload"></div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table id="snmppinfo" class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span class="lang_plugin_snmppinfo_002">Printer</span></th>
|
||||
<th><span class="lang_plugin_snmppinfo_003">Percent</span></th>
|
||||
<th class="rightCell"><span class="lang_plugin_snmppinfo_004">Units</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="snmppinfo-data">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user