"); if ($ent['entPhysicalClass'] == "chassis") { echo(" "); } if ($ent['entPhysicalClass'] == "module") { echo(" "); } if ($ent['entPhysicalClass'] == "port") { echo(" "); } if ($ent['entPhysicalClass'] == "container") { echo(" "); } if ($ent['entPhysicalClass'] == "sensor") { echo(" "); $link = " href='".$config['base_url'] . "/device/".$device['device_id']."/ciscosensors/".$ent['entSensorType']."/' onmouseover=\"return overlib('', LEFT,FGCOLOR,'#e5e5e5', BGCOLOR, '#c0c0c0', BORDER, 5, CELLPAD, 4, CAPCOLOR, '#050505');\" onmouseout=\"return nd();\""; } else { unset ($link); } if ($ent['entPhysicalClass'] == "backplane") { echo(" "); } if ($ent['entPhysicalParentRelPos'] > '-1') {echo("".$ent['entPhysicalParentRelPos'].". "); } if ($link) {echo(""); } if ($ent['ifIndex']) { $interface = mysql_fetch_array(mysql_query("SELECT * FROM `ports` WHERE ifIndex = '".$ent['ifIndex']."' AND device_id = '".$device['device_id']."'")); $ent['entPhysicalName'] = generate_port_link($interface); } if ($ent['entPhysicalModelName'] && $ent['entPhysicalName']) { echo("".$ent['entPhysicalModelName'] . " (".$ent['entPhysicalName'].")"); } elseif ($ent['entPhysicalModelName']) { echo("".$ent['entPhysicalModelName'] . ""); } elseif ($ent['entPhysicalName']) { echo("".$ent['entPhysicalName'].""); } elseif ($ent['entPhysicalDescr']) { echo("".$ent['entPhysicalDescr'].""); } if ($ent['entPhysicalClass'] == "sensor") { echo(" (".$ent['entSensorValue'] ." ". $ent['entSensorType'].")"); } echo("
" . $ent['entPhysicalDescr']); if ($link) { echo(""); } if ($ent['entPhysicalSerialNum']) { echo("
Serial No. ".$ent['entPhysicalSerialNum']." "); } echo("
"); $count = mysql_result(mysql_query("SELECT COUNT(*) FROM `entPhysical` WHERE device_id = '".$device['device_id']."' AND entPhysicalContainedIn = '".$ent['entPhysicalIndex']."'"),0); if ($count) { echo(""); } echo(""); } } echo("
Expand All Nodes Collapse All Nodes
"); echo("
"); ?>