Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 10 | Rev 59 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 linda 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
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                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
18 linda 22
// CVS : $Id: eflore.php,v 1.4 2004-08-17 11:15:07 linda Exp $
2 linda 23
/**
24
* Application de consultation des données d'eFlore.
25
*
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
28
* - nomenclature et taxinomie
29
* - chorologie
30
* - illustration
31
* - ...
32
*
33
*@package eFlore
34
//Auteur original :
35
*@author        Linda ANGAMA <linda_angama@yahoo.fr>
36
//Autres auteurs :
37
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
38
*@copyright     Tela-Botanica 2000-2004
18 linda 39
*@version       $Revision: 1.4 $ $Date: 2004-08-17 11:15:07 $
2 linda 40
// +------------------------------------------------------------------------------------------------------+
41
*/
42
 
43
// +------------------------------------------------------------------------------------------------------+
44
// |                                            ENTÊTE du PROGRAMME                                       |
45
// +------------------------------------------------------------------------------------------------------+
46
                                    /*Mettre ici les inclusions de fichiers*/
6 linda 47
/** <br> Inclusion du fichier config de l'application eflore. */
48
require_once GEN_CHEMIN_CLIENT.'eflore/configuration/eflore_config.inc.php';
49
 
18 linda 50
require_once GEN_CHEMIN_CLIENT.'eflore/langues/eflore_langue_'.EFLORE_LANGUE.'.inc.php';
51
require_once GEN_CHEMIN_CLIENT.'eflore/bibliotheque/fonctions/eflore.fonct.php';
52
 
2 linda 53
/** <br> Inclusion de la classe PEAR d'abstraction de base de donnée. */
54
require_once 'DB.php';
55
 
56
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
57
require_once 'HTML/QuickForm.php';
58
 
10 linda 59
/** Definition de la variable globale db_eflore.*/
60
$GLOBALS['db_eflore']= DB::connect(EFLORE_DSN);
61
 
2 linda 62
// +------------------------------------------------------------------------------------------------------+
63
// |                                            CORPS du PROGRAMME                                        |
64
// +------------------------------------------------------------------------------------------------------+
65
                                       /*Mettre ici le code du programme*/
66
 
67
function afficherContenuTete()
68
{
6 linda 69
    $sortie  = '<p><a href="#">Nomenclature </a><a href="papyrus.php?site=3&menu=39&onglet=photo">Illustration</a></p>';
2 linda 70
    return $sortie;
71
}
72
 
73
function afficherContenuCorps()
74
{
10 linda 75
    if (!isset($_GET['onglet']))
6 linda 76
    {
2 linda 77
    $sortie  = "";
6 linda 78
    }
10 linda 79
    elseif($_GET['onglet']=='photo')
6 linda 80
    {
18 linda 81
        if(!isset($_GET['soum']))
82
        {
83
            if (isset($_GET['modif'])){
84
                include_once GEN_CHEMIN_CLIENT.'eflore/eflore_modif.inc.php';
85
                $sortie=$res;
86
            }
87
            else{
88
                include_once GEN_CHEMIN_CLIENT.'eflore/eflore_photo.inc.php';
89
                $sortie=$res;
90
            }
91
        }
92
        else
93
        {
94
            include_once GEN_CHEMIN_CLIENT.'eflore/eflore_soum.inc.php';
95
            $sortie=$res;
96
        }
97
 
10 linda 98
        $GLOBALS['db_eflore']->disconnect();
6 linda 99
        $sortie=$res;
100
    }
101
 
2 linda 102
    return $sortie;
103
}
104
 
105
function afficherContenuPied()
106
{
107
    $sortie  = '<p>Application eFlore. 2004</p>';
108
    return $sortie;
109
}
110
 
111
// +------------------------------------------------------------------------------------------------------+
112
// |                                            PIED du PROGRAMME                                         |
113
// +------------------------------------------------------------------------------------------------------+
114
                                           /*Partie non obligatoire*/
115
 
116
 
117
/* +--Fin du code ----------------------------------------------------------------------------------------+
118
*
119
* $Log $
120
*
121
* +-- Fin du code ----------------------------------------------------------------------------------------+
122
*/
123
?>