Location: PHPKode > projects > paperasse > paperasse/rechercher.php
<?php
# ---------------------------------------
# Paperasse (c) 2006 Guillaume BETTAYEB
# mail and documents management web page
# hide@address.com
# ---------------------------------------
@include_once('paperasse.conf.php');
$moisa 	= date('m');
$moisb	= $moisa-2;
$date1	= date('d').'/0'.$moisb.'/'.date('y');

function MysqlListeDossiers(){
	$sql 	= 'SELECT nom,couleur FROM `dossiers` ORDER BY nom';
	$query	= mysql_query($sql) OR die(mysql_error());
	while(list($nom,$couleur) = mysql_fetch_row ($query)){
		$res[$couleur] = $nom;
	}
	return $res;
}
?>
<form name="rechercher" method="post" action="index.php?page=rechercher_resultat">
  <table width="75%" border="0" cellpadding="5" cellspacing="5" class="tableau">
    <tr>
	<td><span class="texte">Rechercher par mot cl&eacute; :
	  <input name="motcle" type="text" class="bouton" id="motcle">
        dans :</span> 
        <select name="table" class="bouton" id="table">
          <option value="contacts">les contacts</option>
          <option value="dossiers">les dossiers</option>
          <option value="factures">les factures</option>
          <option value="grp_traitements">les groupes de traitement</option>
          <option value="papiers">les papiers</option>
          <option value="traitements">les traitements</option>
          <option value="utilisateurs">les utilisateurs</option>
        </select> 
        <input name="rechercher" type="submit" class="bouton" id="rechercher" value="rechercher"></td>
  </tr>
</table>
</form>
Return current item: paperasse