Files
librenms-librenms/html/pages/sensors.php
Tom Laermans 0f971c4468 fixie of link in optionbar
git-svn-id: http://www.observium.org/svn/observer/trunk@814 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-11 09:22:12 +00:00

36 lines
713 B
PHP

<?php
$datas = array('Temperatures', 'Voltages', 'Fanpeeds');
print_optionbar_start();
unset ($sep);
foreach ($datas as $texttype) {
$type = strtolower($texttype);
if (!$_GET['opta']) { $_GET['opta'] = $type; }
echo($sep);
if ($_GET['opta'] == $type) { echo("<strong>"); }
echo("<a href='".$config['base_url']."/sensors/" . $type . "/'> " . $texttype ."</a>\n");
if ($_GET['opta'] == $type) { echo("</strong>"); }
$sep = ' | ';
}
unset ($sep);
print_optionbar_end();
switch ($_GET['opta'])
{
case 'temperatures':
case 'voltages':
case 'fanspeeds':
include('pages/sensors/'.$_GET['opta'].'.php');
break;
default:
include('pages/sensors/temperatures.php');
break;
}
?>