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 @@ + +
+
+

Services

+
+ +
+
+ +
+ +
+ + +
+ +
+ +
+
+
+
+ +
+ + "> + + + + + + + + + + + $service_importance"; + }elseif($service_importance == "Medium"){ + $service_importance_display = "$service_importance"; + }elseif($service_importance == "Low"){ + $service_importance_display = "$service_importance"; + }else{ + $service_importance_display = "-"; + } + + ?> + + + + + + + + + + + + + + + +
NameCategoryUpdatedImportanceAction
+ +
+
+
+
+ + \ No newline at end of file diff --git a/client_side_nav.php b/client_side_nav.php index 9c47c355..25b08d79 100644 --- a/client_side_nav.php +++ b/client_side_nav.php @@ -141,6 +141,19 @@ + + "; +// } +// } +// +// // Showing explicitly linked URLs +// while($row = mysqli_fetch_array($sql_urls)){ +// if(!empty($row['service_uri'])){ +// echo "
  • $row[service_uri]
  • "; +// } +// } +// ?> + + + + + + + + + + + + + + + + 0){ ?> +
    Documents
    + + + + + + + + + + + + + + \ No newline at end of file