From 2b63681023de652928db528ae40d87856f66c09d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 Mar 2019 16:34:50 -0400 Subject: [PATCH] Add CRUD for Client Domain Names --- add_client_domain_modal.php | 60 ++++++++++++++++++++++++++++++++++++ client.php | 8 +++-- client_domains.php | 51 ++++++++++++++++++++++++++++++ client_nav.php | 6 ++++ client_routes.php | 3 ++ edit_client_domain.php | 60 ++++++++++++++++++++++++++++++++++++ edit_client_domain_modal.php | 60 ++++++++++++++++++++++++++++++++++++ post.php | 43 ++++++++++++++++++++++++++ 8 files changed, 289 insertions(+), 2 deletions(-) create mode 100644 add_client_domain_modal.php create mode 100644 client_domains.php create mode 100644 edit_client_domain.php create mode 100644 edit_client_domain_modal.php diff --git a/add_client_domain_modal.php b/add_client_domain_modal.php new file mode 100644 index 00000000..82d0b152 --- /dev/null +++ b/add_client_domain_modal.php @@ -0,0 +1,60 @@ + \ No newline at end of file diff --git a/client.php b/client.php index 57f69b0a..cc5f7f3e 100644 --- a/client.php +++ b/client.php @@ -34,6 +34,8 @@ if(isset($_GET['client_id'])){ $num_logins = $row['num']; $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('client_network_id') AS num FROM client_networks WHERE client_id = $client_id")); $num_networks = $row['num']; + $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('client_domain_id') AS num FROM client_domains WHERE client_id = $client_id")); + $num_domains = $row['num']; $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('invoice_id') AS num FROM invoices WHERE client_id = $client_id")); $num_invoices = $row['num']; $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('client_note_id') AS num FROM client_notes WHERE client_id = $client_id")); @@ -56,13 +58,14 @@ if(isset($_GET['client_id'])){ New Vendor New Login New Network + New Domain New Invoice New Quote New Attachment New Note - Edit - Delete + Edit + Delete @@ -88,6 +91,7 @@ if(isset($_GET['client_id'])){ + diff --git a/client_domains.php b/client_domains.php new file mode 100644 index 00000000..436fe75b --- /dev/null +++ b/client_domains.php @@ -0,0 +1,51 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
DomainRegistrarExpireServerActions
+ +
+
\ No newline at end of file diff --git a/client_nav.php b/client_nav.php index 2cd68850..e4322623 100644 --- a/client_nav.php +++ b/client_nav.php @@ -38,6 +38,12 @@ +