From 5ee2a4cd08a6ef4cd25786006535c38680139f4e Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Thu, 2 Feb 2023 16:10:27 +0000 Subject: [PATCH] Convert to 4 spaces; General tidy --- client_files.php | 140 +++++++++---------- client_overview.php | 328 ++++++++++++++++++++++---------------------- 2 files changed, 233 insertions(+), 235 deletions(-) diff --git a/client_files.php b/client_files.php index 0636b810..bdc2b3b3 100644 --- a/client_files.php +++ b/client_files.php @@ -8,99 +8,99 @@ $num_of_files = mysqli_num_rows($sql_files_images) + mysqli_num_rows($sql_files_ ?> -
-
-

Files

-
- +
+
+

Files

+
+ +
-
-
- -

No Records Here

"; - } - - ?> - -
+

No Records Here

"; + } - ?> + ?> -
- -
+
- +
- + + + + + + - - - - - - + - 0) { ?> -
+
-
-
-
Important Contacts
-
-
-
" target="_blank" class="text-secondary"> + " download="" class="text-secondary float-left ml-1"> + )" class="text-secondary float-left ml-1"> + +
" target="_blank" class="text-secondary"> - " download="" class="text-secondary float-left ml-1"> - )" class="text-secondary float-left ml-1"> - -
- - - - - +
+
+
Important Contacts
+
+
+
- -
- -
- - $contact_phone $contact_extension"; ?> - - -
-
- -
-
+ while ($row = mysqli_fetch_array($sql_important_contacts)) { + $contact_id = $row['contact_id']; + $contact_name = htmlentities($row['contact_name']); + $contact_title = htmlentities($row['contact_title']); + $contact_email = htmlentities($row['contact_email']); + $contact_phone = formatPhoneNumber($row['contact_phone']); + $contact_extension = htmlentities($row['contact_extension']); + $contact_mobile = formatPhoneNumber($row['contact_mobile']); + + ?> + + + +
+ + + + + $contact_phone $contact_extension"; ?> + + +
+
+ + + + + + +
-
0 || mysqli_num_rows($sql_vendors) > 0) { ?> -
+
-
-
-
Recently Updated
-
-
+
+
+
Recently Updated
+
+
- -

- - -

- +

+ + +

+ -

- - -

- + +

+ + +

+ + +
-
- 0 - || mysqli_num_rows($sql_asset_warranties_expiring) > 0 - || mysqli_num_rows($sql_asset_retire) > 0 + 0 + || mysqli_num_rows($sql_asset_warranties_expiring) > 0 + || mysqli_num_rows($sql_asset_retire) > 0 ) { ?> - -
-
-
-
Upcoming Expirations
-
-
- - -

- - - -- -

- - - -

- - - -- -

+
+
+
+
Upcoming Expirations
+
+
- +

+ + + -- +

+ -

- - - -- -

+ while ($row = mysqli_fetch_array($sql_asset_warranties_expiring)) { + $asset_id = $row['asset_id']; + $asset_name = htmlentities($row['asset_name']); + $asset_warranty_expire = $row['asset_warranty_expire']; + + ?> +

+ + + -- +

+ + + + + +

+ + + -- +

+ + + +
-
0) { ?> - + -
+
-
-
-
Stale Tickets (14d)
-
-
- - - - - - - - - +
+
+
Stale Tickets (14d)
+
+
+
+ - -
+ while ($row = mysqli_fetch_array($sql_tickets_stale)) { + $ticket_id = $row['ticket_id']; + $ticket_prefix = htmlentities($row['ticket_prefix']); + $ticket_number = $row['ticket_number']; + $ticket_subject = htmlentities($row['ticket_subject']); + $ticket_created_at = $row['ticket_created_at']; + + ?> + + + + + + + + + + +
-
@@ -276,6 +276,4 @@ $sql_domains_expiring = mysqli_query($mysqli, "SELECT * FROM domains +require_once("footer.php");