Subversion Repositories eFlore/Archives.eflore-consultation-v2

Compare Revisions

Ignore whitespace Rev 106 → Rev 107

/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.3 2005-01-19 12:58:19 jpm Exp $
// CVS : $Id: fiche_synthese_xhtml.php,v 1.4 2005-01-24 16:53:25 jpm Exp $
/**
* Vue affichant la fiche de synthèse d'un nom dans le projet donné
*
31,11 → 31,11
*@package eFlore
*@subpackage Vues
//Auteur original :
*@author Frédéric LEGNES <flegens@free.fr>
*@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.3 $ $Date: 2005-01-19 12:58:19 $
*@version $Revision: 1.4 $ $Date: 2005-01-24 16:53:25 $
// +------------------------------------------------------------------------------------------------------+
*/
 
81,11 → 81,11
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherNomInfos');
$retour .= '</p>'."\n";
$retour .= '<h2>'.'Présent dans : '.'</h2>'."\n";
$retour .= '<form id="eflore_form_projet" action="http://eflore-test.tela-botanica.org/serveurXML/eflore_serveur.php" method="get">'."\n";//{UrlProjetChangement}
$retour .= '<form id="eflore_form_projet" action="http://eflore-test.tela-botanica.org/serveurXML/eribo_serveur.php" method="get">'."\n";//{UrlProjetChangement}
$retour .= '<p>'."\n";
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherChampNom');
$retour .= '<select id="nvp" name="nvp">'."\n";
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION','afficherListeProjets');
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','afficherListeProjets', null, TRUE);
$retour .= '</select>'."\n";
$retour .= '<input type="submit" value="ok" />'."\n";
$retour .= '</p>'."\n";
94,119 → 94,130
// Gestion du nom correct
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
$aso_param['statut_id'] = 3;
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherNomCorrect', TRUE, $aso_param);
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherNomCorrect', $aso_param, TRUE);
// Gestion de la recherche Google
$retour .= '<h2>'.'Rechercher des illustrations avec Google : '.'</h2>'."\n";
$aso_param['statut_id'] = 3;
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherRechercheGoogle', TRUE, $aso_param);
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherRechercheGoogle', $aso_param, TRUE);
// Gestion de la synonymie
$retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
// Gestion des noms dont le statut n'est pas renseigné
$aso_param['statut_id'] = 0;
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherSynonyme', TRUE, $aso_param);
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
if (!empty($retour_syno)) {
$synonymie = '<h3>'.'Statut non renseigné : '.'</h3>'."\n";
$synonymie .= '<ol>'."\n";
$synonymie .= $retour_syno;
$synonymie .= '</ol>'."\n";
$retour .= $synonymie;
$retour_syno_final .= $synonymie;
}
// Gestion des noms dont le statut est inconnu
$aso_param['statut_id'] = 1;
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherSynonyme', TRUE, $aso_param);
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
if (!empty($retour_syno)) {
$synonymie = '<h3>'.'Statut inconnu : '.'</h3>'."\n";
$synonymie .= '<ol>'."\n";
$synonymie .= $retour_syno;
$synonymie .= '</ol>'."\n";
$retour .= $synonymie;
$retour_syno_final .= $synonymie;
}
// Gestion des noms dont le statut pose problème
$aso_param['statut_id'] = 2;
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherSynonyme', TRUE, $aso_param);
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
if (!empty($retour_syno)) {
$synonymie = '<h3>'.'Statut posant problème : '.'</h3>'."\n";
$synonymie .= '<ol>'."\n";
$synonymie .= $retour_syno;
$synonymie .= '</ol>'."\n";
$retour .= $synonymie;
$retour_syno_final .= $synonymie;
}
// Gestion des synonymes taxonomiques
$aso_param['statut_id'] = 4;
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherSynonyme', TRUE, $aso_param);
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
if (!empty($retour_syno)) {
$synonymie = '<h3>'.'Synonymes taxonomiques : '.'</h3>'."\n";
$synonymie .= '<ol>'."\n";
$synonymie .= $retour_syno;
$synonymie .= '</ol>'."\n";
$retour .= $synonymie;
$retour_syno_final .= $synonymie;
}
// Gestion des synonymes nomenclaturaux
$aso_param['statut_id'] = 5;
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherSynonyme', TRUE, $aso_param);
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
if (!empty($retour_syno)) {
$synonymie = '<h3>'.'Synonymes nomenclaturaux : '.'</h3>'."\n";
$synonymie .= '<ol>'."\n";
$synonymie .= $retour_syno;
$synonymie .= '</ol>'."\n";
$retour .= $synonymie;
$retour_syno_final .= $synonymie;
}
// Gestion des synonymes indéterminés
$aso_param['statut_id'] = 6;
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherSynonyme', TRUE, $aso_param);
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
if (!empty($retour_syno)) {
$synonymie = '<h3>'.'Synonymes indéterminés : '.'</h3>'."\n";
$synonymie .= '<ol>'."\n";
$synonymie .= $retour_syno;
$synonymie .= '</ol>'."\n";
$retour .= $synonymie;
$retour_syno_final .= $synonymie;
}
// Gestion des synonymes "inclu dans"
$aso_param['statut_id'] = 7;
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherSynonyme', TRUE, $aso_param);
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
if (!empty($retour_syno)) {
$synonymie = '<h3>'.'Synonymes "inclu dans": '.'</h3>'."\n";
$synonymie .= '<ol>'."\n";
$synonymie .= $retour_syno;
$synonymie .= '</ol>'."\n";
$retour .= $synonymie;
$retour_syno_final .= $synonymie;
}
// Gestion des synonymes au sens de
$aso_param['statut_id'] = 8;
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS','afficherSynonyme', TRUE, $aso_param);
$retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
if (!empty($retour_syno)) {
$synonymie = '<h3>'.'Synonymes "au sens de (<i>sensu</i>)": '.'</h3>'."\n";
$synonymie .= '<ol>'."\n";
$synonymie .= $retour_syno;
$synonymie .= '</ol>'."\n";
$retour .= $synonymie;
$retour_syno_final .= $synonymie;
}
if (empty($retour_syno_final)) {
$retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
$retour .= '<p>'.'Aucune synonymie pour ce nom dans ce projet.'.'</p>'."\n";
} else {
$retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
$retour .= $retour_syno_final;
}
// Gestion des noms vernaculaires
$retour .= '<h2>'.'Noms vernaculaires : '.'</h2>'."\n";
$retour .= '<table id="tableau_nom_verna">'."\n";
$retour .= ' <thead>'."\n";
$retour .= ' <tr><th>'.'Langue'.'</th><th>'.'Pays'.'</th><th>'.'Nom'.'</th><th>'.'Emploi'.'</th><th>'.'Genre et nombre'.'</th></tr>'."\n";
$retour .= ' </thead>'."\n";
$retour .= ' <tbody>'."\n";
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>VERNACULAIRE_NOMS','afficherNomVernaculaire');
$retour .= ' </tbody>'."\n";
$retour .= '</table>'."\n";
$nom_verna_lignes = $this->leBlock->afficherPattern('FICHE_SYNTHESE>VERNACULAIRE_NOMS','afficherNomVernaculaire');
if (empty($nom_verna_lignes)) {
$retour .= '<h2>'.'Noms vernaculaires :'.'</h2>'."\n";
$retour .= '<p>'.'Aucun nom vernaculaire pour ce taxon dans ce projet.'.'</p>'."\n";
} else {
$retour .= '<h2>'.'Noms vernaculaires : '.'</h2>'."\n";
$retour .= '<table id="tableau_nom_verna">'."\n";
$retour .= ' <thead>'."\n";
$retour .= ' <tr><th>'.'Langue'.'</th><th>'.'Pays'.'</th><th>'.'Nom'.'</th><th>'.'Emploi'.'</th><th>'.'Genre et nombre'.'</th></tr>'."\n";
$retour .= ' </thead>'."\n";
$retour .= ' <tbody>'."\n";
$retour .= $nom_verna_lignes;
$retour .= ' </tbody>'."\n";
$retour .= '</table>'."\n";
}
$retour .= '<!-- END corps -->'."\n";
$retour .= '<!-- BEGIN pied -->'."\n";
$retour .= '<p>'.'Si vous constatez des erreurs ou des insuffisances en consultant cet index, veuillez contacter :'."\n";
$retour .= ' <a href="mailto:eflore_remarques@tela-botanica.org">l\'équipe d\'eFlore</a>'."\n";
$retour .= '<p>'.'Si vous constatez des erreurs ou des insuffisances en consultant cet index, veuillez contacter '."\n";
$retour .= ' <a href="mailto:eflore_remarques@tela-botanica.org">l\'équipe d\'eFlore</a>.'."\n";
$retour .= '</p>'."\n";
$retour .= '<p>'."\n";
$retour .= ' <a href="http://jigsaw.w3.org/css-validator/check/referer">'."\n";
298,7 → 309,6
{
$retour = '';
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
//$retour .= '<br>';
$retour .= 'Numéro nomenclatural absolu : '.$donnees['en_id_nom']."\n";
$retour .= '<br />';
$retour .= 'Nom sélectionné précédemment : '.construireNomLatin($donnees).'<br />'."\n";
315,10 → 325,15
function afficherListeProjets($donnees)
{
$retour = '';
if ($donnees['nvp'] == $donnees['eprv_id_version']) {
$retour .= ' <option value="'.$donnees['eprv_id_version'].'" checked="checked">'.$donnees['eprv_nom'].' - '.$donnees['epr_intitule_projet'].'</option>'."\n";
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
if ($donnees['FICHE_SYNTHESE']['nvp'] == $donnees['NOM_SELECTION_PROJETS']['eprv_id_version']) {
$retour .= ' <option value="'.$donnees['NOM_SELECTION_PROJETS']['eprv_id_version'].'" selected="selected">';
$retour .= $donnees['NOM_SELECTION_PROJETS']['eprv_nom'].' - '.$donnees['NOM_SELECTION_PROJETS']['epr_intitule_projet'];
$retour .= '</option>'."\n";
} else {
$retour .= ' <option value="'.$donnees['eprv_id_version'].'">'.$donnees['eprv_nom'].' - '.$donnees['epr_intitule_projet'].'</option>'."\n";
$retour .= ' <option value="'.$donnees['NOM_SELECTION_PROJETS']['eprv_id_version'].'">';
$retour .= $donnees['NOM_SELECTION_PROJETS']['eprv_nom'].' - '.$donnees['NOM_SELECTION_PROJETS']['epr_intitule_projet'];
$retour .= '</option>'."\n";
}
return $retour;
}
328,7 → 343,7
$retour = '';
//$retour .= '<pre>'.print_r($aso_param, true).'</pre>';
if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
$retour .= '<p><strong>'.$donnees['TAXON_NOMS']['NOM_LATIN']['eni_intitule_nom'].'</strong></p>'."\n";
$retour .= '<p><strong>'.$donnees['NOM_LATIN']['eni_intitule_nom'].'</strong></p>'."\n";
}
return $retour;
}
343,7 → 358,7
$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";
$retour .= '</a>'."\n";
$retour .= '<input type="text" name="q" size="25" maxlength="255" value="'.construireNomLatin($donnees['TAXON_NOMS']['NOM_LATIN'], TRUE).'" />'."\n";
$retour .= '<input type="text" name="q" size="25" maxlength="255" value="'.construireNomLatin($donnees['NOM_LATIN'], TRUE).'" />'."\n";
$retour .= '<input type="hidden" name="ie" value="ISO-8859-1" />'."\n";
$retour .= '<input type="hidden" name="oe" value="ISO-8859-1" />'."\n";
$retour .= '<input type="hidden" name="hl" value="fr" />'."\n";
357,9 → 372,9
function afficherSynonyme($donnees, $aso_param)
{
$retour = '';
//$retour .= '<pre>'.print_r($aso_param, true).'</pre>';
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
$retour .= ' <li>'.$donnees['TAXON_NOMS']['NOM_LATIN']['eni_intitule_nom'].'</li>'."\n";
$retour .= ' <li>'.$donnees['NOM_LATIN']['eni_intitule_nom'].'</li>'."\n";
}
return $retour;
}
401,7 → 416,10
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.3 2005/01/19 12:58:19 jpm
* Début des tests pour gérer le formulaire de changement de projet.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>