From 0e6284b5c31d346f440532059f62585634f5250d Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 18 Sep 2011 18:38:42 +0000 Subject: [PATCH] fixed edit tab (test?) git-svn-id: http://www.observium.org/svn/observer/trunk@2495 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device/edit.inc.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/html/pages/device/edit.inc.php b/html/pages/device/edit.inc.php index e12084441c..d31708d7e0 100644 --- a/html/pages/device/edit.inc.php +++ b/html/pages/device/edit.inc.php @@ -1,5 +1,9 @@ 'device', + 'device' => $device['device_id'], + 'tab' => 'edit'); + if ($_SESSION['userlevel'] < '7') { print_error("Insufficient Privileges"); @@ -25,9 +29,9 @@ if ($_SESSION['userlevel'] < '7') unset($sep); foreach ($panes as $type => $text) { - if (!isset($_GET['optc'])) { $_GET['optc'] = $type; } + if (!isset($vars['section'])) { $vars['section'] = $type; } echo($sep); - if ($_GET['optc'] == $type) + if ($vars['section'] == $type) { echo(""); #echo(''); @@ -35,16 +39,18 @@ if ($_SESSION['userlevel'] < '7') #echo(''); } - echo(" " . $text .""); - if ($_GET['optc'] == $type) { echo(""); } + echo(generate_link($text,$link_array,array('section'=>$type))); + +# echo(" " . $text .""); + if ($vars['section'] == $type) { echo(""); } $sep = " | "; } print_optionbar_end(); - if (is_file("pages/device/edit/".mres($_GET['optc']).".inc.php")) + if (is_file("pages/device/edit/".mres($vars['section']).".inc.php")) { - include("pages/device/edit/".mres($_GET['optc']).".inc.php"); + include("pages/device/edit/".mres($vars['section']).".inc.php"); } }