/trunk/eflore_recherche_nomenclature.inc.php |
---|
File deleted |
\ No newline at end of file |
/trunk/eflore_recherche.inc.php |
---|
File deleted |
\ No newline at end of file |
/trunk/eflore_recherche_taxonomie.inc.php |
---|
File deleted |
\ No newline at end of file |
/trunk/configuration/eflore_config.inc.php |
---|
1,31 → 1,29 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.3 | |
// | PHP version 4.1 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This file is part of eFlore-consultation. | |
// | 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. | |
// | | |
// | Foobar is free software; you can redistribute it and/or modify | |
// | it under the terms of the GNU General Public License as published by | |
// | the Free Software Foundation; either version 2 of the License, or | |
// | (at your option) any later version. | |
// | | |
// | Foobar is distributed in the hope that it will be useful, | |
// | 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 General Public License for more details. | |
// | 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 General Public License | |
// | along with Foobar; if not, write to the Free Software | |
// | 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_config.inc.php,v 1.5 2004-12-23 20:04:59 jpm Exp $ |
// CVS : $Id: eflore_config.inc.php,v 1.4 2004-08-17 11:22:45 linda Exp $ |
/** |
* Fichier de configuration d'eFlore. |
* Titre |
* |
* Fichier contenant des constantes et des variables globales permettant de configurer eFlore-consultation. |
* Description |
* |
*@package eflore |
*@subpackage configuration |
32,9 → 30,9 |
//Auteur original : |
*@author Linda ANGAMA<linda_angama@yahoo.fr> |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.5 $ $Date: 2004-12-23 20:04:59 $ |
*@version $Revision: 1.4 $ $Date: 2004-08-17 11:22:45 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
41,6 → 39,7 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/*Mettre ici les inclusions de fichiers*/ |
// +------------------------------------------------------------------------------------------------------+ |
47,64 → 46,42 |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/** Definition de la variable globale d'eFlore.*/ |
$GLOBALS['_EFLORE_'] = array(); |
// +------------------------------------------------------------------------------------------------------+ |
// Définition des variables temporairement utilisées pour les essais de l'application. |
define('N_TAXON', 3288); |
define('N_VERSION_PROJET_TAXON',1); |
define('CONTRIBUTEUR',4); |
// +------------------------------------------------------------------------------------------------------+ |
// Paramétrage de la base de données. |
/** Constante stockant le nom du serveur de bases de données.*/ |
/** <br> Constante stockant le nom du serveur de bases de données.*/ |
define('EFLORE_BDD_SERVEUR', 'localhost'); |
/** Constante stockant le nom de l'utilisateur de la base de données de Génésia.*/ |
define('EFLORE_BDD_UTILISATEUR', 'eflorete'); |
/** Constante stockant le mot de passse de l'utilisateur de la base de données de Génésia.*/ |
define('EFLORE_BDD_MOT_DE_PASSE', 'rcf8wvc'); |
/** Constante stockant le nom de la base de données de Génésia.*/ |
/** <br> Constante stockant le nom de l'utilisateur de la base de données de Génésia.*/ |
define('EFLORE_BDD_UTILISATEUR', ''); |
/** <br> Constante stockant le mot de passse de l'utilisateur de la base de données de Génésia.*/ |
define('EFLORE_BDD_MOT_DE_PASSE', ''); |
/** <br> Constante stockant le nom de la base de données de Génésia.*/ |
define('EFLORE_BDD_NOM', 'tela_test_eflore'); |
// +------------------------------------------------------------------------------------------------------+ |
// Paramétrage de la valeur du DSN pour Pear DB. |
/** Constante stockant le DSN permetant de se connecter à la base de données de Génésia.*/ |
/** <br> Constante stockant le DSN permetant de se connecter à la base de données de Génésia.*/ |
define('EFLORE_DSN', 'mysql://'.EFLORE_BDD_UTILISATEUR.':'.EFLORE_BDD_MOT_DE_PASSE.'@'.EFLORE_BDD_SERVEUR.'/'.EFLORE_BDD_NOM); |
// +------------------------------------------------------------------------------------------------------+ |
// Définition des chemins de fichiers. |
/** Constante stockant le chemin du dossier contenant les images de plantes.*/ |
define('EFLORE_CHEMIN_IMG_PLTE', 'sites/eflore/generique/images/photos_plte/'); |
/** Constante stockant le chemin du dossier contenant les fichiers rdf.*/ |
define('EFLORE_CHEMIN_RDF', 'sites/eflore/generique/images/photos_plte/'); |
/** Constante stockant l'URL de base de l'application recherche de plante.*/ |
define('EFLORE_CHEMIN_APPLI', GEN_CHEMIN_CLIENT.'eflore/'); |
/** Constante stockant le chemin vers le dossier bibliothèque.*/ |
define('EFLORE_CHEMIN_BIBLIO', EFLORE_CHEMIN_APPLI.'bibliotheque/'); |
/** Constante stockant le chemin vers le dossier présentation.*/ |
define('EFLORE_CHEMIN_PRESENTATION', EFLORE_CHEMIN_APPLI.'presentations/'); |
/** Constante stockant le chemin vers le dossier styles.*/ |
define('EFLORE_CHEMIN_STYLE', EFLORE_CHEMIN_PRESENTATION.'styles/'); |
/** Constante stockant l'URL de base de l'application recherche de plante sous forme d'objet Pear URL.*/ |
$GLOBALS['_EFLORE_']['objet_pear_url'] = $GLOBALS['_GEN_commun']['url']; |
/** <br> Constante stockant le chemin du dossier contenant les images de plantes.*/ |
define('EFLORE_CHEMIN_IMG_PLTE','sites/eflore/generique/images/photos_plte/'); |
/** <br> Constante stockant le chemin du dossier contenant les fichiers rdf.*/ |
define('EFLORE_CHEMIN_RDF','sites/eflore/generique/images/photos_plte/'); |
/** <br> Constante stockant l'URL de base de l'application recherche de plante.*/ |
define('EFLORE_CHEMIN_APPLI','papyrus.php?site=3&menu=39'); |
// +------------------------------------------------------------------------------------------------------+ |
// Définition de la langue |
/** Constante stockant la langue utilisée pour l'application.*/ |
define('EFLORE_LANGUE', substr($GLOBALS['_GEN_commun']['i18n'], 0, 2)); |
/** <br> Constante stockant la langue utilisée pour l'application.*/ |
define('EFLORE_LANGUE',substr($_GEN_commun['i18n'],0,2)); |
// +------------------------------------------------------------------------------------------------------+ |
// Définition de constante spécifiques |
define('EFLORE_RECH_NOM_FORM_NOM_SIZE', '45'); |
define('EFLORE_RECH_NOM_FORM_NOM_MAXLENGTH', '255'); |
// +------------------------------------------------------------------------------------------------------+ |
// Définition des variables temporairement utilisées pour les essais de l'application. |
define('N_TAXON', 3288); |
define('N_VERSION_PROJET_TAXON', 1); |
define('CONTRIBUTEUR', 4); |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2004/08/17 11:22:45 linda |
* définition du chemin de l'application et des constantes nécessaires pour le fonctionnement de l'appli eflore mais non encore disponibles via le site test |
* |
* Revision 1.3 2004/06/22 12:25:02 linda |
* modifications des paramètre de connexion à la base de données |
* |
111,6 → 88,7 |
* Revision 1.2 2004/06/17 15:21:37 linda |
* ajout du fichier initial |
* |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
?> |
/trunk/langues/eflore_langue_fr.inc.php |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/presentations/styles/eflore.css |
---|
File deleted |
\ No newline at end of file |
/trunk/eflore.php |
---|
1,27 → 1,25 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.3 | |
// | PHP version 4.1 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This file is part of eFlore-consultation. | |
// | 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. | |
// | | |
// | Foobar is free software; you can redistribute it and/or modify | |
// | it under the terms of the GNU General Public License as published by | |
// | the Free Software Foundation; either version 2 of the License, or | |
// | (at your option) any later version. | |
// | | |
// | Foobar is distributed in the hope that it will be useful, | |
// | 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 General Public License for more details. | |
// | 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 General Public License | |
// | along with Foobar; if not, write to the Free Software | |
// | 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.5 2004-12-23 20:05:17 jpm Exp $ |
// CVS : $Id: eflore.php,v 1.4 2004-08-17 11:15:07 linda Exp $ |
/** |
* Application de consultation des données d'eFlore. |
* |
38,7 → 36,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.5 $ $Date: 2004-12-23 20:05:17 $ |
*@version $Revision: 1.4 $ $Date: 2004-08-17 11:15:07 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
45,101 → 43,68 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTÊTE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/** Inclusion du fichier config de l'application eflore. */ |
/*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'; |
/** Inclusion du fichier de langue de l'application eflore. */ |
require_once GEN_CHEMIN_CLIENT.'eflore/langues/eflore_langue_'.EFLORE_LANGUE.'.inc.php'; |
require_once GEN_CHEMIN_CLIENT.'eflore/bibliotheque/fonctions/eflore.fonct.php'; |
/** Inclusion de la classe PEAR d'abstraction de base de donnée. */ |
/** <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'; |
/** Inclusion de la bibliothèque PEAR de gestion des URL.*/ |
require_once 'Net/URL.php'; |
// Ajout d'une feuille de style propre à eFlore. |
GEN_stockerStyleExterne('eflore', EFLORE_CHEMIN_STYLE.'eflore.css'); |
/** Definition de la variable globale db_eflore.*/ |
$GLOBALS['db_eflore']= DB::connect(EFLORE_DSN); |
// +------------------------------------------------------------------------------------------------------+ |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/*Mettre ici le code du programme*/ |
function afficherContenuNavigation() |
{ |
$sortie = ''; |
return $sortie; |
} |
function afficherContenuTete() |
{ |
// Transférer tout ceci dans la fonction afficherContenuNavigation(). |
$sortie = ''; |
$sortie .= '<ul class="menu_n3">'; |
$GLOBALS['_EFLORE_']['objet_pear_url']->addQueryString(EFLORE_LG_URL_ONGLET, EFLORE_LG_URL_ONGLET_SYNTHESE); |
$sortie .= '<li><a href="'.$GLOBALS['_EFLORE_']['objet_pear_url']->getURL().'">'.EFLORE_LG_ONGLET_PRINCIPAL.'</a></li>'; |
$GLOBALS['_EFLORE_']['objet_pear_url']->removeQueryString(EFLORE_LG_URL_ONGLET); |
$GLOBALS['_EFLORE_']['objet_pear_url']->addQueryString(EFLORE_LG_URL_ONGLET, EFLORE_LG_URL_PHOTO); |
$sortie .= '<li><a href="'.$GLOBALS['_EFLORE_']['objet_pear_url']->getURL().'">'.EFLORE_LG_ONGLET_ILLUSTRATION.'</a></li>'; |
$GLOBALS['_EFLORE_']['objet_pear_url']->removeQueryString(EFLORE_LG_URL_ONGLET); |
$sortie .= '</ul>'; |
$sortie = '<p><a href="#">Nomenclature </a><a href="papyrus.php?site=3&menu=39&onglet=photo">Illustration</a></p>'; |
return $sortie; |
} |
function afficherContenuCorps() |
{ |
// +--------------------------------------------------------------------------------------------------+ |
// Initialisation |
/** Definition de la variable globale d'eFlore contenant la connexion à la base de données.*/ |
$GLOBALS['_EFLORE_']['bdd']= DB::connect(EFLORE_DSN); |
// Allias temporaire |
$GLOBALS['db_eflore']= $GLOBALS['_EFLORE_']['bdd']; |
$sortie = ''; |
// +--------------------------------------------------------------------------------------------------+ |
// Gestion des actions |
if (isset($_GET[EFLORE_LG_URL_ACTION])) { |
switch ($_GET[EFLORE_LG_URL_ACTION]) { |
case 'nomenclature': |
include_once EFLORE_CHEMIN_APPLI.'eflore_recherche_nomenclature.inc.php'; |
break; |
case 'taxonomique': |
include_once EFLORE_CHEMIN_APPLI.'eflore_recherche_taxonomique.inc.php'; |
break; |
case 'fiche': |
include_once EFLORE_CHEMIN_APPLI.'eflore_fiche.inc.php'; |
break; |
} |
} else { |
include_once EFLORE_CHEMIN_APPLI.'eflore_recherche.inc.php'; |
if (!isset($_GET['onglet'])) |
{ |
$sortie = ""; |
} |
// +--------------------------------------------------------------------------------------------------+ |
// Gestion des onglets à transférer dans le fichier fiche! |
/** Inclusion des fonctions de l'application eflore. */ |
/* |
require_once EFLORE_CHEMIN_BIBLIO.'eflore.fonct.php'; |
if (!isset($_GET[EFLORE_LG_URL_ONGLET])) { |
$sortie = ''; |
} else if ($_GET[EFLORE_LG_URL_ONGLET] == EFLORE_LG_URL_ONGLET_PHOTO) { |
if(!isset($_GET['soum'])) { |
if (isset($_GET['modif'])) { |
include_once EFLORE_CHEMIN_APPLI.'eflore_photo_modif.inc.php'; |
} else { |
include_once EFLORE_CHEMIN_APPLI.'eflore_photo.inc.php'; |
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 EFLORE_CHEMIN_APPLI.'eflore_photo_soum.inc.php'; |
else{ |
include_once GEN_CHEMIN_CLIENT.'eflore/eflore_photo.inc.php'; |
$sortie=$res; |
} |
} |
$GLOBALS['_EFLORE_']['bdd']->disconnect(); |
$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 id="eflore_pied_page">'.EFLORE_LG_PIED.'</p>'; |
$sortie = '<p>Application eFlore. 2004</p>'; |
return $sortie; |
} |
146,11 → 111,12 |
// +------------------------------------------------------------------------------------------------------+ |
// | PIED du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/*Partie non obligatoire*/ |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* $Log $ |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
/trunk/eflore_photo.inc.php |
---|
19,7 → 19,7 |
// | 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_photo.inc.php,v 1.7 2004-12-23 20:05:17 jpm Exp $ |
// CVS : $Id: eflore_photo.inc.php,v 1.6 2004-08-17 11:13:38 linda Exp $ |
/** |
* Titre |
* |
32,7 → 32,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.7 $ $Date: 2004-12-23 20:05:17 $ |
*@version $Revision: 1.6 $ $Date: 2004-08-17 11:13:38 $ |
*/ |
50,9 → 50,9 |
} |
//requete sql |
$req_img='select * from eflore_info_image, eflore_taxon_a_txt, eflore_inventaire_observation, eflore_licence, eflore_personne_contributeur'; |
$req_img='select * from eflore_info_image, eflore_info_txt_a_taxon, eflore_inventaire_observation, eflore_licence, eflore_personne_contributeur'; |
$req=' where eii_id_image=eitat_id_taxon_ref '; |
$req.=' and eii_id_version_projet_img=etat_id_version_projet_taxon_ref '; |
$req.=' and eii_id_version_projet_img=eitat_id_version_projet_taxon_ref '; |
$req.=' and eio_ce_image=eii_id_image '; |
$req.=' and eii_id_version_projet_img=eio_ce_version_projet_img '; |
$req.=' and eii_ce_licence_img=eli_id_licence'; |
308,4 → 308,6 |
} |
} |
?> |
?> |