mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-30 15:20:36 +00:00
54 lines
1.1 KiB
PHP
54 lines
1.1 KiB
PHP
<?php
|
|
|
|
$list = getdbolist('db_accounts', "coinid!=6 and (balance or last_login>UNIX_TIMESTAMP()-60*60) order by last_login desc limit 50");
|
|
|
|
echo "<br><table class='dataGrid'>";
|
|
echo "<thead>";
|
|
echo "<tr>";
|
|
echo "<th width=20></th>";
|
|
echo "<th>Coin</th>";
|
|
echo "<th>Address</th>";
|
|
echo "<th>Last</th>";
|
|
echo "<th align=right>Pool</th>";
|
|
echo "<th align=right>User</th>";
|
|
echo "</tr>";
|
|
echo "</thead><tbody>";
|
|
|
|
foreach($list as $user)
|
|
{
|
|
$coin = getdbo('db_coins', $user->coinid);
|
|
$balance = bitcoinvaluetoa($user->balance);
|
|
$d = datetoa2($user->last_login);
|
|
|
|
echo "<tr class='ssrow'>";
|
|
|
|
if($coin) {
|
|
$coinbalance = bitcoinvaluetoa($coin->balance);
|
|
echo "<td><img width=16 src='$coin->image'></td>";
|
|
echo "<td><b><a href='/site/coin?id=$coin->id'>$coin->name</a></b> ($coin->symbol_show)</td>";
|
|
} else {
|
|
$coinbalance = '';
|
|
echo "<td></td>";
|
|
echo "<td></td>";
|
|
}
|
|
|
|
echo "<td><a href='/?address=$user->username'><b>$user->username</b></a></td>";
|
|
echo "<td>$d</td>";
|
|
|
|
echo "<td align=right>$coinbalance</td>";
|
|
echo "<td align=right>$balance</td>";
|
|
echo "</tr>";
|
|
}
|
|
|
|
echo "</tbody></table>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|