<h1><a class="pagetitle" href="{$rpage}">{tr}Rankings{/tr}</a></h1>
<form action="{$rpage}" method="post">
<select name="which">
{section name=ix loop=$allrankings}
<option value="{$allrankings[ix].value|escape}" {if $which eq $allrankings[ix].value}selected="selected"{/if}>{$allrankings[ix].name}</option>
{/section}
</select>
<select name="limit">
<option value="10" {if $limit eq 10}selected="selected"{/if}>{tr}Top 10{/tr}</option>
<option value="20" {if $limit eq 20}selected="selected"{/if}>{tr}Top 20{/tr}</option>
<option value="50" {if $limit eq 50}selected="selected"{/if}>{tr}Top 50{/tr}</option>
<option value="100" {if $limit eq 100}selected="selected"{/if}>{tr}Top 100{/tr}</option>
</select>
<input type="submit" name="selrank" value="{tr}view{/tr}" />
</form>
<br /><br />
{section name=ix loop=$rankings}
<div class="cbox">
<div class="cbox-title">
{$rankings[ix].title} ({$rankings[ix].y})
</div>
<div class="cbox-data">
<table >
{section name=xi loop=$rankings[ix].data}
<tr><td class="form" align="left" >{$smarty.section.xi.index_next})</td><td  class="form" align="left"><a class="link" href="{$rankings[ix].data[xi].href}">{if $rankings[ix].data[xi].name eq ""}-{else}{$rankings[ix].data[xi].name}{/if}</a></td><td  class="form" align="right">{if $rankings[ix].type eq 'nb'}{$rankings[ix].data[xi].hits}{else}{$rankings[ix].data[xi].hits|tiki_long_datetime}{/if}</td></tr>
{/section}
</table>
</div>
</div>
<br />
{/section}