From: Chuck Scott Date: Mon, 8 Apr 2019 17:59:01 +0000 (-0400) Subject: Export Attendees now respecting Text and Date searches. X-Git-Tag: v1.4.1^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=7f9a089967fc8d3ed416cb330d7166c2cc6731c9;p=WP-Plugins%2Fglm-member-db-registrations.git Export Attendees now respecting Text and Date searches. --- diff --git a/models/admin/ajax/registrantsListExport.php b/models/admin/ajax/registrantsListExport.php index dfb3466..6ae0579 100644 --- a/models/admin/ajax/registrantsListExport.php +++ b/models/admin/ajax/registrantsListExport.php @@ -108,6 +108,7 @@ class GlmMembersAdmin_ajax_registrantsListExport extends GlmDataRegistrationsReq $limit = 20; // Set to the number of listings per page $namesList = false; $customFieldHeaders = false; + $selectedTime = false; // Check selected fields $select = array( @@ -199,6 +200,14 @@ class GlmMembersAdmin_ajax_registrantsListExport extends GlmDataRegistrationsReq $textSearch = stripslashes($textSearch); } + // Filter for specific time + if (isset($_REQUEST['time'])) { + $selectedTime = filter_var( $_REQUEST['time'], FILTER_VALIDATE_INT); + } + if ($selectedTime) { + $whereParts[] = "T.reg_time = $selectedTime"; + } + // Get list of all registrants for this event $where = implode(' AND ', $whereParts); diff --git a/views/admin/registrations/eventRegistrants.html b/views/admin/registrations/eventRegistrants.html index 45b6bab..1075b11 100755 --- a/views/admin/registrations/eventRegistrants.html +++ b/views/admin/registrations/eventRegistrants.html @@ -183,11 +183,25 @@ - - + + {if $haveTimes} + + + + + {/if}
Name Search:
Time Selected + +
Request Status: