Subversion Repositories eFlore/Archives.eflore-consultation-v1

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1 → Rev HEAD

/trunk/configuration/eflore_config_bdd.inc.php
New file
0,0 → 1,88
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur eFlore. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_config_bdd.inc.php,v 1.1 2005-05-24 15:57:48 jpm Exp $
/**
* Fichier de configuration de la base de données
*
*@package eFlore
*@subpackage Ancien
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-05-24 15:57:48 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
// +------------------------------------------------------------------------------------------------------+
// Paramétrage de la base de données.
/** Constante stockant le protocole de la base de données.*/
define('EF_BDD_PROTOCOLE', 'mysql');
/** Constante stockant le nom du serveur de bases de données.*/
define('EF_BDD_SERVEUR', 'localhost');
/** Constante stockant le nom de l'utilisateur de la base de données.*/
define('EF_BDD_UTILISATEUR', '');
/** Constante stockant le mot de passse de l'utilisateur de la base de données.*/
define('EF_BDD_MOT_DE_PASSE', '');
/** Constante stockant le nom de la base de données par défaut.*/
define('EF_BDD_NOM', '');
 
// +------------------------------------------------------------------------------------------------------+
// Paramétrage de la valeur du DSN pour Pear DB.
/** Constante stockant le DSN permetant de se connecter à la base de données de Biblio Bota.*/
define('EF_DSN', EF_BDD_PROTOCOLE.'://'.EF_BDD_UTILISATEUR.':'.EF_BDD_MOT_DE_PASSE.'@'.EF_BDD_SERVEUR.'/'.EF_BDD_NOM);
 
// +------------------------------------------------------------------------------------------------------+
// Paramétrage des champs et nom de la table des stats
define('NOM_TABLE_STAT', 'EFLORE_STAT_DONNEE');
define('NC_ID', 'esd_id');
define('NC_IP', 'esd_ip_utilisateur');
define('NC_DOMAINE', 'esd_domaine_utilisateur');
define('NC_NAVIGATEUR', 'esd_navigateur_utilisateur');
define('NC_DH_MYSQL', 'esd_date_heure_mysql');
define('NC_TPS', 'esd_temps_recherche');
define('NC_DATE', 'esd_date_recherche');
define('NBRE_CHAMP_SPE', 3);
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/configuration/eflore_config.inc.php
New file
0,0 → 1,97
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur eFlore. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_config.inc.php,v 1.2 2005-06-01 18:25:24 jpm Exp $
/**
* Fichier de configuration
*
*@package eFlore
*@subpackage Ancien
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.2 $ $Date: 2005-06-01 18:25:24 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
// +------------------------------------------------------------------------------------------------------+
// Définition de la langue
/** Constante stockant la langue utilisée pour l'application.*/
define('EF_LANGUE', substr($GLOBALS['_GEN_commun']['i18n'], 0, 2));
 
// +------------------------------------------------------------------------------------------------------+
// Divers
$GLOBALS['eflore_services']['location']='http://eflore.tela-botanica.org/servicesxml/';
$GLOBALS['_EF_ANCIEN_']['type'] = 'ANT';
if (isset($GLOBALS['_GEN_commun']['info_application']->type)) {
$GLOBALS['_EF_ANCIEN_']['type'] = $GLOBALS['_GEN_commun']['info_application']->type;
}
$GLOBALS['_EF_ANCIEN_']['maintenance'] = 'false';
if (isset($GLOBALS['_GEN_commun']['info_application']->maintenance)) {
$GLOBALS['_EF_ANCIEN_']['maintenance'] = $GLOBALS['_GEN_commun']['info_application']->maintenance;
}
$GLOBALS['_EF_ANCIEN_']['statistique'] = 'true';
if (isset($GLOBALS['_GEN_commun']['info_application']->statistique)) {
$GLOBALS['_EF_ANCIEN_']['statistique'] = $GLOBALS['_GEN_commun']['info_application']->statistique;
}
// +------------------------------------------------------------------------------------------------------+
// Chemins
define('EF_PATH_ROOT','client/eflore_ancien/');
define('EF_PATH_BIBLIO',EF_PATH_ROOT.'bibliotheque/');
define('EF_PATH_CONFIG',EF_PATH_ROOT.'configuration/');
define('EF_PATH_LANGUE',EF_PATH_ROOT.'langues/');
define('EF_PATH_PRESENTATION',EF_PATH_ROOT.'presentations/');
define('EF_PATH_STYLE',EF_PATH_PRESENTATION.'styles/');
define('EF_PATH_SCRIPT',EF_PATH_PRESENTATION.'scripts/');
define('EF_PATH_API','api/');
define('EF_PATH_API_BOG',EF_PATH_API.'debogage/');
define('EF_PATH_CLASSES',EF_PATH_BIBLIO.'classes/');
define('EF_PATH_DBACCESS',EF_PATH_BIBLIO.'dbaccess/');
define('EF_PATH_SERVICES',EF_PATH_BIBLIO.'servicesxml/');
define('EF_PATH_XSLT',EF_PATH_BIBLIO.'xsl/');
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/05/24 15:57:48 jpm
* Gestion de l'ancienne base.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/bibliotheque/eflore_affichage_xhtml.fonct.php
New file
0,0 → 1,173
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur eFlore. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_affichage_xhtml.fonct.php,v 1.4 2006-11-09 18:13:03 jp_milcent Exp $
/**
* Fonctions pour l'affichage XHTML.
*
*@package eFlore
*@subpackage Ancien
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.4 $ $Date: 2006-11-09 18:13:03 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
/**
* Gestion des messages d'alerte.
*
*Cette fonction retourne un message d'alerte en html.
*
* @return string
*/
function message_alerte($type_message)
{
$message_renvoyer="";
 
switch ($type_message){
case '01' :
$message_renvoyer = inclusion_html('debut_ligne_alerte').
"Veuillez saisir un radical avant d'effectuer la recherche !".
inclusion_html('fin_ligne_alerte');
break;
case '02' :
$message_renvoyer = inclusion_html('debut_ligne_alerte').
"Veuillez saisir un radical contenant au moins 3 caract&egrave;res alphab&eacute;tiques !".
inclusion_html("fin_ligne_alerte");
break;
case '03' :
$message_renvoyer = inclusion_html('debut_ligne_alerte').
"Le symbole % ne peut pas être utilis&eacute; sans au moins trois caract&egrave;res alphab&eacute;tiques !".
inclusion_html('fin_ligne_alerte');
break;
case '04' :
$message_renvoyer = inclusion_html('debut_ligne_alerte').
"Les symboles suivant ne doivent pas &ecirc;tre utilis&eacute;s : & < > \" ".
inclusion_html('fin_ligne_alerte');
break;
}//fin du switch
return $message_renvoyer;
}
 
/**
* Gestion des inclusions html dans le code php.
*
*Cette fonction retourne du html à insérer dans le php.
*
* @return string
*/
function inclusion_html($type_inclusion)
{
global $alerte, $flore, $recherche, $radical, $baseURL;
$html_renvoyer = '';
switch ($type_inclusion) {
case 'rechercher' :
$html_renvoyer .= inclusion_html($GLOBALS['_EF_ANCIEN_']['type'].'_rechercher_titre').
'<h2>Rechercher une plante</h2>'."\n".
$alerte."\n".
'<form id="eflore_form_nomenclature" method="post" action="'.$baseURL.'">'."\n".
'<fieldset>'."\n".
'<legend>'.EFLORE_LG_RECH_NOM_FORM_TITRE.'</legend>'."\n".
'<ul>'."\n".
'<li>'."\n".
'<label for="radical">Nom :</label>'."\n".
'<input type="text" id="radical" name="radical" value="';
$html_renvoyer .= (isset($radical) && !empty($radical))? $radical : '';
$html_renvoyer .= '" maxlength="100" size="30" />'."\n".
'</li>'."\n".
'<li>'."\n".
'<ul>'."\n".
'<li>'."\n".
'<input type="radio" id="ef_nom_scientifique" name="recherche" value="LATIN" ';
$html_renvoyer .= (empty($recherche))? 'checked="checked"': '';
$html_renvoyer .= (!empty($recherche) && $recherche == 'LATIN')? 'checked="checked"': '';
$html_renvoyer .= '/>'.
'<label for="ef_nom_scientifique">nom scientifique</label>'."\n".
'</li>'."\n".'<li>'."\n".
'<input type="radio" id="ef_nom_vernaculaire" name="recherche" value="VERNA" ';
$html_renvoyer .= (!empty($recherche) && $recherche == 'VERNA')? 'checked="checked"': '';
$html_renvoyer .= '/>'.
'<label for="ef_nom_vernaculaire">nom vernaculaire</label>'."\n".
'</li>'."\n".
'</ul>'."\n".
'</li>'."\n".
'</ul>'."\n".
'<input type="hidden" id="flore" name="flore" value="'.$GLOBALS['_EF_ANCIEN_']['type'].'" />'."\n".
'<input type="hidden" id="numclass" name="numclass" value="1" />'."\n".
'<input id="eflore_chercher" name="eflore_chercher" type="submit" value="chercher" />'."\n".
'</fieldset>'."\n".
'</form>';
break;
case 'ANT_rechercher_titre' :
$html_renvoyer .= '<h1>Consulter la base eFlore : Guadeloupe-Martinique</h1>'."\n";
break;
case 'REU_rechercher_titre' :
$html_renvoyer .= '<h1>Consulter la base eFlore : Réunion</h1>'."\n";
break;
case 'rechercher_aide' :
$html_renvoyer .= '<div id="eflore_exemple_nomenc">'."\n".
'<h2>'.EFLORE_LG_EXPLE_TITRE.'</h2>'."\n".
'<p>'.EFLORE_LG_EXPLE_NOMENC.'</p>'."\n".
'<p>'.EFLORE_LG_EXPLE_ASTUCE.'</p>'."\n".
'<ul id="eflore_liste_astuces">'."\n".
' <li>'.sprintf(EFLORE_LG_EXPLE_ASTUCE_DEMO_01, '<tt>', '</tt>', '<tt>', '</tt>').'</li>'."\n".
' <li>'.sprintf(EFLORE_LG_EXPLE_ASTUCE_DEMO_02, '<tt>', '</tt>').'</li>'."\n".
'</ul>'."\n".
'<p>'.EFLORE_LG_EXPLE_LANGUE.'</p>'."\n".
'<ul id="eflore_liste_langues">'."\n".
' <li>'.EFLORE_LG_EXPLE_FR.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_ES.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_CA.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_DE.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_EN.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_NL.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_IT.'</li>'."\n".
' <li>'.EFLORE_LG_EXPLE_ETC.'</li>'."\n".
'</ul>'."\n".
'</div>'."\n";
break;
case 'pied_page' :
$html_renvoyer = '<p id="eflore_pied_page">'.EFLORE_LG_PIED.'</p>';
break;
case 'debut_ligne_alerte' :
$html_renvoyer = '<p class="information">';
break;
case 'fin_ligne_alerte' :
$html_renvoyer = '</p>';
break;
}//fin du switch
return $html_renvoyer;
}//fin fonction inclusion_html
 
 
//-- Fin du code source ------------------------------------------------------------
?>
/trunk/bibliotheque/xsl/listetaxons.xsl
New file
0,0 → 1,70
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Mettre méthode "xml" pour faire du xhtml -->
<xsl:output method="xml" version="1.0" standalone="yes" indent="yes" encoding="ISO-8859-1"/>
 
<xsl:template match="/">
<h1>Liste des noms scientifiques trouvés</h1>
<xsl:if test="not(/FICHE_LISTE_TAXONS/LISTE_TAXONS/NOM_TAXON)">
<p class="eflore_avertissement">Il n'existe aucun nom scientifique correspondant au radical recherch&#233;.</p>
<p class="eflore_avertissement">
<!--Lien vers le site de test de Tela-Botanica-->
<!--Cliquer <a href="http://test.tela-botanica.org/eflore" target="_top">ICI</a> pour retourner au formulaire principal de l'Index.-->
<!--Lien vers le site officiel de Tela-Botanica-->
Cliquer <a href="http://www.tela-botanica.org/eflore" onclick="history.back();return false;">ICI</a> pour retourner au formulaire principal de l'Index.
</p>
</xsl:if>
<xsl:if test="boolean(/FICHE_LISTE_TAXONS/LISTE_TAXONS/NOM_TAXON)">
<xsl:apply-templates select="FICHE_LISTE_TAXONS" />
</xsl:if>
</xsl:template>
 
<xsl:template match="//FICHE_LISTE_TAXONS">
<xsl:apply-templates select="//LISTE_TAXONS" />
</xsl:template>
 
<xsl:template match="LISTE_TAXONS">
<h2 class="eflore_titre2">Cliquer sur un des noms pour afficher la fiche du nom retenu (correct) correspondante.</h2>
<p><strong>Note :</strong> les noms retenus (corrects) apparaissent en gras dans cette liste.</p>
<ul>
<xsl:apply-templates select="NOM_TAXON" />
</ul>
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:choose>
<xsl:when test="@statut='1'">
<li>
<strong>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
<xsl:apply-templates select="NOM" />
</a>
</strong>
</li>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
<xsl:apply-templates select="NOM" />
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
 
<xsl:template match="NOM">
<xsl:value-of select="@type"/>
&#160;
<em>
<xsl:value-of select="."/>
</em>
&#160;
<xsl:value-of select="@auteur"/>
&#160;
</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/identitetaxon.xsl
New file
0,0 → 1,461
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- Mettre méthode "xml" pour faire du xhtml -->
<xsl:output method="xml" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" />
 
<!-- DECLARATION DE VARIABLES-->
<!-- Variable "nom_url" récupérant le numéro nomenclatural du nom recherché.-->
<!-- Ce numéro est présent dans l'url appelant le service XML "donneidentitestaxons".-->
<xsl:variable name="nom_url" select="/FICHE_IDENTITES_TAXONS/@numnom" />
<!-- Variable "taxo_url" récupérant le numéro taxonomique du nom recherché,-->
<!-- donc présent dans l'url appelant le service XML "donneidentitestaxons".-->
<!-- Utilisé pour récupérer le nom vernaculaire séléctionné.-->
<xsl:variable name="taxo_url" select="/FICHE_IDENTITES_TAXONS/@numtaxo" />
<!-- Chemin d'accès à l'image "ouvrir".-->
<xsl:variable name="chemin_img_ouvrir">/client/eflore_ancien/presentations/images/ouvrir.png</xsl:variable>
<!-- Chemin d'accès à l'image "fermer".-->
<xsl:variable name="chemin_img_fermer">/client/eflore_ancien/presentations/images/fermer.png</xsl:variable>
 
<xsl:template match="/">
<h1>Identit&#233; du taxon</h1>
<xsl:apply-templates/>
</xsl:template>
 
<xsl:template match="FICHE_IDENTITES_TAXONS">
<xsl:if test="not(boolean(/FICHE_IDENTITES_TAXONS/NOM_VALIDE)) and not(boolean(/FICHE_IDENTITES_TAXONS/LISTE_NOMS_VALIDES))">
<h2 class="eflore_titre2">Nom retenu (correct)</h2>
<p class="eflore_avertissement">Il n'existe aucun nom retenu (correct) pour ce taxon relativement à la classification courante.</p>
</xsl:if>
<xsl:if test="not(boolean($taxo_url))">
<xsl:apply-templates select ="LISTE_SYNONYMES" mode="nom_url"/>
</xsl:if>
<xsl:apply-templates select ="NOM_VALIDE"/>
<xsl:apply-templates select ="LISTE_NOMS_VALIDES"/>
<xsl:apply-templates select ="LISTE_NOMS_TAXONS_PARENTS"/>
<xsl:apply-templates select ="LISTE_SYNONYMES"/>
<xsl:apply-templates select ="LISTE_NOMS_VERNACULAIRES"/>
</xsl:template>
 
<!-- Le template suivant permet de récupérer dans la liste des synonymes le nom sélectionné dans "listetaxons.xls"-->
<!-- car dans "listetaxons.xsl", l'url permettant d'obtenir la fiche d'identité du taxon utilise le n° nomenclatural-->
<!-- Ce n° nomenclatural apparait dans dans la balise "FICHE_IDENTITES_TAXONS" sous forme de l'attribut "numnom"-->
<xsl:template match="LISTE_SYNONYMES" mode="nom_url">
<h2 class="eflore_titre2">Nom s&#233;lectionn&#233; pr&#233;c&#233;demment<xsl:text> </xsl:text></h2>
<p>
<xsl:if test="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/NOM_TAXON/@numnom = $nom_url">
<xsl:apply-templates select="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/NOM_TAXON[@numnom]" />
</xsl:if>
<xsl:if test="NOM_TAXON/@numnom = $nom_url">
<xsl:apply-templates select="NOM_TAXON[@numnom = $nom_url]" />
</xsl:if>
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<em>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="$nom_url"/>
</em>
<xsl:text> - </xsl:text>
<em>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="@numtaxo"/>
</em>
<xsl:text> ] </xsl:text>
<!--<xsl:if test="boolean($taxo_url)">
<xsl:apply-templates select="/FICHE_IDENTITES_TAXONS/LISTE_NOMS_VERNACULAIRES/NOM_VERNACULAIRE[@numtaxo = $taxo_url]" />
</xsl:if>-->
</p>
</xsl:template>
 
<xsl:template match="NOM_VALIDE">
<xsl:apply-templates select="NOM_TAXON" mode="nomRetenu"/>
<h2 class="eflore_titre2">En image</h2>
<p class="eflore_commentaire">Cliquer sur le bouton "Recherche Google" pour afficher des images du taxon (résultat non garanti...).</p>
<form method="get" action="http://images.google.com/images" target="_blank">
<img src="http://www.google.com/logos/Logo_25wht.gif" alt="Google" />
<input>
<xsl:attribute name="type">text</xsl:attribute>
<xsl:attribute name="name">q</xsl:attribute>
<xsl:attribute name="size">25</xsl:attribute>
<xsl:attribute name="maxlength">255</xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="NOM_TAXON/NOM"/></xsl:attribute>
</input>
<input type="submit" name="btnG" value="Recherche Google" />
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">ie</xsl:attribute>
<xsl:attribute name="value">ISO-8859-1</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">oe</xsl:attribute>
<xsl:attribute name="value">ISO-8859-1</xsl:attribute>
</input>
<input>
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">hl</xsl:attribute>
<xsl:attribute name="value">fr</xsl:attribute>
</input>
</form>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VALIDES">
<h2 class="eflore_titre2">Noms valides</h2>
<ul>
<xsl:apply-templates select="NOM_TAXON" mode="valide" />
</ul>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_TAXONS_PARENTS">
<h2 class="eflore_titre2">Niveaux taxinomiques supérieurs</h2>
<p class="eflore_commentaire">
En cliquant sur (...) situé aprés le niveau taxinomique vous obtiendrez la liste des taxons retenus qu'il contient.
</p>
<ul>
<xsl:apply-templates select="NOM_TAXON_PARENTS/NOM_TAXON" mode="parent" />
</ul>
</xsl:template>
 
<xsl:template match="LISTE_SYNONYMES">
<h2 class="eflore_titre2">Synonymes</h2>
<p class="eflore_commentaire">
Le symbole
<img>
<xsl:attribute name="name">imEx</xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="$chemin_img_ouvrir"/></xsl:attribute>
<xsl:attribute name="width">9</xsl:attribute>
<xsl:attribute name="height">9</xsl:attribute>
</img>
indique la présence d'une source bibliographique et/ou d'information sur la combinaison.<br/>
Cliquer sur le symbole
<img>
<xsl:attribute name="name">imEx</xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="$chemin_img_ouvrir"/></xsl:attribute>
<xsl:attribute name="width">9</xsl:attribute>
<xsl:attribute name="height">9</xsl:attribute>
</img>
pour afficher ces informations complémentaires.
</p>
<!-- Affiches les synonymes nomenclaturaux s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 1 or NOM_TAXON/@tsyn = 'n'">
<h3 class="eflore_titre3">Synonymes nomenclaturaux</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 1 or @tsyn = 'n']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes taxinomiques s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 2 or NOM_TAXON/@tsyn = 't'">
<h3 class="eflore_titre3">Synonymes taxinomiques</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 2 or @tsyn = 't']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes de type inconnu s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 3 or NOM_TAXON/@tsyn = 'o'">
<h3 class="eflore_titre3">Synonymes de type inconnu</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 3 or @tsyn = 'o']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes de type "inclus dans" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 4 or NOM_TAXON/@tsyn = 'i'">
<h3 class="eflore_titre3">Synonymes de type "inclus dans"</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 4 or @tsyn = 'i']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes de type "inclus dans" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 5 or NOM_TAXON/@tsyn = 's'">
<h3 class="eflore_titre3">Synonymes de type "au sens de (sensu)"</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 5 or @tsyn = 's']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes de type "autonyme" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 6 or NOM_TAXON/@tsyn = 'a'">
<h3 class="eflore_titre3">Synonymes de type "autonyme"</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 6 or @tsyn = 'a']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes de type "antonyme" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 7 or NOM_TAXON/@tsyn = 'an'">
<h3 class="eflore_titre3">Synonymes de type "antonyme"</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 7 or @tsyn = 'an']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes de type "pseudonyme" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 8 or NOM_TAXON/@tsyn = 'p'">
<h3 class="eflore_titre3">Synonymes de type "pseudonyme"</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 8 or @tsyn = 'p']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes de type "variant orthographique" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 9 or NOM_TAXON/@tsyn = 'vo'">
<h3 class="eflore_titre3">Synonymes de type "variant orthographique"</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 9 or @tsyn = 'vo']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
 
<!-- Affiches les synonymes de type "isonyme" s'il y en a.-->
<xsl:if test="NOM_TAXON/@tsyn = 10 or NOM_TAXON/@tsyn = 'is'">
<h3 class="eflore_titre3">Synonymes de type "isonyme"</h3>
<ul>
<xsl:apply-templates select="NOM_TAXON[@tsyn = 10 or @tsyn = 'is']" mode="biblio_tsyn"/>
</ul>
</xsl:if>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
<h2 class="eflore_titre2">Noms vernaculaires</h2>
<table class="eflore_table_nom_verna">
<thead>
<tr>
<th>Langue</th>
<th>Pays</th>
<th>Nom</th>
<th>Emploi</th>
<th>Genre</th>
<th>Nombre</th>
</tr>
</thead>
<tbody>
<xsl:apply-templates select="NOM_VERNACULAIRE" />
</tbody>
</table>
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:apply-templates select="NOM" />
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="valide">
<li><xsl:apply-templates select="NOM" /></li>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="nomRetenu">
<h2 class="eflore_titre2">Nom retenu (correct) correspondant<xsl:text> </xsl:text></h2>
<p>
<strong>
<xsl:apply-templates select="NOM" />
</strong>
<xsl:apply-templates select="BIBLIOGRAPHIE" />
<xsl:apply-templates select="INFO_COMBINAISON" />
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<em>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="@numnom"/>
</em>
<xsl:text> - </xsl:text>
<em>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/@numtaxo"/>
</em>
<xsl:text> ] </xsl:text>
</p>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="biblio_tsyn">
<li>
<span>
<xsl:attribute name="id">el<xsl:value-of select="position()"/>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'">TS1Parent</xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'">TS2Parent</xsl:if>
<xsl:if test="@tsyn = 3 or @tsyn = 'o'">TS3Parent</xsl:if>
<xsl:if test="@tsyn = 4 or @tsyn = 'i'">TS4Parent</xsl:if>
<xsl:if test="@tsyn = 5 or @tsyn = 's'">TS5Parent</xsl:if>
<xsl:if test="@tsyn = 6 or @tsyn = 'a'">TS6Parent</xsl:if>
<xsl:if test="@tsyn = 7 or @tsyn = 'an'">TS7Parent</xsl:if>
<xsl:if test="@tsyn = 8 or @tsyn = 'p'">TS8Parent</xsl:if>
<xsl:if test="@tsyn = 9 or @tsyn = 'vo'">TS9Parent</xsl:if>
<xsl:if test="@tsyn = 10 or @tsyn = 'is'">TS10Parent</xsl:if>
</xsl:attribute>
<xsl:attribute name="class">parent</xsl:attribute>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'">&#8801;</xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'">&#061;</xsl:if>
&#160;
<a>
<xsl:attribute name="href">#</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:text>expandBase('el</xsl:text>
<xsl:value-of select="position()"/>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
<xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
<xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
<xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
<xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
<xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
<xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
<xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
<xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
<xsl:text>',true); return false;</xsl:text>
</xsl:attribute>
<script>
<xsl:attribute name="type">text/javascript</xsl:attribute>
<xsl:text>afficherImage('</xsl:text>
<xsl:value-of select="position()"/>
<xsl:text>', '</xsl:text>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
<xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
<xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
<xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
<xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
<xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
<xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
<xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
<xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
<xsl:text>');</xsl:text>
</script>
<!-- Utilisation des plier-déplier. Élément parent.-->
</a>
<xsl:apply-templates select="NOM" />
</span>
<!-- Utilisation des plier-déplier. Élément enfant.-->
<span>
<xsl:attribute name="id">
<xsl:text>el</xsl:text>
<xsl:value-of select="position()"/>
<xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
<xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
<xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
<xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
<xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
<xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
<xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
<xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
<xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
<xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
<xsl:text>Child</xsl:text>
</xsl:attribute>
<xsl:attribute name="class">child</xsl:attribute>
<xsl:attribute name="style">margin-bottom: 5px;</xsl:attribute>
 
<!-- Cas où le nom comporte des infos de biblio ou sur la combinaison -->
<xsl:if test="boolean(BIBLIOGRAPHIE) or boolean(INFO_COMBINAISON)">
<xsl:apply-templates select="BIBLIOGRAPHIE" />
<xsl:apply-templates select="INFO_COMBINAISON" />
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<em>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="@numnom"/>
</em>
<xsl:text> - </xsl:text>
<em>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="../@numtaxo"/>
</em>
<xsl:text> ] </xsl:text>
</xsl:if>
 
<!-- Cas où le nom comporte aucune info de biblio ou sur la combinaison -->
<xsl:if test="not(BIBLIOGRAPHIE) and not (INFO_COMBINAISON)">
<xsl:text> </xsl:text>
<xsl:text> [ </xsl:text>
<em>
<xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
<xsl:value-of select="@numnom"/>
</em>
<xsl:text> - </xsl:text>
<em>
<xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
<xsl:value-of select="../@numtaxo"/>
</em>
<xsl:text> ] </xsl:text>
</xsl:if>
 
</span>
</li>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="parent">
<li>
<strong>
<xsl:apply-templates select="NOM" />
</strong>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=classificationtaxons.xsl&amp;paramxslt=<xsl:value-of select="position()+2"/>&amp;servicexml=donneclassificationtaxons.php&amp;profondeur=<xsl:value-of select="position()+2"/>&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
(...)
</a>
</li>
</xsl:template>
 
<xsl:template match="NOM">
&#160;
<xsl:if test="not(contains(@type, ''))">
<strong><xsl:value-of select="@type"/></strong>
</xsl:if>
<em><xsl:value-of select="."/></em>
&#160;
<xsl:value-of select="@auteur"/>
</xsl:template>
 
<xsl:template match="BIBLIOGRAPHIE ">
&#160;
<xsl:value-of select="@annee"/>
&#160;
<xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="INFO_COMBINAISON ">
&#160;
<xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="NOM_VERNACULAIRE">
<tr>
<td><xsl:value-of select="@langue"/></td>
<td><xsl:value-of select="@pays"/></td>
<td>
<xsl:if test="@emploi='1'">
<strong><xsl:value-of select="."/></strong>
</xsl:if>
<xsl:if test="@emploi='0' or @emploi='2' or @emploi='3'">
<xsl:value-of select="."/>
</xsl:if>
</td>
<td>
<xsl:choose>
<xsl:when test="@emploi='0'">
&#032;
</xsl:when>
<xsl:when test="@emploi='1'">recommandé ou typique</xsl:when>
<xsl:when test="@emploi='2'">secondaire ou régional</xsl:when>
<xsl:when test="@emploi='3'">peu usité et à éviter</xsl:when>
</xsl:choose>
</td>
<td>
<xsl:choose>
<xsl:when test="@genre='0'">&#032;</xsl:when>
<xsl:when test="@genre='1'">masculin</xsl:when>
<xsl:when test="@genre='2'">féminin</xsl:when>
<xsl:when test="@genre='3'">neutre</xsl:when>
<xsl:when test="@genre='4'">duel</xsl:when>
</xsl:choose>
</td>
<td>
<xsl:choose>
<xsl:when test="@nombre='0'">&#032;</xsl:when>
<xsl:when test="@nombre='1'">singulier</xsl:when>
<xsl:when test="@nombre='2'">pluriel</xsl:when>
<xsl:when test="@nombre='3'">duel</xsl:when>
</xsl:choose>
</td>
</tr>
</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/listenomsvernaculaires.xsl
New file
0,0 → 1,87
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" version="1.0" standalone="yes" indent="yes" encoding="iso-8859-1"/>
 
<xsl:template match="/">
<xsl:apply-templates select="FICHE_LISTE_NOMS_VERNACULAIRES"/>
</xsl:template>
 
<xsl:template match="FICHE_LISTE_NOMS_VERNACULAIRES">
<h1 class="eflore_titre1">Liste des noms vernaculaires trouvés</h1>
<xsl:if test="not(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
<p class="eflore_avertissement">Il n'existe aucun nom vernaculaire correspondant au radical recherch&#233;.</p>
<p class="eflore_avertissement">
<!--Lien vers le site de test de Tela-Botanica-->
<!--Cliquer <a href="http://test.tela-botanica.org/eflore" target="_top">ICI</a> pour retourner au formulaire principal de l'Index.-->
<!--Lien vers le site officiel de Tela-Botanica-->
Cliquer <a href="http://www.tela-botanica.org/eflore" onclick="history.back();return false;">ICI</a> pour retourner au formulaire principal de l'Index.
</p>
</xsl:if>
<xsl:if test="boolean(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
<xsl:apply-templates select="LISTE_NOMS_VERNACULAIRES"/>
</xsl:if>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
<h2 class="eflore_titre2">Cliquer sur un des noms vernaculaires pour afficher la fiche du taxon correspondante.</h2>
<table class="eflore_table_nom_verna">
<thead>
<tr>
<th>Langue</th>
<th>Pays</th>
<th>Nom vernaculaire</th>
<th>Nom latin du taxon correspondant</th>
</tr>
</thead>
<tbody>
<xsl:apply-templates select="ASSOCIATION_NOM_VERNACULAIRE_TAXON"/>
</tbody>
</table>
</xsl:template>
 
<xsl:template match="ASSOCIATION_NOM_VERNACULAIRE_TAXON">
<tr>
<td><xsl:value-of select="NOM_VERNACULAIRE/@langue"/></td>
<td><xsl:value-of select="NOM_VERNACULAIRE/@pays"/></td>
<td>
<xsl:choose>
<xsl:when test="boolean(NOM_TAXON_VALIDE/NOM_TAXON)">
<a>
<xsl:attribute name="style">text-decoration: none; font-weight: bolder;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="./NOM_TAXON_VALIDE/NOM_TAXON/@numnom" /></xsl:attribute>
<xsl:apply-templates select="NOM_VERNACULAIRE"/>
</a>
</xsl:when>
<xsl:when test="not(boolean(NOM_TAXON_VALIDE/NOM_TAXON))">
<xsl:apply-templates select="NOM_VERNACULAIRE"/>
</xsl:when>
</xsl:choose>
</td>
<td><xsl:apply-templates select="./NOM_TAXON_VALIDE"/></td>
</tr>
</xsl:template>
 
<xsl:template match="NOM_VERNACULAIRE">
<xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="NOM_TAXON_VALIDE">
<xsl:apply-templates select="NOM_TAXON" />
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:apply-templates select="NOM" />
</xsl:template>
 
<xsl:template match="NOM">
<xsl:if test="not(contains(@type, ''))">
<strong><xsl:value-of select="@type"/></strong>
</xsl:if>
<em><xsl:value-of select="."/></em>
<xsl:if test="position() = last()">
&#160;
<xsl:value-of select="@auteur"/>
</xsl:if>
</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/classificationtaxons.xsl
New file
0,0 → 1,68
<?xml version="1.0" encoding="iso-8859-1"?>
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" />
 
<xsl:param name="param"/>
 
<xsl:template match="/">
<h1 class="eflore_titre1">Liste des taxons de rang inf&#233;rieur</h1>
<xsl:apply-templates select="FICHE_CLASSIFICATION_TAXONS" />
</xsl:template>
 
<xsl:template match="FICHE_CLASSIFICATION_TAXONS">
<xsl:apply-templates select="CLASSIFICATION_TAXON" />
</xsl:template>
 
<xsl:template match="CLASSIFICATION_TAXON">
<xsl:apply-templates select="NOM_TAXON" mode="titre"/>
<ul>
<xsl:apply-templates select="LISTE_CLASSIFICATIONS_FILLES/CLASSIFICATION_TAXON/NOM_TAXON" />
</ul>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="titre">
<h2 class="eflore_titre2">Niveau taxinomique s&#233;lectionn&#233;</h2>
<p class="eflore_commentaire">Cliquer sur le nom du taxon pour obtenir la fiche d'identit&#233; du taxon.</p>
<p>
<strong><a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
<xsl:apply-templates select="NOM" />
</a></strong>
</p>
<h2 class="eflore_titre2">Niveaux taxonomiques inférieurs</h2>
<p class="eflore_commentaire">
Cliquer sur le nom du taxon pour obtenir la fiche d'identit&#233; du taxon.<br/>
Cliquer sur (...) pour obtenir la liste des taxons de rang inf&#233;rieur.
</p>
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<li>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
<strong>
<xsl:apply-templates select="NOM" />
</strong>
</a>
<a>
<xsl:attribute name="style">text-decoration: none;</xsl:attribute>
<xsl:attribute name="href">transformer.php?xslt=classificationtaxons.xsl&amp;paramxslt=<xsl:value-of select="$param+1"/>&amp;servicexml=donneclassificationtaxons.php&amp;profondeur=<xsl:value-of select="$param+1"/>&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
(...)
</a>
</li>
</xsl:template>
 
<xsl:template match="NOM">
&#160;
<xsl:if test="not(contains(@type, ''))">
<strong><xsl:value-of select="@type"/></strong>
</xsl:if>
<em><xsl:value-of select="."/></em>
&#160;
<xsl:value-of select="@auteur"/>
</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/xsl/identitetaxon_pdf.xsl
New file
0,0 → 1,85
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" />
<xsl:template match="/">&#60;?php
$y = 700 ;
$pdf = pdf_new() ;
pdf_open_file($pdf);
pdf_begin_page($pdf, 595, 842);
pdf_set_font($pdf, "Courier", 20, "host");
pdf_set_value($pdf, "textrendering", 0);
pdf_show_boxed($pdf, "Fiche d'identité d'un taxon", 50, 750,500,60,"center");
pdf_set_font($pdf, "Courier", 12, "host") ;
pdf_show_boxed($pdf, "Nom valide :", 50, 700,500,40,"left");
pdf_moveto($pdf, 50, 690);pdf_lineto($pdf, 330, 690);pdf_stroke($pdf);
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="FICHE_IDENTITES_TAXONS">
<xsl:if test="not(NOM_VALIDE) and not(LISTE_NOMS_VALIDES)">
$y = $y - 50 ;
pdf_show_boxed($pdf, "Il n'existe aucun nom valide pour ce taxon relativement à la
classification", 40, $y, 500,50, "left") ;
</xsl:if>
<xsl:apply-templates select ="NOM_VALIDE"/>
<xsl:apply-templates select ="LISTE_NOMS_VALIDE"/>
<xsl:apply-templates select ="LISTE_NOMS_TAXONS_PARENTS"/>
<xsl:apply-templates select ="LISTE_SYNONYMES"/>
<xsl:apply-templates select ="LISTE_NOMS_VERNACULAIRES"/>
pdf_end_page($pdf);
pdf_close($pdf) ;
$data = pdf_get_buffer($pdf);
header("Content-type: application/pdf");
header("Content-Disposition: inline; filename=test.pdf");
header("Content-length : ".strlen($data)) ;
echo $data ;
?&#62;
</xsl:template>
 
<xsl:template match="NOM_VALIDE">
<xsl:apply-templates select="NOM_TAXON"/>
</xsl:template>
<xsl:template match="LISTE_NOMS_VALIDES">
<tr class="fieldLabel"><td>Nom valide:</td></tr>
<tr class="text"><td>
<UL>
<xsl:apply-templates select="NOM_TAXON" />
</UL>
</td></tr>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_TAXONS_PARENTS">
$y = $y - 50 ;
pdf_show_boxed($pdf,"Niveaux taxonomiques supérieurs:",40,$y,500,50,"left") ;
 
<xsl:apply-templates select="NOM_TAXON_PARENTS/NOM_TAXON" mode="parent"/>
</xsl:template>
 
<xsl:template match="LISTE_SYNONYMES">
$y = $y - 50 ;
pdf_show_boxed($pdf,"Liste des synonymes :",40,$y,500,50,"left") ;
<xsl:apply-templates select="NOM_TAXON"/>
</xsl:template>
 
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
$y = $y - 50 ;
pdf_show_boxed($pdf,"Noms communs :",40,$y,500,50,"left") ;
<xsl:apply-templates select="NOM_VERNACULAIRE" />
</xsl:template>
 
<xsl:template match="NOM_TAXON">
<xsl:apply-templates select="NOM"/>
</xsl:template>
 
<xsl:template match="NOM_TAXON" mode="parent">
<xsl:apply-templates select="NOM"/>
</xsl:template>
 
<xsl:template match="NOM">
$y = $y - 20 ;
pdf_show_boxed($pdf,"<xsl:value-of select="@type"/><xsl:value-of select="."/>&#160;<xsl:value-of select="@auteur"/>",40,$y,500,50,"left") ;
</xsl:template>
<xsl:template match="NOM_VERNACULAIRE">
$y = $y -50 ;
pdf_show_boxed($pdf,"<xsl:value-of select="@langue"/>&#160;:&#160;<xsl:value-of select="."/>(<xsl:value-of select="@pays"/>)&#160;<xsl:choose><xsl:when test="@emploi='0'">recommandé ou typique</xsl:when><xsl:when test="@emploi='1'">secondaire ou regional</xsl:when><xsl:when test="@emploi='2'">peu usité et à éviter</xsl:when></xsl:choose>",40,$y,500,50,"left") ;</xsl:template>
 
</xsl:stylesheet>
/trunk/bibliotheque/eflore_statistique.fonct.php
New file
0,0 → 1,91
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur eFlore. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_statistique.fonct.php,v 1.1 2005-05-24 15:57:48 jpm Exp $
/**
* Fonction pour réaliser les statistiques.
*
*@package eFlore
*@subpackage Ancien
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-05-24 15:57:48 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | LISTE des FONCTION |
// +------------------------------------------------------------------------------------------------------+
/**
* La fonction efloreDonneeStat() stocke dans la table EFLORE_STAT_DONNEE les informations sur une recherche effectuée
*dans l'index des plantes du site de Tela Botanica.
*
*Cette fonction ne retourne rien dans la page mais insère des donnés dans une table MySql.
*
* @global integer numtaxo contient le numéro taxonomique du taxon.
* @param string $baseURL chaîne contenant l'URL du codument eflore
* @return null
*/
function efloreDonneeStat($tab_donnee)
{
$date_jour = strftime("%d-%m-%Y");
$heure_jour = strftime("%H:%M:%S");
$date_mysql= strftime("%Y-%m-%d %H:%M:%S");
$tps_unix_maintenant = time();
$domaine = gethostbyaddr($_SERVER['REMOTE_ADDR']);//récupére le nom du domaine
$requete_01 = 'SELECT MAX('.NC_ID.') FROM '.EF_BDD_NOM.'.'.NOM_TABLE_STAT;
$resultat_01 = mysql_query($requete_01) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
if (!empty($resultat_01)) {
$id_max = mysql_result($resultat_01, 0, 0);
} else {
$id_max = 0;
};
$nouveau_id = $id_max +1;
$tab_donnee_copie = $tab_donnee;
$requete_02 = 'INSERT INTO '.EF_BDD_NOM.'.'.NOM_TABLE_STAT.' ('.NC_ID.', '.NC_IP.', '.NC_DOMAINE.', '.NC_NAVIGATEUR.', '.NC_DH_MYSQL.', '.NC_TPS.', '.NC_DATE;
while($element = each($tab_donnee)) {
$requete_02 .= ', '.$element['key'];
}
$requete_02 .= ') VALUES ('.$nouveau_id.', "'.$_SERVER['REMOTE_ADDR'].'", "'.$domaine.'", "'.$_SERVER['HTTP_USER_AGENT'].'", "'.$date_mysql.'", '.$tps_unix_maintenant.', "'.$date_jour.' '.$heure_jour.'"';
while($element = each($tab_donnee_copie)) {
$requete_02 .= ', "'.$element['value'].'"';
}
$requete_02 .= ');';
 
mysql_query($requete_02) or die(BOG_afficherErreurSql(__FILE__, __LINE__, mysql_error(), $requete));
}
 
//-- Fin du code source ------------------------------------------------------------
?>
/trunk/langues/eflore_langue_fr.inc.php
New file
0,0 → 1,223
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.3 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of eFlore. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_langue_fr.inc.php,v 1.1 2005-05-31 08:20:13 jpm Exp $
/**
* Fichier contenant les traductions de l'application.
*
* Contient des constantes permettant de traduire l'application eflore-consulation-Ancien.
* Ici en : fr
*
*@package eFlore
*@subpackage Traductions
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-05-31 08:20:13 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
// +------------------------------------------------------------------------------------------------------+
// La navigation.
define('EFLORE_LG_ONGLET_PRINCIPAL', 'Synthèse');
define('EFLORE_LG_ONGLET_ILLUSTRATION', 'Illustration');
 
// +------------------------------------------------------------------------------------------------------+
// Les paramtres des urls.
define('EFLORE_LG_URL_ONGLET', 'onglet');
define('EFLORE_LG_URL_ONGLET_ILLUSTRATION', 'photo');
define('EFLORE_LG_URL_ONGLET_SYNTHESE', 'synthese');
define('EFLORE_LG_URL_ACTION', 'action');
define('EFLORE_LG_URL_ACTION_RECH_NOM', 'nom');
define('EFLORE_LG_URL_ACTION_RECH_TAX', 'taxon');
define('EFLORE_LG_URL_ACTION_FICHE', 'fiche');
define('EFLORE_LG_URL_NN', 'nn');
define('EFLORE_LG_URL_NT', 'nt');
define('EFLORE_LG_URL_NVP', 'nvp');
define('EFLORE_LG_URL_RG', 'rg');
define('EFLORE_LG_URL_OD', 'od');
define('EFLORE_LG_URL_LE', 'le');
 
// +------------------------------------------------------------------------------------------------------+
// Page des moteurs de recherche.
define('EFLORE_LG_RECH_TITRE', 'Consulter la base eflore');
 
// +------------------------------------------------------------------------------------------------------+
// Formulaire (général)
define('EFLORE_LG_FORM_SYMBOLE_OBLIGATOIRE', '*');
 
// +------------------------------------------------------------------------------------------------------+
// Moteur de recherche Nomenclature.
define('EFLORE_LG_RECH_NOM_TITRE', 'Rechercher une plante par son nom');
define('EFLORE_LG_RECH_NOM_FORM_TITRE', 'Recherche par nom');
define('EFLORE_LG_RECH_NOM_FORM_NOM', 'Nom');
define('EFLORE_LG_RECH_NOM_FORM_TYPE_NOM_VER', 'nom vernaculaire');
define('EFLORE_LG_RECH_NOM_FORM_TYPE_NOM_SCI', 'nom scientifique');
define('EFLORE_LG_RECH_NOM_FORM_VALIDER', 'Rechercher');
 
// +------------------------------------------------------------------------------------------------------+
// Moteur de recherche Taxonomie.
define('EFLORE_LG_RECH_TAX_TITRE', 'Consultation par projet');
define('EFLORE_LG_RECH_TAX_FORM_TITRE', 'Consultation par projet');
define('EFLORE_LG_RECH_TAX_FORM_PROJET', 'Projets');
define('EFLORE_LG_RECH_TAX_FORM_RANG', 'Rang');
define('EFLORE_LG_RECH_TAX_FORM_ORDRE', 'Ordre');
define('EFLORE_LG_RECH_TAX_FORM_VALIDER', 'Rechercher');
 
// +------------------------------------------------------------------------------------------------------+
// Exemple des moteurs de recherche.
define('EFLORE_LG_EXPLE_TITRE', 'Exemples');
 
define('EFLORE_LG_EXPLE_TITRE_NOMENC', 'Exemples de recherches par nom');
define('EFLORE_LG_EXPLE_NOMENC', 'Tapez les premières lettres du nom que vous recherchez dans la zone de saisie intitulée "nom", puis sélectionnez le type de nom (scientifique ou vernaculaire), enfin cliquez sur "Rechercher".');
define('EFLORE_LG_EXPLE_ASTUCE', 'Astuces : ');
define('EFLORE_LG_EXPLE_ASTUCE_DEMO_01', 'pour rechercher %s Quercus suber %s taper %s Quer sub %s, c\'est suffisant'); // garder les %s
define('EFLORE_LG_EXPLE_ASTUCE_DEMO_02', 'le _ remplace un caractère : %s s_lvestris %s (ici i et y)'); // garder les %s
define('EFLORE_LG_EXPLE_LANGUE', 'Quelques langues disponibles pour les noms vernaculaires:');
define('EFLORE_LG_EXPLE_FR', 'Français');
define('EFLORE_LG_EXPLE_ES', 'Espagnol');
define('EFLORE_LG_EXPLE_CA', 'Catalan');
define('EFLORE_LG_EXPLE_DE', 'Allemand');
define('EFLORE_LG_EXPLE_EN', 'Anglais');
define('EFLORE_LG_EXPLE_NL', 'Néerlandais');
define('EFLORE_LG_EXPLE_IT', 'Italien');
define('EFLORE_LG_EXPLE_ETC', '...');
 
define('EFLORE_LG_EXPLE_TITRE_TAXO', 'Exemples de recherches par projet');
define('EFLORE_LG_EXPLE_TAXO', 'Sélectionnez un projet, puis le rang de départ des noms (par défaut Famille). Ensuite cliquez sur une des lettres pour afficher tous les taxons du projet dont le nom débute par cette lettre.');
 
// +------------------------------------------------------------------------------------------------------+
// Le pied de page.
define('EFLORE_LG_PIED', 'Si vous constatez des problèmes en utilisant cette application, veuillez contacter : jpm@tela-botanica.org.');
 
 
// +------------------------------------------------------------------------------------------------------+
// Définition des constantes de langue en français pour l'onglet PHOTO.
 
// Définition des constantes de labels du formulaire de soumission d'images de plantes en ligne
define('EN_ID_NOM','Nom scientifique : ');
define('EIO_AUTRE_FLORE','Flore utilis&eacute;e pour la d&eacute;nomination : ');
define('UPLOADED_FILE','S&eacute;lectionner la photo à envoyer : ');
define('RADIO_1','envoyer chez Tela Botanica');
define('RADIO_2','<acronym title="Unified Ressource Locator">URL</acronym> de l\'image sur votre propre site');
define('EII_CE_CONTRIBUTEUR','Auteur : ');
define('LIB_EII_AUTEUR_IMG','Si vous n\'&ecirc;tes pas l\'auteur de l\'image ');
define('EII_AUTEUR_IMG','Auteur de l\'image: ');
define('LIB_EIO_AUTRE_AUTEUR_DETERMINATION','Si vous n\'&ecirc;tes pas l\'auteur de la détermination de la plante ');
define('EIO_AUTRE_AUTEUR_DETERMINATION','Auteur de la d&eacute;termination: ');
define('NATURE','Nature de l\'image : ');
define('EIS_LIEUDIT','Lieu de la prise de vue : ');
define('EIO_DATE_OBSERVATION','Date (seule l\'ann&eacute;e est obligatoire) : ');
define('LIB_LICENCE','Vous autorisez :');
define('EII_CE_LICENCE_IMG_COM','un usage commercial de l\'image ');
define('EII_CE_LICENCE_IMG_MOD','que l\'image soit modifiable ');
define('EII_CE_LICENCE_IMG_AUCUN','aucune de ces solutions ');
define('SUJET','Sujet de l\'illustration : ');
define('DEVELOPPEMENT','Stade de d&eacute;veloppement de la plante : ');
define('EII_DESCRIPTION_IMG','Si vous voulez fournir d\'autres informations : ');
define('FORM_VALIDER','Valider');
define('FORM_QUIT','Quitter');
define('FORM_MODIFIER','Modifier');
define('FORM_SUPPRIMER','Supprimer');
 
//intitulé des licences
define('LICENCE_CHOIX_1','Usage commercial autorisé et image modifiable');
define('LICENCE_CHOIX_2','Usage commercial autorisé');
define('LICENCE_CHOIX_3','Image modifiable');
define('LICENCE_CHOIX_4','Image non modifiable et aucun usage commercial autorisé');
 
//définition des constantes de légendes du formulaire de soumission d'images de plantes en ligne
define('DENOMINATION',' Dénomination ');
define('LOCALISATION',' Sélection du cliché ');
define('INFO',' Informations sur l\'illustration ');
 
//définition des messages d'erreur javascript en français
define('SAISIE_INCORRECTE','Le formulaire n\'est pas rempli correctement');
define('CORRIGER','Veuillez corriger le(s) champ(s) nécessaire(s)');
define('ERR_CHOIX_FICHIER','Vous devez choisir un fichier à envoyer');
define('ERR_CHOIX_URL','Vous devez donner l\'URL de votre image');
define('ERR_CHOIX_LIEU','Vous devez indiquer le lieu de prise de vue ou de récolte');
define('ERR_CHOIX_LICENCE','Le choix de licence est non valide');
define('ERR_CHOIX_LICENCE_REQ','Vous devez choisir une licence');
define('ERR_CHOIX_ANNEE_REQ','L\'année de la prise de vue ou de la récolte est obligatoire');
define('ERR_CHOIX_ANNEE_NUM','L\'année de la prise de vue a été mal saisie');
define('ERR_CHOIX_ANNEE_LONG','Vous devez saisir l\'année en quatre chiffres');
define('ERR_CHOIX_FICHIER_JPEG','vous devez soumettre un fichier jpeg');
define('ERR_VALID_JOUR_MOIS','Vous ne pouvez entrer un jour sans le mois');
 
//définition d'autres messages d'erreur
define('ERR_NATURE_REQ','Vous devez spécifier la nature de l\'image');
define('ERR_CHOIX_AUTEUR','L\'auteur de l\'image ne peut &ecirc;tre un groupe');
define('ERR_CHOIX_FLORE','Vous avez choisi un nom scientifique différent du nom valide :
vous devez indiquer quelle flore a &eacute;t&eacute; utilis&eacute;e pour la d&eacute;nomination');
define('ERR_VALID_DATE','La date choisie est incorrecte');
define('ERR_CHARGEMENT_FIC','Le changement de fichier n\'a pas pu avoir lieu');
 
//définition des constantes de requetes chargées dans les select du formulaire de soumission d'images de plantes en ligne
define('REQ_EIO_AUTRE_FLORE','select * from eflore_selection_nom , eflore_nom, eflore_projet
LEFT JOIN eflore_botaniste_intitule_abreviation
ON en_ce_auteur_basio= ebia_id_intitule_botaniste_abrege where epr_ce_type_projet=1');
define('REQ_CAT','select * from eflore_info_image_valeur ');
define('REQ_NATURE',REQ_CAT.'where eiiv_ce_categorie_img in (0,1)');
define('REQ_SUJET',REQ_CAT.'where eiiv_ce_categorie_img in (0,3)');
define('REQ_DEVELOPPEMENT',REQ_CAT.'where eiiv_ce_categorie_img in (0,2)');
 
//définition des messages de confirmation ou suppression de données
define('NBRE_UPDATE','Nombre de mise(s) à jour: ');
define('SUPPRESSION_OK','Votre image a été supprimée avec succès');
 
//définition des constantes de libellés pour la page d'affichage des miniatures
define('POIDS','poids de l\'image : ');
define('TAILLE','taille : ');
define('AUTEUR','auteur : ');
define('DEFAUT_IMG','Image indisponible');
 
//définition des libellés des informations sur l'image
define('DATE_IMG','Date de la prise de vue ou de la récolte : ');
define('CONTRIBUTEUR_IMG','Contributeur : ');
 
//définition des liens
define('AFF_MINI','Retour aux miniatures');
define('FORM_AJOUT','Ajouter une photo');
define('FORM_MODIF','Supprimer ou modifier une photo que vous avez soumise');
define('PREC','Pr&eacute;c&eacute;dent');
define('SUIV','Suivant');
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/presentations/styles/eflore.css
New file
0,0 → 1,96
/*
+----------------------------------------------------------------------------+
| eflore.css |
+----------------------------------------------------------------------------+
| Copyright (c) 2005 Tela Botanica |
+----------------------------------------------------------------------------+
| Feuille de style specifique a l'application eflore |
+----------------------------------------------------------------------------+
| Auteur : Tamara LE BOURG |
| |
+----------------------------------------------------------------------------+
*/
/* Mises en page diverses */
.eflore_nom_retenu {
font-size:x-large;}
.eflore_avertissement {
color:#FF0000;
background-color:#FFFFFF;}
.eflore_commentaire {
font-size:xx-small;}
.eflore_exemple {
font-family:"Courier New", Courier, "Andale Mono", Monaco, monospace;
font-style:italic;}
.eflore_lien {
text-decoration:none;}
.eflore_lien_info {
text-decoration:none;}
.eflore_ligne {
background-color:#E8FFE5;}
.eflore_num_taxo {
font-style:normal;
color:#CC0000;}
.eflore_num_nomen {
font-style:normal;
color:#009900;}
.child, .parent {
display:inline;}
 
/* Formulaire taxonomique */
#eflore_form_nomenclature legend {
display:none;}
#eflore_form_nomenclature fieldset {
border:0;
margin:0;
padding:0;}
#eflore_form_nomenclature label {
margin-right:15px;
font-weight:bold;}
#eflore_form_nomenclature ul {
margin:0;
padding:0;}
#eflore_form_nomenclature li {
margin:5px 0;
padding:0;
list-style:none;}
#eflore_form_nomenclature li ul {
margin-left:45px;}
#eflore_valider_nom {
margin-left:295px;}
 
/* Formulaire par projet */
#eflore_form_taxonomie legend {
display:none;}
#eflore_form_taxonomie fieldset {
border:0;
margin:0;
padding:0;}
#eflore_form_taxonomie label {
margin-right:15px;
font-weight:bold;}
#eflore_form_taxonomie ul {
margin:0;
padding:0;}
#eflore_form_taxonomie li {
margin-top:5px;
margin-bottom:5px;
list-style:none;}
#eflore_ordre_li {
display:inline;
padding-left:50px;}
#eflore_rang_li {
display:inline;
padding-left:15px;}
#eflore_projet_submit {
margin-left:295px;}
 
/* Liste des taxons */
#liste_taxons img {
border:0;
margin-right:6px;}
 
/* Pied de page */
#eflore_pied_page {
text-align:center;
font-size:10px;
color:#A9A9A9;}
/trunk/presentations/images/fermer.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/fermer.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/ouvrir.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/ouvrir.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/scripts/eflore.js
New file
0,0 → 1,142
/* $Id: eflore.js,v 1.1 2005-06-01 18:25:42 jpm Exp $ */
// These scripts were originally found on cooltype.com.
// Modified 01/01/1999 by Tobias Ratschiller for linuxapps.com
// Modified 7th June 2000 by Brian Birtles for Mozilla 5.0
// compatibility for phpMyAdmin
// Rewritten and put in a libray 2nd May 2001 by Loïc Chapeaux
// Traduit en français et utilisé dans Tela-Botanica fin octobre 2000
// par Alexandre Granier et Jean-Pascal Milcent.
// Test réussi avec : (Test passed with:)
// - Mozilla 0.8.1, 0.9.0, 0.9.1, 0.9.2 for Windows (js enabled & disabled)
// - IE5, 5.01, 5.5 for Windows
// - Netscape 4.75 for Windows
// - Opera 8
// - Konqueror 3.3.2
// Test échoué avec : ((crappy DOM implementations) with:)
// - Opera 5.02 for windows: 'getElementsByTagName' is unsupported
// - Opera 5.10 to 5.12 for windows, Opera 5+ for Linux: 'style.display' can't be changed
// - Konqueror 2+: 'style.display' can't be changed
 
// inclusion intempestive
/**
* Variables et test normalement présent dans le fichier html dans le head entre
* des balises <script></script>
*/
var isDOM = (typeof(document.getElementsByTagName) != 'undefined') ? 1 : 0;
var capable = (isDOM) ? 1 : 0;
 
var fontFamily = 'arial, geneva, sans-serif';
var isServer = true;
var isExpanded = false;
var imgOpened = new Image(9,9);
imgOpened.src = 'client/eflore_ancien/presentations/images/fermer.png';
imgOpened.alt = '-';
imgOpened.title = 'Cacher les informations complémentaires';
var imgClosed = new Image(9,9);
imgClosed.src = 'client/eflore_ancien/presentations/images/ouvrir.png';
imgClosed.alt = '+';
imgClosed.title = 'Voir les informations complémentaires';
 
/**
* Pliage des données au démarrage.
* (Collapses databases at startup)
*
* @access public
*/
function initIt()
{
if (!capable || !isServer) {
return;
}
if (isDOM) {
var tempColl = document.getElementsByTagName('span');
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';
}
// Fin du cas DOM (end of the DOM case)
}
} // Fin de la fonction 'initIt()' (end of the 'initIt()' function)
 
 
/**
* Plier/Déplier les données quand l'utilisateur le demande.
* (Collapses/expands a database when the user require this to be done)
*
* @param string le nom de l'élément à activer (the name of the room to act on)
* @param boolean si oui ou non le contenu des données doit être affiché (whether to expand or to collapse the database content)
*
* @access public
*/
function expandBase(el, unexpand)
{
if (!capable)
return;
if (isDOM) {
var whichEl = document.getElementById(el + 'Child');
var whichIm = document.getElementById(el + 'Img');
if (whichEl.style.display == 'none' && whichIm) {
whichEl.style.display = 'inline';
whichIm.src = imgOpened.src;
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 de la fonction 'expandBase()' (end of the 'expandBase()' function)
 
/**
* Affiche l'image permettant le Plier/Déplier
*
* @access public
*/
function afficherImage(numero, type)
{
with (document) {
if (isDOM) {
var image = '<img name="imEx" '+
'id="el'+numero+type+'Img" '+
'src="'+imgClosed.src+'" '+
'alt="'+imgClosed.alt+'" '+
'title="'+imgClosed.title+'" '+
'height="'+imgClosed.height+'" '+
'width="'+imgClosed.width+'">';
write(image);
}
}
} // fin de la fonction 'afficherImage()'
 
/**
* Ajout des styles permettant le positionnement des calques.
* Le style display est important pour afficher ou masquer les calques.
* Les styles child et parent doivent être utilisé pour les div du fichier html.
* (Add styles for positioned layers)
*/
if (capable) {
with (document) {
// Brian Birtles : This is not the ideal method of doing this
// but under the 7th June '00 Mozilla build (and many before
// it) Mozilla did not treat text between <style> tags as
// style information unless it was written with the one call
// to write().
if (isDOM) {
var lstyle = '<style type="text/css">'
+ '.child {display: none}'
+ '<\/style>';
write(lstyle);
}
}
} // Fin de l'ajout des styles (end of adding styles)
 
onload = initIt;
expandedDb = '';
/trunk/eflore_ancien.php
New file
0,0 → 1,294
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur eFlore. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_ancien.php,v 1.3 2006-11-09 18:09:43 jp_milcent Exp $
/**
* Moteur de recherche eFlore pour les Antilles et la Réunion
*
*@package eFlore
*@subpackage Ancien
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.3 $ $Date: 2006-11-09 18:09:43 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Inclusion du fichier de configuration général de l'application.*/
require_once 'client'.GEN_SEP.'eflore_ancien'.GEN_SEP.'configuration'.GEN_SEP.'eflore_config.inc.php';
/** Inclusion du fichier de configuration de la base de données de l'application.*/
require_once EF_PATH_CONFIG.'eflore_config_bdd.inc.php';
 
/** Inclusion de l'API Débogage */
require_once EF_PATH_API_BOG.'BOG_sql.fonct.php';
 
/** Inclusion du fichier permettant d'inclure les données dans du XHTML.*/
require_once EF_PATH_BIBLIO.'eflore_affichage_xhtml.fonct.php';
/** Inclusion du fichier permettant de réaliser les statistiques.*/
require_once EF_PATH_BIBLIO.'eflore_statistique.fonct.php';
 
/** Definition de la variable globale stokant la connexion à la base de données. */
$GLOBALS['db_ef'] = DB::connect(EF_DSN);
 
/** Inclusion du fichier de langue de l'application eflore. */
require_once EF_PATH_LANGUE.'eflore_langue_'.EF_LANGUE.'.inc.php';
 
// Ajout d'une feuille de style propre à eFlore.
GEN_stockerStyleExterne('eflore', EF_PATH_STYLE.'eflore.css');
 
// Stockage des scripts de l'application
GEN_stockerFichierScript('eflore', EF_PATH_SCRIPT.'eflore.js');
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Fonction afficherContenuCorps() - Fonction appelé par le gestionnaire Papyrus.
*
* Elle retourne le contenu de l'application.
*
* @return string du code XHTML correspondant au contenu renvoyé par l'application.
*/
function afficherContenuCorps()
{
global $servicexml, $xslt, $numnom, $numclass, $numtaxo, $alerte, $baseURL;
$tab_champ = array();
$res = '';
$type_recherche = '';
$envoyer_stat = '';
if (isset($_POST['eflore_chercher'])) {
$eflore_chercher = 'chercher';
} else if (isset($_GET['eflore_chercher'])) {
$eflore_chercher = 'chercher';
}
if (isset($_SESSION['radical']) ) {
if (isset($_POST['radical'])) {
if ($_SESSION['radical'] == $_POST['radical']) {
$radical = $_SESSION['radical'];
} else {
$radical = $_POST['radical'];
$_SESSION['radical'] = $radical;
}
} else if (isset($_GET['radical'])) {
if ($_SESSION['radical'] == $_GET['radical']) {
$radical = $_SESSION['radical'];
} else {
$radical = $_GET['radical'];
$_SESSION['radical'] = $radical;
}
} else {
$radical = $_SESSION['radical'];
}
} else if (!isset($_SESSION['radical']) ) {
if (isset($_POST['radical'])) {
$radical = $_POST['radical'];
$_SESSION['radical'] = $radical;
} else if (isset($_GET['radical'])) {
$radical = $_GET['radical'];
$_SESSION['radical'] = $radical;
} else {
$radical = '';
}
}
if (isset($_SESSION['recherche']) ) {
if (isset($_POST['recherche'])) {
if ($_SESSION['recherche'] == $_POST['recherche']) {
$recherche = $_SESSION['recherche'];
} else {
$recherche = $_POST['recherche'];
$_SESSION['recherche'] = $recherche;
}
} else if (isset($_GET['recherche'])) {
if ($_SESSION['recherche'] == $_GET['recherche']) {
$recherche = $_SESSION['recherche'];
} else {
$recherche = $_GET['recherche'];
$_SESSION['recherche'] = $recherche;
}
} else {
$recherche = $_SESSION['recherche'];
}
} else if (!isset($_SESSION['recherche']) ) {
if (isset($_POST['recherche'])) {
$recherche = $_POST['recherche'];
$_SESSION['recherche'] = $recherche;
} else if (isset($_GET['recherche'])) {
$recherche = $_GET['recherche'];
$_SESSION['recherche'] = $recherche;
} else {
$recherche = '';
}
}
if (isset($_SESSION['flore']) ) {
if (isset($_POST['flore'])) {
if ($_SESSION['flore'] == $_POST['flore']) {
$flore = $_SESSION['flore'];
} else {
$flore = $_POST['flore'];
$_SESSION['flore'] = $flore;
}
} else if (isset($_GET['flore'])) {
if ($_SESSION['flore'] == $_GET['flore']) {
$flore = $_SESSION['flore'];
} else {
$flore = $_GET['flore'];
$_SESSION['flore'] = $flore;
}
} else {
$flore = $_SESSION['flore'];
}
} else if (!isset($_SESSION['flore'])) {
if (isset($_POST['flore'])) {
$flore = $_POST['flore'];
$_SESSION['flore'] = $flore;
} else if (isset($_GET['flore'])) {
$flore = $_GET['flore'];
$_SESSION['flore'] = $flore;
} else {
$flore = '';
}
}
$baseURL = $GLOBALS['_GEN_commun']['url']->getURL();
//ATTENTION : Spécifique Papyrus:
if ( $GLOBALS['_EF_ANCIEN_']['maintenance'] != 'false' ) {//On teste si on est entrain de maintenir l'application ou pas
$date_fin_maintenance = $GLOBALS['_EF_ANCIEN_']['maintenance'];
$res = inclusion_html('debut_ligne_alerte').
"L'index des plantes est en cours de maintenance jusqu'à ".
"$date_fin_maintenance.<br /> Veuillez nous excusez pour ce désagrément.".
inclusion_html('fin_ligne_alerte');
return $res;
}
if ($GLOBALS['_EF_ANCIEN_']['statistique'] == 'true'){//On teste si on fait les stats ou pas
//Attribution d'une valeur à la variable type de recherche pour les stats
//en fonction du serviceXML
if ($recherche == 'LATIN'){//dans le cas d'une recherche par nom scientifique
$type_recherche = 'Nom scientifique';
} elseif ($recherche == 'VERNA'){//dans le cas d'une recherche par nom vernaculaire
$type_recherche = 'Nom vernaculaire';
}
//Ajout des valeurs standard au tableau contenant les champs spécifiques à la tables des données stat d'eflore
$tab_champ['ESD_CHAINE_RECHERCHE'] = $radical;
$tab_champ['ESD_TYPE_RECHERCHE'] = $type_recherche;
}
//ATTENTION : FIN Spécifique Papyrus.
$ef_suite = false;
if (isset($eflore_chercher) && !empty($recherche) && !empty($radical) && empty($numnom) && empty($numtaxo)) {
$envoyer_stat = true;//active l'envoie des données stat
if (eregi("^%{0,}[A-Za-zÀ-ÖØ-öø-ÿ]%{0,}[A-Za-zÀ-ÖØ-öø-ÿ]?%{0,}$", $radical) ) {
$alerte = message_alerte("02");//alerte utilisation d'au moins 3 caractères alphabétiques
// Ajout du champ résultat au tableau associatif contenant les champs spéficique à la table des données statistiques d'eflore
$tab_champ['ESD_RESULTAT'] = 'moins de 3 caractères';
} elseif (eregi("^%{1,}$", $radical) ) {
$alerte = message_alerte('03');//alerte n'accepte pas seulement le symbole %
// Ajout du champ résultat au tableau associatif contenant les champs spéficique à la table des données statistiques d'eflore
$tab_champ['ESD_RESULTAT'] = 'seulement des %';
} elseif (eregi("[&<>\"]{1,}", $radical) ) {
$alerte = message_alerte('04');//alerte n'accepte pas le symbole "<> dans le radical
// Ajout du champ résultat au tableau associatif contenant les champs spéficique à la table des données statistiques d'eflore
$tab_champ['ESD_RESULTAT'] = 'symbole incorrect';
} else {
$ef_suite = true;
}
} elseif (isset($eflore_chercher) && !empty($recherche) && $radical == '' && empty($numnom) && empty($numtaxo)) {
$alerte = message_alerte('01');//alerte champ de saisie vide
// Ajout du champ résultat au tableau associatif contenant les champs spéficique à la table des données statistiques d'eflore
$tab_champ['ESD_RESULTAT'] = 'sans radical';
// Active l'envoie des données stat
$envoyer_stat = true;
//Ok car $ef_suite par défaut à false
} elseif (!isset($eflore_chercher) && empty($numnom) && empty($numtaxo)) {
//Ok car $ef_suite par défaut à false
} else {
$ef_suite = true;
}
// Affichage
if ($ef_suite == true) {
include_once EF_PATH_ROOT.'eflore_transfo_xslt.inc.php';
} else {
// Affichage moteur de recherche
$res .= inclusion_html('rechercher');
$res .= inclusion_html('rechercher_aide');
}
// Statistique
if ($envoyer_stat == true && $GLOBALS['_EF_ANCIEN_']['statistique'] == 'true'){//On teste si on fait les stats ou pas
efloreDonneeStat($tab_champ);
}
return $res;
}
 
/** Fonction afficherContenuPied() - Fonction appelé par le gestionnaire Papyrus.
*
* Elle retourne le pied de l'application.
*
* @return string du code XHTML correspondant au pied renvoyé par l'application.
*/
function afficherContenuPied()
{
return inclusion_html('pied_page');
}
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2 2005/06/01 18:26:21 jpm
* Ajout d'éléments de css, scripts et amélioration de l'affichage.
*
* Revision 1.1 2005/05/24 15:57:48 jpm
* Gestion de l'ancienne base.
*
* Revision 1.3 2005/05/19 15:22:46 jpm
* Ajout du remplacement des & par des &amp;
*
* Revision 1.2 2005/05/19 13:17:02 jpm
* Ajout d'une balise div pour encadre le contenu du wikini.
*
* Revision 1.1 2005/03/02 17:47:05 jpm
* Ajout des fichiers necessaires à l'intégrateur de wikini.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/eflore_transfo_xslt.inc.php
New file
0,0 → 1,174
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Integrateur eFlore. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore_transfo_xslt.inc.php,v 1.3 2005-11-18 15:14:39 jp_milcent Exp $
/**
* Réalisation de la transfo XSL du XML d'eFlore.
*
*@package eFlore
*@subpackage Ancien
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.3 $ $Date: 2005-11-18 15:14:39 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
// Récupération des valeurs du formulaire
switch ($flore) {
case 'FRA':
$services = 'servicesxml/';
$baseURL .= '&amp;flore=FRA&amp;';
$tab_champ['esd_nom_index'] = 'France metropole';
break;
case 'REU':
$services = 'services_xml_mascareignes/';
$baseURL .= '&amp;flore=REU&amp;';
$tab_champ['esd_nom_index'] = 'France mascareignes';
break;
case 'ANT':
$services = 'services_xml_antilles/';
$baseURL .= '&amp;flore=ANT&amp;';
$tab_champ['esd_nom_index'] = 'France antilles';
break;
}
 
$numclass = (isset($_POST['numclass'])) ? $_POST['numclass'] : 1;
switch ($recherche) {
case 'LATIN':
$xml = 'donnelistetaxons.php';
$xslt = 'listetaxons.xsl';
break;
case 'VERNA':
$xml = 'donnelistenomsvernaculaires.php';
$xslt = 'listenomsvernaculaires.xsl';
break;
}
(isset($_GET['servicexml'])) ? $xml = $_GET['servicexml'] : '';
(isset($_GET['xslt'])) ? $xslt = $_GET['xslt'] : '';
 
$radical = rawurlencode($radical);
$param = '?radical='.$radical;
if (!empty($numclass)) $param .= '&numclass='.$numclass;
if (!empty($numnom)) $param .= '&numnom='.$numnom;
if (!empty($paramxslt)) $param .= '&paramxslt='.$paramxslt;
if (!empty($profondeur)) $param .= '&profondeur='.$profondeur;
if (!empty($numtaxo)) $param .= '&numtaxo='.$numtaxo;
 
if (empty($eFlore_rangtaxomin)) $eFlore_rangtaxomin = '';
if (empty($eFlore_rangtaxomax)) $eFlore_rangtaxomax = '';
if (empty($eFlore_nommin)) $eFlore_nommin = '';
if (empty($eFlore_nommax)) $eFlore_nommax = '';
 
if ($eFlore_rangtaxomin == -1) { $eFlore_rangtaxomin = 0; }
if ($eFlore_rangtaxomax == -1) { $eFlore_rangtaxomax = 100000000; }
if ($eFlore_nommin == '') { $eFlore_nommin = 'aaaa'; }
if ($eFlore_nommax == '') { $eFlore_nommax = 'zzzz'; }
 
//$chemin_service_XML = "http://test.tela-botanica.org/modules/client/eflore/servicesxml/".$xml.$param;
$chemin_service_XML = 'http://eflore.tela-botanica.org/'.$services.$xml.$param;
 
//$chemin_service_XML = "http://".$HTTP_HOST."/".EF_PATH_SERVICES.$xml.$param;
 
$xsl = join('', file(EF_PATH_XSLT.$xslt));
$xml = join ('', file($chemin_service_XML));
 
$arguments = array(
'/_xml' => $xml,
'/_xsl' => $xsl
);
 
// Nom du fichier temporaire pdf
//include ("php/lib/lib.divers.php") ;
//$tmp_pdf = "eflore_pdf".create_new_random(5) ;
 
 
// Début pour PHP 4 avec utilisation de Sablotron
/*
$xh = xslt_create();//Crée un nouvel analyseur XSLT.
xslt_set_encoding($xh,'ISO-8859-1');
$result = xslt_process($xh,'arg:/_xml', 'arg:/_xsl', NULL, $arguments);
*/
// Fin pour PHP 4
 
 
// Début pour PHP 5
$inputDom = new DomDocument(); //Crée un nouvel analyseur XSLT.
$inputDom->load($chemin_service_XML);
 
$xsl = new DomDocument();
$xsl->load(EF_PATH_XSLT.$xslt);
 
$proc = new xsltprocessor();
$xsl = $proc->importStylesheet($xsl);
 
$result = $proc->transformToXML($inputDom);
// Fin PHP 5
 
$result = ereg_replace ('transformer.php\?', $baseURL, $result) ;
//$result = ereg_replace ("pdf.php", $tmp_pdf.".php", $result) ;
if ($result) {
$res = $result;
$tab_champ['ESD_RESULTAT'] = 'ok';
} else {
// Début pour PHP 4 avec utilisation de Sablotron
//print 'Message d\'erreur XSLT: ' . xslt_error($xh) .//xslt_error -- Retourne le message d'erreur courant
//print ' avec le code : ' . xslt_errno($xh);//xslt_errno -- Retourne le numéro d'erreur courant
// Fin pour PHP 4
$tab_champ['ESD_RESULTAT'] = 'ERREUR';
}
// Début pour PHP 4 avec utilisation de Sablotron
/*
xslt_free($xh);//Détruit l'analyseur XSLT
*/
// Fin pour PHP 4
 
// Début pour PHP 5
unset($xsl);//Détruit l'analyseur XSLT
unset($inputDom);
// Fin pour PHP 5
 
//if ($servicexml == "donneidentitestaxons.php") {
// $xsl = join('', file(EF_PATH_XSLT.'identitetaxon_pdf.xsl'));
// $xml = join ('', file($chemin_service_XML));
// $xh = xslt_create() ;
// $arguments = array(
// '/_xml' => $xml,
// '/_xsl' => $xsl
// );
// $result = xslt_process($xh,'arg:/_xml', 'arg:/_xsl', NULL, $arguments) ;
// $result = ereg_replace("&lt;", "<", $result) ;
// $result = ereg_replace("&gt;", ">" , $result) ;
//$file_php = fopen("tmp/$tmp_pdf.php","w") ;
//fputs($file_php, $result) ;
// xslt_free($xh) ;
//}
 
?>