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