Subversion Repositories eFlore/Archives.herbiers

Compare Revisions

Ignore whitespace Rev 21 → Rev 22

/trunk/applications/hb_consultation/hbc_info_collection.inc.php
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: hbc_info_collection.inc.php,v 1.1 2005-11-23 10:32:32 jp_milcent Exp $
// CVS : $Id: hbc_info_collection.inc.php,v 1.2 2007-08-27 15:56:50 jp_milcent Exp $
/**
* Application fournissant des informations sur les collections
*
33,7 → 33,7
//Autres auteurs :
*@author Jean-Pascal MILCENT <jpm@clapas.org>
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:32:32 $
*@version $Revision: 1.2 $ $Date: 2007-08-27 15:56:50 $
// +------------------------------------------------------------------------------------------------------+
*/
 
93,8 → 93,8
}
$sortie .= '</p>'."\n";
 
// 1. les renseignements administratifs
$sortie .= '<p class="hb_menu">'.'</p>'."\n";//lien_retour('herbiers')
// 1. l'Aide
$sortie .= '<p class="hb_aide">'.'<script type="text/javascript">afficherAide();</script>'.'</p>'."\n";
 
// 2. les collections
if (is_array($herb->collections) && count($herb->collections) != 0) {
104,7 → 104,7
for ($i = 0; $i < count($herb->collections); $i++) {
$sortie .= '<div id="el'.$i.'Parent" class="parent">'."\n".
'<a href="#" onclick="expandBase(\'el'.$i.'\', true); return false;">'."\n".
'<img name="imEx" id="el'.$i.'Img" class="'.HB_CLASS_IMG_ICONE.'" src="'.HB_IMG_OUVRIR.'" alt="+" />'."\n".
'<img id="el'.$i.'Img" class="'.HB_CLASS_IMG_ICONE.'" src="'.HB_IMG_OUVRIR.'" alt="+" />'."\n".
'</a>'."\n".
'<h3 class="hb_titre_en_ligne">'.$herb->collections[$i]->NOM_COLLECTION;
if ($estEditeur) {
202,7 → 202,7
$tableau_collecteur = preg_split("/\r\n/", $herb->collections[$i]->COLLECTEURS, -1, PREG_SPLIT_NO_EMPTY);
$sortie .= '<div id="elcollecteur'.$i.'Parent" class="parent">'."\n".
'<a href="#" onclick="expandBase(\'elcollecteur'.$i.'\', true); return false;">'."\n".
'<img name="imEx" id="elcollecteur'.$i.'Img" class="'.HB_CLASS_IMG_ICONE.'" src="'.HB_IMG_OUVRIR.'" alt="+" />'."\n".
'<img id="elcollecteur'.$i.'Img" class="'.HB_CLASS_IMG_ICONE.'" src="'.HB_IMG_OUVRIR.'" alt="+" />'."\n".
'</a>'."\n".
'<h3 class="hb_titre_en_ligne">'.'Les collecteurs - '.count($tableau_collecteur).'</h3>'."\n".
'</div>'."\n";
227,7 → 227,7
if (is_array($herb->collections[$i]->indic) && count($herb->collections[$i]->indic) != 0) {
$sortie .= '<div id="elindic'.$i.'Parent" class="parent">'.
'<a href="#" onclick="expandBase(\'elindic'.$i.'\', true); return false;">'.
'<img name="imEx" id="elindic'.$i.'Img" class="'.HB_CLASS_IMG_ICONE.'" src="'.HB_IMG_OUVRIR.'" alt="+" />'.
'<img id="elindic'.$i.'Img" class="'.HB_CLASS_IMG_ICONE.'" src="'.HB_IMG_OUVRIR.'" alt="+" />'.
'</a>'.
'<h3 class="hb_titre_en_ligne">'.'Compléments d\'information'.'</h3>'.
'</div>'."\n";
291,6 → 291,10
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* 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.
*
* Revision 1.3 2005/03/30 09:48:58 jpm
* Début gestion des raccourcis vers l'administration.
*
/trunk/applications/hb_consultation/hb_consultation.php
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.2 2006-10-31 10:31:36 jp_milcent Exp $
// CVS : $Id: hb_consultation.php,v 1.3 2007-08-27 15:56:50 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.2 $ $Date: 2006-10-31 10:31:36 $
*@version $Revision: 1.3 $ $Date: 2007-08-27 15:56:50 $
// +------------------------------------------------------------------------------------------------------+
*/
 
131,25 → 131,26
$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_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.'%" '.
$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.'%" '.
') '.
'ORDER BY TOWN';
if (empty($values['pstart'])) {
218,6 → 219,9
/* +--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.