1{title url="tiki-directory_ranking.php?sort_mode=$sort_mode"}{tr}Directory ranking{/tr}{/title}
2
3{* Display the title using parent *}
4{include file='tiki-directory_bar.tpl'}
5<br>
6<br>
7{* Navigation bar to admin, admin related, etc *}
8
9{* Display the list of categories (items) using pagination *}
10{* Links to edit, remove, browse the categories *}
11<div class="table-responsive">
12	<table class="table">
13		<tr>
14			<th><a href="tiki-directory_ranking.php?parent={$parent}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a></th>
15			<th><a href="tiki-directory_ranking.php?parent={$parent}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'url_desc'}url_asc{else}url_desc{/if}">{tr}URL{/tr}</a></th>
16			<th class="text-center"><a href="tiki-directory_ranking.php?parent={$parent}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'country_desc'}country_asc{else}country_desc{/if}">{tr}Country{/tr}</a></th>
17			<th class="text-right"><a href="tiki-directory_ranking.php?parent={$parent}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'hits_desc'}hits_asc{else}hits_desc{/if}">{tr}Hits{/tr}</a></th>
18		</tr>
19
20		{section name=user loop=$items}
21		<tr class="{cycle advance=false}">
22			<td class="text"><a class="link" href="tiki-directory_redirect.php?siteId={$items[user].siteId}" {if $prefs.directory_open_links eq 'n'}target='_blank'{/if}>{$items[user].name}</a></td>
23			<td class="text">{$items[user].url}</td>
24			{if $prefs.directory_country_flag eq 'y'}
25				<td class="icon"><img src='img/flags/{$items[user].country}.png' alt='{$items[user].country}'></td>
26			{/if}
27			<td class="integer">{$items[user].hits}</td>
28		</tr>
29		<tr>
30			<td>&nbsp;</td>
31			<td class="text" colspan="4"><i>{tr}Directory Categories:{/tr}{assign var=fsfs value=1}
32				{section name=ii loop=$items[user].cats}
33				{if $fsfs}{assign var=fsfs value=0}{else}, {/if}
34				{$items[user].cats[ii].path}
35				{/section}</i>
36			</td>
37		</tr>
38		{sectionelse}
39			{norecords _colspan=4}
40		{/section}
41	</table>
42</div>
43{pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links}
44