mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix more health graphs (removing plurals)
git-svn-id: http://www.observium.org/svn/observer/trunk@2043 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -31,7 +31,7 @@ $type_text['mempool'] = "Memory";
|
||||
$type_text['storage'] = "Disk Usage";
|
||||
$type_text['diskio'] = "Disk I/O";
|
||||
$type_text['processor'] = "Processor";
|
||||
$type_text['voltage'] = "Voltages";
|
||||
$type_text['voltage'] = "Voltage";
|
||||
$type_text['fanspeed'] = "Fanspeed";
|
||||
$type_text['frequency'] = "Frequency";
|
||||
$type_text['current'] = "Current";
|
||||
@@ -48,10 +48,8 @@ foreach ($datas as $type)
|
||||
if ($_GET['opta'] == $type)
|
||||
{
|
||||
echo('<span class="pagemenu-selected">');
|
||||
# echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
||||
} else {
|
||||
# echo('<img src="images/icons/greyscale/'.$type.'.png" class="optionicon" />');
|
||||
}
|
||||
|
||||
echo("<a href='".$config['base_url']."/device/".$device['device_id']."/health/" . $type . ($_GET['optb'] ? "/" . $_GET['optb'] : ''). "/'> " . $type_text[$type] ."</a>");
|
||||
if ($_GET['opta'] == $type) { echo("</span>"); }
|
||||
$sep = " | ";
|
||||
|
@@ -8,7 +8,7 @@ if (mysql_result(mysql_query("SELECT count(*) from processors WHERE device_id =
|
||||
echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
|
||||
echo("<p style='padding: 0px 5px 5px;' class=sectionhead>");
|
||||
echo('<a class="sectionhead" href="device/'.$device['device_id'].'/health/processors/">');
|
||||
echo("<img align='absmiddle' src='".$config['base_url']."/images/icons/processors.png'> Processors</a></p>");
|
||||
echo("<img align='absmiddle' src='".$config['base_url']."/images/icons/processor.png'> Processors</a></p>");
|
||||
echo("<table width=100% cellspacing=0 cellpadding=5>");
|
||||
$i = '1';
|
||||
$procs = mysql_query("SELECT * FROM `processors` WHERE device_id = '" . $device['device_id'] . "' ORDER BY processor_descr ASC");
|
||||
|
@@ -1,6 +1,18 @@
|
||||
<?php
|
||||
|
||||
$datas = array('Processor','Memory','Storage','Temperature', 'Humidity', 'Fanspeed', 'Voltage', 'Frequency', 'Current');
|
||||
$datas = array('processor','mempool','storage','temperature', 'humidity', 'fanspeed', 'voltage', 'frequency', 'current');
|
||||
|
||||
$type_text['overview'] = "Overview";
|
||||
$type_text['temperature'] = "Temperature";
|
||||
$type_text['humidity'] = "Humidity";
|
||||
$type_text['mempool'] = "Memory";
|
||||
$type_text['storage'] = "Disk Usage";
|
||||
$type_text['diskio'] = "Disk I/O";
|
||||
$type_text['processor'] = "Processor";
|
||||
$type_text['voltage'] = "Voltages";
|
||||
$type_text['fanspeed'] = "Fanspeed";
|
||||
$type_text['frequency'] = "Frequency";
|
||||
$type_text['current'] = "Current";
|
||||
|
||||
if (!$_GET['opta']) { $_GET['opta'] = "processors"; }
|
||||
if (!$_GET['optb']) { $_GET['optb'] = "nographs"; }
|
||||
@@ -15,14 +27,9 @@ foreach ($datas as $texttype)
|
||||
if ($_GET['opta'] == $type)
|
||||
{
|
||||
echo("<span class='pagemenu-selected'>");
|
||||
#'style='font-weight: bold; background-color: #ffffff; -moz-border-radius: 15px; border-radius: 15px; padding: 2px 8px;'>");
|
||||
# echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
||||
}
|
||||
else
|
||||
{
|
||||
# echo('<img src="images/icons/greyscale/'.$type.'.png" class="optionicon" />');
|
||||
}
|
||||
echo('<a href="'.$config['base_url'].'/health/' . $type . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/">' . $texttype ."</a>");
|
||||
|
||||
echo('<a href="'.$config['base_url'].'/health/' . $type . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/">' . $type_text[$type] ."</a>");
|
||||
|
||||
if ($_GET['opta'] == $type) { echo("</span>"); }
|
||||
|
||||
|
Reference in New Issue
Block a user