2007-04-04 10:15:07 +00:00
|
|
|
<?php
|
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
if ($_SESSION['userlevel'] < '7')
|
|
|
|
{
|
2007-04-04 10:15:07 +00:00
|
|
|
print_error("Insufficient Privileges");
|
|
|
|
} else {
|
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
$panes = array('device' => 'Device Settings',
|
|
|
|
'ports' => 'Port Settings',
|
|
|
|
'apps' => 'Applications',
|
|
|
|
'services' => 'Services',
|
|
|
|
'ipmi' => 'IPMI');
|
2007-04-04 10:15:07 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
print_optionbar_start();
|
2010-06-10 20:13:41 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
unset($sep);
|
|
|
|
foreach ($panes as $type => $text)
|
2010-06-10 20:13:41 +00:00
|
|
|
{
|
2011-03-16 23:10:10 +00:00
|
|
|
if (!isset($_GET['opta'])) { $_GET['opta'] = $type; }
|
|
|
|
echo($sep);
|
|
|
|
if ($_GET['opta'] == $type)
|
|
|
|
{
|
|
|
|
echo("<strong>");
|
|
|
|
echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
|
|
|
} else {
|
|
|
|
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>"); }
|
|
|
|
$sep = " | ";
|
2010-06-10 20:13:41 +00:00
|
|
|
}
|
2008-07-18 08:21:45 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
print_optionbar_end();
|
2007-04-04 10:15:07 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
if (is_file("pages/device/edit/".mres($_GET['opta']).".inc.php"))
|
|
|
|
{
|
|
|
|
include("pages/device/edit/".mres($_GET['opta']).".inc.php");
|
|
|
|
}
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
?>
|