<br>
<!--- Formulaire de Recherche -->
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="GET" name="formr" id="formr">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td nowrap>		<input type="text" name="search" value="<?php if(!empty($_GET['search']))echo $_GET['search']; ?>"> 
		<input name="rech" type="submit" id="rech" value="Rechercher">
	    <input type="submit" value="R&eacute;initialiser" onClick="document.formr.search.value='';">
	    <input type="hidden" name="ord" id="ord" value="<?php if(!empty($_GET['ord']))echo $_GET['ord']; ?>">
	    <input type="hidden" name="tri" id="tri" value="<?php if(!empty($_GET['tri']))echo $_GET['tri']; ?>">
	    <input type="hidden" name="ta" id="ta" value="<?php if(!empty($_GET['ta']))echo $_GET['ta']; ?>">
	    <input type="hidden" name="td" id="td" value="<?php if(!empty($_GET['td']))echo $_GET['td']; ?>">
	    <input type="hidden" name="cc" id="cc" value="<?php if(!empty($_GET['cc']))echo $_GET['cc']; ?>">
	    <input type="hidden" name="ct" id="ct" value="<?php if(!empty($_GET['ct']))echo $_GET['ct']; ?>">
	    <input type="hidden" name="cte" id="cte" value="<?php if(!empty($_GET['cte']))echo $_GET['cte']; ?>">
	    <input type="hidden" name="ci" id="ci" value="<?php if(!empty($_GET['ci']))echo $_GET['ci']; ?>">
	    <input type="hidden" name="cx" id="ci" value="<?php if(!empty($_GET['cx']))echo $_GET['cx']; ?>">
	    <input type="hidden" name="ca" id="ca" value="<?php if(!empty($_GET['ca']))echo $_GET['ca']; ?>">
		<?PHP
		$urlimp = $fic_imp."?".$_SERVER['QUERY_STRING'];
		?>	    
	  </td>
 	  <td nowrap>
	  <?PHP if ((@$_GET['ta'] <> "i") AND ($fic_imp <>"")) { ?>
	  <div align="right">
	  <a href="javascript:;" onclick="lanceimp('<?PHP echo $urlimp; ?>');")><img src="../img/print.gif" title="Imprimer dernière Recherche" width="22" height="22" border="0" align="absmiddle"></a>
	  <a href="javascript:;" onclick="lanceimp('<?PHP echo $urlimp; ?>');")> Imprimer la derni&egrave;re recherche</a>
	  </div>
	  <?PHP } ?>
	  </td>
    </tr>
</table>
  <table width="100%"  border="0" cellpadding="0" cellspacing="0">
  	<tr>
	  <td width="80%">
		<p><span class="annot_petit_it"> Nota :<br>
		  Pour voir la signification d'une ic&ocirc;ne, laissez le pointeur de la souris dessus. </span><span class="annot_petit_it"><br>
	      </span>
          <span class="annot_petit_it">Vous pouvez &eacute;galement effectuer des recherches sur les dates &quot;sous&quot; les ic&ocirc;nes et sur les codes &quot;sous&quot; les ic&ocirc;nes de statut. </span>
          <br>
          <br>
        </p>
	  </td>
	  <td>
		  <div align="right">
		  <a href="javascript:;" onclick="self.location.reload();"><img src="../img/reload.gif" title="Rafraîchir l'affichage" width="22" height="22" border="0" align="absmiddle"></a>
		  <a href="javascript:;" onclick="self.location.reload();")>Rafra&icirc;chir l'affichage</a>
		  </div>
	  </td>
	</tr>
  </table>
  <table width="100%"  border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="50%">
	  	<span class="annot_petit_gras"><img src="../img/dn.gif" width="16" height="16" align="absmiddle"> : Tri ascendant / <img src="../img/up.gif" width="16" height="16" align="absmiddle"> : Tri descendant</span>
		<?php 
		if(!empty($_GET['tri']))
		{
		?>
			<span class="annot_petit_it">
			<?PHP 
				echo "(Actuellement trié sur ";
				echo $_GET['tri']; 
				if ($_GET['ord'] == "ASC")
					echo ", ascendant";
				else
					echo ", descendant";
				echo ")";
			?>
			</span>
		<?PHP
		}
		?>
	  </td>
      <td width="50%">
	  <?PHP if (($url_add <> "") AND (@$_GET['ta'] <> "i")){ ?>
	  <div align="right">
	  <a href="<?PHP echo $url_add; ?>"><img src="../img/add.gif" title ="Ajouter enregistrement" width="<?PHP echo $hl_vign ?>"  border="0" align="absmiddle"></a>
	  <a href="<?PHP echo $url_add; ?>"> Ajouter</a>
	  </div>
	  <?PHP } else {?>
	  &nbsp;
	  <?PHP } ?>
	  </td>
    </tr>
  </table>
</form>
<!--- Fin du Formulaire de Recherche -->
