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