php-mpos/public/templates/test/admin/transactions/default.tpl
2013-09-12 18:31:48 +02:00

116 lines
4.8 KiB
Smarty

<article class="module width_full">
<header><h3>Transaction Summary</h3></header>
<table class="tablesorter" cellspacing="0">
<thead>
<tr>
{foreach $SUMMARY as $type=>$total}
<th>{$type}</th>
{/foreach}
</tr>
</thead>
<tbody>
<tr>
{foreach $SUMMARY as $type=>$total}
<td class="right">{$total}</td>
{/foreach}
</tr>
</tbody>
</table>
</article>
<article class="module width_quarter">
<header><h3>Transaction Filter</h3></header>
<div class="module_content">
<form action="{$smarty.server.PHP_SELF}">
<input type="hidden" name="page" value="{$smarty.request.page}" />
<input type="hidden" name="action" value="{$smarty.request.action}" />
<table cellspacing="0" class="tablesorter">
<tbody>
<tr>
{if $COUNTTRANSACTIONS / $LIMIT > 1}
<td align="left">
{if $smarty.request.start|default:"0" > 0}
<a href="{$smarty.server.PHP_SELF}?page={$smarty.request.page}&action={$smarty.request.action}&start={$smarty.request.start|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-left-open"></i></a>
{else}
<i class="icon-left-open"></i>
{/if}
</td>
<td align="right">
{if $COUNTTRANSACTIONS - $smarty.request.start|default:"0" - $LIMIT > 0}
<a href="{$smarty.server.PHP_SELF}?page={$smarty.request.page}&action={$smarty.request.action}&start={$smarty.request.start|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-right-open"></i></a>
{else}
<i class="icon-right-open"></i>
{/if}
{/if}
</td>
</tbody>
</table>
<fieldset>
<label>Type</label>
{html_options name="filter[type]" options=$TRANSACTIONTYPES selected=$smarty.request.filter.type|default:""}
</fieldset>
<fieldset>
<label>Status</label>
{html_options name="filter[status]" options=$TXSTATUS selected=$smarty.request.filter.status|default:""}
</fieldset>
<fieldset>
<label>Account</label>
<input size="20" type="text" name="filter[address]" value="{$smarty.request.filter.address|default:""}" />
</fieldset>
<fieldset>
<label>Address</label>
<input size="20" type="text" name="filter[address]" value="{$smarty.request.filter.address|default:""}" />
</fieldset>
</div>
<footer>
<div class="submit_link">
<input type="submit" value="Filter" class="alt_btn">
</div>
</footer>
</form>
</article>
<article class="module width_3_quarter">
<header><h3>Transaction History</h3></header>
<table cellspacing="0" class="tablesorter" width="100%">
<thead>
<tr>
<th align="center">TX #</th>
<th >Account</th>
<th >Date</th>
<th >TX Type</th>
<th align="center">Status</th>
<th >Payment Address</th>
<th >Block #</th>
<th >Amount</th>
</tr>
</thead>
<tbody style="font-size:12px;">
{section transaction $TRANSACTIONS}
<tr class="{cycle values="odd,even"}">
<td align="center">{$TRANSACTIONS[transaction].id}</td>
<td>{$TRANSACTIONS[transaction].username}</td>
<td>{$TRANSACTIONS[transaction].timestamp}</td>
<td>{$TRANSACTIONS[transaction].type}</td>
<td align="center">
{if $TRANSACTIONS[transaction].type == 'Credit_PPS' OR
$TRANSACTIONS[transaction].type == 'Fee_PPS' OR
$TRANSACTIONS[transaction].type == 'Donation_PPS' OR
$TRANSACTIONS[transaction].type == 'Debit_MP' OR
$TRANSACTIONS[transaction].type == 'Debit_AP' OR
$TRANSACTIONS[transaction].type == 'TXFee' OR
$TRANSACTIONS[transaction].confirmations >= $GLOBAL.confirmations
}<span class="confirmed">Confirmed</span>
{else if $TRANSACTIONS[transaction].confirmations == -1}<span class="orphan">Orphaned</span>
{else}<span class="unconfirmed">Unconfirmed</span>{/if}
</td>
<td>{$TRANSACTIONS[transaction].coin_address}</td>
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}{if $GLOBAL.website.blockexplorer.url}<a href="{$GLOBAL.website.blockexplorer.url}{$TRANSACTIONS[transaction].blockhash}">{$TRANSACTIONS[transaction].height}</a>{else}{$TRANSACTIONS[transaction].height}{/if}{/if}</td>
<td><font color="{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Credit_PPS' or $TRANSACTIONS[transaction].type == 'Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
</tr>
{/section}
</tbody>
</table>
<footer><font size="1"><b>Credit_AP</b> = Auto Threshold Payment, <b>Credit_MP</b> = Manual Payment, <b>Donation</b> = Donation, <b>Fee</b> = Pool Fees (if applicable)</font></footer>
</article>