Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1                                                                                      |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
// +------------------------------------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or                                        |
// | modify it under the terms of the GNU Lesser General Public                                           |
// | License as published by the Free Software Foundation; either                                         |
// | version 2.1 of the License, or (at your option) any later version.                                   |
// |                                                                                                      |
// | This library is distributed in the hope that it will be useful,                                      |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
// | Lesser General Public License for more details.                                                      |
// |                                                                                                      |
// | You should have received a copy of the GNU Lesser General Public                                     |
// | License along with this library; if not, write to the Free Software                                  |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: eflore.php,v 1.4 2004-08-17 11:15:07 linda Exp $
/**
* Application de consultation des données d'eFlore.
*
* Moteur de recherche aboutissant à une page contenant la fiche d'un nom.
* Plusieurs onglets sont alors disponiblent, chacun affichant des infos spécifiques
* - nomenclature et taxinomie
* - chorologie
* - illustration
* - ...
*
*@package eFlore
//Auteur original :
*@author        Linda ANGAMA <linda_angama@yahoo.fr>
//Autres auteurs :
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
*@copyright     Tela-Botanica 2000-2004
*@version       $Revision: 1.4 $ $Date: 2004-08-17 11:15:07 $
// +------------------------------------------------------------------------------------------------------+
*/

// +------------------------------------------------------------------------------------------------------+
// |                                            ENTÊTE du PROGRAMME                                       |
// +------------------------------------------------------------------------------------------------------+
                                    /*Mettre ici les inclusions de fichiers*/                             
/** <br> Inclusion du fichier config de l'application eflore. */
require_once GEN_CHEMIN_CLIENT.'eflore/configuration/eflore_config.inc.php';

require_once GEN_CHEMIN_CLIENT.'eflore/langues/eflore_langue_'.EFLORE_LANGUE.'.inc.php';
require_once GEN_CHEMIN_CLIENT.'eflore/bibliotheque/fonctions/eflore.fonct.php';

/** <br> Inclusion de la classe PEAR d'abstraction de base de donnée. */
require_once 'DB.php';

/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
require_once 'HTML/QuickForm.php';

/** Definition de la variable globale db_eflore.*/
$GLOBALS['db_eflore']= DB::connect(EFLORE_DSN);

// +------------------------------------------------------------------------------------------------------+
// |                                            CORPS du PROGRAMME                                        |
// +------------------------------------------------------------------------------------------------------+
                                       /*Mettre ici le code du programme*/                                 

function afficherContenuTete()
{
    $sortie  = '<p><a href="#">Nomenclature </a><a href="papyrus.php?site=3&menu=39&onglet=photo">Illustration</a></p>';
    return $sortie;
}

function afficherContenuCorps()
{
    if (!isset($_GET['onglet']))
    {
    $sortie  = "";
    }
    elseif($_GET['onglet']=='photo')
    {
        if(!isset($_GET['soum']))
        {
            if (isset($_GET['modif'])){
                include_once GEN_CHEMIN_CLIENT.'eflore/eflore_modif.inc.php';
                $sortie=$res;
            }
            else{
                include_once GEN_CHEMIN_CLIENT.'eflore/eflore_photo.inc.php';
                $sortie=$res;
            }
        }
        else 
        {
            include_once GEN_CHEMIN_CLIENT.'eflore/eflore_soum.inc.php';
            $sortie=$res;
        }

        $GLOBALS['db_eflore']->disconnect();
        $sortie=$res;
    }
    
    return $sortie;
}

function afficherContenuPied()
{
    $sortie  = '<p>Application eFlore. 2004</p>';
    return $sortie;
}

// +------------------------------------------------------------------------------------------------------+
// |                                            PIED du PROGRAMME                                         |
// +------------------------------------------------------------------------------------------------------+
                                           /*Partie non obligatoire*/                                     


/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log $
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>