diff --git a/client.php b/client.php index ed45eb05..1dba52ec 100644 --- a/client.php +++ b/client.php @@ -99,6 +99,9 @@ if(isset($_GET['client_id'])){ $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('ticket_id') AS num FROM tickets WHERE ticket_archived_at IS NULL AND ticket_status = 'Open' AND ticket_client_id = $client_id")); $num_open_tickets = $row['num']; + + $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('service_id') AS num FROM services WHERE service_client_id = $client_id")); + $num_services = $row['num']; $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('vendor_id') AS num FROM vendors WHERE vendor_archived_at IS NULL AND vendor_client_id = $client_id")); $num_vendors = $row['num']; diff --git a/client_routes.php b/client_routes.php index 0b5ac1ce..831e6b2a 100644 --- a/client_routes.php +++ b/client_routes.php @@ -58,6 +58,9 @@ if(isset($_GET['tab'])){ elseif($_GET['tab'] == "documents"){ include("client_documents.php"); } + elseif($_GET['tab'] == "services"){ + include("client_services.php"); + } } else{ include("client_overview.php"); diff --git a/client_services.php b/client_services.php new file mode 100644 index 00000000..afd6e7a0 --- /dev/null +++ b/client_services.php @@ -0,0 +1,160 @@ + +
| Name | +Category | +Updated | +Importance | + +Action | +
|---|---|---|---|---|
| + | + | + | + + + |
+
+
+
+
+ |
+
+ Services + 0){ ?> + + +
+ +