[FEATURE] show addresses from account
This commit is contained in:
parent
8c1174bcb2
commit
146799d163
@ -11,6 +11,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
||||
$debug->append('No cached version available, fetching from backend', 3);
|
||||
if ($bitcoin->can_connect() === true){
|
||||
$dBalance = $bitcoin->getbalance();
|
||||
$dAddresses = $bitcoin->getaddressesbyaccount('');
|
||||
$aGetInfo = $bitcoin->getinfo();
|
||||
if (is_array($aGetInfo) && array_key_exists('newmint', $aGetInfo)) {
|
||||
$dNewmint = $aGetInfo['newmint'];
|
||||
@ -37,6 +38,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
||||
if (! $dColdCoins = $setting->getValue('wallet_cold_coins')) $dColdCoins = 0;
|
||||
$smarty->assign("UNCONFIRMED", $dBlocksUnconfirmedBalance);
|
||||
$smarty->assign("BALANCE", $dBalance);
|
||||
$smarty->assign("ADDRESSES", $dAddresses);
|
||||
$smarty->assign("COLDCOINS", $dColdCoins);
|
||||
$smarty->assign("LOCKED", $dLockedBalance);
|
||||
$smarty->assign("NEWMINT", $dNewmint);
|
||||
|
||||
@ -46,4 +46,31 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</article>
|
||||
|
||||
<article class="width_half">
|
||||
<!--
|
||||
needed for showing below balance summary, because those modules are pretty dumb and auto-align
|
||||
-->
|
||||
<br /><br /><br /><br /><br /><br />
|
||||
</article>
|
||||
|
||||
<article class="module width_quarter">
|
||||
<header><h3>Addresses assigned to Default Wallet</h3></header>
|
||||
<table class="tablesorter" cellspacing="0">
|
||||
<thead>
|
||||
<th align="center">#</th>
|
||||
<th align="left">Address</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{assign var=rank value=1}
|
||||
{section address $ADDRESSES}
|
||||
<tr>
|
||||
<td align="center">{$rank++}</td>
|
||||
<td align="left" style="padding-right: 25px;">{$ADDRESSES[address]}</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</tbody>
|
||||
</table>
|
||||
</article>
|
||||
@ -0,0 +1,68 @@
|
||||
<article class="module width_quarter">
|
||||
<header><h3>Balance Summary</h3></header>
|
||||
<table width="25%" class="tablesorter" cellspacing="0">
|
||||
<tr>
|
||||
<td align="left">Wallet Balance</td>
|
||||
<td align="left">{$BALANCE|number_format:"8"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Locked for users</td>
|
||||
<td align="left">{$LOCKED|number_format:"8"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Unconfirmed</td>
|
||||
<td align="left">{$UNCONFIRMED|number_format:"8"}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left">Liquid Assets</td>
|
||||
<td align="left">{($BALANCE - $LOCKED)|number_format:"8"}</td>
|
||||
</tr>
|
||||
{if $NEWMINT >= 0}
|
||||
<tr>
|
||||
<td align="left">PoS New Mint</td>
|
||||
<td align="left">{$NEWMINT|number_format:"8"}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</article>
|
||||
|
||||
<article class="module width_3_quarter">
|
||||
<header><h3>Wallet Information</h3></header>
|
||||
<table class="tablesorter" cellspacing="0">
|
||||
<thead>
|
||||
<th align="center">Version</th>
|
||||
<th align="center">Protocol Version</th>
|
||||
<th align="center">Wallet Version</th>
|
||||
<th align="center">Connections</th>
|
||||
<th align="center">Errors</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center">{$COININFO.version|default:""}</td>
|
||||
<td align="center">{$COININFO.protocolversion|default:""}</td>
|
||||
<td align="center">{$COININFO.walletversion|default:""}</td>
|
||||
<td align="center">{$COININFO.connections|default:""}</td>
|
||||
<td align="center"><font color="{if $COININFO.errors}red{else}green{/if}">{$COININFO.errors|default:"OK"}</font></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</article>
|
||||
|
||||
<article class="module width_3_quarter">
|
||||
<header><h3>Wallet Address Information</h3></header>
|
||||
<table class="tablesorter" cellspacing="0">
|
||||
<thead>
|
||||
<th align="center">#</th>
|
||||
<th align="center">Address</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{assign var=rank value=1}
|
||||
{section address $ADDRESSES
|
||||
<tr>
|
||||
<td align="center">#</td>
|
||||
<td align="right" style="padding-right: 25px;">{$ADDRESSES[address]}</td>
|
||||
</tr>
|
||||
{/section}
|
||||
</tbody>
|
||||
</table>
|
||||
</article>
|
||||
Loading…
Reference in New Issue
Block a user