35 lines
1.5 KiB
Smarty
35 lines
1.5 KiB
Smarty
{include file="global/block_header.tpl" ALIGN="left" BLOCK_HEADER="Top Hashrate Contributers"}
|
|
<center>
|
|
<table width="100%" border="0" style="font-size:13px;">
|
|
<thead>
|
|
<tr style="background-color:#B6DAFF;">
|
|
<th align="left">Rank</th>
|
|
<th align="left" scope="col">User Name</th>
|
|
<th class="right" scope="col">KH/s</th>
|
|
<th class="right">Ł/Day<font size="1"> (est)</font></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{assign var=rank value=1}
|
|
{assign var=listed value=0}
|
|
{section contrib $CONTRIBHASHES}
|
|
<tr{if $GLOBAL.userdata.username == $CONTRIBHASHES[contrib].account}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
|
|
<td>{$rank++}</td>
|
|
<td>{$CONTRIBHASHES[contrib].account}</td>
|
|
<td class="right">{$CONTRIBHASHES[contrib].hashrate|number_format}</td>
|
|
<td class="right">{math equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24), 3)" diff=$DIFFICULTY reward=$REWARD hashrate=$CONTRIBHASHES[contrib].hashrate}</td>
|
|
</tr>
|
|
{/section}
|
|
{if $listed != 1}
|
|
<tr style="background-color:#99EB99;">
|
|
<td>n/a</td>
|
|
<td>{$GLOBAL.userdata.username}</td>
|
|
<td class="right">{$GLOBAL.userdata.hashrate}</td>
|
|
<td class="right">{math equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24), 3)" diff=$DIFFICULTY reward=$REWARD hashrate=$GLOBAL.userdata.hashrate}</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</center>
|
|
{include file="global/block_footer.tpl"}
|