From: Steve Sutton Date: Thu, 1 Aug 2019 20:33:57 +0000 (-0400) Subject: Updating search forms for payment and invoice page. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f9dcd672440545d83661d285321154ab6c1e68c9;p=WP-Plugins%2Fglm-member-db-billing.git Updating search forms for payment and invoice page. Also updating member contact login view. --- diff --git a/models/admin/billing/payments.php b/models/admin/billing/payments.php index fdcf44f..e84a14f 100644 --- a/models/admin/billing/payments.php +++ b/models/admin/billing/payments.php @@ -231,6 +231,8 @@ class GlmMembersAdmin_billing_payments extends GlmDataPayments $where = 'true'; $where_params = array( 'true' ); + // echo '
$_REQUEST: ' . print_r( $_REQUEST, true ) . '
'; + // Check if we're doing paging if (isset($_REQUEST['pageSelect'])) { // If request is for Next @@ -250,7 +252,7 @@ class GlmMembersAdmin_billing_payments extends GlmDataPayments // Get any search parameters. $reg_options = array( 'options' => array( - 'regexp' => '%[0-9]{2}/[0-9]{2}/[0-9]{4}%' + 'regexp' => '%[0-9]{4}-[0-9]{2}-[0-9]{2}%' ) ); if ( isset( $_REQUEST['fromDate'] ) && $_REQUEST['fromDate'] diff --git a/views/admin/billing/invoices.html b/views/admin/billing/invoices.html index 1ee10ab..48d6f19 100644 --- a/views/admin/billing/invoices.html +++ b/views/admin/billing/invoices.html @@ -36,31 +36,6 @@ Search Invoices
-
-
- {* From Date *} - {$ui = [ - 'value' => $fromDate|default:'', - 'field' => 'fromDate', - 'label' => 'From Date', - 'required' => false, - 'errorText' => 'From Date is Required', - 'dataError' => '' - ]} - {include file='ui/f6/date.html'} - - {* To Date *} - {$ui = [ - 'value' => $toDate|default:'', - 'field' => 'toDate', - 'label' => 'To Date', - 'required' => false, - 'errorText' => 'To Date is Required', - 'dataError' => '' - ]} - {include file='ui/f6/date.html'} -
-
@@ -93,6 +68,31 @@ {include file='ui/f6/text.html'}
+
+
+ {* From Date *} + {$ui = [ + 'value' => $fromDate|default:'', + 'field' => 'fromDate', + 'label' => 'From Date', + 'required' => false, + 'errorText' => 'From Date is Required', + 'dataError' => '' + ]} + {include file='ui/f6/date.html'} + + {* To Date *} + {$ui = [ + 'value' => $toDate|default:'', + 'field' => 'toDate', + 'label' => 'To Date', + 'required' => false, + 'errorText' => 'To Date is Required', + 'dataError' => '' + ]} + {include file='ui/f6/date.html'} +
+
{* Show only Unpaid Invoices *} @@ -176,19 +176,19 @@ data-account="{$t.account.value}" data-member_name="{$t.member_name}" >Send Invoice | - {if $billing_settings.uptravel_payment_form} + {* if $billing_settings.uptravel_payment_form *} Make A Payment | - {else} + {* else} Pay Invoice | - {/if} + {/if *} {/if}