21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: hb_consultation.php,v 1.3 2007-08-27 15:56:50 jp_milcent Exp $ |
// CVS : $Id: hb_consultation.php,v 1.2 2006-10-31 10:31:36 jp_milcent Exp $ |
/** |
* Application fournissant un moteur de recherche sur les herbiers |
* |
33,7 → 33,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@clapas.org> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.3 $ $Date: 2007-08-27 15:56:50 $ |
*@version $Revision: 1.2 $ $Date: 2006-10-31 10:31:36 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
131,26 → 131,25 |
$sortie .= '<p>'.'Vous pouvez utiliser le caractère % pour remplacer n\'importe quelle chaine.'.'</p>'."\n"; |
|
if (!empty($T_REPONSE) ) {//&& !empty($RECHERCHE) |
$query_data = 'SELECT DISTINCT ID_ORG '. |
'FROM HERBIERS_COLLECTION AS HC LEFT JOIN HERBIERS_INDIC AS HI ON HC.ID = HI.ID, HERBIERS_ORGANISATION AS HO '. |
'WHERE HC.PARENT_ID = HO.ID_ORG '. |
'AND ( '. |
' HI.REM_INDIC LIKE "%'.$RECHERCHE.'%" '. |
' OR HI.TXT_INDIC LIKE "%'.$RECHERCHE.'%" '. |
' OR HC.DESCRIPTION LIKE "%'.$RECHERCHE.'%" '. |
' OR HC.NOTES LIKE "%'.$RECHERCHE.'%" '. |
' OR HC.COLLECTION_FOCUS LIKE "%'.$RECHERCHE.'%" '. |
' OR HC.PURPOSE LIKE "%'.$RECHERCHE.'%" '. |
' OR HC.COLLECTEURS LIKE "%'.$RECHERCHE.'%" '. |
' OR HC.STRENGTH LIKE "%'.$RECHERCHE.'%" '. |
' OR HC.NOM_COLLECTION LIKE "%'.$RECHERCHE.'%" '. |
' OR HC.COLLECTION_CODE LIKE "%'.$RECHERCHE.'%" '. |
' OR HO.INSTITUTION_NAME LIKE "%'.$RECHERCHE.'%" '. |
' OR HO.ADRESS_TEXT LIKE "%'.$RECHERCHE.'%" '. |
' OR HO.TOWN LIKE "%'.$RECHERCHE.'%" '. |
' OR HO.REGION LIKE "%'.$RECHERCHE.'%" '. |
' OR HO.INDEX_HERB LIKE "%'.$RECHERCHE.'%" '. |
') '. |
$query_data = 'SELECT DISTINCT(ID_ORG) '. |
'FROM HERBIERS_INDIC LEFT JOIN HERBIERS_COLLECTION ON HERBIERS_INDIC.ID = HERBIERS_COLLECTION.ID, HERBIERS_ORGANISATION '. |
'WHERE (HERBIERS_COLLECTION.PARENT_ID = HERBIERS_ORGANISATION.ID_ORG '. |
'AND (HERBIERS_INDIC.REM_INDIC LIKE "%'.$RECHERCHE.'%" '. |
'OR HERBIERS_INDIC.TXT_INDIC LIKE "%'.$RECHERCHE.'%")) '. |
'OR (HERBIERS_ORGANISATION.ID_ORG = HERBIERS_COLLECTION.PARENT_ID '. |
'AND (HERBIERS_COLLECTION.DESCRIPTION LIKE "%'.$RECHERCHE.'%" '. |
'OR HERBIERS_COLLECTION.NOTES LIKE "%'.$RECHERCHE.'%" '. |
'OR HERBIERS_COLLECTION.COLLECTION_FOCUS LIKE "%'.$RECHERCHE.'%" '. |
'OR HERBIERS_COLLECTION.PURPOSE LIKE "%'.$RECHERCHE.'%" '. |
'OR HERBIERS_COLLECTION.COLLECTEURS LIKE "%'.$RECHERCHE.'%" '. |
'OR HERBIERS_COLLECTION.STRENGTH LIKE "%'.$RECHERCHE.'%" '. |
'OR HERBIERS_COLLECTION.NOM_COLLECTION LIKE "%'.$RECHERCHE.'%" '. |
'OR HERBIERS_COLLECTION.COLLECTION_CODE LIKE "%'.$RECHERCHE.'%")) '. |
'OR HERBIERS_ORGANISATION.INSTITUTION_NAME LIKE "%'.$RECHERCHE.'%" '. |
'OR ADRESS_TEXT LIKE "%'.$RECHERCHE.'%" '. |
'OR TOWN LIKE "%'.$RECHERCHE.'%" '. |
'OR REGION LIKE "%'.$RECHERCHE.'%" '. |
'OR INDEX_HERB LIKE "%'.$RECHERCHE.'%" '. |
'ORDER BY TOWN'; |
|
if (empty($values['pstart'])) { |
219,9 → 218,6 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2006-10-31 10:31:36 jp_milcent |
* Gestion des chemins rendu compatibles avec une utilisation de l'appli Herbiers hors de Papyrus. |
* |
* Revision 1.1 2005/11/23 10:32:32 jp_milcent |
* Ajout au dépot de l'application Herbiers. |
* Elle doit à terme migrer dans eFlore. |