/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.5 2005-03-15 13:45:42 tam Exp $ |
// CVS : $Id: recherche_nom_latin_xhtml.php,v 1.6 2005-06-09 18:09:52 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.5 $ $Date: 2005-03-15 13:45:42 $ |
*@version $Revision: 1.6 $ $Date: 2005-06-09 18:09:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
74,7 → 74,11 |
$retour .= '<body>'."\n"; |
$retour .= '<!-- BEGIN corps -->'."\n"; |
$retour .= '<h1>'.'Liste des noms trouvés'.'</h1>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','afficherResumerRecherche'); |
$retour .= '<h2>'.'Résumé de la recherche :'.'</h2>'."\n"; |
$retour .= '<dl>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','afficherRadicalRang'); |
$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"; |
90,21 → 94,44 |
// +------------------------------------------------------------------------------------------------------+ |
// | LISTE des FONCTIONS | |
// +------------------------------------------------------------------------------------------------------+ |
function afficherResumerRecherche($donnees) |
function afficherRadicalRang($donnees) |
{ |
$retour .= '<h2>'.'Résumé de la recherche :'.'</h2>'."\n"; |
$retour .= '<p>'."\n"; |
$retour .= 'Radical : '.$donnees['radical']."\n"; |
//$retour = '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = '<dt>'.'Radical : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['radical'].'</dd>'."\n"; |
if ($donnees['rang'] != '' || $donnees['rang'] != 0) { |
$retour .= ' - Rang : '.$donnees['rang']."\n"; |
$retour .= '<dt>'.'Rang : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['rang'].'</dd>'."\n"; |
} |
$retour .= '</p>'."\n"; |
return $retour; |
} |
function afficherResumerRecherche($donnees) |
{ |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = ''; |
if ($donnees['epr_intitule_projet'] != '' || $donnees['epr_intitule_projet'] != 0) { |
$retour .= '<dt>'.'Référentiel : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['epr_intitule_projet'].' - Version : '.$donnees['eprv_code_version'].'</dd>'."\n"; |
} |
return $retour; |
} |
function afficherNom($donnees) |
{ |
$retour .= '<li><a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a></li>'."\n"; |
//$retour = '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = '<li>'; |
if (isset($donnees['esn_ce_statut'])) { |
if ($donnees['esn_ce_statut'] == 3) {//Nom retenu |
$retour .= '<strong><a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></strong>'; |
} else { |
$retour .= '<a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a>'; |
} |
} else { |
$retour .= '<a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a>'; |
} |
$retour .= '</li>'."\n"; |
return $retour; |
} |
116,6 → 143,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.5 2005/03/15 13:45:42 tam |
* modifs labels |
* |
* Revision 1.4 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/formulaire_nomenclatural_xhtml.php |
---|
New file |
0,0 → 1,144 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 5.0.3 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2005 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: formulaire_nomenclatural_xhtml.php,v 1.1 2005-06-09 18:09:52 jpm Exp $ |
/** |
* Vue affichant le formulaire de recherche nomenclaturale. |
* |
* Permet de retourner le xhtml correspondant au formulaire de recherche nomenclaturale. |
* |
*@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-2005 |
*@version $Revision: 1.1 $ $Date: 2005-06-09 18:09:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php'; |
// +------------------------------------------------------------------------------------------------------+ |
// | CLASSE de la VUE | |
// +------------------------------------------------------------------------------------------------------+ |
class formulaire_nomenclatural_xhtml implements iVue { |
protected $leBlock; |
function __construct($unBlock) |
{ |
$this->leBlock = $unBlock; |
} |
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 .= '<html xmlns="http://w ww.w3.org/1999/xhtml" lang="fr" >'."\n"; |
$retour .= '<head>'."\n"; |
$retour .= '<!-- BEGIN entete -->'."\n"; |
$retour .= '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />'."\n"; |
$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>Formulaire de recherche nomenclaturale</title>'."\n"; |
$retour .= '<!-- END entete -->'."\n"; |
$retour .= '</head>'."\n"; |
$retour .= '<body>'."\n"; |
$retour .= '<!-- BEGIN corps -->'."\n"; |
$retour .= '<h2>'.'Rechercher une plante par son nom'.'</h2>'."\n"; |
$retour .= '<form id="eflore_form_nomenclature" name="eflore_form_nomenclature" action="{UrlProjetNom}" method="post">'."\n"; |
$retour .= '<fieldset>'."\n".'<legend>'.'Recherche par nom'.'</legend>'."\n"; |
$retour .= '<ul>'."\n"; |
$retour .= '<li><label for="eflore_nom">'.'Nom : '.'</label>'."\n"; |
$retour .= '<input id="eflore_nom" name="eflore_nom" class="champ" tabindex="1000" size="45" maxlength="255" onclick="javascript: this.value=\'\';" type="text" value="{eflore_nom}" /></li>'."\n"; |
$retour .= '<li><label for="eflore_referenciel">'.'Référenciel : '.'</label>'."\n"; |
$retour .= '<select id="eflore_referenciel" name="eflore_referenciel" tabindex="1001">'."\n"; |
$retour .= ' <option value="0" func_selectionnerEfloreRef(0)>'.'Tous'.'</option>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_NOMENCLATURAL>PROJET_VERSION_TOUS','afficherReferenciels', null, TRUE); |
$retour .= '</select></li>'."\n"; |
$retour .= '<li>'."\n".'<ul>'."\n"; |
$retour .= '<li><input id="eflore_type_nom_scientifique" tabindex="1002" name="eflore_type_nom" value="nom_scientifique" type="radio" {eflore_type_nom_scientifique} />'; |
$retour .= '<label for="eflore_type_nom_scientifique">nom scientifique</label></li>'."\n"; |
$retour .= '<li><input id="eflore_type_nom_vernaculaire" tabindex="1003" name="eflore_type_nom" value="nom_vernaculaire" type="radio" {eflore_type_nom_vernaculaire} />'; |
$retour .= '<label for="eflore_type_nom_vernaculaire">nom vernaculaire</label></li>'."\n"; |
$retour .= '</ul>'."\n".'</li>'."\n"; |
$retour .= '<li><input id="eflore_nomenclature_submit" type="submit" value="'.'OK'.'" /></li>'."\n"; |
$retour .= '</ul>'."\n"; |
$retour .= '</fieldset>'."\n"; |
$retour .= '</form>'."\n"; |
$retour .= '<!-- END corps -->'."\n"; |
$retour .= '</body>'."\n"; |
$retour .= '</html>'."\n"; |
// Envoi au navigateur après encodage en entité des caractères posant problème |
echo remplaceEntiteHTLM($retour); |
} |
} |
// +------------------------------------------------------------------------------------------------------+ |
// | LISTE des FONCTIONS | |
// +------------------------------------------------------------------------------------------------------+ |
function afficherReferenciels($donnees) |
{ |
//$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 .= '</option>'."\n"; |
return $retour; |
} |
// +------------------------------------------------------------------------------------------------------+ |
// | PIED du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.6 2005/03/15 15:11:07 jpm |
* Ajout d'une sélection par défaut pour le choix de l'ordre. |
* |
* Revision 1.5 2005/03/15 14:45:59 tam |
* modifs labels |
* |
* Revision 1.2 2005/02/09 13:06:52 jpm |
* Modification pour utiliser le macro-élément PROJET_VERSION_TOUS. |
* |
* Revision 1.1 2005/01/28 19:45:44 jpm |
* Début recheche taxons. |
* |
* Revision 1.1 2005/01/26 10:45:33 jpm |
* Ajout des résultats de recherche par noms vernaculaires. |
* |
* |
* +-- 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.6 2005-03-15 15:11:07 jpm Exp $ |
// CVS : $Id: formulaire_taxonomique_xhtml.php,v 1.7 2005-06-09 18:09:52 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.6 $ $Date: 2005-03-15 15:11:07 $ |
*@version $Revision: 1.7 $ $Date: 2005-06-09 18:09:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
68,7 → 68,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>Formulaire de recherche taxonomique</title>'."\n"; |
$retour .= '<!-- END entete -->'."\n"; |
$retour .= '</head>'."\n"; |
90,7 → 90,7 |
$retour .= '<select id="eflore_rang" name="eflore_rang">'."\n"; |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE','afficherRang'); |
$retour .= '</select></li>'."\n"; |
$retour .= '<li id="eflore_projet_submit"><input type="submit" value="'.'OK'.'" /></li>'."\n"; |
$retour .= '<li><input id="eflore_taxonomie_submit" type="submit" value="'.'OK'.'" /></li>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE>TAXON_RECHERCHE','creerAlphabetTaxon'); |
$retour .= afficherAlphabetTaxon(); |
$retour .= '</ul>'."\n"; |
210,6 → 210,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.6 2005/03/15 15:11:07 jpm |
* Ajout d'une sélection par défaut pour le choix de l'ordre. |
* |
* Revision 1.5 2005/03/15 14:45:59 tam |
* modifs labels |
* |
/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.2 2005-01-28 19:47:09 jpm Exp $ |
// CVS : $Id: recherche_nom_vernaculaire_xhtml.php,v 1.3 2005-06-09 18:09:52 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.2 $ $Date: 2005-01-28 19:47:09 $ |
*@version $Revision: 1.3 $ $Date: 2005-06-09 18:09:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
76,7 → 76,7 |
$retour .= '<body>'."\n"; |
$retour .= '<!-- BEGIN corps -->'."\n"; |
$retour .= '<h1>'.'Liste des noms vernaculaires'.'</h1>'."\n"; |
$retour .= '<table>'."\n"; |
$retour .= '<table id="eflore_table_resultat_nv">'."\n"; |
$retour .= '<caption>'; |
$retour .= 'Liste des noms vernaculaires correspondant au radical "'; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS_VERNA','afficherRadical'); |
109,10 → 109,16 |
{ |
$retour .= '<tr>'."\n"; |
$retour .= '<td>'.$GLOBALS['num_nom_verna']++.'</td>'."\n"; |
$retour .= '<td title="'.$donnees['ezg_intitule_principal_zg'].'">'.$donnees['ezg_code_zg'].'</td>'."\n"; |
$retour .= '<td title="'.$donnees['el_nom_langue_principal'].'">'.$donnees['el_code_langue'].'</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"; |
$retour .= '<td>'.'<a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['et_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></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>'; |
} 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; |
} |
125,6 → 131,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* 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. |
* |
* Revision 1.1 2005/01/26 10:45:33 jpm |
* Ajout des résultats de recherche par noms vernaculaires. |
* |