mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
extend simpler menubar to more pages. fix graphname to device_temperature for os definitions.
git-svn-id: http://www.observium.org/svn/observer/trunk@2051 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -69,21 +69,21 @@ if (bill_permitted($bill_id))
|
||||
|
||||
if (!$_GET['optb']) { $_GET['optb'] = "details"; }
|
||||
|
||||
if ($_GET['optb'] == "details") { echo("<strong>"); }
|
||||
if ($_GET['optb'] == "details") { echo("<span class='pagemenu-selected'>"); }
|
||||
echo("<a href='bill/".$bill_id."/details/'>Details</a>");
|
||||
if ($_GET['optb'] == "details") { echo("</strong>"); }
|
||||
if ($_GET['optb'] == "details") { echo("</span>"); }
|
||||
|
||||
if ($_SESSION['userlevel'] == "10")
|
||||
{
|
||||
echo(" | ");
|
||||
if ($_GET['optb'] == "edit") { echo("<strong>"); }
|
||||
if ($_GET['optb'] == "edit") { echo("<span class='pagemenu-selected'>"); }
|
||||
echo("<a href='bill/".$bill_id."/edit/'>Edit</a>");
|
||||
if ($_GET['optb'] == "edit") { echo("</strong>"); }
|
||||
if ($_GET['optb'] == "edit") { echo("</span>"); }
|
||||
|
||||
echo(" | ");
|
||||
if ($_GET['optb'] == "delete") { echo("<strong>"); }
|
||||
if ($_GET['optb'] == "delete") { echo("<span class='pagemenu-selected'>"); }
|
||||
echo("<a href='bill/".$bill_id."/delete/'>Delete</a>");
|
||||
if ($_GET['optb'] == "delete") { echo("</strong>"); }
|
||||
if ($_GET['optb'] == "delete") { echo("</span>"); }
|
||||
}
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
@@ -27,14 +27,14 @@ if ($_SESSION['userlevel'] < '7')
|
||||
echo($sep);
|
||||
if ($_GET['opta'] == $type)
|
||||
{
|
||||
echo("<strong>");
|
||||
echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
||||
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('<img src="images/icons/greyscale/'.$type.'.png" class="optionicon" />');
|
||||
}
|
||||
|
||||
echo("<a href='".$config['base_url']."/device/".$device['device_id']."/edit/" . $type . ($_GET['optb'] ? "/" . $_GET['optb'] : ''). "/'> " . $text ."</a>\n");
|
||||
if ($_GET['opta'] == $type) { echo("</strong>"); }
|
||||
echo("<a href='".$config['base_url']."/device/".$device['device_id']."/edit/" . $type . ($_GET['optb'] ? "/" . $_GET['optb'] : ''). "/'> " . $text ."</a>");
|
||||
if ($_GET['opta'] == $type) { echo("</span>"); }
|
||||
$sep = " | ";
|
||||
}
|
||||
|
||||
@@ -46,4 +46,4 @@ if ($_SESSION['userlevel'] < '7')
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -14,7 +14,7 @@ $type_text['fanspeed'] = "Fanspeed";
|
||||
$type_text['frequency'] = "Frequency";
|
||||
$type_text['current'] = "Current";
|
||||
|
||||
if (!$_GET['opta']) { $_GET['opta'] = "processors"; }
|
||||
if (!$_GET['opta']) { $_GET['opta'] = "processor"; }
|
||||
if (!$_GET['optb']) { $_GET['optb'] = "nographs"; }
|
||||
|
||||
print_optionbar_start('', '');
|
||||
|
||||
Reference in New Issue
Block a user