diff --git a/client_contact_details.php b/client_contact_details.php index eabe6741..1599b941 100644 --- a/client_contact_details.php +++ b/client_contact_details.php @@ -77,6 +77,14 @@ if (isset($_GET['contact_id'])) { WHERE ticket_contact_id = $contact_id ORDER BY ticket_id DESC"); $ticket_count = mysqli_num_rows($sql_related_tickets); + // Related Recurring Tickets Query + $sql_related_recurring_tickets = mysqli_query($mysqli, "SELECT * FROM scheduled_tickets + WHERE scheduled_ticket_contact_id = $contact_id + ORDER BY scheduled_ticket_next_run DESC" + ); + $recurring_ticket_count = mysqli_num_rows($sql_related_recurring_tickets); + + // Tags - many to many relationship $contact_tag_name_display_array = array(); $contact_tag_id_array = array(); @@ -237,6 +245,10 @@ if (isset($_GET['contact_id'])) { New Ticket + + New Recurring Ticket + + New Note @@ -633,6 +645,71 @@ if (isset($_GET['contact_id'])) { +
"> +
+

Recurring Tickets

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
SubjectPriorityFrequencyNext Run
+ +
+
+
+
+
">

Related Tickets

@@ -1044,6 +1121,8 @@ if (isset($_GET['contact_id'])) { }); + +