php-mpos/public/templates/test/statistics/pool/contributors_shares.tpl
2013-09-09 07:46:36 +02:00

31 lines
1.2 KiB
Smarty

<article class="module width_half" style="min-height: 350px;">
<header><h3>Contributor Shares</h3></header>
<table class="tablesorter" cellspacing="0">
<thead>
<tr>
<th align="center">Rank</th>
<th>User Name</th>
<th align="right" style="padding-right: 25px;">Shares</th>
</tr>
</thead>
<tbody>
{assign var=rank value=1}
{assign var=listed value=0}
{section shares $CONTRIBSHARES}
<tr{if $GLOBAL.userdata.username|default:"" == $CONTRIBSHARES[shares].account}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
<td align="center">{$rank++}</td>
<td>{if $CONTRIBSHARES[shares].is_anonymous|default:"0" == 1}anonymous{else}{$CONTRIBSHARES[shares].account|escape}{/if}</td>
<td align="right" style="padding-right: 25px;">{$CONTRIBSHARES[shares].shares|number_format}</td>
</tr>
{/section}
{if $listed != 1 && $GLOBAL.userdata.username|default:""}
<tr>
<td align="center">n/a</td>
<td>{$GLOBAL.userdata.username|escape}</td>
<td align="right" style="padding-right: 25px;">{$GLOBAL.userdata.shares.valid|number_format}</td>
</tr>
{/if}
</tbody>
</table>
</article>