* Removed unneeded template icons * Added new icon font * Added icons to navbard * Added full admin features Updates #444
116 lines
4.9 KiB
Smarty
116 lines
4.9 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>
|
|
<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>
|
|
</tr>
|
|
<tr>
|
|
<td align="left">Type</td>
|
|
<td align="left">{html_options name="filter[type]" options=$TRANSACTIONTYPES selected=$smarty.request.filter.type|default:""}</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left">Status</td>
|
|
<td align="left">{html_options name="filter[status]" options=$TXSTATUS selected=$smarty.request.filter.status|default:""}</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left">Account</td>
|
|
<td align="left"><input size="20" type="text" name="filter[account]" value="{$smarty.request.filter.account|default:""}" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left">Address</td>
|
|
<td align="left"><input size="20" type="text" name="filter[address]" value="{$smarty.request.filter.address|default:""}" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<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 >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>
|
|
{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
|
|
}<font color="green">Confirmed</font>
|
|
{else if $TRANSACTIONS[transaction].confirmations == -1}<font color="red">Orphaned</font>
|
|
{else}<font color="orange">Unconfirmed</font>{/if}
|
|
<font size="1px">({$TRANSACTIONS[transaction].confirmations|default:"n/a"})</font>
|
|
</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>
|