Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 173 | Rev 184 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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