Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 59 | Rev 127 | 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
// +------------------------------------------------------------------------------------------------------+
59 jpm 4
// | PHP version 4.3                                                                                      |
2 linda 5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
59 jpm 8
// | This file is part of eFlore-consultation.                                                            |
2 linda 9
// |                                                                                                      |
59 jpm 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,                                            |
2 linda 16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
59 jpm 17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
2 linda 19
// |                                                                                                      |
59 jpm 20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
2 linda 22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
60 jpm 24
// CVS : $Id: eflore.php,v 1.6 2005-01-03 19:44:40 jpm Exp $
2 linda 25
/**
26
* Application de consultation des données d'eFlore.
27
*
28
* Moteur de recherche aboutissant à une page contenant la fiche d'un nom.
29
* Plusieurs onglets sont alors disponiblent, chacun affichant des infos spécifiques
30
* - nomenclature et taxinomie
31
* - chorologie
32
* - illustration
33
* - ...
34
*
35
*@package eFlore
36
//Auteur original :
37
*@author        Linda ANGAMA <linda_angama@yahoo.fr>
38
//Autres auteurs :
39
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
40
*@copyright     Tela-Botanica 2000-2004
60 jpm 41
*@version       $Revision: 1.6 $ $Date: 2005-01-03 19:44:40 $
2 linda 42
// +------------------------------------------------------------------------------------------------------+
43
*/
44
 
45
// +------------------------------------------------------------------------------------------------------+
46
// |                                            ENTÊTE du PROGRAMME                                       |
47
// +------------------------------------------------------------------------------------------------------+
59 jpm 48
/** Inclusion du fichier config de l'application eflore. */
6 linda 49
require_once GEN_CHEMIN_CLIENT.'eflore/configuration/eflore_config.inc.php';
59 jpm 50
/** Inclusion du fichier de langue de l'application eflore. */
18 linda 51
require_once GEN_CHEMIN_CLIENT.'eflore/langues/eflore_langue_'.EFLORE_LANGUE.'.inc.php';
52
 
59 jpm 53
/** Inclusion de la classe PEAR d'abstraction de base de donnée. */
2 linda 54
require_once 'DB.php';
55
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
56
require_once 'HTML/QuickForm.php';
59 jpm 57
/** Inclusion de la bibliothèque PEAR de gestion des URL.*/
58
require_once 'Net/URL.php';
2 linda 59
 
59 jpm 60
// Ajout d'une feuille de style propre à eFlore.
61
GEN_stockerStyleExterne('eflore', EFLORE_CHEMIN_STYLE.'eflore.css');
10 linda 62
 
2 linda 63
// +------------------------------------------------------------------------------------------------------+
64
// |                                            CORPS du PROGRAMME                                        |
65
// +------------------------------------------------------------------------------------------------------+
66
 
59 jpm 67
function afficherContenuNavigation()
68
{
69
    $sortie  = '';
70
    return $sortie;
71
}
72
 
2 linda 73
function afficherContenuTete()
74
{
59 jpm 75
    // Transférer tout ceci dans la fonction afficherContenuNavigation().
76
    $sortie  = '';
60 jpm 77
    if (isset($_GET[EFLORE_LG_URL_NN])) {
78
        $GLOBALS['_EFLORE_']['url']->addQueryString(EFLORE_LG_URL_NN, $_GET[EFLORE_LG_URL_NN]);
79
        $GLOBALS['_EFLORE_']['url']->addQueryString(EFLORE_LG_URL_ACTION, $_GET[EFLORE_LG_URL_ACTION]);
80
        $sortie .= '<ul class="menu_n3">';
81
        $GLOBALS['_EFLORE_']['url']->addQueryString(EFLORE_LG_URL_ONGLET, EFLORE_LG_URL_ONGLET_SYNTHESE);
82
        $sortie .= '<li><a href="'.$GLOBALS['_EFLORE_']['url']->getURL().'">'.EFLORE_LG_ONGLET_PRINCIPAL.'</a></li>';
83
        $GLOBALS['_EFLORE_']['url']->removeQueryString(EFLORE_LG_URL_ONGLET);
84
        $GLOBALS['_EFLORE_']['url']->addQueryString(EFLORE_LG_URL_ONGLET, EFLORE_LG_URL_ONGLET_ILLUSTRATION);
85
        $sortie .= '<li><a href="'.$GLOBALS['_EFLORE_']['url']->getURL().'">'.EFLORE_LG_ONGLET_ILLUSTRATION.'</a></li>';
86
        $GLOBALS['_EFLORE_']['url']->removeQueryString(EFLORE_LG_URL_ONGLET);
87
        $sortie .= '</ul>';
88
    }
2 linda 89
    return $sortie;
90
}
91
 
92
function afficherContenuCorps()
93
{
59 jpm 94
    // +--------------------------------------------------------------------------------------------------+
95
    // Initialisation
96
    /** Definition de la variable globale d'eFlore contenant la connexion à la base de données.*/
97
    $GLOBALS['_EFLORE_']['bdd']= DB::connect(EFLORE_DSN);
98
    // Allias temporaire
99
    $GLOBALS['db_eflore']= $GLOBALS['_EFLORE_']['bdd'];
100
    $sortie = '';
101
 
102
    // +--------------------------------------------------------------------------------------------------+
103
    // Gestion des actions
60 jpm 104
    if (isset($_REQUEST[EFLORE_LG_URL_ACTION])) {
105
        switch ($_REQUEST[EFLORE_LG_URL_ACTION]) {
106
            case EFLORE_LG_URL_ACTION_RECH_NOM :
59 jpm 107
                include_once EFLORE_CHEMIN_APPLI.'eflore_recherche_nomenclature.inc.php';
108
                break;
60 jpm 109
            case EFLORE_LG_URL_ACTION_RECH_TAX :
59 jpm 110
                include_once EFLORE_CHEMIN_APPLI.'eflore_recherche_taxonomique.inc.php';
111
                break;
60 jpm 112
            case EFLORE_LG_URL_ACTION_FICHE :
59 jpm 113
                include_once EFLORE_CHEMIN_APPLI.'eflore_fiche.inc.php';
114
                break;
60 jpm 115
            default:
116
                include_once EFLORE_CHEMIN_APPLI.'eflore_recherche.inc.php';
59 jpm 117
        }
118
    } else {
119
        include_once EFLORE_CHEMIN_APPLI.'eflore_recherche.inc.php';
6 linda 120
    }
59 jpm 121
 
122
    // +--------------------------------------------------------------------------------------------------+
123
    // Gestion des onglets à transférer dans le fichier fiche!
124
    /** Inclusion des fonctions de l'application eflore. */
125
    /*
126
    require_once EFLORE_CHEMIN_BIBLIO.'eflore.fonct.php';
127
    if (!isset($_GET[EFLORE_LG_URL_ONGLET])) {
128
        $sortie = '';
129
    } else if ($_GET[EFLORE_LG_URL_ONGLET] == EFLORE_LG_URL_ONGLET_PHOTO) {
130
        if(!isset($_GET['soum'])) {
131
            if (isset($_GET['modif'])) {
132
                include_once EFLORE_CHEMIN_APPLI.'eflore_photo_modif.inc.php';
133
            } else {
134
                include_once EFLORE_CHEMIN_APPLI.'eflore_photo.inc.php';
18 linda 135
            }
59 jpm 136
        } else {
137
            include_once EFLORE_CHEMIN_APPLI.'eflore_photo_soum.inc.php';
18 linda 138
        }
59 jpm 139
        $GLOBALS['_EFLORE_']['bdd']->disconnect();
140
        $sortie = $res;
6 linda 141
    }
59 jpm 142
    */
2 linda 143
    return $sortie;
144
}
145
 
146
function afficherContenuPied()
147
{
59 jpm 148
    $sortie  = '<p id="eflore_pied_page">'.EFLORE_LG_PIED.'</p>';
2 linda 149
    return $sortie;
150
}
151
 
152
// +------------------------------------------------------------------------------------------------------+
153
// |                                            PIED du PROGRAMME                                         |
154
// +------------------------------------------------------------------------------------------------------+
155
 
156
 
157
/* +--Fin du code ----------------------------------------------------------------------------------------+
158
*
59 jpm 159
* $Log: not supported by cvs2svn $
60 jpm 160
* Revision 1.5  2004/12/23 20:05:17  jpm
161
* Début prise en maine eflore-consultation.
2 linda 162
*
60 jpm 163
*
2 linda 164
* +-- Fin du code ----------------------------------------------------------------------------------------+
165
*/
166
?>