{assign var='sort' value=$r.sort}{assign var='order' value=$r.order}
<table cellspacing="0" class="menu-tab" summary="sort selecter">
<tr>
	<td>{$W.sort}</td>
	<td nowrap="nowrap">{$W.name}<span>{if $sort=='name' and $order==''}{$W.asc_mark_current}{else}<a href="?{make_get_query sort=name order=''}">{$W.asc_mark}</a>{/if}{if $sort=='name' and $order=='desc'}{$W.desc_mark_current}{else}<a href="?{make_get_query sort=name order=desc}">{$W.desc_mark}</a>{/if}&nbsp;|&nbsp;</sapn></td>
	<td nowrap="nowrap">URL<span>{if $sort=='url' and $order==''}{$W.asc_mark_current}{else}<a href="?{make_get_query sort=url order=''}">{$W.asc_mark}</a>{/if}{if $sort=='url' and $order=='desc'}{$W.desc_mark_current}{else}<a href="?{make_get_query sort=url order=desc}">{$W.desc_mark}</a>{/if}&nbsp;|&nbsp;</sapn></td>
	<td nowrap="nowrap"><span>{if count($r)>0}<a href="./{if $q.action != 'index'}{$q.action}{/if}">{$W.reset}</a>{else}{$W.reset}{/if}</sapn></td>
</tr>
</table>