Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
177 jp_milcent 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 5.0.3                                                                                    |
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
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: info_nom_latin_xml.php,v 1.1 2005-07-01 19:06:59 jp_milcent Exp $
25
/**
26
* Vue affichant la liste des taxons d'un projet.
27
*
28
* Permet de retourner le xhtml correspondant à une liste hiérarchisées des taxons d'un projet.
29
*
30
*@package eFlore
31
*@subpackage Vues
32
//Auteur original :
33
*@author        Frédéric LEGENS <flegens@free.fr>
34
//Autres auteurs :
35
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
36
*@copyright     Tela-Botanica 2000-2004
37
*@version       $Revision: 1.1 $ $Date: 2005-07-01 19:06:59 $
38
// +------------------------------------------------------------------------------------------------------+
39
*/
40
 
41
// +------------------------------------------------------------------------------------------------------+
42
// |                                            ENTETE du PROGRAMME                                       |
43
// +------------------------------------------------------------------------------------------------------+
44
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php';
45
 
46
// +------------------------------------------------------------------------------------------------------+
47
// |                                            CLASSE de la VUE                                          |
48
// +------------------------------------------------------------------------------------------------------+
49
class info_nom_latin_xml implements iVue {
50
 
51
    protected $leBlock;
52
 
53
    function __construct($unBlock)
54
    {
55
        $this->leBlock = $unBlock;
56
    }
57
 
58
    function serialiser()
59
    {
60
 
61
        $retour = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'."\n";
62
        $retour .= $this->leBlock->afficherPattern('FICHE_NOM_LATIN>NOM_LATIN','afficherInfoNomLatin');
63
 
64
        // Envoi au navigateur après encodage en entité des caractères posant problème
65
        header('Content-Type: text/xml');
66
        echo utf8_encode($retour);
67
    }
68
}
69
 
70
// +------------------------------------------------------------------------------------------------------+
71
// |                                            LISTE des FONCTIONS                                       |
72
// +------------------------------------------------------------------------------------------------------+
73
function afficherInfoNomLatin($donnees)
74
{
75
    $retour = '';
76
    $retour .= '<nom_latin>'."\n";
77
    $retour .= '  <eni_in>'.$donnees['eni_intitule_nom'].'</eni_in>'."\n";
78
    $retour .= '</nom_latin>'."\n";
79
    return $retour;
80
}
81
 
82
 
83
// +------------------------------------------------------------------------------------------------------+
84
// |                                            PIED du PROGRAMME                                         |
85
// +------------------------------------------------------------------------------------------------------+
86
 
87
 
88
/* +--Fin du code ----------------------------------------------------------------------------------------+
89
*
90
* $Log: not supported by cvs2svn $
91
* Revision 1.1  2005/07/01 18:31:30  jp_milcent
92
* changement de nom
93
*
94
* Revision 1.1  2005/06/30 15:25:07  jpm
95
* Début des modifications pour ajout de l'arborescence de la classif.
96
*
97
*
98
* +-- Fin du code ----------------------------------------------------------------------------------------+
99
*/
100
?>