All Assets 0) { ?> Workstations 0) { ?> Servers 0) { ?> Virtual 0) { ?> Network 0) { ?> Other

Assets

= 2) { ?>
s">

text-nowrap"> $asset_serial"; } else { $asset_serial_display = "-"; } $asset_os = nullable_htmlentities($row['asset_os']); if ($asset_os) { $asset_os_display = $asset_os; } else { $asset_os_display = "-"; } $asset_ip = nullable_htmlentities($row['interface_ip']); if ($asset_ip) { $asset_ip_display = $asset_ip; } else { $asset_ip_display = "-"; } $asset_ipv6 = nullable_htmlentities($row['interface_ipv6']); $asset_nat_ip = nullable_htmlentities($row['interface_nat_ip']); $asset_mac = nullable_htmlentities(getFallBack($row['interface_mac'])); $asset_uri = sanitize_url($row['asset_uri']); $asset_uri_2 = sanitize_url($row['asset_uri_2']); $asset_uri_client = sanitize_url($row['asset_uri_client']); $asset_status = nullable_htmlentities($row['asset_status']); $asset_purchase_reference = nullable_htmlentities($row['asset_purchase_reference']); $asset_purchase_date = nullable_htmlentities($row['asset_purchase_date']); if ($asset_purchase_date) { $asset_purchase_date_display = $asset_purchase_date; } else { $asset_purchase_date_display = "-"; } $asset_warranty_expire = nullable_htmlentities($row['asset_warranty_expire']); if ($asset_warranty_expire) { $asset_warranty_expire_display = $asset_warranty_expire; } else { $asset_warranty_expire_display = "-"; } $asset_install_date = nullable_htmlentities($row['asset_install_date']); if ($asset_install_date) { $asset_install_date_display = $asset_install_date; } else { $asset_install_date_display = "-"; } $asset_photo = nullable_htmlentities($row['asset_photo']); $asset_physical_location = nullable_htmlentities($row['asset_physical_location']); if ($asset_physical_location) { $asset_physical_location_display = "
$asset_physical_location
"; } else { $asset_physical_location_display = ""; } $asset_notes = nullable_htmlentities($row['asset_notes']); $asset_favorite = intval($row['asset_favorite']); $asset_created_at = nullable_htmlentities($row['asset_created_at']); $asset_archived_at = nullable_htmlentities($row['asset_archived_at']); $asset_vendor_id = intval($row['asset_vendor_id']); $asset_location_id = intval($row['asset_location_id']); $asset_contact_id = intval($row['asset_contact_id']); $asset_network_id = intval($row['interface_network_id']); $device_icon = getAssetIcon($asset_type); $contact_archived_at = nullable_htmlentities($row['contact_archived_at']); if ($contact_archived_at) { $contact_archive_display = "(Archived)"; } else { $contact_archive_display = ''; } $contact_name = nullable_htmlentities($row['contact_name']); if ($contact_name) { $contact_name_display = "$contact_name $contact_archive_display"; } else { $contact_name_display = "-"; } $location_name = nullable_htmlentities($row['location_name']); if (empty($location_name)) { $location_name = "-"; } $location_archived_at = nullable_htmlentities($row['location_archived_at']); if ($location_archived_at) { $location_name_display = "
$location_name
"; } else { $location_name_display = $location_name; } $sql_credentials = mysqli_query($mysqli, "SELECT * FROM credentials WHERE credential_asset_id = $asset_id"); $credential_count = mysqli_num_rows($sql_credentials); // Tags $asset_tag_name_display_array = array(); $asset_tag_id_array = array(); $sql_asset_tags = mysqli_query($mysqli, "SELECT * FROM asset_tags LEFT JOIN tags ON asset_tag_tag_id = tag_id WHERE asset_tag_asset_id = $asset_id ORDER BY tag_name ASC"); while ($row = mysqli_fetch_assoc($sql_asset_tags)) { $asset_tag_id = intval($row['tag_id']); $asset_tag_name = nullable_htmlentities($row['tag_name']); $asset_tag_color = nullable_htmlentities($row['tag_color']); if (empty($asset_tag_color)) { $asset_tag_color = "dark"; } $asset_tag_icon = nullable_htmlentities($row['tag_icon']); if (empty($asset_tag_icon)) { $asset_tag_icon = "tag"; } $asset_tag_id_array[] = $asset_tag_id; $asset_tag_name_display_array[] = "$asset_tag_name"; } $asset_tags_display = implode('', $asset_tag_name_display_array); ?>
Name Type Model Serial OS IP MAC Address Purchase Date Install Date Warranty Expire Assigned To Location Status Client Action
"; } ?>