/trunk/configuration/eflore_config.inc.php |
---|
1,29 → 1,31 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.1 | |
// | PHP version 4.3 | |
// +------------------------------------------------------------------------------------------------------+ |
// | 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 file is part of eFlore-consultation. | |
// | | |
// | This library is distributed in the hope that it will be useful, | |
// | 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, | |
// | 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. | |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
// | GNU 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 | |
// | You should have received a copy of the GNU General Public License | |
// | along with Foobar; 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.4 2004-08-17 11:22:45 linda Exp $ |
// CVS : $Id: eflore_config.inc.php,v 1.5 2004-12-23 20:04:59 jpm Exp $ |
/** |
* Titre |
* Fichier de configuration d'eFlore. |
* |
* Description |
* Fichier contenant des constantes et des variables globales permettant de configurer eFlore-consultation. |
* |
*@package eflore |
*@subpackage configuration |
30,9 → 32,9 |
//Auteur original : |
*@author Linda ANGAMA<linda_angama@yahoo.fr> |
//Autres auteurs : |
*@author Aucun |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.4 $ $Date: 2004-08-17 11:22:45 $ |
*@version $Revision: 1.5 $ $Date: 2004-12-23 20:04:59 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
39,7 → 41,6 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/*Mettre ici les inclusions de fichiers*/ |
// +------------------------------------------------------------------------------------------------------+ |
46,42 → 47,64 |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
// +------------------------------------------------------------------------------------------------------+ |
// 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); |
/** Definition de la variable globale d'eFlore.*/ |
$GLOBALS['_EFLORE_'] = array(); |
// +------------------------------------------------------------------------------------------------------+ |
// Paramétrage de la base de données. |
/** <br> Constante stockant le nom du serveur de bases de données.*/ |
/** Constante stockant le nom du serveur de bases de données.*/ |
define('EFLORE_BDD_SERVEUR', 'localhost'); |
/** <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.*/ |
/** 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.*/ |
define('EFLORE_BDD_NOM', 'tela_test_eflore'); |
// +------------------------------------------------------------------------------------------------------+ |
// Paramétrage de la valeur du DSN pour Pear DB. |
/** <br> Constante stockant le DSN permetant de se connecter à la base de données de Génésia.*/ |
/** 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. |
/** <br> Constante stockant le chemin du dossier contenant les images de plantes.*/ |
/** 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.*/ |
/** 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'); |
/** 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']; |
// +------------------------------------------------------------------------------------------------------+ |
// Définition de la langue |
/** <br> Constante stockant la langue utilisée pour l'application.*/ |
define('EFLORE_LANGUE',substr($_GEN_commun['i18n'],0,2)); |
/** Constante stockant la langue utilisée pour l'application.*/ |
define('EFLORE_LANGUE', substr($GLOBALS['_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 |
* |
88,7 → 111,6 |
* Revision 1.2 2004/06/17 15:21:37 linda |
* ajout du fichier initial |
* |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
?> |
/trunk/eflore_recherche_nomenclature.inc.php |
---|
New file |
0,0 → 1,115 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.3 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This file is part of eFlore-consultation. | |
// | | |
// | 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, | |
// | 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. | |
// | | |
// | You should have received a copy of the GNU General Public License | |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: eflore_recherche_nomenclature.inc.php,v 1.1 2004-12-23 20:05:17 jpm Exp $ |
/** |
* Affichage du moteur de recherche nomenclatural et de ses résultats. |
* |
* Ce script fournit le code html correspondant aux moteurs de recherche nomenclatural et ses résultats. |
* |
*@package eFlore |
//Auteur original : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ $Date: 2004-12-23 20:05:17 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTÊTE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
// +------------------------------------------------------------------------------------------------------+ |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
$sortie .= '<h2>'.EFLORE_LG_RECH_NOM_TITRE.'</h2>'; |
// -------------------------------------------------------------------------------------------------------- |
// Création du formulaire |
$sortie .= '<ul>'; |
// Notes : Quickform semble remplacer les & des & à nouveau par des & solution utiliser str_replace()... |
$form =& new HTML_QuickForm('eflore_form_nomenclature', 'post', str_replace('&', '&', $GLOBALS['_EFLORE_']['objet_pear_url']->getUrl())); |
$tab_index = MORE_FORM_MOTIF_TAB; |
$squelette =& $form->defaultRenderer(); |
$squelette->setFormTemplate("\n".'<form{attributes}>'."\n".'{content}'."\n".'</form>'); |
$squelette->setElementTemplate( '<li>'."\n". |
'{label}'."\n". |
'{element}'."\n". |
'<!-- BEGIN required --><span class="symbole_obligatoire">'.MORE_LG_FORM_SYMBOLE_OBLIGATOIRE.'</span><!-- END required -->'."\n". |
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'. |
'</li>'."\n"); |
//$squelette->setRequiredNoteTemplate("\n".'<p><span class="symbole_obligatoire">'.MORE_LG_FORM_SYMBOLE_OBLIGATOIRE.'</span> {requiredNote}</p>'."\n"); |
$partie_menu_debut = '<fieldset>'."\n".'<legend>'.EFLORE_LG_RECH_NOM_FORM_TITRE.'</legend>'."\n"; |
$form->addElement('html', $partie_menu_debut); |
$id = 'eflore_nom'; |
$aso_attributs = array( 'id'=>$id, 'class' => 'champ', 'tabindex' => $tab_index++, |
'size' => EFLORE_RECH_NOM_FORM_NOM_SIZE, |
'maxlength' => EFLORE_RECH_NOM_FORM_NOM_MAXLENGTH, |
'onclick' => "javascript: this.value='';"); |
$label = '<label for="'.$id.'">'.EFLORE_LG_RECH_NOM_FORM_NOM.'</label>'; |
$form->addElement('text', $id, $label, $aso_attributs); |
$liste_type_nom_debut = '<ul>'."\n"; |
$form->addElement('html', $$liste_type_nom_debut); |
$id = 'eflore_type_nom'; |
$valeur = 'nom_scientifique'; |
$aso_attributs = array( 'id'=> $id, 'tabindex' => $tab_index++); |
$label = '';//<label for="'.$id.'">'.EFLORE_LG_RECH_NOM_FORM_.'</label>'; |
$form->addElement('radio', $id, $label, EFLORE_LG_RECH_NOM_FORM_TYPE_NOM_SCI, $valeur, $aso_attributs); |
$id = 'eflore_type_nom'; |
$valeur = 'nom_vernaculaire'; |
$aso_attributs = array( 'id'=> $id, 'tabindex' => $tab_index++); |
$label = '';//<label for="'.$id.'">'.EFLORE_LG_RECH_NOM_FORM_.'</label>'; |
$form->addElement('radio', $id, $label, EFLORE_LG_RECH_NOM_FORM_TYPE_NOM_VER, $valeur, $aso_attributs); |
$liste_type_nom_fin = '</ul>'."\n"; |
$form->addElement('html', $$liste_type_nom_fin); |
$id = 'eflore_valider'; |
$aso_attributs = array('id'=> $id, 'class' => 'champ', 'tabindex' => $tab_index++); |
$form->addElement('submit', $id, EFLORE_LG_RECH_NOM_FORM_VALIDER, $aso_attributs); |
$partie_entete_fin = "\n".'</fieldset>'; |
$form->addElement('html', $partie_entete_fin); |
// Instanciation avec les valeur par défaut |
$form->setDefaults($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']); |
// Transformation en XHTML du formulaire |
$sortie .= $form->toHTML()."\n"; |
$sortie .= '</ul>'; |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* |
* +-- 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 |
---|
New file |
0,0 → 1,5 |
#eflore_pied_page { |
text-align:center; |
font-size:10px; |
color:#A9A9A9; |
} |
/trunk/eflore.php |
---|
1,25 → 1,27 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.1 | |
// | PHP version 4.3 | |
// +------------------------------------------------------------------------------------------------------+ |
// | 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 file is part of eFlore-consultation. | |
// | | |
// | This library is distributed in the hope that it will be useful, | |
// | 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, | |
// | 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. | |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
// | GNU 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 | |
// | You should have received a copy of the GNU General Public License | |
// | along with Foobar; 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 $ |
// CVS : $Id: eflore.php,v 1.5 2004-12-23 20:05:17 jpm Exp $ |
/** |
* Application de consultation des données d'eFlore. |
* |
36,7 → 38,7 |
//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 $ |
*@version $Revision: 1.5 $ $Date: 2004-12-23 20:05:17 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
43,68 → 45,101 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTÊTE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/*Mettre ici les inclusions de fichiers*/ |
/** <br> Inclusion du fichier config de l'application eflore. */ |
/** 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'; |
/** <br> Inclusion de la classe PEAR d'abstraction de base de donnée. */ |
/** 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'; |
/** Definition de la variable globale db_eflore.*/ |
$GLOBALS['db_eflore']= DB::connect(EFLORE_DSN); |
// Ajout d'une feuille de style propre à eFlore. |
GEN_stockerStyleExterne('eflore', EFLORE_CHEMIN_STYLE.'eflore.css'); |
// +------------------------------------------------------------------------------------------------------+ |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/*Mettre ici le code du programme*/ |
function afficherContenuNavigation() |
{ |
$sortie = ''; |
return $sortie; |
} |
function afficherContenuTete() |
{ |
$sortie = '<p><a href="#">Nomenclature </a><a href="papyrus.php?site=3&menu=39&onglet=photo">Illustration</a></p>'; |
// 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>'; |
return $sortie; |
} |
function afficherContenuCorps() |
{ |
if (!isset($_GET['onglet'])) |
{ |
$sortie = ""; |
// +--------------------------------------------------------------------------------------------------+ |
// 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; |
} |
elseif($_GET['onglet']=='photo') |
{ |
if(!isset($_GET['soum'])) |
{ |
} else { |
include_once EFLORE_CHEMIN_APPLI.'eflore_recherche.inc.php'; |
} |
// +--------------------------------------------------------------------------------------------------+ |
// 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 GEN_CHEMIN_CLIENT.'eflore/eflore_modif.inc.php'; |
$sortie=$res; |
include_once EFLORE_CHEMIN_APPLI.'eflore_photo_modif.inc.php'; |
} else { |
include_once EFLORE_CHEMIN_APPLI.'eflore_photo.inc.php'; |
} |
else{ |
include_once GEN_CHEMIN_CLIENT.'eflore/eflore_photo.inc.php'; |
$sortie=$res; |
} else { |
include_once EFLORE_CHEMIN_APPLI.'eflore_photo_soum.inc.php'; |
} |
} |
else |
{ |
include_once GEN_CHEMIN_CLIENT.'eflore/eflore_soum.inc.php'; |
$GLOBALS['_EFLORE_']['bdd']->disconnect(); |
$sortie=$res; |
} |
$GLOBALS['db_eflore']->disconnect(); |
$sortie=$res; |
} |
*/ |
return $sortie; |
} |
function afficherContenuPied() |
{ |
$sortie = '<p>Application eFlore. 2004</p>'; |
$sortie = '<p id="eflore_pied_page">'.EFLORE_LG_PIED.'</p>'; |
return $sortie; |
} |
111,12 → 146,11 |
// +------------------------------------------------------------------------------------------------------+ |
// | PIED du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/*Partie non obligatoire*/ |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log $ |
* $Log: not supported by cvs2svn $ |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
/trunk/eflore_recherche.inc.php |
---|
New file |
0,0 → 1,86 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.3 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This file is part of eFlore-consultation. | |
// | | |
// | 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, | |
// | 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. | |
// | | |
// | You should have received a copy of the GNU General Public License | |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: eflore_recherche.inc.php,v 1.1 2004-12-23 20:05:17 jpm Exp $ |
/** |
* Affichage des moteurs de recherches d'eFlore. |
* |
* Ce script fournit le code html correspondant aux moteurs de recherches permettant d'accéder aux données |
* de la base de données eFlore. |
* |
*@package eFlore |
//Auteur original : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ $Date: 2004-12-23 20:05:17 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTÊTE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/** Inclusion des fonctions pour les moteurs de recherche. */ |
require_once EFLORE_CHEMIN_BIBLIO.'eflore_recherche.fonct.php'; |
// +------------------------------------------------------------------------------------------------------+ |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
$sortie .= '<h1>'.EFLORE_LG_RECH_TITRE.'</h1>'; |
require_once EFLORE_CHEMIN_APPLI.'eflore_recherche_nomenclature.inc.php'; |
require_once EFLORE_CHEMIN_APPLI.'eflore_recherche_taxonomie.inc.php'; |
$sortie .= '<h2>'.EFLORE_LG_EXPLE_TITRE.'</h2>'."\n"; |
$sortie .= '<h3>'.EFLORE_LG_EXPLE_TITRE_NOMENC.'</h3>'."\n"; |
$sortie .= '<p>'.EFLORE_LG_EXPLE_NOMENC.'</p>'."\n"; |
$sortie .= '<p>'.EFLORE_LG_EXPLE_ASTUCE.'</p>'."\n"; |
$sortie .= '<ul>'."\n"; |
$sortie .= ' <li>'.sprintf(EFLORE_LG_EXPLE_ASTUCE_DEMO_01, '<tt>', '</tt>', '<tt>', '</tt>').'</li>'; |
$sortie .= ' <li>'.sprintf(EFLORE_LG_EXPLE_ASTUCE_DEMO_02, '<tt>', '</tt>').'</li>'; |
$sortie .= '</ul>'."\n"; |
$sortie .= '<p>'.EFLORE_LG_EXPLE_LANGUE.'</p>'."\n"; |
$sortie .= '<ul>'."\n"; |
$sortie .= ' <li>'.EFLORE_LG_EXPLE_FR.'</li>'; |
$sortie .= ' <li>'.EFLORE_LG_EXPLE_ES.'</li>'; |
$sortie .= ' <li>'.EFLORE_LG_EXPLE_CA.'</li>'; |
$sortie .= ' <li>'.EFLORE_LG_EXPLE_DE.'</li>'; |
$sortie .= ' <li>'.EFLORE_LG_EXPLE_EN.'</li>'; |
$sortie .= ' <li>'.EFLORE_LG_EXPLE_NL.'</li>'; |
$sortie .= ' <li>'.EFLORE_LG_EXPLE_IT.'</li>'; |
$sortie .= ' <li>'.EFLORE_LG_EXPLE_ETC.'</li>'; |
$sortie .= '</ul>'."\n"; |
$sortie .= '<h3>'.EFLORE_LG_EXPLE_TITRE_TAXO.'</h3>'."\n"; |
$sortie .= '<p>'.EFLORE_LG_EXPLE_TAXO.'</p>'."\n"; |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* |
* +-- 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.6 2004-08-17 11:13:38 linda Exp $ |
// CVS : $Id: eflore_photo.inc.php,v 1.7 2004-12-23 20:05:17 jpm Exp $ |
/** |
* Titre |
* |
32,7 → 32,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.6 $ $Date: 2004-08-17 11:13:38 $ |
*@version $Revision: 1.7 $ $Date: 2004-12-23 20:05:17 $ |
*/ |
50,9 → 50,9 |
} |
//requete sql |
$req_img='select * from eflore_info_image, eflore_info_txt_a_taxon, eflore_inventaire_observation, eflore_licence, eflore_personne_contributeur'; |
$req_img='select * from eflore_info_image, eflore_taxon_a_txt, eflore_inventaire_observation, eflore_licence, eflore_personne_contributeur'; |
$req=' where eii_id_image=eitat_id_taxon_ref '; |
$req.=' and eii_id_version_projet_img=eitat_id_version_projet_taxon_ref '; |
$req.=' and eii_id_version_projet_img=etat_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,6 → 308,4 |
} |
} |
?> |
?> |
/trunk/eflore_recherche_taxonomie.inc.php |
---|
New file |
0,0 → 1,97 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.3 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This file is part of eFlore-consultation. | |
// | | |
// | 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, | |
// | 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. | |
// | | |
// | You should have received a copy of the GNU General Public License | |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: eflore_recherche_taxonomie.inc.php,v 1.1 2004-12-23 20:05:17 jpm Exp $ |
/** |
* Affichage du moteur de recherche taxonomique et de ses résultats. |
* |
* Ce script fournit le code html correspondant aux moteurs de recherche taxonomique (par projet) et ses |
* résultats. |
* |
*@package eFlore |
//Auteur original : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ $Date: 2004-12-23 20:05:17 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTÊTE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
// +------------------------------------------------------------------------------------------------------+ |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/* |
<h2> Rechercher par projet </h2> |
<form method="post" action="/" name="eflore_form_taxonomie"> |
<fieldset> |
<legend>Rechercher par projet</legend> |
<ul> |
<li> |
<select name="Projets"> |
<option>BDNFF</option> |
<option>Flore de la Réunion</option> |
<option>Flore de Guadeloupe et Martinique</option> |
<option>Curcubitaceae du monde</option> |
</select> |
<select name="Rang départ"> |
<option>Régne</option> |
<option>Famille</option> |
<option>Genre</option> |
</select> |
</li> |
<li> |
<p> |
<a href="/a">A</a> | |
<a href="/b">B</a> | |
<a href="/c">C</a> | |
<a href="/d">D</a> | |
<a href="/e">E</a> | |
<a href="/f">F</a> | |
<a href="g">G</a> | |
<a href="/h">H</a> | |
<a href="/i">I</a> | |
<a href="/j">J</a> | |
K | |
L | |
<a href="/m">M</a> | |
N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Tous |
</p> |
</li> |
</ul> |
</fieldset> |
</form> |
*/ |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
?> |