diff --git a/public/include/classes/transaction.class.php b/public/include/classes/transaction.class.php index 2d4431a9..7758f4cf 100644 --- a/public/include/classes/transaction.class.php +++ b/public/include/classes/transaction.class.php @@ -111,7 +111,9 @@ class Transaction { case 'status': switch ($value) { case 'Confirmed': - if ($filter['type'] != 'Credit_PPS' && $filter['type'] != 'Fee_PPS' && $filter['type'] != $filter['Donation_PPS']) $aFilter[] = "b.confirmations >= " . $this->config['confirmations']; + if (empty($filter['type']) || ($filter['type'] != 'Credit_PPS' && $filter['type'] != 'Fee_PPS' && $filter['type'] != 'Donation_PPS')) { + $aFilter[] = "b.confirmations >= " . $this->config['confirmations']; + } break; case 'Unconfirmed': $aFilter[] = "b.confirmations < " . $this->config['confirmations'] . " AND b.confirmations >= 0"; diff --git a/public/include/pages/admin/transactions.inc.php b/public/include/pages/admin/transactions.inc.php index 6089858a..f106de26 100644 --- a/public/include/pages/admin/transactions.inc.php +++ b/public/include/pages/admin/transactions.inc.php @@ -25,5 +25,14 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { $debug->append('Using cached page', 3); } +// Gernerate the GET URL for filters +if (isset($_REQUEST['filter'])) { + $strFilters = ''; + foreach (@$_REQUEST['filter'] as $filter => $value) { + $filter = "filter[$filter]"; + $strFilters .= "&$filter=$value"; + } + $smarty->assign('FILTERS', $strFilters); +} $smarty->assign('CONTENT', 'default.tpl'); ?> diff --git a/public/templates/mmcFE/admin/transactions/default.tpl b/public/templates/mmcFE/admin/transactions/default.tpl index 7141b5b1..8014cf09 100644 --- a/public/templates/mmcFE/admin/transactions/default.tpl +++ b/public/templates/mmcFE/admin/transactions/default.tpl @@ -4,8 +4,8 @@ {if $COUNTTRANSACTIONS / $LIMIT > 1} - {if $smarty.request.start > 0} - + {if $smarty.request.start|default:"0" > 0} + {else} {/if} @@ -13,8 +13,8 @@ {if $COUNTTRANSACTIONS / $LIMIT > 1} - {if $COUNTTRANSACTIONS - $smarty.request.start - $LIMIT > 0} - + {if $COUNTTRANSACTIONS - $smarty.request.start|default:"0" - $LIMIT > 0} + {else} {/if} @@ -25,20 +25,20 @@ - Type - {html_options name="filter[type]" options=$TRANSACTIONTYPES selected=$smarty.request.filter.type} + TX Type + {html_options name="filter[type]" options=$TRANSACTIONTYPES selected=$smarty.request.filter.type|default:""} - Status - {html_options name="filter[status]" options=$TXSTATUS selected=$smarty.request.filter.status} + TX Status + {html_options name="filter[status]" options=$TXSTATUS selected=$smarty.request.filter.status|default:""} Account - + Address - + @@ -77,7 +77,7 @@ $TRANSACTIONS[transaction].type == 'Donation_PPS' OR $TRANSACTIONS[transaction].type == 'Debit_MP' OR $TRANSACTIONS[transaction].type == 'Debit_AP' OR - $TRANSACTIONS[transaction].confirmations > $GLOBAL.confirmations + $TRANSACTIONS[transaction].confirmations >= $GLOBAL.confirmations }Confirmed {else if $TRANSACTIONS[transaction].confirmations == -1}Orphaned {else}Unconfirmed{/if}