{*
  Template for the search interface
  $Id: search.tpl,v 1.8 2005/09/24 15:55:38 andig2 Exp $
*}

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

<script language="JavaScript" type="text/javascript" src="templates/classic/javascript/search.js"></script>

<div id="actions">
    {include file="searchengines.tpl"}
	<div id="barre-onglet">
		<form action="search.php" name="editform">
            <input type="submit" class="onglet-on" value="{$lang.searchadv}" />
        </form>
	</div>
	<div id="barre-season">
	<form action="search.php" id="search" name="search" method="get">
	<table cellpadding="0" cellspacing="0" border="0">
	{if $pageno && $maxpageno}
		<tr>
			<td colspan="3">
			<div id="footerpages">
			  
				{if $pageno != 1}<a href="?pageno=%7B$pageno-1%7D">«</a>{/if}
				Page {$pageno} of {$maxpageno}
				{if $pageno != $maxpageno}<a href="?pageno=%7B$pageno%2B1%7D">»</a>{/if}
				{$totalresults} {$lang.records}.
			 
			{if $number && !$totalresults}
			{$number} {$lang.displayed}.
			{/if}
			</div>
			</td>
		</tr>
	{/if}
		<tr>
			<td>
				<h3 style="display: block">{$lang.keywords} :</h3>
				<input type="text" name="q" id="q" value='{$q_q}' size="45" maxlength="300"/>
				<input type="submit" class="button" value="{$lang.search}" id="docpart_search" />
				<br/>
				{html_radios name=searchtype options=$searchtypes checked=$searchtype label_class="filterlink" onclick="changeSearch(this.value)"}
			</td>
			<td>&nbsp;</td>
			<td rowspan="2">
				<h3 style="display: block">{$lang.fieldselect} :</h3>
				<select name="fields[]" size="4" multiple="multiple" style="width:175px;">
				{html_options options=$search_fields selected=$selected_fields}
				</select><br />
				<span style="font-size:10px; font-weight: bold;"><a href="javascript:selectAllFields()">{$lang.selectall}</a></span>
			</td>	
		</tr>
		<tr>
			<td colspan="2">
				{html_radios name=showimg options=$optshowimg checked=$showimg label_class="filterlink"}
			</td>
		</tr>
	</table>
	</form>
	</div>
<!-- /actions -->

<script language="JavaScript" type="text/javascript">
// <!--
    selectField(document.search.q);
// -->
</script>
