Adding stats to list invoice pages.
$accounts = false;
$haveInvoices = false;
$filterAccounts = '';
+ $totalInvoices = false;
// For lockedToMember
$lockedToMember = false;
$this->line_items_post = true;
$invoicesResult = $this->getList($where, $orderBy, true, 'id', $start, $limit);
// echo '<pre>$invoicesResult: ' . print_r( $invoicesResult, true ) . '</pre>';
+ $totalInvoices = $this->getStats();
$this->line_items_post = false;
// Get paging results
'haveInvoices' => $haveInvoices,
'accounts' => $accounts,
'filterAccounts' => $filterAccounts,
+ 'totalInvoices' => $totalInvoices,
);
// echo '<pre>$templateData: ' . print_r( $templateData, true ) . '</pre>';
$invoices = false;
$fromMemberMenu = false;
$filterAccounts = '';
+ $totalInvoices = false;
// Get any provided option
if (isset($_REQUEST['option'])) {
$this->line_items_post = true;
$invoicesResult = $this->getList($where, $orderBy, true, 'id', $start, $limit);
// echo '<pre>$invoicesResult: ' . print_r( $invoicesResult, true ) . '</pre>';
+ $totalInvoices = $this->getStats();
$this->line_items_post = false;
// Get paging results
'toDate' => $toDate,
'fromMemberMenu' => $fromMemberMenu,
'filterAccounts' => $filterAccounts,
+ 'totalInvoices' => $totalInvoices,
);
// Return status, any suggested view, and any data to controller
</div>
<br clear="all">
+ <p>Total found: {$totalInvoices}</p>
+
{if $paging}
<input type="Submit" name="pageSelect" value="Previous {$limit} Invoices" class="button button-secondary glm-button"{if !$prevStart} disabled{/if}>
<input type="Submit" name="pageSelect" value="Next {$limit} Invoices" class="button button-secondary glm-button"{if !$nextStart} disabled{/if}>
{/if}
<br clear="all">
+
<table class="wp-list-table widefat fixed posts glm-admin-table">
<thead>
<tr>