{*
  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>

<!-- {$smarty.template} -->

{include file="docpart.tpl"}

<div align="left" id="tablefilter">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td>
		<div id="filtertitle">
			{if $number}
				<div 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}
				</div>
			{/if}
			<div>
			<a href="javascript:" onclick="blocking('filters','yes', 'block'); return false;"><b>{$lang.filters}:</b></a>
			</div>
		</div>
		</td>
	</tr>
	<form action="index.php" name="langform" method="post">
	<input type="hidden" name="showimg" value="{$showimg}">
	<tr>
		<td>
		<table id="filters" border="0" cellpadding="0" cellspacing="0" width="100%">
		<tr>
		{if $languageselect}		
			<td align="left">
				<b>{$lang.language} :</b> 
				<select name="langfilter" onchange="submit();">
					<option value="0">---{$lang.language}---</option>
				{foreach item=mylang from=$languageselect}
					<option value="{$mylang.id}" {if $mylang.id == $langfilter}Selected{/if}>{$mylang.val}</option>
				{/foreach}
				</select>
			</td>
		{/if}
		{if $categoryselect}
			<td align="left">
				<b>{$lang.category} :</b> 
				<select name="catfilter" onchange="submit();">
				<option value="0">---{$lang.category}---</option>
				{foreach item=category from=$categoryselect}
				<option value="{$category.category}" {if $category.category == $catfilter}Selected{/if}>{$category.category}</option>
				{/foreach}
				</select>
			</td>
		{/if}
		</tr>
		</table>
		</td>
	</tr>
	</form>
	
	{if $editable}
	<form action="edit_news.php" name="editform" method="post">
	<tr>
		<td id="barre-season">
		{if $editable}
		<input type="submit" value="{$lang.newdata}" class="onglet"/>
		{/if}
		</td>
	</tr>
	</form>	
	{/if}
</table>
</div>

<!-- /filters -->