$val) { if ($val) { delete_device($db_link,$val); } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } print_device_submenu($page_url); $sort_sql=" ORDER BY device_name"; if (!empty($sort_field) and !empty($order)) { $sort_sql = " ORDER BY $sort_field $order"; } ?>

0) { $filter .= ' and building_id=' . $f_building_id; } if ($f_devtype_id >= 0) { $filter .= ' and device_type=' . $f_devtype_id; } else { $filter .= ' and device_type<=2'; } if ($f_devmodel_id > 0) { $filter .= ' and device_model_id=' . $f_devmodel_id; } $dSQL = 'SELECT * FROM devices WHERE deleted=0 '.$filter.' '.$sort_sql; $switches = get_records_sql($db_link,$dSQL); foreach ($switches as $row) { print "\n"; $cl = "data"; if (isset($row['nagios_status'])) { $cl = 'shutdown'; if ($row['nagios_status'] == 'UP') { $cl = 'up'; } } print "\n"; print "\n"; print "\n"; if (isset($row['user_id']) and $row['user_id']>0) { print "\n"; } else { print "\n"; } print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; } ?>
> > > > >
".get_devtype_name($db_link,$row['device_type'])."" . $row['device_name'] . "".$row['ip']."".$row['ip']."" . get_vendor_name($db_link, $row['vendor_id']) . " " . get_device_model($db_link,$row['device_model_id']) . "" . get_building($db_link, $row['building_id']) . "(" . $row['comment'] . ")".$row['port_count']."" . get_qa($row['nagios']) . "" . get_qa($row['discovery']) . "