diff --git a/client.php b/client.php index befb52ce..effd4e66 100644 --- a/client.php +++ b/client.php @@ -93,6 +93,9 @@ if(isset($_GET['client_id'])){ $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('location_id') AS num FROM locations WHERE location_archived_at IS NULL AND location_client_id = $client_id")); $num_locations = $row['num']; + + $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('department_id') AS num FROM departments WHERE department_archived_at IS NULL AND department_client_id = $client_id")); + $num_departments = $row['num']; $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('asset_id') AS num FROM assets WHERE asset_archived_at IS NULL AND asset_client_id = $client_id")); $num_assets = $row['num']; diff --git a/client_contact_add_modal.php b/client_contact_add_modal.php index 190c207d..8b9c2ec2 100644 --- a/client_contact_add_modal.php +++ b/client_contact_add_modal.php @@ -53,6 +53,30 @@ + +
+ Departments + 0){ ?> + + +
+ +