Subversion Repositories eFlore/Archives.chorologie

Compare Revisions

Ignore whitespace Rev 28 → Rev 29

/trunk/configuration/echoro_config.inc.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: echoro_config.inc.php,v 1.5 2005-03-15 15:10:32 jpm Exp $
// CVS : $Id: echoro_config.inc.php,v 1.6 2005-05-19 07:37:47 jpm Exp $
/**
* Fichier de configuration de la chorologie d'eFlore.
*
34,7 → 34,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.5 $ $Date: 2005-03-15 15:10:32 $
*@version $Revision: 1.6 $ $Date: 2005-05-19 07:37:47 $
// +------------------------------------------------------------------------------------------------------+
*/
 
78,6 → 78,8
define('ECHORO_CHEMIN_LANGUE', ECHORO_CHEMIN_APPLI.'langues/');
/** Constante stockant le chemin vers le dossier styles.*/
define('ECHORO_CHEMIN_STYLE', ECHORO_CHEMIN_PRESENTATION.'styles/');
/** Constante stockant le chemin vers le dossier script.*/
define('ECHORO_CHEMIN_SCRIPT', ECHORO_CHEMIN_PRESENTATION.'scripts/');
/** Constante stockant le chemin vers le dossier images.*/
define('ECHORO_CHEMIN_IMAGE', ECHORO_CHEMIN_PRESENTATION.'images/');
 
113,15 → 115,15
define('COULEUR_ZERO_R', 255);
define('COULEUR_ZERO_V', 255);
define('COULEUR_ZERO_B', 255);
define('COULEUR_MINI_R', 255);
define('COULEUR_MINI_V', 153);
define('COULEUR_MINI_B', 153);
define('COULEUR_MEDIUM_R', 204);//204
define('COULEUR_MEDIUM_V', 51);//51
define('COULEUR_MEDIUM_B', 51);//51
define('COULEUR_MAXI_R', 102);
define('COULEUR_MAXI_V', 0);
define('COULEUR_MAXI_B', 0);
define('COULEUR_MINI_R', 244);
define('COULEUR_MINI_V', 237);
define('COULEUR_MINI_B', 249);
define('COULEUR_MEDIUM_R', 208);
define('COULEUR_MEDIUM_V', 171);
define('COULEUR_MEDIUM_B', 225);
define('COULEUR_MAXI_R', 132);
define('COULEUR_MAXI_V', 4);
define('COULEUR_MAXI_B', 186);
 
/** Constantes définissants les paramétrages du fragmenteur de la recherche alphabétique. */
define('NBRE_LIGNE_PAGE_DEFAUT', 100);
330,6 → 332,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.5 2005/03/15 15:10:32 jpm
* Ajout du chemin vers l'API formulaire.
*
* Revision 1.4 2005/02/28 15:37:08 jpm
* Changement de nom de dossier d'API.
*
/trunk/configuration/echoro_config_bdd.inc.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: echoro_config_bdd.inc.php,v 1.2 2005-02-22 19:36:55 jpm Exp $
// CVS : $Id: echoro_config_bdd.inc.php,v 1.3 2005-05-19 07:37:47 jpm Exp $
/**
* Fichier de configuration de la base de données de la chorologie d'eFlore.
*
35,7 → 35,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.2 $ $Date: 2005-02-22 19:36:55 $
*@version $Revision: 1.3 $ $Date: 2005-05-19 07:37:47 $
// +------------------------------------------------------------------------------------------------------+
*/
 
53,7 → 53,7
/** Constante stockant le mot de passse de l'utilisateur de la base de données d'eFlore-chorologie.*/
define('ECHORO_BDD_MOT_DE_PASSE', '');
/** Constante stockant le nom de la base de données d'eFlore-chorologie.*/
define('ECHORO_BDD_NOM', 'botanica');
define('ECHORO_BDD_NOM', '');
// +------------------------------------------------------------------------------------------------------+
// Paramétrage de la valeur du DSN pour Pear DB.
/** Constante stockant le DSN permetant de se connecter à la base de données d'eFlore-chorologie.*/
64,6 → 64,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2 2005/02/22 19:36:55 jpm
* Ajout de constantes de configuration.
*
* Revision 1.1 2005/02/22 12:02:41 jpm
* Ajout des fichiers de configuration de l'application.
*
/trunk/bibliotheque/echoro_encodage.fonct.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: echoro_encodage.fonct.php,v 1.1 2005-02-22 12:03:14 jpm Exp $
// CVS : $Id: echoro_encodage.fonct.php,v 1.2 2005-05-19 07:37:47 jpm Exp $
/**
* Fonctions manipulant les encodages
*
34,7 → 34,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2005-02-22 12:03:14 $
*@version $Revision: 1.2 $ $Date: 2005-05-19 07:37:47 $
// +------------------------------------------------------------------------------------------------------+
*/
 
62,6 → 62,7
unset($tab_entites['<']);
unset($tab_entites['>']);
unset($tab_entites['&']);
$tab_entites[' & '] = ' &amp; ';
return strtr($texte, $tab_entites);
}
 
68,7 → 69,10
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/02/22 12:03:14 jpm
* Ajout des fichiers de la bibliothèque de l'application.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/eflore_chorologie.php
21,7 → 21,7
// | 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_chorologie.php,v 1.6 2005-03-15 15:10:40 jpm Exp $
// CVS : $Id: eflore_chorologie.php,v 1.7 2005-05-19 07:37:47 jpm Exp $
/**
* Affichage des listes de noms de plantes par zones géographiques.
*
34,7 → 34,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.6 $ $Date: 2005-03-15 15:10:40 $
*@version $Revision: 1.7 $ $Date: 2005-05-19 07:37:47 $
// +------------------------------------------------------------------------------------------------------+
*/
 
58,11 → 58,6
// Ajout d'une feuille de style propre à eFlore.
GEN_stockerStyleExterne('echoro', ECHORO_CHEMIN_STYLE.'echoro.css');
 
/** Inclusion du fichier gérant les fonctions javascripts. */
include_once ECHORO_CHEMIN_BIBLIO.'echoro_javascript.fonct.php';
//Nous appelons la fonction javascript à insérer dans l'entête.
GEN_stockerCodeScript(ajouterInfoBulleJs());
 
/** Inclusion de la classe "form" de l'API Formulaire. */
require_once ECHORO_CHEMIN_API_FORMULAIRE.'FORM_formulaire.class.php';
 
426,6 → 421,10
if (!$carte_france) {
//Affichage quand il n'y a plus de carte.
//Dans notre cas l'utilisateur a cliqué sur un département.
/** Inclusion du fichier gérant les fonctions javascripts. */
include_once ECHORO_CHEMIN_BIBLIO.'echoro_javascript.fonct.php';
//Nous appelons la fonction javascript à insérer dans l'entête.
GEN_stockerFichierScript('echoro', ECHORO_CHEMIN_SCRIPT.'echoro.js');
//Nous récupérons l'identifiant du département transmis dans l'historique sous
//la forme france*numéro_departement
533,6 → 532,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.6 2005/03/15 15:10:40 jpm
* Ajout de l'API formulaire.
*
* Revision 1.5 2005/02/24 17:06:17 jpm
* Changement du nom d'une fonction.
*
/trunk/presentations/scripts/echoro.js
New file
0,0 → 1,113
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | Javascript version 1.5 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) Tela Botanica (accueil@tela-botanica.org), 2005. |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Chorologie. |
// | |
// | 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: echoro.js,v 1.1 2005-05-19 07:37:47 jpm Exp $
/**
* Contient le code javascript.
*
*
*@package eFlore
*@subpackage Chorologie
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-05-19 07:37:47 $
// +------------------------------------------------------------------------------------------------------+
*/
 
//D'autres scripts sur http://www.toutjavascript.com
//Si vous utilisez ce script, merci de m'avertir ! < webmaster@toutjavascript.com >
//Auteur original :Olivier Hondermarck <webmaster@toutjavascript.com>
//Modifs compatibilité Netscape 6/Mozilla : Cédric Lamalle 09/2001 <cedric@cpac.embrapa.br>
//Correction Mac IE5 (Merci Fred)
var IB=new Object;
var posX=0;
var posY=0;
var xOffset=10;
var yOffset=10;
 
function AffBulle(texte)
{
contenu='<table border="0" cellspacing="0" cellpadding="'+IB.NbPixel+'"><tr bgcolor="'+IB.ColContour+'"><td><table border="0" cellpadding="2" cellspacing="0" bgcolor="'+IB.ColFond+'"><tr><td style="color:'+IB.ColTexte+';">'+texte+'</td></tr></table></td></tr></table>&nbsp;';
var finalPosX=posX-xOffset;
if (finalPosX<0) {
finalPosX=0;
}
if (document.getElementById) {
document.getElementById('bulle').innerHTML=contenu;
document.getElementById('bulle').style.top=posY+yOffset+'px';
document.getElementById('bulle').style.left=finalPosX+'px';
document.getElementById('bulle').style.zIndex=100;
document.getElementById('bulle').style.visibility="visible";
//Nous vérifions que nous utilisons bien IE ou Mozilla pour supprimer les valeurs tiltes de images fournissant les infos bulles d'aides.
//Cela pourrait être amélioré en vérifiant aussi les liens car l'aide pourrait être donnée par l'intermédiaire de lien.
//alert(navigator.appName);
if (document.images.length) {
//if (navigator.appName == 'Netscape' || navigator.appName == 'Microsoft Internet Explorer') {
for(i=1; i<document.images.length; i++) {
var nom = 'echoro_info_0'+i;
if (document.images[nom] != null ) {
document.images[nom].title = "";
}
}
}
}
}
 
function getMousePos(e)
{
if (document.getElementById) {
posX=e.pageX;
posY=e.pageY;
}
}
 
function HideBulle()
{
if (document.getElementById) {
document.getElementById('bulle').style.visibility = 'hidden';
}
}
 
function InitBulle(ColTexte,ColFond,ColContour,NbPixel)
{
IB.ColTexte=ColTexte;IB.ColFond=ColFond;IB.ColContour=ColContour;IB.NbPixel=NbPixel;
if (document.getElementById) {
document.onmousemove = getMousePos;
document.write('<div id="bulle" style="position:absolute;top:0;left:0;visibility:hidden;"></div>');
}
}
 
//// InitBulle(couleur de texte, couleur de fond, couleur de contour, taille contour);
InitBulle("navy","#FFCC66","orange", 1);
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/