You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
2.2 KiB

{title}{tr}Rankings{/tr}{/title}
<form action="{$rpage}" method="post" class="d-flex flex-row flex-wrap align-items-center mb-3" role="form">
<div class="mb-3">
<select name="which" class="form-select mr-3 mb-4">
{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" class="form-select mr-3 mb-4">
<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>
</div>
{if $categIdstr}<input type="hidden" name="categId" value="{$categIdstr}">{/if}
<input type="submit" class="btn btn-primary mb-4" name="selrank" value="{tr}View{/tr}">
</form>
{section name=ix loop=$rankings}
<div class="table-responsive">
<table class="table">
<tr>
<th class="text-center">{tr}Rank{/tr}</th>
<th>{$rankings[ix].title}</th>
<th>{$rankings[ix].y}</th>
</tr>
{section name=xi loop=$rankings[ix].data}
<tr>
<td class="id">{$smarty.section.xi.index_next}</td>
<td class="text">
<a class="link" href="{$rankings[ix].data[xi].href}">{if $rankings[ix].data[xi].name eq ""}-{else}{$rankings[ix].data[xi].name|escape}{/if}</a>
</td>
<td class="date">
{if $rankings[ix].type eq 'nb'}{$rankings[ix].data[xi].hits}{else}{$rankings[ix].data[xi].hits|tiki_long_datetime}{/if}
</td>
</tr>
{sectionelse}
{norecords _colspan=3}
{/section}
</table>
</div>
{/section}