From 97111b96e099bd89db0dd9af578f6779d3e84691 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Fri, 23 Jul 2010 13:40:31 +0000 Subject: [PATCH] add os type/version/features and hardware to device tooltips (maybe make a function to build this text later) git-svn-id: http://www.observium.org/svn/observer/trunk@1462 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/functions.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 9a2068544..2f004ecfa 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -53,6 +53,15 @@ function generatedevicelink($device, $text=0, $start=0, $end=0) $url = $config['base_url']."/device/" . $device['device_id'] . "/"; $contents = "
".$device['hostname'] . " - $descr
"; + + $contents .= "
"; + if($device['os']) { $contents .= $config['os'][$device['os']]['text']; } + if($device['version']) { $contents .= " ".$device['version']; } + if($device['features']) { $contents .= " (".$device['features'].")"; } + if($device['hardware']) { $contents .= " - ".$device['hardware']; } + $contents .= "
"; + + if (isset($device['location'])) { $contents .= "" . htmlentities($device['location'])."
"; } foreach ($graphs as $graph) {