| Line 19... |
Line 19... |
| 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.6 2005-01-26 10:44:57 jpm Exp $
|
24 |
// CVS : $Id: fiche_synthese_xhtml.php,v 1.7 2005-01-28 19:46:18 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é.
|
| Line 33... |
Line 33... |
| 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.6 $ $Date: 2005-01-26 10:44:57 $
|
38 |
*@version $Revision: 1.7 $ $Date: 2005-01-28 19:46:18 $
|
| 39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
| 40 |
*/
|
40 |
*/
|
| Line 41... |
Line 41... |
| 41 |
|
41 |
|
| 42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
| 43 |
// | ENTETE du PROGRAMME |
|
43 |
// | ENTETE du PROGRAMME |
|
| 44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
| - |
|
45 |
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php';
|
| Line 45... |
Line 46... |
| 45 |
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php';
|
46 |
$GLOBALS['nbre_projet'] = 0;
|
| 46 |
|
47 |
|
| 47 |
// +------------------------------------------------------------------------------------------------------+
|
48 |
// +------------------------------------------------------------------------------------------------------+
|
| 48 |
// | CLASSE de la VUE |
|
49 |
// | CLASSE de la VUE |
|
| Line 78... |
Line 79... |
| 78 |
$retour .= '<h1>'.'Synthèse d\'un nom latin'.'</h1>'."\n";
|
79 |
$retour .= '<h1>'.'Synthèse d\'un nom latin'.'</h1>'."\n";
|
| 79 |
$retour .= '<h2>'.'Informations sur le nom :'.'</h2>'."\n";
|
80 |
$retour .= '<h2>'.'Informations sur le nom :'.'</h2>'."\n";
|
| 80 |
$retour .= '<p>'."\n";
|
81 |
$retour .= '<p>'."\n";
|
| 81 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherNomInfos');
|
82 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherNomInfos');
|
| 82 |
$retour .= '</p>'."\n";
|
83 |
$retour .= '</p>'."\n";
|
| 83 |
$retour .= '<h2>'.'Présent dans : '.'</h2>'."\n";
|
84 |
$retour .= '<h2>'.'Projet courant: '.'</h2>';
|
| 84 |
$retour .= '<form id="eflore_form_projet" action="{UrlProjetChangement}" method="post">'."\n";
|
- |
|
| 85 |
$retour .= '<p>'."\n";
|
85 |
$retour .= '<p>'."\n";
|
| 86 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_LATIN','afficherChampNom');
|
86 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
|
| 87 |
$retour .= '<select id="nvp" name="nvp">'."\n";
|
- |
|
| 88 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>NOM_SELECTION_PROJETS','afficherListeProjets', null, TRUE);
|
- |
|
| 89 |
$retour .= '</select>'."\n";
|
- |
|
| 90 |
$retour .= '<input type="submit" value="ok" />'."\n";
|
- |
|
| 91 |
$retour .= '</p>'."\n";
|
87 |
$retour .= '</p>'."\n";
|
| - |
|
88 |
|
| - |
|
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";
|
| 92 |
$retour .= '</form>'."\n";
|
110 |
$retour .= '</form>'."\n";
|
| - |
|
111 |
}
|
| Line 93... |
Line 112... |
| 93 |
|
112 |
|
| 94 |
// Gestion du nom correct
|
113 |
// Gestion du nom correct
|
| - |
|
114 |
$retour .= '<h2>'.'Nom correct dans le projet courant: ';
|
| 95 |
$retour .= $this->leBlock->afficherPattern('FICHE_SYNTHESE>PROJET_VERSION','afficherNomProjetVersion');
|
115 |
$retour .= '</h2>'."\n";
|
| 96 |
$aso_param['statut_id'] = 3;
|
116 |
$aso_param['statut_id'] = 3;
|
| Line 97... |
Line 117... |
| 97 |
$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);
|
| 98 |
|
118 |
|
| Line 315... |
Line 335... |
| 315 |
return $retour;
|
335 |
return $retour;
|
| 316 |
}
|
336 |
}
|
| Line 317... |
Line 337... |
| 317 |
|
337 |
|
| 318 |
function afficherNomProjetVersion($donnees)
|
338 |
function afficherNomProjetVersion($donnees)
|
| 319 |
{
|
339 |
{
|
| - |
|
340 |
return $donnees['eprv_nom'];
|
| - |
|
341 |
}
|
| 320 |
$retour = '';
|
342 |
|
| - |
|
343 |
function compterProjets($donnees)
|
| 321 |
$retour .= '<h2>'.'Nom correct dans le projet : '.$donnees['eprv_nom'].'</h2>'."\n";
|
344 |
{
|
| 322 |
return $retour;
|
345 |
$GLOBALS['nbre_projet']++;
|
| Line 323... |
Line 346... |
| 323 |
}
|
346 |
}
|
| 324 |
|
347 |
|
| 325 |
function afficherListeProjets($donnees)
|
348 |
function afficherListeProjets($donnees)
|
| 326 |
{
|
- |
|
| 327 |
$retour = '';
|
349 |
{
|
| - |
|
350 |
$retour = '';
|
| 328 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
351 |
if ($donnees['FICHE_SYNTHESE']['nvp'] != $donnees['NOM_SELECTION_PROJETS']['eprv_id_version']) {
|
| 329 |
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.">';
|
| 330 |
$retour .= ' <option value="'.$donnees['NOM_SELECTION_PROJETS']['eprv_id_version'].'" selected="selected">';
|
354 |
$retour .= $donnees['NOM_SELECTION_PROJETS']['eprv_nom'].' - '.$donnees['NOM_SELECTION_PROJETS']['epr_intitule_projet'];
|
| - |
|
355 |
$retour .= '</a>';
|
| - |
|
356 |
$retour .= '</li>'."\n";
|
| - |
|
357 |
}
|
| - |
|
358 |
return $retour;
|
| - |
|
359 |
}
|
| - |
|
360 |
|
| 331 |
$retour .= $donnees['NOM_SELECTION_PROJETS']['eprv_nom'].' - '.$donnees['NOM_SELECTION_PROJETS']['epr_intitule_projet'];
|
361 |
function afficherOptionProjets($donnees)
|
| - |
|
362 |
{
|
| 332 |
$retour .= '</option>'."\n";
|
363 |
$retour = '';
|
| 333 |
} else {
|
364 |
if ($donnees['FICHE_SYNTHESE']['nvp'] != $donnees['NOM_SELECTION_PROJETS']['eprv_id_version']) {
|
| 334 |
$retour .= ' <option value="'.$donnees['NOM_SELECTION_PROJETS']['eprv_id_version'].'">';
|
365 |
$retour .= ' <option value="'.$donnees['NOM_SELECTION_PROJETS']['eprv_id_version'].'">';
|
| 335 |
$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'];
|
| 336 |
$retour .= '</option>'."\n";
|
367 |
$retour .= '</option>'."\n";
|
| Line 414... |
Line 445... |
| 414 |
|
445 |
|
| 415 |
|
446 |
|
| 416 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
447 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| - |
|
448 |
*
|
| - |
|
449 |
* $Log: not supported by cvs2svn $
|
| - |
|
450 |
* Revision 1.6 2005/01/26 10:44:57 jpm
|
| 417 |
*
|
451 |
* Correction de la version de PHP.
|
| 418 |
* $Log: not supported by cvs2svn $
|
452 |
*
|
| 419 |
* Revision 1.5 2005/01/25 12:26:19 jpm
|
453 |
* Revision 1.5 2005/01/25 12:26:19 jpm
|
| 420 |
* Utilisation de mot clé pour le template à la place des urls.
|
454 |
* Utilisation de mot clé pour le template à la place des urls.
|
| 421 |
*
|
455 |
*
|