From 1b567ee253fa68f71adabb1ac904b94ebc93bbdb Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sun, 31 Dec 2023 12:49:58 +0000 Subject: [PATCH] Add multi-select to networks, certificates and domains. Fix multi-select count bug --- client_certificates.php | 3 +- client_domains.php | 162 +++++++++++++++----------- client_networks.php | 250 ++++++++++++++++++++++------------------ js/multi_actions.js | 10 +- post/certificate.php | 7 +- post/domain.php | 30 +++++ post/network.php | 30 +++++ scheduled_tickets.php | 6 +- 8 files changed, 313 insertions(+), 185 deletions(-) diff --git a/client_certificates.php b/client_certificates.php index 51adf31d..e3bdec79 100644 --- a/client_certificates.php +++ b/client_certificates.php @@ -78,7 +78,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- +
Name @@ -104,6 +104,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
+
diff --git a/client_domains.php b/client_domains.php index c6a027cf..c86f16c4 100644 --- a/client_domains.php +++ b/client_domains.php @@ -52,88 +52,116 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
+
+
- - "> - - - - - - - - - - + - $sql_domain_webhost = mysqli_query($mysqli, "SELECT vendor_name FROM vendors WHERE vendor_id = $domain_webhost"); - $row = mysqli_fetch_array($sql_domain_webhost); - $domain_webhost_name = "-"; - if ($row) { - $domain_webhost_name = nullable_htmlentities($row['vendor_name']); - } - - ?> +
DomainRegistrarWeb HostExpiresAction
+ "> - - - - - + + + + + - + + - -
)" data-target="#editDomainModal"> - +
+
DomainRegistrarWeb HostExpiresAction
+ while ($row = mysqli_fetch_array($sql)) { + $domain_id = intval($row['domain_id']); + $domain_name = nullable_htmlentities($row['domain_name']); + $domain_registrar = intval($row['domain_registrar']); + $domain_webhost = intval($row['domain_webhost']); + $domain_expire = nullable_htmlentities($row['domain_expire']); + $domain_registrar_name = nullable_htmlentities($row['vendor_name']); + $domain_created_at = nullable_htmlentities($row['domain_created_at']); + if (empty($domain_registrar_name)) { + $domain_registrar_name = "-"; + } + + $sql_domain_webhost = mysqli_query($mysqli, "SELECT vendor_name FROM vendors WHERE vendor_id = $domain_webhost"); + $row = mysqli_fetch_array($sql_domain_webhost); + $domain_webhost_name = "-"; + if ($row) { + $domain_webhost_name = nullable_htmlentities($row['vendor_name']); + } + + ?> + + +
+ + +
+ + )" data-target="#editDomainModal"> + + + + + + + + + + + + + +
+ ?> - -require_once "footer.php"; + + + + -
-
-

Networks

-
-
- - - @@ -79,7 +79,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
- +
Client