Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 144 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
123 jpm 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
// +------------------------------------------------------------------------------------------------------+
167 tam 24
// CVS : $Id: recherche_taxon_xhtml.php,v 1.3 2005-03-15 16:08:00 tam Exp $
123 jpm 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
167 tam 37
*@version       $Revision: 1.3 $ $Date: 2005-03-15 16:08:00 $
123 jpm 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 recherche_taxon_xhtml implements iVue {
50
 
51
    protected $leBlock;
52
 
53
    function __construct($unBlock)
54
    {
55
        $this->leBlock = $unBlock;
56
    }
57
 
58
    function serialiser()
59
    {
60
        $retour = '<?xml version="1.0" encoding="iso-8859-15" ?>'."\n";
61
        $retour .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../../../commun/generique/dtd/xhtml1-strict.dtd">'."\n";
62
        $retour .= '<html xmlns="http://w ww.w3.org/1999/xhtml" lang="fr" >'."\n";
63
 
64
        $retour .= '<head>'."\n";
65
        $retour .= '<!-- BEGIN entete -->'."\n";
66
        $retour .= '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />'."\n";
67
        $retour .= '<meta http-equiv="Content-style-type" content="text/css" />'."\n";
68
        $retour .= '<meta http-equiv="Content-script-type" content="text/javascript />'."\n";
69
        $retour .= '<meta http-equiv="Content-language" content="fr" />'."\n";
70
        $retour .= '<title>Liste de taxons</title>'."\n";
71
        $retour .= '<!-- END entete -->'."\n";
72
        $retour .= '</head>'."\n";
73
 
74
        $retour .= '<body>'."\n";
75
        $retour .= '<!-- BEGIN corps -->'."\n";
76
        $retour .= '<h1>'.'Liste des taxons'.'</h1>'."\n";
167 tam 77
        $retour .= '<ol id="liste_taxons">'."\n";
123 jpm 78
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_TAXONS>TAXON_RECHERCHE_ALPHABET','afficherTaxon');
79
        $retour .= '</ol>'."\n";
80
        $retour .= '<!-- END corps -->'."\n";
81
        $retour .= '</body>'."\n";
82
        $retour .= '</html>'."\n";
83
 
84
        // Envoi au navigateur après encodage en entité des caractères posant problème
85
        echo remplaceEntiteHTLM($retour);
86
    }
87
}
88
 
89
// +------------------------------------------------------------------------------------------------------+
90
// |                                            LISTE des FONCTIONS                                       |
91
// +------------------------------------------------------------------------------------------------------+
92
 
93
function afficherTaxon($donnees)
94
{
144 jpm 95
    //echo '<pre>'.print_r($donnees, true).'</pre>';
96
    $retour = '<li><a href="func_remplacerUrlClassif('.$donnees['esn_id_taxon'].')">';
97
    $retour .= '<img src="#" alt="+"/>';
98
    $retour .= '</a><a id="eflore_taxon_'.$donnees['esn_id_taxon'].'" href="{UrlFicheNom}'.$donnees['en_id_nom'].'">';
99
    $retour .= $donnees['eni_intitule_nom'];
100
    $retour .= '</a>func_ajouterArboressenceClassif('.$donnees['esn_id_taxon'].')</li>'."\n";
123 jpm 101
    return $retour;
102
}
103
 
104
// +------------------------------------------------------------------------------------------------------+
105
// |                                            PIED du PROGRAMME                                         |
106
// +------------------------------------------------------------------------------------------------------+
107
 
108
 
109
/* +--Fin du code ----------------------------------------------------------------------------------------+
110
*
111
* $Log: not supported by cvs2svn $
167 tam 112
* Revision 1.2  2005/02/14 18:11:43  jpm
113
* Amélioration.
114
*
144 jpm 115
* Revision 1.1  2005/01/28 19:45:44  jpm
116
* Début recheche taxons.
123 jpm 117
*
144 jpm 118
*
123 jpm 119
* +-- Fin du code ----------------------------------------------------------------------------------------+
120
*/
121
?>