Line 1... |
Line 1... |
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.3 |
|
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 file is part of eFlore-consultation. |
|
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 |
// | |
|
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 |
// | |
|
13 |
// | This library is distributed in the hope that it will be useful, |
|
15 |
// | Foobar is distributed in the hope that it will be useful, |
|
14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
17 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
// | Lesser General Public License for more details. |
|
18 |
// | GNU General Public License for more details. |
|
17 |
// | |
|
19 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: eflore.php,v 1.4 2004-08-17 11:15:07 linda Exp $
|
24 |
// CVS : $Id: eflore.php,v 1.5 2004-12-23 20:05:17 jpm Exp $
|
23 |
/**
|
25 |
/**
|
24 |
* Application de consultation des données d'eFlore.
|
26 |
* Application de consultation des données d'eFlore.
|
25 |
*
|
27 |
*
|
26 |
* Moteur de recherche aboutissant à une page contenant la fiche d'un nom.
|
28 |
* Moteur de recherche aboutissant à une page contenant la fiche d'un nom.
|
27 |
* Plusieurs onglets sont alors disponiblent, chacun affichant des infos spécifiques
|
29 |
* Plusieurs onglets sont alors disponiblent, chacun affichant des infos spécifiques
|
Line 34... |
Line 36... |
34 |
//Auteur original :
|
36 |
//Auteur original :
|
35 |
*@author Linda ANGAMA <linda_angama@yahoo.fr>
|
37 |
*@author Linda ANGAMA <linda_angama@yahoo.fr>
|
36 |
//Autres auteurs :
|
38 |
//Autres auteurs :
|
37 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
39 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
38 |
*@copyright Tela-Botanica 2000-2004
|
40 |
*@copyright Tela-Botanica 2000-2004
|
39 |
*@version $Revision: 1.4 $ $Date: 2004-08-17 11:15:07 $
|
41 |
*@version $Revision: 1.5 $ $Date: 2004-12-23 20:05:17 $
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
*/
|
43 |
*/
|
Line 42... |
Line 44... |
42 |
|
44 |
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// | ENTÊTE du PROGRAMME |
|
46 |
// | ENTÊTE du PROGRAMME |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
46 |
/*Mettre ici les inclusions de fichiers*/
|
47 |
// +------------------------------------------------------------------------------------------------------+
|
47 |
/** <br> Inclusion du fichier config de l'application eflore. */
|
48 |
/** Inclusion du fichier config de l'application eflore. */
|
48 |
require_once GEN_CHEMIN_CLIENT.'eflore/configuration/eflore_config.inc.php';
|
- |
|
- |
|
49 |
require_once GEN_CHEMIN_CLIENT.'eflore/configuration/eflore_config.inc.php';
|
49 |
|
50 |
/** Inclusion du fichier de langue de l'application eflore. */
|
50 |
require_once GEN_CHEMIN_CLIENT.'eflore/langues/eflore_langue_'.EFLORE_LANGUE.'.inc.php';
|
- |
|
Line 51... |
Line 51... |
51 |
require_once GEN_CHEMIN_CLIENT.'eflore/bibliotheque/fonctions/eflore.fonct.php';
|
51 |
require_once GEN_CHEMIN_CLIENT.'eflore/langues/eflore_langue_'.EFLORE_LANGUE.'.inc.php';
|
52 |
|
52 |
|
53 |
/** <br> Inclusion de la classe PEAR d'abstraction de base de donnée. */
|
- |
|
54 |
require_once 'DB.php';
|
53 |
/** Inclusion de la classe PEAR d'abstraction de base de donnée. */
|
55 |
|
54 |
require_once 'DB.php';
|
- |
|
55 |
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
|
- |
|
56 |
require_once 'HTML/QuickForm.php';
|
Line 56... |
Line 57... |
56 |
/** Inclusion de la bibliothèque PEAR de conception de formulaire.*/
|
57 |
/** Inclusion de la bibliothèque PEAR de gestion des URL.*/
|
57 |
require_once 'HTML/QuickForm.php';
|
58 |
require_once 'Net/URL.php';
|
Line 58... |
Line 59... |
58 |
|
59 |
|
59 |
/** Definition de la variable globale db_eflore.*/
|
60 |
// Ajout d'une feuille de style propre à eFlore.
|
60 |
$GLOBALS['db_eflore']= DB::connect(EFLORE_DSN);
|
61 |
GEN_stockerStyleExterne('eflore', EFLORE_CHEMIN_STYLE.'eflore.css');
|
- |
|
62 |
|
61 |
|
63 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
64 |
// | CORPS du PROGRAMME |
|
- |
|
65 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
66 |
|
- |
|
67 |
function afficherContenuNavigation()
|
Line 62... |
Line 68... |
62 |
// +------------------------------------------------------------------------------------------------------+
|
68 |
{
|
63 |
// | CORPS du PROGRAMME |
|
69 |
$sortie = '';
|
- |
|
70 |
return $sortie;
|
- |
|
71 |
}
|
- |
|
72 |
|
- |
|
73 |
function afficherContenuTete()
|
64 |
// +------------------------------------------------------------------------------------------------------+
|
74 |
{
|
- |
|
75 |
// Transférer tout ceci dans la fonction afficherContenuNavigation().
|
- |
|
76 |
$sortie = '';
|
- |
|
77 |
$sortie .= '<ul class="menu_n3">';
|
- |
|
78 |
$GLOBALS['_EFLORE_']['objet_pear_url']->addQueryString(EFLORE_LG_URL_ONGLET, EFLORE_LG_URL_ONGLET_SYNTHESE);
|
- |
|
79 |
$sortie .= '<li><a href="'.$GLOBALS['_EFLORE_']['objet_pear_url']->getURL().'">'.EFLORE_LG_ONGLET_PRINCIPAL.'</a></li>';
|
65 |
/*Mettre ici le code du programme*/
|
80 |
$GLOBALS['_EFLORE_']['objet_pear_url']->removeQueryString(EFLORE_LG_URL_ONGLET);
|
66 |
|
81 |
$GLOBALS['_EFLORE_']['objet_pear_url']->addQueryString(EFLORE_LG_URL_ONGLET, EFLORE_LG_URL_PHOTO);
|
Line 67... |
Line 82... |
67 |
function afficherContenuTete()
|
82 |
$sortie .= '<li><a href="'.$GLOBALS['_EFLORE_']['objet_pear_url']->getURL().'">'.EFLORE_LG_ONGLET_ILLUSTRATION.'</a></li>';
|
68 |
{
|
83 |
$GLOBALS['_EFLORE_']['objet_pear_url']->removeQueryString(EFLORE_LG_URL_ONGLET);
|
- |
|
84 |
$sortie .= '</ul>';
|
- |
|
85 |
return $sortie;
|
- |
|
86 |
}
|
- |
|
87 |
|
- |
|
88 |
function afficherContenuCorps()
|
- |
|
89 |
{
|
- |
|
90 |
// +--------------------------------------------------------------------------------------------------+
|
- |
|
91 |
// Initialisation
|
- |
|
92 |
/** Definition de la variable globale d'eFlore contenant la connexion à la base de données.*/
|
- |
|
93 |
$GLOBALS['_EFLORE_']['bdd']= DB::connect(EFLORE_DSN);
|
69 |
$sortie = '<p><a href="#">Nomenclature </a><a href="papyrus.php?site=3&menu=39&onglet=photo">Illustration</a></p>';
|
94 |
// Allias temporaire
|
- |
|
95 |
$GLOBALS['db_eflore']= $GLOBALS['_EFLORE_']['bdd'];
|
- |
|
96 |
$sortie = '';
|
- |
|
97 |
|
- |
|
98 |
// +--------------------------------------------------------------------------------------------------+
|
- |
|
99 |
// Gestion des actions
|
- |
|
100 |
if (isset($_GET[EFLORE_LG_URL_ACTION])) {
|
- |
|
101 |
switch ($_GET[EFLORE_LG_URL_ACTION]) {
|
- |
|
102 |
case 'nomenclature':
|
- |
|
103 |
include_once EFLORE_CHEMIN_APPLI.'eflore_recherche_nomenclature.inc.php';
|
- |
|
104 |
break;
|
70 |
return $sortie;
|
105 |
case 'taxonomique':
|
71 |
}
|
106 |
include_once EFLORE_CHEMIN_APPLI.'eflore_recherche_taxonomique.inc.php';
|
- |
|
107 |
break;
|
72 |
|
108 |
case 'fiche':
|
- |
|
109 |
include_once EFLORE_CHEMIN_APPLI.'eflore_fiche.inc.php';
|
- |
|
110 |
break;
|
- |
|
111 |
}
|
73 |
function afficherContenuCorps()
|
112 |
} else {
|
74 |
{
|
113 |
include_once EFLORE_CHEMIN_APPLI.'eflore_recherche.inc.php';
|
- |
|
114 |
}
|
75 |
if (!isset($_GET['onglet']))
|
115 |
|
76 |
{
|
116 |
// +--------------------------------------------------------------------------------------------------+
|
- |
|
117 |
// Gestion des onglets à transférer dans le fichier fiche!
|
- |
|
118 |
/** Inclusion des fonctions de l'application eflore. */
|
77 |
$sortie = "";
|
119 |
/*
|
78 |
}
|
120 |
require_once EFLORE_CHEMIN_BIBLIO.'eflore.fonct.php';
|
79 |
elseif($_GET['onglet']=='photo')
|
- |
|
80 |
{
|
- |
|
81 |
if(!isset($_GET['soum']))
|
121 |
if (!isset($_GET[EFLORE_LG_URL_ONGLET])) {
|
82 |
{
|
122 |
$sortie = '';
|
83 |
if (isset($_GET['modif'])){
|
- |
|
84 |
include_once GEN_CHEMIN_CLIENT.'eflore/eflore_modif.inc.php';
|
123 |
} else if ($_GET[EFLORE_LG_URL_ONGLET] == EFLORE_LG_URL_ONGLET_PHOTO) {
|
- |
|
124 |
if(!isset($_GET['soum'])) {
|
- |
|
125 |
if (isset($_GET['modif'])) {
|
85 |
$sortie=$res;
|
126 |
include_once EFLORE_CHEMIN_APPLI.'eflore_photo_modif.inc.php';
|
86 |
}
|
- |
|
87 |
else{
|
- |
|
88 |
include_once GEN_CHEMIN_CLIENT.'eflore/eflore_photo.inc.php';
|
- |
|
89 |
$sortie=$res;
|
- |
|
90 |
}
|
- |
|
91 |
}
|
- |
|
92 |
else
|
127 |
} else {
|
93 |
{
|
128 |
include_once EFLORE_CHEMIN_APPLI.'eflore_photo.inc.php';
|
94 |
include_once GEN_CHEMIN_CLIENT.'eflore/eflore_soum.inc.php';
|
129 |
}
|
95 |
$sortie=$res;
|
130 |
} else {
|
96 |
}
|
131 |
include_once EFLORE_CHEMIN_APPLI.'eflore_photo_soum.inc.php';
|
97 |
|
132 |
}
|
Line 98... |
Line 133... |
98 |
$GLOBALS['db_eflore']->disconnect();
|
133 |
$GLOBALS['_EFLORE_']['bdd']->disconnect();
|
99 |
$sortie=$res;
|
134 |
$sortie = $res;
|
100 |
}
|
135 |
}
|
101 |
|
136 |
*/
|
102 |
return $sortie;
|
137 |
return $sortie;
|
Line 103... |
Line 138... |
103 |
}
|
138 |
}
|
104 |
|
139 |
|
105 |
function afficherContenuPied()
|
140 |
function afficherContenuPied()
|
106 |
{
|
- |
|
Line 107... |
Line 141... |
107 |
$sortie = '<p>Application eFlore. 2004</p>';
|
141 |
{
|
108 |
return $sortie;
|
142 |
$sortie = '<p id="eflore_pied_page">'.EFLORE_LG_PIED.'</p>';
|
109 |
}
|
143 |
return $sortie;
|
110 |
|
144 |
}
|
111 |
// +------------------------------------------------------------------------------------------------------+
|
145 |
|
112 |
// | PIED du PROGRAMME |
|
146 |
// +------------------------------------------------------------------------------------------------------+
|
113 |
// +------------------------------------------------------------------------------------------------------+
|
147 |
// | PIED du PROGRAMME |
|
114 |
/*Partie non obligatoire*/
|
148 |
// +------------------------------------------------------------------------------------------------------+
|