{include file="header.tpl"}

<h3>{t}Top Traffic{/t}</h3>

<table class="top_traffic list">
<tr>
 <th>{t}Rank{/t}</th>
 <th>{t}Program{/t}</th>
 <th>{t}Status{/t}</th>
 <th>{t}Last Payout{/t}</th>
 <th>{t}Today Hosts{/t}</th>
 <th>{t}Today Hits{/t}</th>
 <th>{t}Yesterday Hosts{/t}</th>
 <th>{t}Yesterday Hits{/t}</th>
 <th>{t}Trend{/t}</th>
</tr>
{foreach from=$top_traffic item=l name=i}
<tr class="{cycle values="row1,row2"}">
 <td>#{$smarty.foreach.i.iteration}</td>
 <td><a href="{"?a=details&lid=`$l.id`"|encurl}">{$l.name|escape:html}</a></td>
 <td>{if $l.hyip_status == 1}Paying
{elseif $l.hyip_status == 2}Waiting
{elseif $l.hyip_status == 3}Problem
{elseif $l.hyip_status == 4}Not Paying
{elseif $l.hyip_status == 5}Not Monitored{/if}
 </td>
 <td>{$l.last_payout|default:"n/a"}</td>
 <td align=center>{$l.today_hosts}</td>
 <td align=center>{$l.today_hits}</td>
 <td align=center>{$l.yesterday_hosts}</td>
 <td align=center>{$l.yesterday_hits}</td>
 <td align=center>{$l.trend}</td>
</tr>
{foreachelse}
<tr>
 <td colspan=9 align=center>{t}No stats{/t}</td>
</tr>
{/foreach}
</table>

{include file="footer.tpl"}
