/trunk/serveur/eflore_mv/vues/recherche_taxon_sup_xml.php |
---|
New file |
0,0 → 1,100 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 5.0.3 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This file is part of eRibo. | |
// | | |
// | 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: recherche_taxon_sup_xml.php,v 1.1 2005-06-30 15:25:07 jpm Exp $ |
/** |
* Vue affichant la liste des taxons d'un projet. |
* |
* Permet de retourner le xhtml correspondant à une liste hiérarchisées des taxons d'un projet. |
* |
*@package eFlore |
*@subpackage Vues |
//Auteur original : |
*@author Frédéric LEGENS <flegens@free.fr> |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ $Date: 2005-06-30 15:25:07 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php'; |
// +------------------------------------------------------------------------------------------------------+ |
// | CLASSE de la VUE | |
// +------------------------------------------------------------------------------------------------------+ |
class recherche_taxon_sup_xml implements iVue { |
protected $leBlock; |
function __construct($unBlock) |
{ |
$this->leBlock = $unBlock; |
} |
function serialiser() |
{ |
$retour = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'."\n"; |
$retour .= '<!DOCTYPE taxon ['."\n"; |
$retour .= ' <!ELEMENT taxon (#PCDATA)>'."\n"; |
$retour .= ']>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_TAXON_SUPERIEUR>TAXON_SUPERIEUR','afficherInfoTaxon'); |
// Envoi au navigateur après encodage en entité des caractères posant problème |
header('Content-Type: text/xml'); |
echo utf8_encode($retour); |
} |
} |
// +------------------------------------------------------------------------------------------------------+ |
// | LISTE des FONCTIONS | |
// +------------------------------------------------------------------------------------------------------+ |
function afficherInfoTaxon($donnees) |
{ |
$retour = ''; |
$retour .= '<taxon>'."\n"; |
$retour .= ' <etr_id_t2>'.$donnees['etr_id_taxon_2'].'</etr_id_t2>'."\n"; |
$retour .= ' <etr_id_vpt2>'.$donnees['etr_id_version_projet_taxon_2'].'</etr_id_vpt2>'."\n"; |
$retour .= ' <en_ce_r>'.$donnees['en_ce_rang'].'</en_ce_r>'."\n"; |
$retour .= ' <en_id_n>'.$donnees['en_id_nom'].'</en_id_n>'."\n"; |
$retour .= '</taxon>'."\n"; |
return $retour; |
} |
// +------------------------------------------------------------------------------------------------------+ |
// | PIED du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
?> |
/trunk/serveur/eflore_mv/vues/formulaire_taxonomique_xhtml.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: formulaire_taxonomique_xhtml.php,v 1.7 2005-06-09 18:09:52 jpm Exp $ |
// CVS : $Id: formulaire_taxonomique_xhtml.php,v 1.8 2005-06-30 15:25:07 jpm Exp $ |
/** |
* Vue affichant le formulaire de recherche taxonomique. |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.7 $ $Date: 2005-06-09 18:09:52 $ |
*@version $Revision: 1.8 $ $Date: 2005-06-30 15:25:07 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
74,19 → 74,15 |
$retour .= '<body>'."\n"; |
$retour .= '<!-- BEGIN corps -->'."\n"; |
$retour .= '<h2>'.'Consultation par projet'.'</h2>'."\n"; |
$retour .= '<h2>'.'Consultation taxonomique'.'</h2>'."\n"; |
$retour .= '<form id="eflore_form_taxonomie" name="eflore_form_taxonomie" action="{UrlProjetTaxon}" method="post">'."\n"; |
$retour .= '<fieldset>'."\n".'<legend>'.'Consultation par projet'.'</legend>'."\n"; |
$retour .= '<fieldset>'."\n".'<legend>'.'Consultation taxonomique'.'</legend>'."\n"; |
$retour .= '<ul>'."\n"; |
$retour .= '<li><label for="eflore_projet">'.'Projet : '.'</label>'."\n"; |
$retour .= '<li><label for="eflore_projet">'.'Référenciel : '.'</label>'."\n"; |
$retour .= '<select id="eflore_projet" name="eflore_projet">'."\n"; |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE>PROJET_VERSION_TOUS','afficherProjets', null, TRUE); |
$retour .= '</select></li>'."\n"; |
$retour .= '<li id="eflore_ordre_li"><label for="eflore_ordre">'.'afficher les taxons : '.'</label>'."\n"; |
$retour .= '<select id="eflore_ordre" name="eflore_ordre">'."\n"; |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE','afficherOrdre'); |
$retour .= '</select></li>'."\n"; |
$retour .= '<li id="eflore_rang_li"><label for="eflore_rang">'.'au rang : '.'</label>'."\n"; |
$retour .= '<li id="eflore_rang_li"><label for="eflore_rang">'.'Rang : '.'</label>'."\n"; |
$retour .= '<select id="eflore_rang" name="eflore_rang">'."\n"; |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE','afficherRang'); |
$retour .= '</select></li>'."\n"; |
94,6 → 90,7 |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE>TAXON_RECHERCHE','creerAlphabetTaxon'); |
$retour .= afficherAlphabetTaxon(); |
$retour .= '</ul>'."\n"; |
$retour .= '<input id="eflore_ordre" name="eflore_ordre" type="hidden" value="ega" />'."\n"; |
$retour .= '</fieldset>'."\n"; |
$retour .= '</form>'."\n"; |
$retour .= '<!-- END corps -->'."\n"; |
116,7 → 113,7 |
} else { |
$retour .= ' <option value="'.$donnees['PROJET_VERSION_TOUS']['eprv_id_version'].'">'; |
} |
$retour .= $donnees['PROJET_VERSION_TOUS']['eprv_nom'].' - '.$donnees['PROJET_VERSION_TOUS']['epr_intitule_projet']; |
$retour .= $donnees['PROJET_VERSION_TOUS']['eprv_nom'].' ('.$donnees['PROJET_VERSION_TOUS']['eprv_code_version'].') - '.$donnees['PROJET_VERSION_TOUS']['epr_intitule_projet']; |
$retour .= '</option>'."\n"; |
return $retour; |
} |
145,7 → 142,7 |
} |
return $retour; |
} |
// Fonction afficherOrdre($donnees) inutilisé en mode d'affichage par défaut |
function afficherOrdre($donnees) |
{ |
$retour = ''; |
210,6 → 207,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.7 2005/06/09 18:09:52 jpm |
* Début gestion des référenciels dans la recherche nomenclaturale. |
* |
* Revision 1.6 2005/03/15 15:11:07 jpm |
* Ajout d'une sélection par défaut pour le choix de l'ordre. |
* |
/trunk/serveur/eflore_mv/vues/fiche_synthese_xhtml.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: fiche_synthese_xhtml.php,v 1.8 2005-02-14 18:11:43 jpm Exp $ |
// CVS : $Id: fiche_synthese_xhtml.php,v 1.9 2005-06-30 15:25:07 jpm Exp $ |
/** |
* Vue affichant la fiche de synthèse d'un nom dans le projet donné |
* |
35,7 → 35,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.8 $ $Date: 2005-02-14 18:11:43 $ |
*@version $Revision: 1.9 $ $Date: 2005-06-30 15:25:07 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
111,8 → 111,7 |
} |
// Gestion du nom correct |
$retour .= '<h2>'.'Nom correct dans le projet courant: '; |
$retour .= '</h2>'."\n"; |
$retour .= '<h2>'.'Nom correct dans le projet courant: '.'</h2>'."\n"; |
$aso_param['statut_id'] = 3; |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherNomCorrect', $aso_param, TRUE); |
121,6 → 120,10 |
$aso_param['statut_id'] = 3; |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherRechercheGoogle', $aso_param, TRUE); |
// Gestion des taxons supérieurs |
$retour .= '<h2>'.'Niveaux taxinomiques supérieurs : '.'</h2>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE','afficherNiveauTaxoSuperieur'); |
// Gestion de la synonymie |
// Gestion des noms dont le statut n'est pas renseigné |
$aso_param['statut_id'] = 0; |
384,7 → 387,7 |
$retour = ''; |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) { |
$retour .= '<form method="get" action="http://images.google.fr/images">'."\n"; |
$retour .= '<form method="get" action="http://images.google.fr/images" target="_blank">'."\n"; |
$retour .= '<p>'."\n"; |
$retour .= '<a href="http://www.google.com/" title="Aller sur Google France">'."\n"; |
$retour .= ' <img src="http://www.google.com/logos/Logo_25wht.gif" alt="Google" />'."\n"; |
399,7 → 402,13 |
} |
return $retour; |
} |
function afficherNiveauTaxoSuperieur($donnees) |
{ |
$retour = ''; |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
$retour .= 'func_NiveauTaxo('.$donnees['nt'].', '.$donnees['nvp'].')'; |
return $retour; |
} |
function afficherSynonyme($donnees, $aso_param) |
{ |
$retour = ''; |
447,6 → 456,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.8 2005/02/14 18:11:43 jpm |
* Amélioration. |
* |
* Revision 1.7 2005/01/28 19:46:18 jpm |
* Amélioration de l'affichage des projets utilisant le noms sélectionné. |
* |
/trunk/serveur/eflore_mv/vues/recherche_nom_vernaculaire_xhtml.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: recherche_nom_vernaculaire_xhtml.php,v 1.3 2005-06-09 18:09:52 jpm Exp $ |
// CVS : $Id: recherche_nom_vernaculaire_xhtml.php,v 1.4 2005-06-30 15:25:07 jpm Exp $ |
/** |
* Vue affichant la liste des noms vernaculaire correspondant à un radical recherché. |
* |
35,7 → 35,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.3 $ $Date: 2005-06-09 18:09:52 $ |
*@version $Revision: 1.4 $ $Date: 2005-06-30 15:25:07 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
42,8 → 42,16 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/* Inclusion du fichier permettant de gérer l'encodage des noms vernaculaires*/ |
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php'; |
$GLOBALS['num_nom_verna'] = 1; |
/* Variable stockant le nombre de nom verna actuellement affiché*/ |
$GLOBALS['_NOM_VERNA_']['num'] = 0; |
/* Variable stockant le n° du message à afficher*/ |
$GLOBALS['_NOM_VERNA_']['message'] = 1; |
/* Variable permettant de savoir si on a déjà afficher l'entête du tableau des noms verna*/ |
$GLOBALS['_NOM_VERNA_']['tete'] = true; |
/* Variable permettant de savoir si on a déjà afficher le pied du tableau des noms verna*/ |
$GLOBALS['_NOM_VERNA_']['pied'] = true; |
// +------------------------------------------------------------------------------------------------------+ |
// | CLASSE de la VUE | |
59,8 → 67,8 |
function serialiser() |
{ |
$retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n"; |
$retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n"; |
/*$retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n";*/ |
$retour = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n"; |
$retour .= '<html xmlns="http://w ww.w3.org/1999/xhtml" lang="fr" >'."\n"; |
$retour .= '<head>'."\n"; |
69,7 → 77,7 |
$retour .= '<meta http-equiv="Content-style-type" content="text/css" />'."\n"; |
$retour .= '<meta http-equiv="Content-script-type" content="text/javascript />'."\n"; |
$retour .= '<meta http-equiv="Content-language" content="fr" />'."\n"; |
$retour .= '<title>Liste de noms latins</title>'."\n"; |
$retour .= '<title>'.'Liste de noms vernaculaires'.'</title>'."\n"; |
$retour .= '<!-- END entete -->'."\n"; |
$retour .= '</head>'."\n"; |
76,18 → 84,15 |
$retour .= '<body>'."\n"; |
$retour .= '<!-- BEGIN corps -->'."\n"; |
$retour .= '<h1>'.'Liste des noms vernaculaires'.'</h1>'."\n"; |
$retour .= '<table id="eflore_table_resultat_nv">'."\n"; |
$retour .= '<caption>'; |
$retour .= 'Liste des noms vernaculaires correspondant au radical "'; |
$retour .= '<h2>'.'Résumé de la recherche :'.'</h2>'."\n"; |
$retour .= '<dl>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS_VERNA','afficherRadical'); |
$retour .= '"</caption>'."\n"; |
$retour .= '<thead>'."\n"; |
$retour .= '<tr><th>'.'N°'.'</th><th>'.'Langue'.'</th><th>'.'Pays'.'</th><th>'.'Nom vernaculaire'.'</th><th>'.'Nom latin correspondant'.'</th></tr>'."\n"; |
$retour .= '</thead>'."\n"; |
$retour .= '<tbody>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS_VERNA>PROJET_VERSION','afficherResumerRecherche'); |
$retour .= '</dl>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS_VERNA>VERNACULAIRE_RECHERCHE','afficherTableEntete'); |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS_VERNA>VERNACULAIRE_RECHERCHE','afficherNomVerna'); |
$retour .= '</tbody>'."\n"; |
$retour .= '</table>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS_VERNA>VERNACULAIRE_RECHERCHE','afficherTablePied'); |
$retour .= afficherMessage(); |
$retour .= '<!-- END corps -->'."\n"; |
$retour .= '</body>'."\n"; |
$retour .= '</html>'."\n"; |
102,27 → 107,77 |
// +------------------------------------------------------------------------------------------------------+ |
function afficherRadical($donnees) |
{ |
return $donnees['radical']; |
//$retour = '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = '<dt>'.'Radical : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['radical'].'</dd>'."\n"; |
return $retour; |
} |
function afficherResumerRecherche($donnees) |
{ |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = ''; |
if (!empty($donnees['epr_intitule_projet'])) { |
$retour .= '<dt>'.'Référentiel : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['epr_intitule_projet'].' - Version : '.$donnees['eprv_code_version'].'</dd>'."\n"; |
} |
return $retour; |
} |
function afficherTableEntete($donnees) |
{ |
$retour = ''; |
if (isset($donnees['ev_id_nom_vernaculaire']) AND $GLOBALS['_NOM_VERNA_']['tete'] == true) { |
$GLOBALS['_NOM_VERNA_']['tete'] = false; |
$retour .= '<table id="eflore_table_resultat_nv">'."\n"; |
$retour .= '<caption>'.'Liste des noms vernaculaires correspondant au radical recherché'.'</caption>'."\n"; |
$retour .= '<thead>'."\n"; |
$retour .= '<tr><th>'.'N°'.'</th><th>'.'Langue'.'</th><th>'.'Pays'.'</th><th>'.'Nom vernaculaire'.'</th><th>'.'Nom latin correspondant'.'</th></tr>'."\n"; |
$retour .= '</thead>'."\n"; |
$retour .= '<tbody>'."\n"; |
} |
return $retour; |
} |
function afficherNomVerna($donnees) |
{ |
$retour = ''; |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
if (isset($donnees['ev_id_nom_vernaculaire'])) { |
$GLOBALS['_NOM_VERNA_']['message'] = 0; |
$retour .= '<tr>'."\n"; |
$retour .= '<td>'.$GLOBALS['num_nom_verna']++.'</td>'."\n"; |
$retour .= '<td>'.++$GLOBALS['_NOM_VERNA_']['num'].'</td>'."\n"; |
$retour .= '<td><abbr title="'.$donnees['ezg_intitule_principal_zg'].'">'.$donnees['ezg_code_zg'].'</abbr></td>'."\n"; |
$retour .= '<td><abbr title="'.$donnees['el_nom_langue_principal'].'">'.$donnees['el_code_langue'].'</abbr></td>'."\n"; |
$retour .= '<td>'.$donnees['ev_intitule_nom_vernaculaire'].'</td>'."\n"; |
if (isset($donnees['esn_ce_statut'])) { |
if ($donnees['esn_ce_statut'] == 3) {//Nom retenu |
$retour .= '<td><strong><a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['et_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></strong></td>'; |
$retour .= '<td><strong><a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></strong></td>'; |
} else { |
$retour .= '<td><a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></td>'; |
} |
} |
$retour .= '</tr>'."\n"; |
} |
return $retour; |
} |
function afficherTablePied($donnees) |
{ |
$retour = ''; |
if (isset($donnees['ev_id_nom_vernaculaire']) AND $GLOBALS['_NOM_VERNA_']['pied'] == true) { |
$GLOBALS['_NOM_VERNA_']['pied'] = false; |
$retour .= '</tbody>'."\n"; |
$retour .= '</table>'."\n"; |
} |
return $retour; |
} |
function afficherMessage($donnees = array()) |
{ |
$retour = ''; |
if ($GLOBALS['_NOM_VERNA_']['message'] == 1 AND $GLOBALS['_NOM_VERNA_']['num'] == 0) { |
$retour .= '<p class="information">'.'Les noms vernaculaires de ce référentiel n\'ont pas encore été renseignés!'.'</p>'."\n"; |
} elseif ($GLOBALS['_NOM_VERNA_']['num'] == 0) { |
$retour .= '<p class="information">'.'Aucun nom vernaculaire ne correspond à ce radical!'.'</p>'."\n"; |
} |
return $retour; |
} |
// +------------------------------------------------------------------------------------------------------+ |
// | PIED du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
131,6 → 186,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.3 2005/06/09 18:09:52 jpm |
* Début gestion des référenciels dans la recherche nomenclaturale. |
* |
* Revision 1.2 2005/01/28 19:47:09 jpm |
* Amélioration du rendu par ajout d'entité à la place des caractères posant pb et changement de l'encodage. |
* |
/trunk/serveur/eflore_mv/vues/recherche_nom_latin_xhtml.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: recherche_nom_latin_xhtml.php,v 1.6 2005-06-09 18:09:52 jpm Exp $ |
// CVS : $Id: recherche_nom_latin_xhtml.php,v 1.7 2005-06-30 15:25:07 jpm Exp $ |
/** |
* Vue affichant la liste des noms latins correspondant à un radical recherché. |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.6 $ $Date: 2005-06-09 18:09:52 $ |
*@version $Revision: 1.7 $ $Date: 2005-06-30 15:25:07 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
41,7 → 41,14 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/* Inclusion du fichier permettant de gérer l'encodage des noms vernaculaires*/ |
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php'; |
/* Variable stockant le nombre de noms latins actuellement affichés*/ |
$GLOBALS['_NOM_LATIN_']['num'] = 0; |
/* Variable permettant de savoir si on a déjà afficher l'entête de la liste des noms latins*/ |
$GLOBALS['_NOM_LATIN_']['tete'] = true; |
/* Variable permettant de savoir si on a déjà afficher le pied de la liste des noms latins*/ |
$GLOBALS['_NOM_LATIN_']['pied'] = true; |
// +------------------------------------------------------------------------------------------------------+ |
// | CLASSE de la VUE | |
80,6 → 87,7 |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>PROJET_VERSION','afficherResumerRecherche'); |
$retour .= '</dl>'."\n"; |
$retour .= '<ol>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_RECHERCHE','afficherNom'); |
$retour .= '</ol>'."\n"; |
$retour .= '<!-- END corps -->'."\n"; |
111,16 → 119,25 |
{ |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = ''; |
if ($donnees['epr_intitule_projet'] != '' || $donnees['epr_intitule_projet'] != 0) { |
if (!empty($donnees['epr_intitule_projet'])) { |
$retour .= '<dt>'.'Référentiel : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['epr_intitule_projet'].' - Version : '.$donnees['eprv_code_version'].'</dd>'."\n"; |
} |
return $retour; |
} |
function afficherListeEntete($donnees) |
{ |
$retour = ''; |
if ($GLOBALS['_NOM_LATIN_']['tete'] == true) { |
$GLOBALS['_NOM_LATIN_']['tete'] = false; |
$retour .= '<ol>'."\n"; |
} |
return $retour; |
} |
function afficherNom($donnees) |
{ |
//$retour = '<pre>'.print_r($donnees, true).'</pre>'; |
++$GLOBALS['_NOM_LATIN_']['num']; |
$retour = '<li>'; |
if (isset($donnees['esn_ce_statut'])) { |
if ($donnees['esn_ce_statut'] == 3) {//Nom retenu |
134,7 → 151,23 |
$retour .= '</li>'."\n"; |
return $retour; |
} |
function afficherListePied($donnees) |
{ |
$retour = ''; |
if ($GLOBALS['_NOM_LATIN_']['pied'] == true) { |
$GLOBALS['_NOM_LATIN_']['pied'] = false; |
$retour .= '</ol>'."\n"; |
} |
return $retour; |
} |
function afficherMessage($donnees = array()) |
{ |
$retour = ''; |
if ($GLOBALS['_NOM_LATIN_']['num'] == 0) { |
$retour .= '<p class="information">'.'Aucun nom latin ne correspond à ce radical!'.'</p>'."\n"; |
} |
return $retour; |
} |
// +------------------------------------------------------------------------------------------------------+ |
// | PIED du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
143,6 → 176,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.6 2005/06/09 18:09:52 jpm |
* Début gestion des référenciels dans la recherche nomenclaturale. |
* |
* Revision 1.5 2005/03/15 13:45:42 tam |
* modifs labels |
* |
/trunk/serveur/eflore_mv/vues/formulaire_nomenclatural_xhtml.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: formulaire_nomenclatural_xhtml.php,v 1.1 2005-06-09 18:09:52 jpm Exp $ |
// CVS : $Id: formulaire_nomenclatural_xhtml.php,v 1.2 2005-06-30 15:25:07 jpm Exp $ |
/** |
* Vue affichant le formulaire de recherche nomenclaturale. |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.1 $ $Date: 2005-06-09 18:09:52 $ |
*@version $Revision: 1.2 $ $Date: 2005-06-30 15:25:07 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
110,7 → 110,7 |
{ |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
$retour .= ' <option value="'.$donnees['PROJET_VERSION_TOUS']['eprv_id_version'].'" func_selectionnerEfloreRef('.$donnees['PROJET_VERSION_TOUS']['eprv_id_version'].')>'; |
$retour .= $donnees['PROJET_VERSION_TOUS']['eprv_nom'].' - '.$donnees['PROJET_VERSION_TOUS']['epr_intitule_projet']; |
$retour .= $donnees['PROJET_VERSION_TOUS']['eprv_nom'].' ('.$donnees['PROJET_VERSION_TOUS']['eprv_code_version'].') - '.$donnees['PROJET_VERSION_TOUS']['epr_intitule_projet']; |
$retour .= '</option>'."\n"; |
return $retour; |
} |
123,6 → 123,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.1 2005/06/09 18:09:52 jpm |
* Début gestion des référenciels dans la recherche nomenclaturale. |
* |
* Revision 1.6 2005/03/15 15:11:07 jpm |
* Ajout d'une sélection par défaut pour le choix de l'ordre. |
* |