Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 144 | Rev 180 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
64 jpm 1
<?php
86 jpm 2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
117 jpm 4
// | PHP version 5.0.3                                                                                    |
86 jpm 5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of eRibo.                                                                          |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
173 jpm 24
// CVS : $Id: fiche_synthese_xhtml.php,v 1.9 2005-06-30 15:25:07 jpm Exp $
86 jpm 25
/**
26
* Vue affichant la fiche de synthèse d'un nom dans le projet donné
27
*
28
* Permet de retourner le html correspondant à la fiche de synthèse d'un nom
29
* dans un projet donné.
30
*
31
*@package eFlore
32
*@subpackage Vues
33
//Auteur original :
107 jpm 34
*@author        Frédéric LEGENS <flegens@free.fr>
86 jpm 35
//Autres auteurs :
36
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
37
*@copyright     Tela-Botanica 2000-2004
173 jpm 38
*@version       $Revision: 1.9 $ $Date: 2005-06-30 15:25:07 $
86 jpm 39
// +------------------------------------------------------------------------------------------------------+
40
*/
64 jpm 41
 
86 jpm 42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
45
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php';
124 jpm 46
$GLOBALS['nbre_projet'] = 0;
86 jpm 47
 
48
// +------------------------------------------------------------------------------------------------------+
49
// |                                            CLASSE de la VUE                                          |
50
// +------------------------------------------------------------------------------------------------------+
51
class fiche_synthese_xhtml implements iVue {
52
 
53
    protected $leBlock;
54
 
55
    function __construct($unBlock)
56
    {
57
        $this->leBlock = $unBlock;
58
    }
59
 
60
    function serialiser()
61
    {
62
        // La page xhtml :
63
        $retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n";
64
        $retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n";
65
        $retour .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" >'."\n";
66
 
67
        $retour .= '<head>'."\n";
68
        $retour .= '<!-- BEGIN entete -->'."\n";
69
        $retour .= '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />'."\n";
70
        $retour .= '<meta http-equiv="Content-style-type" content="text/css" />'."\n";
71
        $retour .= '<meta http-equiv="Content-script-type" content="text/javascript" />'."\n";
72
        $retour .= '<meta http-equiv="Content-language" content="fr" />'."\n";
73
        $retour .= '<title>Synthèse d\'un nom latin</title>'."\n";
74
        $retour .= '<!-- END entete -->'."\n";
75
        $retour .= '</head>'."\n";
76
 
77
        $retour .= '<body>'."\n";
78
        $retour .= '<!-- BEGIN corps -->'."\n";
79
        $retour .= '<h1>'.'Synthèse d\'un nom latin'.'</h1>'."\n";
80
        $retour .= '<h2>'.'Informations sur le nom :'.'</h2>'."\n";
81
        $retour .= '<p>'."\n";
82
        $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherNomInfos');
83
        $retour .= '</p>'."\n";
124 jpm 84
        $retour .= '<h2>'.'Projet courant: '.'</h2>';
86 jpm 85
        $retour .= '<p>'."\n";
124 jpm 86
        $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
86 jpm 87
        $retour .= '</p>'."\n";
88
 
124 jpm 89
        $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','compterProjets');
90
        if ($GLOBALS['nbre_projet'] == 1) {
91
            $retour .= '<h2>'.'Présent uniquement dans le projet : '.'</h2>'."\n";
92
            $retour .= '<p>'."\n";
93
            $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
94
            $retour .= '</p>'."\n";
95
        } else if ($GLOBALS['nbre_projet'] > 1 AND $GLOBALS['nbre_projet'] < 6) {
96
            $retour .= '<h2>'.'Présent dans les projets: '.'</h2>'."\n";
97
            $retour .= '<ul>'."\n";
98
            $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','afficherListeProjets', null, TRUE);
99
            $retour .= '</ul>'."\n";
100
        } else {
101
            $retour .= '<h2>'.'Présent dans les projets: '.'</h2>'."\n";
102
            $retour .= '<form id="eflore_form_projet" action="{FormUrlProjetChangement}" method="post">'."\n";
103
            $retour .= '<p>'."\n";
104
            $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherChampNom');
105
            $retour .= '<select id="nvp" name="nvp">'."\n";
106
            $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','afficherOptionProjets', null, TRUE);
107
            $retour .= '</select>'."\n";
108
            $retour .= '<input type="submit" value="ok" />'."\n";
109
            $retour .= '</p>'."\n";
110
            $retour .= '</form>'."\n";
111
        }
112
 
86 jpm 113
        // Gestion du nom correct
173 jpm 114
        $retour .= '<h2>'.'Nom correct dans le projet courant: '.'</h2>'."\n";
86 jpm 115
        $aso_param['statut_id'] = 3;
107 jpm 116
        $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherNomCorrect', $aso_param, TRUE);
86 jpm 117
 
118
        // Gestion de la recherche Google
119
        $retour .= '<h2>'.'Rechercher des illustrations avec Google : '.'</h2>'."\n";
120
        $aso_param['statut_id'] = 3;
107 jpm 121
        $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherRechercheGoogle', $aso_param, TRUE);
86 jpm 122
 
173 jpm 123
        // Gestion des taxons supérieurs
124
        $retour .= '<h2>'.'Niveaux taxinomiques supérieurs : '.'</h2>'."\n";
125
        $retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE','afficherNiveauTaxoSuperieur');
126
 
86 jpm 127
        // Gestion de la synonymie
128
        // Gestion des noms dont le statut n'est pas renseigné
129
        $aso_param['statut_id'] = 0;
107 jpm 130
        $retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
86 jpm 131
        if (!empty($retour_syno)) {
132
            $synonymie = '<h3>'.'Statut non renseigné : '.'</h3>'."\n";
133
            $synonymie .= '<ol>'."\n";
134
            $synonymie .= $retour_syno;
135
            $synonymie .= '</ol>'."\n";
107 jpm 136
            $retour_syno_final .= $synonymie;
86 jpm 137
        }
138
 
139
        // Gestion des noms dont le statut est inconnu
140
        $aso_param['statut_id'] = 1;
107 jpm 141
        $retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
86 jpm 142
        if (!empty($retour_syno)) {
143
            $synonymie = '<h3>'.'Statut inconnu : '.'</h3>'."\n";
144
            $synonymie .= '<ol>'."\n";
145
            $synonymie .= $retour_syno;
146
            $synonymie .= '</ol>'."\n";
107 jpm 147
            $retour_syno_final .= $synonymie;
86 jpm 148
        }
149
 
150
        // Gestion des noms dont le statut pose problème
151
        $aso_param['statut_id'] = 2;
107 jpm 152
        $retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
86 jpm 153
        if (!empty($retour_syno)) {
154
            $synonymie = '<h3>'.'Statut posant problème : '.'</h3>'."\n";
155
            $synonymie .= '<ol>'."\n";
156
            $synonymie .= $retour_syno;
157
            $synonymie .= '</ol>'."\n";
107 jpm 158
            $retour_syno_final .= $synonymie;
86 jpm 159
        }
160
        // Gestion des synonymes taxonomiques
161
        $aso_param['statut_id'] = 4;
107 jpm 162
        $retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
86 jpm 163
        if (!empty($retour_syno)) {
164
            $synonymie = '<h3>'.'Synonymes taxonomiques : '.'</h3>'."\n";
165
            $synonymie .= '<ol>'."\n";
166
            $synonymie .= $retour_syno;
167
            $synonymie .= '</ol>'."\n";
107 jpm 168
            $retour_syno_final .= $synonymie;
86 jpm 169
        }
170
 
171
        // Gestion des synonymes nomenclaturaux
172
        $aso_param['statut_id'] = 5;
107 jpm 173
        $retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
86 jpm 174
        if (!empty($retour_syno)) {
175
            $synonymie = '<h3>'.'Synonymes nomenclaturaux : '.'</h3>'."\n";
176
            $synonymie .= '<ol>'."\n";
177
            $synonymie .= $retour_syno;
178
            $synonymie .= '</ol>'."\n";
107 jpm 179
            $retour_syno_final .= $synonymie;
86 jpm 180
        }
181
 
182
        // Gestion des synonymes indéterminés
183
        $aso_param['statut_id'] = 6;
107 jpm 184
        $retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
86 jpm 185
        if (!empty($retour_syno)) {
186
            $synonymie = '<h3>'.'Synonymes indéterminés : '.'</h3>'."\n";
187
            $synonymie .= '<ol>'."\n";
188
            $synonymie .= $retour_syno;
189
            $synonymie .= '</ol>'."\n";
107 jpm 190
            $retour_syno_final .= $synonymie;
86 jpm 191
        }
192
 
193
        // Gestion des synonymes "inclu dans"
194
        $aso_param['statut_id'] = 7;
107 jpm 195
        $retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
86 jpm 196
        if (!empty($retour_syno)) {
197
            $synonymie = '<h3>'.'Synonymes "inclu dans": '.'</h3>'."\n";
198
            $synonymie .= '<ol>'."\n";
199
            $synonymie .= $retour_syno;
200
            $synonymie .= '</ol>'."\n";
107 jpm 201
            $retour_syno_final .= $synonymie;
86 jpm 202
        }
203
 
204
        // Gestion des synonymes au sens de
205
        $aso_param['statut_id'] = 8;
107 jpm 206
        $retour_syno = $this->leBlock->afficherPattern('FICHE_SYNTHESE>TAXON_NOMS>NOM_LATIN','afficherSynonyme', $aso_param, TRUE);
86 jpm 207
        if (!empty($retour_syno)) {
208
            $synonymie = '<h3>'.'Synonymes "au sens de (<i>sensu</i>)": '.'</h3>'."\n";
209
            $synonymie .= '<ol>'."\n";
210
            $synonymie .= $retour_syno;
211
            $synonymie .= '</ol>'."\n";
107 jpm 212
            $retour_syno_final .= $synonymie;
86 jpm 213
        }
107 jpm 214
        if (empty($retour_syno_final)) {
215
            $retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
216
            $retour .= '<p>'.'Aucune synonymie pour ce nom dans ce projet.'.'</p>'."\n";
217
        } else {
218
            $retour .= '<h2>'.'Synonymie : '.'</h2>'."\n";
219
            $retour .= $retour_syno_final;
220
        }
86 jpm 221
 
222
        // Gestion des noms vernaculaires
107 jpm 223
        $nom_verna_lignes = $this->leBlock->afficherPattern('FICHE_SYNTHESE>VERNACULAIRE_NOMS','afficherNomVernaculaire');
224
        if (empty($nom_verna_lignes)) {
225
            $retour .= '<h2>'.'Noms vernaculaires :'.'</h2>'."\n";
226
            $retour .= '<p>'.'Aucun nom vernaculaire pour ce taxon dans ce projet.'.'</p>'."\n";
227
        } else {
228
            $retour .= '<h2>'.'Noms vernaculaires : '.'</h2>'."\n";
229
            $retour .= '<table id="tableau_nom_verna">'."\n";
230
            $retour .= '  <thead>'."\n";
231
            $retour .= '    <tr><th>'.'Langue'.'</th><th>'.'Pays'.'</th><th>'.'Nom'.'</th><th>'.'Emploi'.'</th><th>'.'Genre et nombre'.'</th></tr>'."\n";
232
            $retour .= '  </thead>'."\n";
233
            $retour .= '  <tbody>'."\n";
234
            $retour .= $nom_verna_lignes;
235
            $retour .= '  </tbody>'."\n";
236
            $retour .= '</table>'."\n";
237
        }
86 jpm 238
 
239
        $retour .= '<!-- END corps -->'."\n";
240
 
241
        $retour .= '<!-- BEGIN pied -->'."\n";
107 jpm 242
        $retour .= '<p>'.'Si vous constatez des erreurs ou des insuffisances en consultant cet index, veuillez contacter '."\n";
243
        $retour .= '  <a href="mailto:eflore_remarques@tela-botanica.org">l\'équipe d\'eFlore</a>.'."\n";
86 jpm 244
        $retour .= '</p>'."\n";
245
        $retour .= '<p>'."\n";
246
        $retour .= '  <a href="http://jigsaw.w3.org/css-validator/check/referer">'."\n";
247
        $retour .= '    <img class="reference" src="/accueil/images/references/css.png" alt="CSS valide!" />'."\n";
248
        $retour .= '  </a>'."\n";
249
        $retour .= '  <a href="http://validator.w3.org/check?uri=referer">'."\n";
250
        $retour .= '    <img class="reference" src="/accueil/images/references/xhtml11.png" alt="XHTML 1.1 valide!" />'."\n";
251
        $retour .= '  </a>'."\n";
252
        $retour .= '  <a href="http://frenchmozilla.org">'."\n";
253
        $retour .= '    <img class="reference" src="/accueil/images/references/firefox.png" alt="Télécharger un très bon navigateur!" />'."\n";
254
        $retour .= '  </a>'."\n";
255
        $retour .= '</p>'."\n";
256
 
257
        $retour .= '<!-- END pied -->'."\n";
258
 
259
        $retour .= '</body>'."\n";
260
        $retour .= '</html>'."\n";
261
 
117 jpm 262
        // Envoi au navigateur après encodage en entité des caractères posant problème
86 jpm 263
        echo remplaceEntiteHTLM($retour);
264
    }
265
}
266
 
267
// +------------------------------------------------------------------------------------------------------+
268
// |                                            LISTE des FONCTIONS                                       |
269
// +------------------------------------------------------------------------------------------------------+
270
function construireNomLatin($donnees, $bool_nom_court = FALSE)
64 jpm 271
{
78 jpm 272
// Constitution du nom:
64 jpm 273
    $nom = '';
86 jpm 274
 
64 jpm 275
    if (!empty($donnees['en_nom_supra_generique'])) {
276
        $nom .= $donnees['en_nom_supra_generique'];
277
    } else if (!empty($donnees['en_epithete_infra_generique'])){
278
        $nom .= $donnees['en_epithete_infra_generique'];
279
    } else {
280
        if (!empty($donnees['en_nom_genre'])) {
281
            $nom .= $donnees['en_nom_genre'];
282
        }
283
        if (!empty($donnees['en_epithete_espece'])) {
284
            $nom .= ' '.$donnees['en_epithete_espece'];
285
        }
286
        if (!empty($donnees['en_epithete_infra_specifique'])) {
287
            if (!empty($donnees['enrg_abreviation_rang'])) {
86 jpm 288
                $nom .= ' '.$donnees['enrg_abreviation_rang'].'';
64 jpm 289
            }
290
            $nom .= ' '.$donnees['en_epithete_infra_specifique'];
291
        }
292
    }
86 jpm 293
    if (!$bool_nom_court) {
294
        $auteur_basio = '';
295
        $auteur_modif = '';
296
        if (!empty($donnees['intitule_abrege_auteur_basio_ex']) && $donnees['en_ce_auteur_basio_ex'] != 0) {
297
            $auteur_basio .= $donnees['intitule_abrege_auteur_basio_ex'];
298
            if (!empty($donnees['intitule_abrege_auteur_basio'])) {
299
                $auteur_basio .= ' ex '.$donnees['intitule_abrege_auteur_basio'];
300
            }
301
        } else if (!empty($donnees['intitule_abrege_auteur_basio']) && $donnees['en_ce_auteur_basio'] != 0) {
302
 
303
            $auteur_basio .= $donnees['intitule_abrege_auteur_basio'];
64 jpm 304
        }
86 jpm 305
        if (!empty($donnees['intitule_abrege_auteur_modif_ex']) && $donnees['en_ce_auteur_modif_ex'] != 0) {
306
            $auteur_modif .= $donnees['intitule_abrege_auteur_modif_ex'];
307
            if (!empty($donnees['intitule_abrege_auteur_modif'])) {
308
                $auteur_modif .= ' ex '.$donnees['intitule_abrege_auteur_modif'];
309
            }
310
        } else if (!empty($donnees['intitule_abrege_auteur_modif']) && $donnees['en_ce_auteur_modif'] != 0) {
311
            $auteur_modif .= $donnees['intitule_abrege_auteur_modif'];
64 jpm 312
        }
86 jpm 313
        if (!empty($auteur_modif)) {
314
            $nom .= ' ('.$auteur_basio.') ex '.$auteur_modif;
315
        } else {
316
            $nom .= ' '.$auteur_basio;
317
        }
64 jpm 318
    }
319
 
78 jpm 320
    return $nom;
321
}
322
 
86 jpm 323
function afficherChampNom($donnees)
78 jpm 324
{
325
    $retour = '';
86 jpm 326
    $retour .= '<input type="hidden" id="nn" name="nn" value="'.$donnees['en_id_nom'].'" />'."\n";
110 jpm 327
    $retour .= '<input type="hidden" id="cle" name="cle" value="synthese" />'."\n";
86 jpm 328
    return $retour;
329
}
330
 
331
function afficherNomInfos($donnees)
332
{
333
    $retour = '';
78 jpm 334
    //$retour .= '<pre>'.print_r($donnees, true).'</pre>';
335
    $retour .= 'Numéro nomenclatural absolu : '.$donnees['en_id_nom']."\n";
336
    $retour .= '<br />';
337
    $retour .= 'Nom sélectionné précédemment : '.construireNomLatin($donnees).'<br />'."\n";
64 jpm 338
    return $retour;
339
}
340
 
86 jpm 341
function afficherNomProjetVersion($donnees)
78 jpm 342
{
124 jpm 343
    return $donnees['eprv_nom'];
344
}
345
 
346
function compterProjets($donnees)
347
{
348
    $GLOBALS['nbre_projet']++;
349
}
350
 
351
function afficherListeProjets($donnees)
352
{
78 jpm 353
    $retour = '';
124 jpm 354
    if ($donnees['FICHE_SYNTHESE']['nvp'] != $donnees['NOM_SELECTION_PROJETS']['eprv_id_version']) {
355
        $retour .= '  <li>';
356
        $retour .= '<a href="{LienUrlProjetChangement}'.$donnees['NOM_SELECTION_PROJETS']['eprv_id_version'].'" title="Consulter la fiche de ce projet.">';
357
        $retour .= $donnees['NOM_SELECTION_PROJETS']['eprv_nom'].' - '.$donnees['NOM_SELECTION_PROJETS']['epr_intitule_projet'];
358
        $retour .= '</a>';
359
        $retour .= '</li>'."\n";
360
    }
78 jpm 361
    return $retour;
362
}
363
 
124 jpm 364
function afficherOptionProjets($donnees)
78 jpm 365
{
366
    $retour = '';
124 jpm 367
    if ($donnees['FICHE_SYNTHESE']['nvp'] != $donnees['NOM_SELECTION_PROJETS']['eprv_id_version']) {
107 jpm 368
        $retour .= '  <option value="'.$donnees['NOM_SELECTION_PROJETS']['eprv_id_version'].'">';
369
        $retour .= $donnees['NOM_SELECTION_PROJETS']['eprv_nom'].' - '.$donnees['NOM_SELECTION_PROJETS']['epr_intitule_projet'];
370
        $retour .= '</option>'."\n";
86 jpm 371
    }
78 jpm 372
    return $retour;
373
}
374
 
86 jpm 375
function afficherNomCorrect($donnees, $aso_param)
376
{
377
    $retour = '';
144 jpm 378
    //$retour .= '<pre>'.print_r($donnees, true).'</pre>';
86 jpm 379
    if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
107 jpm 380
        $retour .= '<p><strong>'.$donnees['NOM_LATIN']['eni_intitule_nom'].'</strong></p>'."\n";
86 jpm 381
    }
382
    return $retour;
383
}
78 jpm 384
 
86 jpm 385
function afficherRechercheGoogle($donnees, $aso_param)
386
{
387
    $retour = '';
144 jpm 388
    //$retour .= '<pre>'.print_r($donnees, true).'</pre>';
86 jpm 389
    if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
173 jpm 390
        $retour .= '<form method="get" action="http://images.google.fr/images" target="_blank">'."\n";
86 jpm 391
        $retour .= '<p>'."\n";
392
        $retour .= '<a href="http://www.google.com/" title="Aller sur Google France">'."\n";
393
        $retour .= '    <img src="http://www.google.com/logos/Logo_25wht.gif" alt="Google" />'."\n";
394
        $retour .= '</a>'."\n";
107 jpm 395
        $retour .= '<input type="text" name="q" size="25" maxlength="255" value="'.construireNomLatin($donnees['NOM_LATIN'], TRUE).'" />'."\n";
86 jpm 396
        $retour .= '<input type="hidden" name="ie" value="ISO-8859-1" />'."\n";
397
        $retour .= '<input type="hidden" name="oe" value="ISO-8859-1" />'."\n";
398
        $retour .= '<input type="hidden" name="hl" value="fr" />'."\n";
399
        $retour .= '<input type="submit" name="btnG" value="Recherche Google" />'."\n";
400
        $retour .= '</p>'."\n";
401
        $retour .= '</form>'."\n";
64 jpm 402
    }
86 jpm 403
    return $retour;
404
}
173 jpm 405
function afficherNiveauTaxoSuperieur($donnees)
406
{
407
    $retour = '';
408
    //$retour .= '<pre>'.print_r($donnees, true).'</pre>';
409
    $retour .= 'func_NiveauTaxo('.$donnees['nt'].', '.$donnees['nvp'].')';
410
    return $retour;
411
}
86 jpm 412
function afficherSynonyme($donnees, $aso_param)
413
{
414
    $retour = '';
107 jpm 415
    //$retour .= '<pre>'.print_r($donnees, true).'</pre>';
86 jpm 416
    if ($donnees['TAXON_NOMS']['esns_id_statut'] == $aso_param['statut_id']) {
107 jpm 417
        $retour .= '  <li>'.$donnees['NOM_LATIN']['eni_intitule_nom'].'</li>'."\n";
64 jpm 418
    }
86 jpm 419
    return $retour;
64 jpm 420
}
86 jpm 421
 
422
function afficherNomVernaculaire($donnees)
423
{
424
    $retour = '';
425
    $retour .= '    <tr>';
426
    $retour .= '<td title="'.$donnees['el_nom_langue_principal'].'">'.$donnees['el_code_langue'].'</td>';
427
    $retour .= '<td title="'.$donnees['ezg_intitule_principal_zg'].'">'.$donnees['ezg_code_zg'].'</td>';
428
    if ($donnees['evce_id_emploi'] == 0) {// Non renseigné
429
        $retour .= '<td>'.$donnees['ev_intitule_nom_vernaculaire'].'</td>';
430
        $retour .= '<td>&nbsp;</td>';
431
    } else if ($donnees['evce_id_emploi'] == 3) {// Recommandé ou typique
432
        $retour .= '<td><strong>'.$donnees['ev_intitule_nom_vernaculaire'].'</strong></td>';
433
        $retour .= '<td><strong>'.$donnees['evce_intitule_conseil_emlploi'].'</strong></td>';
434
    } else if ($donnees['evce_id_emploi'] == 2) {// Secondaire ou régional
435
        $retour .= '<td><emphasis>'.$donnees['ev_intitule_nom_vernaculaire'].'</emphasis></td>';
436
        $retour .= '<td><emphasis>'.$donnees['evce_intitule_conseil_emlploi'].'</emphasis></td>';
437
    } else {
438
        $retour .= '<td>'.$donnees['ev_intitule_nom_vernaculaire'].'</td>';
439
        $retour .= '<td>'.$donnees['evce_intitule_conseil_emlploi'].'</td>';
440
    }
441
    if ($donnees['egn_id_genre_nombre'] == 0) {
442
        $retour .= '<td>&nbsp;</td>';
443
    } else {
444
        $retour .= '<td>'.$donnees['egn_intitule'].'</td>';
445
    }
446
    $retour .= '</tr>'."\n";
447
    return $retour;
448
}
449
 
450
// +------------------------------------------------------------------------------------------------------+
451
// |                                            PIED du PROGRAMME                                         |
452
// +------------------------------------------------------------------------------------------------------+
453
 
454
 
455
 
456
/* +--Fin du code ----------------------------------------------------------------------------------------+
457
*
458
* $Log: not supported by cvs2svn $
173 jpm 459
* Revision 1.8  2005/02/14 18:11:43  jpm
460
* Amélioration.
461
*
144 jpm 462
* Revision 1.7  2005/01/28 19:46:18  jpm
463
* Amélioration de l'affichage des projets utilisant le noms sélectionné.
464
*
124 jpm 465
* Revision 1.6  2005/01/26 10:44:57  jpm
466
* Correction de la version de PHP.
467
*
117 jpm 468
* Revision 1.5  2005/01/25 12:26:19  jpm
469
* Utilisation de mot clé pour le template à la place des urls.
470
*
110 jpm 471
* Revision 1.4  2005/01/24 16:53:25  jpm
472
* Modification des méthodes permettant la récupération des données de la hiérarchie.
473
*
107 jpm 474
* Revision 1.3  2005/01/19 12:58:19  jpm
475
* Début des tests pour gérer le formulaire de changement de projet.
86 jpm 476
*
107 jpm 477
*
86 jpm 478
* +-- Fin du code ----------------------------------------------------------------------------------------+
479
*/
64 jpm 480
?>