/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. |
/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/presentations/scripts/hb_ouvrir_fermer.js |
---|
20,7 → 20,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_ouvrir_fermer.js,v 1.1 2005-11-23 10:32:32 jp_milcent Exp $ |
// CVS : $Id: hb_ouvrir_fermer.js,v 1.2 2007-08-27 15:56:50 jp_milcent Exp $ |
/** |
* Script ouvrir-fermer |
* |
53,7 → 53,7 |
*@author Alexandre Granier |
*@author Jean-Pascal Milcent |
*@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 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
83,8 → 83,71 |
var imgClosed = new Image(9,9); |
imgClosed.src = 'client/herbier/presentations/images/ouvrir.png'; |
/** |
* Pliage des donn?es au d?marrage. |
* (Collapses databases at startup) |
* |
* @access public |
*/ |
function toutPlier() |
{ |
if (!capable || !isServer) { |
return; |
} |
if (isDOM) { |
var tempColl = document.getElementsByTagName('div'); |
var tempCollCnt = tempColl.length; |
for (var i = 0; i < tempCollCnt; i++) { |
if (tempColl[i].id == expandedDb) |
tempColl[i].style.display = 'inline'; |
else if (tempColl[i].className == 'child') |
tempColl[i].style.display = 'none'; |
} |
} |
} |
/** |
* D?pliage de toutes les donn?es. |
* |
* @access public |
*/ |
function toutDeplier() |
{ |
if (!capable || !isServer) { |
return; |
} |
if (isDOM) { |
var tempColl = document.getElementsByTagName('div'); |
var tempCollCnt = tempColl.length; |
for (var i = 0; i < tempCollCnt; i++) { |
if (tempColl[i].id == expandedDb) |
tempColl[i].style.display = 'inline'; |
else if (tempColl[i].className == 'child') |
tempColl[i].style.display = 'inline'; |
} |
// Fin du cas DOM (end of the DOM case) |
} |
} |
/** |
* Affiche une aide sur le Plier/D?plier |
* |
* @access public |
*/ |
function afficherAide() |
{ |
with (document) { |
if (isDOM) { |
var aide = '<p>Cliquer sur le symbole <img src="'+imgClosed.src+'"/> pour afficher les <strong>informations complémentaires</strong>.<p />'+ |
'<p>Vous pouvez aussi utiliser les liens ci-dessous pour controler l\'affichage de l\'ensemble des informations :<p />'+ |
'<p><a href="#" onclick="toutPlier(); return false;">Tout plier</a> | <a href="#" onclick="toutDeplier(); return false;">Tout déplier</a>'+ |
'</p>'; |
write(aide); |
} |
} |
} |
/** |
*Recharge le 'frame' si la fenêtre est redimensionée sous Netscape4+. |
*(Do reloads the frame if the window has been resized under Netscape4+) |
* |
239,42 → 302,20 |
var whichEl = document.getElementById(el + 'Child'); |
var whichIm = document.getElementById(el + 'Img'); |
if (whichEl.style.display == 'none' && whichIm) { |
whichEl.style.display = 'block'; |
whichEl.style.display = 'inline'; |
whichIm.src = imgOpened.src; |
} |
else if (unexpand) { |
whichIm.alt = imgOpened.alt; |
whichIm.title = imgOpened.title; |
} else if (unexpand) { |
whichEl.style.display = 'none'; |
whichIm.src = imgClosed.src; |
whichIm.alt = imgClosed.alt; |
whichIm.title = imgClosed.title; |
} |
} // Fin du cas DOM (end of the DOM case) |
else if (isIE4) { |
var whichEl = document.all(el + 'Child'); |
var whichIm = document.images.item(el + 'Img'); |
if (whichEl.style.display == 'none') { |
whichEl.style.display = 'block'; |
whichIm.src = imgOpened.src; |
} |
else if (unexpand) { |
whichEl.style.display = 'none'; |
whichIm.src = imgClosed.src; |
} |
} // Fin du cas IE4 (end of the IE4 case) |
else if (isNS4) { |
var whichEl = document.layers[el + 'Child']; |
var whichIm = document.layers[el + 'Parent'].document.images['imEx']; |
if (whichEl.visibility == 'hide') { |
whichEl.visibility = 'show'; |
whichIm.src = imgOpened.src; |
} |
else if (unexpand) { |
whichEl.visibility = 'hide'; |
whichIm.src = imgClosed.src; |
} |
nsArrangeList(); |
} // Fin du cas NS4 (end of the NS4 case) |
} // fin de la fonction 'expandBase()' (end of the 'expandBase()' function) |
/** |
* Ajout des styles permettant le positionnement des calques. |
* Le style display est important pour afficher ou masquer les calques. |
350,6 → 391,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.1 2005/03/08 14:14:47 jpm |
* Ajout du fichier javascript permettant d'ouvrir et fermer du html. |
* |