2010-02-09 16:36:06 +00:00
|
|
|
<?php
|
|
|
|
|
2010-06-23 15:54:56 +00:00
|
|
|
$datas = array('Processors','Memory','Storage','Temperatures', 'Humidity', 'Fanspeeds', 'Voltages', 'Frequencies', 'Current');
|
2010-04-11 13:45:19 +00:00
|
|
|
|
2011-03-17 00:09:20 +00:00
|
|
|
if (!$_GET['opta']) { $_GET['opta'] = "processors"; }
|
|
|
|
if (!$_GET['optb']) { $_GET['optb'] = "nographs"; }
|
2010-06-12 12:07:16 +00:00
|
|
|
|
|
|
|
print_optionbar_start('', '');
|
2010-02-11 01:48:55 +00:00
|
|
|
|
2010-03-06 01:32:41 +00:00
|
|
|
$sep = "";
|
2011-03-17 00:09:20 +00:00
|
|
|
foreach ($datas as $texttype)
|
2010-06-18 14:17:58 +00:00
|
|
|
{
|
2010-02-11 01:48:55 +00:00
|
|
|
$type = strtolower($texttype);
|
|
|
|
echo($sep);
|
2011-03-17 00:09:20 +00:00
|
|
|
if ($_GET['opta'] == $type)
|
|
|
|
{
|
2010-06-12 14:18:56 +00:00
|
|
|
echo("<strong>");
|
|
|
|
echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
2011-03-17 00:09:20 +00:00
|
|
|
}
|
|
|
|
else
|
2010-06-18 14:17:58 +00:00
|
|
|
{
|
2010-06-12 14:18:56 +00:00
|
|
|
echo('<img src="images/icons/greyscale/'.$type.'.png" class="optionicon" />');
|
|
|
|
}
|
2010-06-18 14:17:58 +00:00
|
|
|
echo('<a href="'.$config['base_url'].'/health/' . $type . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/"> ' . $texttype ."</a>\n");
|
2010-02-11 01:48:55 +00:00
|
|
|
if ($_GET['opta'] == $type) { echo("</strong>"); }
|
|
|
|
$sep = ' | ';
|
|
|
|
}
|
2011-03-17 00:09:20 +00:00
|
|
|
|
2010-02-11 01:48:55 +00:00
|
|
|
unset ($sep);
|
|
|
|
|
2010-06-12 12:07:16 +00:00
|
|
|
echo('<div style="float: right;">');
|
|
|
|
|
2011-03-17 00:09:20 +00:00
|
|
|
if ($_GET['optb'] == "graphs")
|
|
|
|
{
|
|
|
|
echo('<strong>');
|
2010-06-12 14:18:56 +00:00
|
|
|
echo('<img src="images/icons/graphs.png" class="optionicon" />');
|
|
|
|
} else {
|
|
|
|
echo('<img src="images/icons/greyscale/graphs.png" class="optionicon" />');
|
|
|
|
}
|
2011-03-17 00:09:20 +00:00
|
|
|
|
2010-06-12 21:14:48 +00:00
|
|
|
echo('<a href="health/'. $_GET['opta'].'/graphs/"> Graphs</a>');
|
2011-03-17 00:09:20 +00:00
|
|
|
|
|
|
|
if ($_GET['optb'] == "graphs")
|
|
|
|
{
|
|
|
|
echo('</strong>');
|
|
|
|
}
|
|
|
|
|
2010-06-12 12:07:16 +00:00
|
|
|
echo(' | ');
|
2011-03-17 00:09:20 +00:00
|
|
|
|
|
|
|
if ($_GET['optb'] == "nographs")
|
|
|
|
{
|
|
|
|
echo('<strong>');
|
2010-06-12 14:18:56 +00:00
|
|
|
echo('<img src="images/icons/nographs.png" class="optionicon" />');
|
|
|
|
} else {
|
|
|
|
echo('<img src="images/icons/greyscale/nographs.png" class="optionicon" />');
|
|
|
|
}
|
2011-03-17 00:09:20 +00:00
|
|
|
|
2010-06-12 21:14:48 +00:00
|
|
|
echo('<a href="health/'. $_GET['opta'].'/nographs/"> No Graphs</a>');
|
2010-02-11 01:48:55 +00:00
|
|
|
|
2011-03-17 00:09:20 +00:00
|
|
|
if ($_GET['optb'] == "nographs") { echo('</strong>'); }
|
2010-02-11 01:48:55 +00:00
|
|
|
|
2010-06-12 12:07:16 +00:00
|
|
|
echo('</div>');
|
|
|
|
|
|
|
|
print_optionbar_end();
|
2010-02-11 01:48:55 +00:00
|
|
|
|
2010-02-09 16:36:06 +00:00
|
|
|
switch ($_GET['opta'])
|
|
|
|
{
|
2010-04-11 13:45:19 +00:00
|
|
|
case 'processors':
|
|
|
|
case 'memory':
|
|
|
|
case 'storage':
|
2010-02-09 16:36:06 +00:00
|
|
|
case 'temperatures':
|
2010-06-23 15:54:56 +00:00
|
|
|
case 'humidity':
|
2010-02-09 16:36:06 +00:00
|
|
|
case 'voltages':
|
2010-02-11 09:21:32 +00:00
|
|
|
case 'fanspeeds':
|
2010-06-03 10:53:10 +00:00
|
|
|
case 'frequencies':
|
2010-06-09 20:03:16 +00:00
|
|
|
case 'current':
|
2010-04-11 13:45:19 +00:00
|
|
|
include('pages/health/'.$_GET['opta'].'.inc.php');
|
2010-02-09 16:36:06 +00:00
|
|
|
break;
|
|
|
|
default:
|
2010-04-11 13:45:19 +00:00
|
|
|
include('pages/health/temperatures.inc.php');
|
2010-02-09 16:36:06 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2011-03-17 00:09:20 +00:00
|
|
|
?>
|