<?php
/****************************************************************************************
SMI (Services Maintenance Interventions) est une gestion libre de maintenance et de SAV

Version 0.9.9

Copyright (C) 2006-2009  Sylvain FATOME
This program is free software; you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation; 
either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program
(in the directory docs); 
if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
Boston, MA  02110-1301, USA.

Contact : galawa@free.fr

Web : http://smitst.homelinux.com
****************************************************************************************/


// Vérification des tentatives de hack
$pos=strpos($_SERVER['PHP_SELF'],"inc.php");
if ($pos===FALSE)
	$ok_inc=TRUE;
else
	$ok_inc=FALSE;
if ($ok_inc==FALSE) header("Location: ../index.php");
?>
<br>
<!--- Formulaire de Recherche Fichiers Internes -->
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="GET" name="downr" id="downr">
<input name="dir" type="hidden" id="dir" value="<?PHP echo @$_GET['dir'] ?>">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td nowrap align="right" class="annot_std_gras">
	  	Texte recherch&eacute; (sur le nom) : <br>
	  	Filtre sur date : <br>
	  </td>
      <td nowrap>
		<input type="text" name="search" value="<?php if(!empty($_GET['search']))echo $_GET['search']; ?>"> 
		<br>
		  <select name="ope" size="1" id="ope">
		    <?PHP
		
		// Création du type d'opérande
		foreach ($fictec_trech as $fictec_coderech => $fictec_libelrech)
		{
			if (@$_GET['ope'] == $fictec_coderech)
			{
				echo '<option value="'.$fictec_coderech.'" selected>'.$fictec_libelrech.'</option>';
			}
			else
			{
				echo '<option value="'.$fictec_coderech.'">'.$fictec_libelrech.'</option>';
			}
		}
		?>
	    </select>
		  <input name="date" type="text" id="date" value="<?PHP echo @$_GET['date'] ?>" size="10" maxlength="10" readonly="1">
		  <img src="../img/calendar.png" align="absmiddle" id="f_img_date" title="<?PHP echo $alt_chxdate; ?>">
      </td>
 	  <td nowrap>
		  <input name="rech" type="submit" class="bton_std" id="rech" value="<?PHP echo $but_rech; ?>">
	      <input type="submit" class="bton_std" value="<?PHP echo $but_reinit; ?>" onClick="document.downr.search.value='';document.downr.ope.value='0';document.downr.date.value='';">
	  </td>
    </tr>
</table>
</form>
<br>
<!--- Fin du Formulaire de Recherche -->
