diff --git a/client.php b/client.php index 663d03a7..506e889c 100644 --- a/client.php +++ b/client.php @@ -96,6 +96,12 @@ if(isset($_GET['client_id'])){ $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('note_id') AS num FROM notes WHERE client_id = $client_id")); $num_notes = $row['num']; + $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('event_id') AS num FROM events WHERE client_id = $client_id")); + $num_events = $row['num']; + + $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('trip_id') AS num FROM trips WHERE client_id = $client_id")); + $num_trips = $row['num']; + ?> diff --git a/client_add_calendar_event_modal.php b/client_add_calendar_event_modal.php new file mode 100644 index 00000000..d5f08985 --- /dev/null +++ b/client_add_calendar_event_modal.php @@ -0,0 +1,80 @@ + \ No newline at end of file diff --git a/client_add_trip_copy_modal.php b/client_add_trip_copy_modal.php new file mode 100644 index 00000000..51679116 --- /dev/null +++ b/client_add_trip_copy_modal.php @@ -0,0 +1,75 @@ + \ No newline at end of file diff --git a/client_add_trip_modal.php b/client_add_trip_modal.php new file mode 100644 index 00000000..8c543591 --- /dev/null +++ b/client_add_trip_modal.php @@ -0,0 +1,69 @@ + \ No newline at end of file diff --git a/client_edit_calendar_event_modal.php b/client_edit_calendar_event_modal.php new file mode 100644 index 00000000..65d67921 --- /dev/null +++ b/client_edit_calendar_event_modal.php @@ -0,0 +1,80 @@ + \ No newline at end of file diff --git a/client_edit_trip_modal.php b/client_edit_trip_modal.php new file mode 100644 index 00000000..1f7a0757 --- /dev/null +++ b/client_edit_trip_modal.php @@ -0,0 +1,76 @@ + \ No newline at end of file diff --git a/client_events.php b/client_events.php index a73067f5..a4e35cc0 100644 --- a/client_events.php +++ b/client_events.php @@ -1,5 +1,3 @@ - - -
+
+
+
- - + + - +