Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

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