From a66e2c7e337edc2b76e634300a239c8040592dc6 Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Thu, 21 Nov 2019 21:23:34 -0500 Subject: [PATCH] Top Search bar now searches clients, added events and trips to client details, started adding trims to trim whitespace on beginning and end of some inputs --- client.php | 6 ++ client_add_calendar_event_modal.php | 80 ++++++++++++++ client_add_trip_copy_modal.php | 75 +++++++++++++ client_add_trip_modal.php | 69 ++++++++++++ client_edit_calendar_event_modal.php | 80 ++++++++++++++ client_edit_trip_modal.php | 76 +++++++++++++ client_events.php | 61 +++++++---- client_routes.php | 6 ++ client_side_nav.php | 26 +++++ client_trips.php | 156 +++++++++++++++++++++++++++ invoices.php | 10 ++ side_nav.php | 2 +- top_nav.php | 4 +- 13 files changed, 628 insertions(+), 23 deletions(-) create mode 100644 client_add_calendar_event_modal.php create mode 100644 client_add_trip_copy_modal.php create mode 100644 client_add_trip_modal.php create mode 100644 client_edit_calendar_event_modal.php create mode 100644 client_edit_trip_modal.php create mode 100644 client_trips.php 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 @@ - - -
+
+
+
- - + + - +