diff --git a/agent/clients.php b/agent/clients.php index a60f5126..60c20ece 100644 --- a/agent/clients.php +++ b/agent/clients.php @@ -92,11 +92,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); @@ -128,7 +130,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- "> Archived @@ -137,38 +139,38 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); Action (0)
-
" id="advancedFilter" @@ -220,10 +222,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
@@ -364,11 +366,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } // Counts - + // Contact Count $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('contact_id') AS num FROM contacts WHERE contact_client_id = $client_id AND contact_archived_at IS NULL")); $contact_count = $row['num']; - if ($contact_count) { + if ($contact_count) { $contact_count_display = "$contact_count"; } else { $contact_count_display = ''; @@ -377,34 +379,34 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); // Vendors Count $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('vendor_id') AS num FROM vendors WHERE vendor_client_id = $client_id AND vendor_archived_at IS NULL")); $vendor_count = $row['num']; - if ($vendor_count) { + if ($vendor_count) { $vendor_count_display = "$vendor_count"; } else { $vendor_count_display = ''; } - + // Asset Count $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('asset_id') AS num FROM assets WHERE asset_client_id = $client_id AND asset_archived_at IS NULL")); $asset_count = $row['num']; - if ($asset_count) { + if ($asset_count) { $asset_count_display = "$asset_count"; } else { $asset_count_display = ''; } - + // Credential Count $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('credential_id') AS num FROM credentials WHERE credential_client_id = $client_id AND credential_archived_at IS NULL")); $credential_count = $row['num']; - if ($credential_count) { + if ($credential_count) { $credential_count_display = "$credential_count"; } else { $credential_count_display = ''; } - + // Software Count $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('software_id') AS num FROM software WHERE software_client_id = $client_id AND software_archived_at IS NULL")); $software_count = $row['num']; - if ($software_count) { + if ($software_count) { $software_count_display = "$software_count"; } else { $software_count_display = ''; @@ -413,7 +415,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); // Ticket Count $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('ticket_id') AS num FROM tickets WHERE ticket_client_id = $client_id AND ticket_archived_at IS NULL")); $ticket_count = $row['num']; - if ($ticket_count) { + if ($ticket_count) { $ticket_count_display = "$ticket_count"; } else { $ticket_count_display = ''; @@ -518,10 +520,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } if (!empty($contact_name)) { ?> -
+ - +
diff --git a/agent/modals/client/client_export.php b/agent/modals/client/client_export.php index 4e1f7589..b13ea0e7 100644 --- a/agent/modals/client/client_export.php +++ b/agent/modals/client/client_export.php @@ -1,20 +1,25 @@ -