diff --git a/html/pages/device/health.inc.php b/html/pages/device/health.inc.php index fb599dd52..bcfb9d99d 100644 --- a/html/pages/device/health.inc.php +++ b/html/pages/device/health.inc.php @@ -8,12 +8,12 @@ $cpm = mysql_result(mysql_query("select count(*) from cpmCPU WHERE device_id = $hrprocessor = mysql_result(mysql_query("select count(*) from hrDevice WHERE device_id = '" . $device['device_id'] . "' AND `hrDeviceType` = 'hrDeviceProcessor'"), 0); -if($temp) { $datas[] = 'temp'; } -if($storage) { $datas[] = 'storage'; } -if($cemp) { $datas[] = 'cemp'; } -if($cpm) { $datas[] = 'cpm'; } -if($cmp) { $datas[] = 'cmp'; } -if($hrprocessor) { $datas[] = 'hrprocessors'; } +if ($temp) { $datas[] = 'temp'; } +if ($storage) { $datas[] = 'storage'; } +if ($cemp) { $datas[] = 'cemp'; } +if ($cpm) { $datas[] = 'cpm'; } +if ($cmp) { $datas[] = 'cmp'; } +if ($hrprocessor) { $datas[] = 'hrprocessors'; } $type_text['temp'] = "Temperatures"; $type_text['cmp'] = "Memory Pools"; @@ -23,6 +23,7 @@ $type_text['storage'] = "Disk Usage"; $type_text['hrprocessors'] = "Processor Usage"; +/* echo("
@@ -33,30 +34,24 @@ $type_text['hrprocessors'] = "Processor Usage";
"); +*/ - unset ($sep); - foreach ($datas as $type) { - if(!$_GET['opta']) { $_GET['opta'] = $type; } - echo($sep); - if($_GET['opta'] == $type) { echo(""); } - echo("" . $type_text[$type] ."\n"); - if($_GET['opta'] == $type) { echo(""); } - $sep = ' | '; - } - unset ($sep); - echo("
-
- - - - - - -
-"); +print_optionbar_start(); +unset ($sep); +foreach ($datas as $type) { + if (!$_GET['opta']) { $_GET['opta'] = $type; } + echo($sep); + if ($_GET['opta'] == $type) { echo(""); } + echo("" . $type_text[$type] ."\n"); + if ($_GET['opta'] == $type) { echo(""); } + $sep = ' | '; +} +unset ($sep); -if(is_file("pages/device/health/".mres($_GET['opta']).".inc.php")) { include("pages/device/health/".mres($_GET['opta']).".inc.php"); } +print_optionbar_end(); + +if (is_file("pages/device/health/".mres($_GET['opta']).".inc.php")) { include("pages/device/health/".mres($_GET['opta']).".inc.php"); } ?>