mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
menu option bar thingeroo to sensors page (keep the style!) :)
git-svn-id: http://www.observium.org/svn/observer/trunk@811 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+21
-1
@@ -1,5 +1,25 @@
|
||||
<?php
|
||||
|
||||
$datas = array('Temperatures', 'Voltages', 'Fans');
|
||||
|
||||
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':
|
||||
@@ -12,4 +32,4 @@ switch ($_GET['opta'])
|
||||
break;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user