Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 6 Rev 10
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 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
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 library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: eflore.php,v 1.2 2004-06-17 15:20:39 linda Exp $
22
// CVS : $Id: eflore.php,v 1.3 2004-06-22 12:27:20 linda Exp $
23
/**
23
/**
24
* Application de consultation des données d'eFlore.
24
* Application de consultation des données d'eFlore.
25
*
25
*
26
* Moteur de recherche aboutissant à une page contenant la fiche d'un nom.
26
* Moteur de recherche aboutissant à une page contenant la fiche d'un nom.
27
* Plusieurs onglets sont alors disponiblent, chacun affichant des infos spécifiques
27
* Plusieurs onglets sont alors disponiblent, chacun affichant des infos spécifiques
28
* - nomenclature et taxinomie
28
* - nomenclature et taxinomie
29
* - chorologie
29
* - chorologie
30
* - illustration
30
* - illustration
31
* - ...
31
* - ...
32
*
32
*
33
*@package eFlore
33
*@package eFlore
34
//Auteur original :
34
//Auteur original :
35
*@author        Linda ANGAMA <linda_angama@yahoo.fr>
35
*@author        Linda ANGAMA <linda_angama@yahoo.fr>
36
//Autres auteurs :
36
//Autres auteurs :
37
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
37
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
38
*@copyright     Tela-Botanica 2000-2004
38
*@copyright     Tela-Botanica 2000-2004
39
*@version       $Revision: 1.2 $ $Date: 2004-06-17 15:20:39 $
39
*@version       $Revision: 1.3 $ $Date: 2004-06-22 12:27:20 $
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
*/
41
*/
42
 
42
 
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
// |                                            ENTÊTE du PROGRAMME                                       |
44
// |                                            ENTÊTE du PROGRAMME                                       |
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
46
                                    /*Mettre ici les inclusions de fichiers*/                             
46
                                    /*Mettre ici les inclusions de fichiers*/                             
47
/** <br> Inclusion du fichier config de l'application eflore. */
47
/** <br> Inclusion du fichier config de l'application eflore. */
48
require_once GEN_CHEMIN_CLIENT.'eflore/configuration/eflore_config.inc.php';
48
require_once GEN_CHEMIN_CLIENT.'eflore/configuration/eflore_config.inc.php';
49
 
49
 
50
/** <br> Inclusion de la classe PEAR d'abstraction de base de donnée. */
50
/** <br> Inclusion de la classe PEAR d'abstraction de base de donnée. */
51
require_once 'DB.php';
51
require_once 'DB.php';
52
 
52
 
53
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
53
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
54
require_once 'HTML/QuickForm.php';
54
require_once 'HTML/QuickForm.php';
-
 
55
 
-
 
56
/** Definition de la variable globale db_eflore.*/
-
 
57
$GLOBALS['db_eflore']= DB::connect(EFLORE_DSN);
55
 
58
 
56
// +------------------------------------------------------------------------------------------------------+
59
// +------------------------------------------------------------------------------------------------------+
57
// |                                            CORPS du PROGRAMME                                        |
60
// |                                            CORPS du PROGRAMME                                        |
58
// +------------------------------------------------------------------------------------------------------+
61
// +------------------------------------------------------------------------------------------------------+
59
                                       /*Mettre ici le code du programme*/                                 
62
                                       /*Mettre ici le code du programme*/                                 
60
 
63
 
61
function afficherContenuTete()
64
function afficherContenuTete()
62
{
65
{
63
    $sortie  = '<p><a href="#">Nomenclature </a><a href="papyrus.php?site=3&menu=39&onglet=photo">Illustration</a></p>';
66
    $sortie  = '<p><a href="#">Nomenclature </a><a href="papyrus.php?site=3&menu=39&onglet=photo">Illustration</a></p>';
64
    return $sortie;
67
    return $sortie;
65
}
68
}
66
 
69
 
67
function afficherContenuCorps()
70
function afficherContenuCorps()
68
{
71
{
69
    $onglet  = $_GET['onglet'];
-
 
70
    if (!isset($onglet))
72
    if (!isset($_GET['onglet']))
71
    {
73
    {
72
    $sortie  = "";
74
    $sortie  = "";
73
    }
75
    }
74
    elseif($onglet=='photo')
76
    elseif($_GET['onglet']=='photo')
75
    {
77
    {
76
        include_once GEN_CHEMIN_CLIENT.'eflore/eflore_photo.inc.php';
78
        include_once GEN_CHEMIN_CLIENT.'eflore/eflore_photo.inc.php';
-
 
79
        $GLOBALS['db_eflore']->disconnect();
77
        $sortie=$res;
80
        $sortie=$res;
78
    }
81
    }
79
    
82
    
80
    return $sortie;
83
    return $sortie;
81
}
84
}
82
 
85
 
83
function afficherContenuPied()
86
function afficherContenuPied()
84
{
87
{
85
    $sortie  = '<p>Application eFlore. 2004</p>';
88
    $sortie  = '<p>Application eFlore. 2004</p>';
86
    return $sortie;
89
    return $sortie;
87
}
90
}
88
 
91
 
89
// +------------------------------------------------------------------------------------------------------+
92
// +------------------------------------------------------------------------------------------------------+
90
// |                                            PIED du PROGRAMME                                         |
93
// |                                            PIED du PROGRAMME                                         |
91
// +------------------------------------------------------------------------------------------------------+
94
// +------------------------------------------------------------------------------------------------------+
92
                                           /*Partie non obligatoire*/                                     
95
                                           /*Partie non obligatoire*/                                     
93
 
96
 
94
 
97
 
95
/* +--Fin du code ----------------------------------------------------------------------------------------+
98
/* +--Fin du code ----------------------------------------------------------------------------------------+
96
*
99
*
97
* $Log $
100
* $Log $
98
*
101
*
99
* +-- Fin du code ----------------------------------------------------------------------------------------+
102
* +-- Fin du code ----------------------------------------------------------------------------------------+
100
*/
103
*/
101
?>
104
?>