{*
  The filters on top of the browse page
  $Id: filters.tpl,v 2.14 2004/10/22 13:10:51 andig2 Exp $
*}
<script language="JavaScript" type="text/javascript" src="javascript/look.js"></script>


<div align="left" id="tablefilter">
<table id="filters" border="0" cellpadding="0" cellspacing="2" width="100%">
	<tr>
		<td>
			{if $number}
					<span class="footer-links">
					{if $pageno && $maxpageno}
						{if $pageno != 1}<a href="?pageno={$pageno-1}"><img src="templates/classic/images/back.gif" align="absmiddle" hspace="5" width="22" height="18"></a>{/if}Page {$pageno} sur {$maxpageno}
						{if $pageno != $maxpageno}<a href="?pageno={$pageno+1}"><img src="templates/classic/images/next.gif" align="absmiddle" hspace="5" width="22" height="18"></a>{/if}
						- {$totalresults} {$lang.records}.
					{/if}
					{if $number && !$totalresults}
						{$number} displayed.
					{/if}
					</span>
			{/if}
		</td>
		<form action="" name="filterform" method="post">
		<td align="right">
			{if $action eq "prono_table"}
			<select name="order" onchange="javascript:submit();">
				<option value="">---------- {$lang.order} ----------</option>
				<option value="1"{if $order==1} selected{/if}>{$lang.members}</option>
				<option value="2"{if $order==2} selected{/if}>{$lang.bettable}</option>
				<option value="3"{if $order==3} selected{/if}>{$lang.goodpronos}</option>
				<option value="4"{if $order==4} selected{/if}>{$lang.prize}</option>
			</select>
			{/if}
			{if $mymonth}
			<select name="ordermonth" onchange="javascript:submit();">
			<option value="">------------------</option>
			{foreach item=month from=$mymonth}
			{if $month.mymonth < 10}{assign var="zemonth" value='month0'|cat:$month.mymonth}
			{else}{assign var="zemonth" value='month'|cat:$month.mymonth}{/if}
			<option value="{$month.mymonth}"{if $month.mymonth==$ordermonth} selected{/if}>{$lang[$zemonth]}</option>
			{/foreach}
			</select>
			{/if}
			{if $myyear}
			<select name="orderyear" onchange="javascript:submit();">
			<option value="">------------------</option>
			{foreach item=year from=$myyear}
			<option value="{$year.myyear}"{if $year.myyear==$orderyear} selected{/if}>{$year.myyear}</option>
			{/foreach}
			</select>
			{/if}
		</td>		
		</form> 
	</tr>
</table>
</div>
<!-- /filters -->