fix device health tab links

git-svn-id: http://www.observium.org/svn/observer/trunk@2502 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-19 09:02:25 +00:00
parent 7930814d0d
commit 42fa083bf1

View File

@@ -40,6 +40,10 @@ $type_text['frequency'] = "Frequency";
$type_text['current'] = "Current";
$type_text['power'] = "Power";
$link_array = array('page' => 'device',
'device' => $device['device_id'],
'tab' => 'health');
print_optionbar_start();
echo("<span style='font-weight: bold;'>Health</span> &#187; ");
@@ -53,7 +57,6 @@ foreach ($datas as $type)
if ($vars['metric'] == $type)
{ echo('<span class="pagemenu-selected">'); }
echo(generate_link($type_text[$type],$link_array,array('metric'=>$type)));
if ($vars['metric'] == $type) { echo("</span>"); }
$sep = " | ";