omnomnom icons begone (also remove plurals from menu to gain more space)
git-svn-id: http://www.observium.org/svn/observer/trunk@2038 61d68cd4-352d-0410-923a-c4978735b2b8
@@ -1,3 +1,11 @@
|
||||
.pagemenu-selected {
|
||||
font-weight: bold;
|
||||
background-color: #cecece;
|
||||
-moz-border-radius: 15px;
|
||||
border-radius: 15px;
|
||||
padding: 2px 8px 3px 8px;
|
||||
}
|
||||
|
||||
.submit {
|
||||
background-image:url('/images/submitbg.png');
|
||||
background-position:0 100%;
|
||||
|
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 682 B |
Before Width: | Height: | Size: 722 B After Width: | Height: | Size: 722 B |
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 707 B |
Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 591 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 685 B After Width: | Height: | Size: 685 B |
Before Width: | Height: | Size: 587 B After Width: | Height: | Size: 587 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 722 B After Width: | Height: | Size: 722 B |
Before Width: | Height: | Size: 703 B After Width: | Height: | Size: 703 B |
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$datas = array('Processors','Memory','Storage','Temperatures', 'Humidity', 'Fanspeeds', 'Voltages', 'Frequencies', 'Current');
|
||||
$datas = array('Processor','Memory','Storage','Temperature', 'Humidity', 'Fanspeed', 'Voltage', 'Frequency', 'Current');
|
||||
|
||||
if (!$_GET['opta']) { $_GET['opta'] = "processors"; }
|
||||
if (!$_GET['optb']) { $_GET['optb'] = "nographs"; }
|
||||
@@ -14,15 +14,18 @@ foreach ($datas as $texttype)
|
||||
echo($sep);
|
||||
if ($_GET['opta'] == $type)
|
||||
{
|
||||
echo("<strong>");
|
||||
echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
||||
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('<img src="images/icons/greyscale/'.$type.'.png" class="optionicon" />');
|
||||
}
|
||||
echo('<a href="'.$config['base_url'].'/health/' . $type . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/"> ' . $texttype ."</a>\n");
|
||||
if ($_GET['opta'] == $type) { echo("</strong>"); }
|
||||
echo('<a href="'.$config['base_url'].'/health/' . $type . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/">' . $texttype ."</a>");
|
||||
|
||||
if ($_GET['opta'] == $type) { echo("</span>"); }
|
||||
|
||||
$sep = ' | ';
|
||||
}
|
||||
|
||||
@@ -32,32 +35,29 @@ echo('<div style="float: right;">');
|
||||
|
||||
if ($_GET['optb'] == "graphs")
|
||||
{
|
||||
echo('<strong>');
|
||||
echo('<img src="images/icons/graphs.png" class="optionicon" />');
|
||||
} else {
|
||||
echo('<img src="images/icons/greyscale/graphs.png" class="optionicon" />');
|
||||
echo('<span class="pagemenu-selected">');
|
||||
}
|
||||
|
||||
echo('<a href="health/'. $_GET['opta'].'/graphs/"> Graphs</a>');
|
||||
|
||||
if ($_GET['optb'] == "graphs")
|
||||
{
|
||||
echo('</strong>');
|
||||
echo('</span>');
|
||||
}
|
||||
|
||||
echo(' | ');
|
||||
|
||||
if ($_GET['optb'] == "nographs")
|
||||
{
|
||||
echo('<strong>');
|
||||
echo('<img src="images/icons/nographs.png" class="optionicon" />');
|
||||
} else {
|
||||
echo('<img src="images/icons/greyscale/nographs.png" class="optionicon" />');
|
||||
echo('<span class="pagemenu-selected">');
|
||||
}
|
||||
|
||||
echo('<a href="health/'. $_GET['opta'].'/nographs/"> No Graphs</a>');
|
||||
|
||||
if ($_GET['optb'] == "nographs") { echo('</strong>'); }
|
||||
if ($_GET['optb'] == "nographs")
|
||||
{
|
||||
echo('</span>');
|
||||
}
|
||||
|
||||
echo('</div>');
|
||||
|
||||
@@ -65,20 +65,20 @@ print_optionbar_end();
|
||||
|
||||
switch ($_GET['opta'])
|
||||
{
|
||||
case 'processors':
|
||||
case 'processor':
|
||||
case 'memory':
|
||||
case 'storage':
|
||||
case 'temperatures':
|
||||
case 'temperature':
|
||||
case 'humidity':
|
||||
case 'voltages':
|
||||
case 'fanspeeds':
|
||||
case 'frequencies':
|
||||
case 'voltage':
|
||||
case 'fanspeed':
|
||||
case 'frequency':
|
||||
case 'current':
|
||||
include('pages/health/'.$_GET['opta'].'.inc.php');
|
||||
break;
|
||||
default:
|
||||
include('pages/health/temperatures.inc.php');
|
||||
include('pages/health/temperature.inc.php');
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@@ -31,18 +31,18 @@ while ($sensor = mysql_fetch_assoc($query))
|
||||
{
|
||||
if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
||||
|
||||
$weekly_sensor = "graph.php?id=" . $sensor['sensor_id'] . "&amp;type=".$graph_type."&amp;from=$week&amp;to=$now&amp;width=500&amp;height=150";
|
||||
$weekly_sensor = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=500&height=150";
|
||||
$sensor_popup = "<a href=\"graphs/" . $sensor['sensor_id'] . "/".$graph_type."/\" onmouseover=\"return overlib('<img src=\'$weekly_sensor\'>', LEFT);\" onmouseout=\"return nd();\">
|
||||
" . $sensor['sensor_descr'] . "</a>";
|
||||
|
||||
if ($sensor['sensor_current'] >= $sensor['sensor_limit']) { $alert = '<img src="images/16/flag_red.png" alt="alert" />'; } else { $alert = ""; }
|
||||
|
||||
$sensor_day = "graph.php?id=" . $sensor['sensor_id'] . "&amp;type=".$graph_type."&amp;from=$day&amp;to=$now&amp;width=300&amp;height=100";
|
||||
$sensor_week = "graph.php?id=" . $sensor['sensor_id'] . "&amp;type=".$graph_type."&amp;from=$week&amp;to=$now&amp;width=300&amp;height=100";
|
||||
$sensor_month = "graph.php?id=" . $sensor['sensor_id'] . "&amp;type=".$graph_type."&amp;from=$month&amp;to=$now&amp;width=300&amp;height=100";
|
||||
$sensor_year = "graph.php?id=" . $sensor['sensor_id'] . "&amp;type=".$graph_type."&amp;from=$year&amp;to=$now&amp;width=300&amp;height=100";
|
||||
$sensor_day = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=300&height=100";
|
||||
$sensor_week = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=300&height=100";
|
||||
$sensor_month = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=300&height=100";
|
||||
$sensor_year = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
|
||||
|
||||
$sensor_minigraph = "<img src='graph.php?id=" . $sensor['sensor_id'] . "&amp;type=".$graph_type."&amp;from=$day&amp;to=$now&amp;width=100&amp;height=20'";
|
||||
$sensor_minigraph = "<img src='graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=100&height=20'";
|
||||
$sensor_minigraph .= " onmouseover=\"return overlib('<div class=list-large>".$sensor['hostname']." - ".$sensor['sensor_descr'];
|
||||
$sensor_minigraph .= "</div><div style=\'width: 750px\'><img src=\'$sensor_day\'><img src=\'$sensor_week\'><img src=\'$sensor_month\'><img src=\'$sensor_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
@@ -90,4 +90,4 @@ while ($sensor = mysql_fetch_assoc($query))
|
||||
|
||||
echo("</table>");
|
||||
|
||||
?>
|
||||
?>
|
||||
|