Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 611 → Rev 612

/trunk/client/bottin/bibliotheque/inscription.class.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: inscription.class.php,v 1.4 2005-11-17 18:48:02 florian Exp $
// CVS : $Id: inscription.class.php,v 1.5 2005-11-24 16:17:52 florian Exp $
/**
* Inscription
*
31,7 → 31,7
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.4 $ $Date: 2005-11-17 18:48:02 $
*@version $Revision: 1.5 $ $Date: 2005-11-24 16:17:52 $
// +------------------------------------------------------------------------------------------------------+
*/
 
133,6 → 133,9
$squelette->setElementTemplate( '<span class="bouton" id="bouton_annuler">{label}{element}</span>'."\n", 'annuler');
$squelette->setElementTemplate( '<span class="bouton" id="bouton_valider">{label}{element}</span>'."\n", 'valider');
$squelette->setGroupElementTemplate('<span class="groupe_bouton">{label}{element}</span>', 'groupe_bouton') ;
//Traduction de champs requis
$formtemplate->setRequiredNote(INS_CHAMPS_REQUIS) ;
$formtemplate->setJsWarnings(INS_ERREUR_SAISIE,INS_VEUILLEZ_CORRIGER);
$debut = '<h2>'.INS_AJOUT_MEMBRE.'</h2>'."\n";
$this->addElement('html', $debut);
$this->addElement('text', 'email', INS_EMAIL) ;
/trunk/client/bottin/bibliotheque/inscription.fonct.php
19,8 → 19,8
// | 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: inscription.fonct.php,v 1.5 2005-11-18 16:04:15 florian Exp $
// CVS : $Id: inscription.fonct.php,v 1.5 2005-11-18 16:04:15 florian Exp $
// CVS : $Id: inscription.fonct.php,v 1.6 2005-11-24 16:17:52 florian Exp $
// CVS : $Id: inscription.fonct.php,v 1.6 2005-11-24 16:17:52 florian Exp $
/**
* Fonctions du module inscription
*
32,8 → 32,8
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.5 $ $Date: 2005-11-18 16:04:15 $
*@version $Revision: 1.5 $ $Date: 2005-11-18 16:04:15 $
*@version $Revision: 1.6 $ $Date: 2005-11-24 16:17:52 $
*@version $Revision: 1.6 $ $Date: 2005-11-24 16:17:52 $
// +------------------------------------------------------------------------------------------------------+
*/
 
248,11 → 248,11
if (INS_CHAMPS_LETTRE != '') {
if (isset($valeur['lettre'])) {
$req .= ', '.INS_CHAMPS_LETTRE.'="'.$valeur['lettre'].'"';
$req .= ', '.INS_CHAMPS_LETTRE.'="'.$valeur['lettre'].'" ';
inscription_lettre('inscrire');
}
else {
$req .= ', '.INS_CHAMPS_LETTRE.'=0';
$req .= ', '.INS_CHAMPS_LETTRE.'=0 ';
inscription_lettre('desinscrire');
}
}
649,6 → 649,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.5 2005/11/18 16:04:15 florian
* corrections de bugs, optimisations, tests pour rendre inscription stable.
*
* Revision 1.4 2005/11/17 18:48:02 florian
* corrections bugs + amélioration de l'application d'inscription
*
/trunk/client/bottin/bibliotheque/lib.carto.php
29,11 → 29,11
*@version 01 juillet 2002
// +-----------------------------------------------------------------------------------------------+
//
// $Id: lib.carto.php,v 1.1 2005-09-22 14:02:49 ddelon Exp $
// $Id: lib.carto.php,v 1.2 2005-11-24 16:17:52 florian Exp $
// FICHIER : $RCSfile: lib.carto.php,v $
// AUTEUR : $Author: ddelon $
// VERSION : $Revision: 1.1 $
// DATE : $Date: 2005-09-22 14:02:49 $
// AUTEUR : $Author: florian $
// VERSION : $Revision: 1.2 $
// DATE : $Date: 2005-11-24 16:17:52 $
//
// +-----------------------------------------------------------------------------------------------+
// A FAIRE :
82,7 → 82,7
function afficherHistoriqueCarte ()
{
$res='';
$res='<div style="float:left;">'.INS_ECHELLE;
$tabonglet = explode ('*', $this->historique);
$tabnom = explode ('*', $this->nom);
foreach ($tabonglet as $key=>$value) {
101,7 → 101,7
$res.='href="'.$this->url.'&amp;historique_cartes='.$chemin.'">&nbsp;'.$this->caractere_separation.'&nbsp;'.$tabnom[$key].'</a>';
}
$res.= '</div>'."\n";
return $res;
}//Fin de la méthode afficherHistoriqueCarte().
415,11 → 415,7
// de la zone et l'action à entreprendre pour la zone conssidérée.
// La méthode imgform() utilise la méthode get_cartoAction() de l'objet Carto_Action pour connaître
// en fonction des coordonnées du clic l'action à entreprendre.
// Quoi qu'il arrive, on ouvre la balise formulaire
$res = '<form action="'.$this->url.'" method="post"><br />'."\n";
$res .= '<div style="text-align: center;"><strong>'.INS_CLIQUER_ACCEDER.'</strong></div>';
if (isset ($this->image_x) && ($this->image_x != '') && isset ($this->image_y) && ($this->image_y != '')) {
// on regarde ici si l'on a pas un objet de plus bas niveau présent dans la variable de session carte
//a charger a la place de l'objet de plus haut niveau
540,8 → 536,7
}
$res .= INS_CHEMIN_APPLI.'/bibliotheque/lib.carto.extractimg.php?fichier='.$this->id.$id_image.'"';
$res .= ' name="image" onmouseover="javascript:show(\'d\');" onmouseout="javascript:show(\'d\');" />'."\n";
$res .= '<input type="hidden" name="historique_cartes" value="'.$this->historique.'" />';
$res .= '</form>'."\n";
$res .= '<input type="hidden" name="historique_cartes" value="'.$this->historique.'" />'."\n";
return $res;
}
574,7 → 569,7
$i=0;
$retour = '<select name="liste_zone_carte" onchange="javascript:this.form.submit();">'."\n";
$retour = '<select name="liste_zone_carte" style="float:right;" onchange="javascript:this.form.submit();">'."\n";
$retour .= '<option value="">'.INS_VISUALISER_ZONE.'</option>'."\n";
$nom_chp_nom_zone = $this->_info_table_zg['nom_chp_nom_zone'];
1188,6 → 1183,9
//-- Fin du code source ------------------------------------------------------------
/*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/09/22 14:02:49 ddelon
* nettoyage annuaire et php5
*
* Revision 1.2 2005/09/22 13:30:49 florian
* modifs pour compatibilité XHTML Strict + corrections de bugs (mais ya encore du boulot!!)
*
/trunk/client/bottin/cartographie.php
26,13 → 26,13
*@version 03 mai 2004
// +-----------------------------------------------------------------------------------------------+
//
// $Id: cartographie.php,v 1.1 2005-09-22 14:02:49 ddelon Exp $
// $Id: cartographie.php,v 1.2 2005-11-24 16:17:52 florian Exp $
// FICHIER : $RCSfile: cartographie.php,v $
// AUTEUR : $Author: ddelon $
// VERSION : $Revision: 1.1 $
// DATE : $Date: 2005-09-22 14:02:49 $
// AUTEUR : $Author: florian $
// VERSION : $Revision: 1.2 $
// DATE : $Date: 2005-11-24 16:17:52 $
*/
include_once 'configuration/ins_annuaire.config.inc.php';
include_once PAP_CHEMIN_RACINE.'/client/bottin/configuration/bottin.config.inc.php';
include_once INS_CHEMIN_APPLI.'configuration/cartographie.config.inc.php';
include_once INS_CHEMIN_APPLI.'bibliotheque/cartographie.fonct.php';
include_once INS_CHEMIN_APPLI.'bibliotheque/lib.carto.php';
39,12 → 39,6
include_once INS_CHEMIN_APPLI.'bibliotheque/cartographie.fonct.php';
//include_once 'HTML/QuickForm.php' ;
 
// Ajout d'une feuille de style externe
GEN_stockerStyleExterne('cartographie', 'presentations/cartographie.css') ;
 
if (isset($GLOBALS['logout']) && $GLOBALS['logout']==1) {
$GLOBALS['AUTH']->logout();
}
//================================================================================================
//================================================================================================
 
128,7 → 122,7
$resultat_cp = $GLOBALS['ins_db']->query($requete_cp) ;
if (DB::isError($resultat_cp)) {
die('
<H2 class="erreur">Erreur de requête</H2>'.
<h2 class="erreur">Erreur de requête</h2>'.
'<b>Requete : </b>'.$requete_cp.
'<br/><br/><b>Erreur : </b>'.$resultat_cp->getMessage());
}
225,16 → 219,15
return $res;
}
else {
// Quoi qu'il arrive, on ouvre la balise formulaire
$res = '<form action="'.$monde->url.'" method="post">'."\n";
$historique_carte = new Carto_HistoriqueCarte ($monde, '&gt;', 'chemin_carto');
$res .= $historique_carte->afficherHistoriqueCarte();
$res .= "<br />\n" ;
$tab = explode('*',$monde->historique);
$res .= $historique_carte->afficherHistoriqueCarte()."\n" ;
$res .= $img;
$res .= '<br /><div style="text-align: center;"><strong>'.INS_COULEUR.'</strong></div><br />'."\n";
$res .= '<br /><small><strong>'.INS_AVERTISSEMENT_TITRE.' : </strong>';
$res .= INS_AVERTISSEMENT.'</small>'."\n";
$res .= '</form>'."\n";
$res .= '<p style="text-align: center;">'."\n";
$res .= '<strong>'.INS_CLIQUER_ACCEDER.'</strong><br />'."\n";
$res .= INS_COULEUR."\n".'</p>'."\n";
return $res;
}
}
243,6 → 236,9
//-- Fin du code source ------------------------------------------------------------
/*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/09/22 14:02:49 ddelon
* nettoyage annuaire et php5
*
* Revision 1.2 2005/09/22 13:30:49 florian
* modifs pour compatibilité XHTML Strict + corrections de bugs (mais ya encore du boulot!!)
*
/trunk/client/bottin/langues/bottin.langue_fr.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: bottin.langue_fr.inc.php,v 1.2 2005-11-18 16:04:15 florian Exp $
// CVS : $Id: bottin.langue_fr.inc.php,v 1.3 2005-11-24 16:17:52 florian Exp $
/**
* Fichier de traduction en français de l'application ins_annuaire
*
29,7 → 29,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.2 $ $Date: 2005-11-18 16:04:15 $
*@version $Revision: 1.3 $ $Date: 2005-11-24 16:17:52 $
// +------------------------------------------------------------------------------------------------------+
*/
define ('INS_TITRE_INSCRIPTION', 'Inscription au réseau');
154,13 → 154,8
define ('INS_ENVOYER', 'Envoyer') ;
define ('INS_LABEL_PROJET', 'en tant que membre du réseau');
define ('INS_COULEUR', 'La couleur est proportionnelle au nombre d\'inscrits.') ;
define ('INS_AVERTISSEMENT_TITRE', 'Avertissement et d&eacute;ni de responsabilit&eacute;') ;
define ('INS_AVERTISSEMENT', 'La représentation et l\'utilisation des fronti&egrave;res, des noms g&eacute;ographiques et autres '.
' donn&eacute;es employ&eacute;s sur les cartes et utilis&eacute;s dans les listes,'.
' les tableaux, les documents et les bases de donn&eacute;es de ce site ne sont pas garanties sans '.
'erreurs, de m&ecirc;me qu\'elles n\'engagent pas la responsabilit&eacute; des auteurs de ce site ni '.
'n\'impliquent de reconnaissance officielle de leur part.') ;
define ('INS_MONDE', 'Monde') ;
define ('INS_ECHELLE', 'Echelle : ') ;
define ('INS_CLIQUER_ACCEDER', 'Cliquer sur la carte pour zoomer ou acc&eacute;der aux informations&nbsp;&nbsp;') ;
define ('INS_VISUALISER_ZONE', 'Mettre en rouge la zone...');
define ('INS_MESSAGE_ENVOYE', '<br /><br />Votre message a &eacute;t&eacute; envoy&eacute;') ;
190,6 → 185,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2 2005/11/18 16:04:15 florian
* corrections de bugs, optimisations, tests pour rendre inscription stable.
*
* Revision 1.1 2005/11/17 18:48:02 florian
* corrections bugs + amélioration de l'application d'inscription
*
/trunk/client/bottin/cartographie.admin.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: cartographie.admin.php,v 1.1 2005-09-22 14:02:49 ddelon Exp $
// CVS : $Id: cartographie.admin.php,v 1.2 2005-11-24 16:17:52 florian Exp $
/**
*
*@package bazar
27,7 → 27,7
*@author Florian Schmitt <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2005-09-22 14:02:49 $
*@version $Revision: 1.2 $ $Date: 2005-11-24 16:17:52 $
// +------------------------------------------------------------------------------------------------------+
*/
// +------------------------------------------------------------------------------------------------------+
52,9 → 52,9
function afficherContenuCorps()
{
/** Inclusion du fichier de configuration de cette application.*/
require_once 'configuration/ins_annuaire.config.inc.php';
require_once PAP_CHEMIN_RACINE.'client/bottin/configuration/bottin.config.inc.php';
require_once INS_CHEMIN_APPLI.'configuration/cartographie.config.inc.php';
require_once 'HTML/QuickForm.php' ;
require_once PAP_CHEMIN_RACINE.'api/pear/HTML/QuickForm.php' ;
//-------------------------------------------------------------------------------------------------------------------
// Initialisation des attributs
66,9 → 66,9
//-------------------------------------------------------------------------------------------------------------------
// Création du formulaire
$this->objet_pear_url->addQueryString('adme_site_id', 2);
$this->objet_pear_url->addQueryString('adme_menu_id', 14);
$this->objet_pear_url->addQueryString('adme_action', 'administrer');
$form =& new HTML_QuickForm('form_param_carto', 'post', str_replace('&amp;', '&', $this->objet_pear_url->getUrl()));
$this->objet_pear_url->addQueryString('adme_menu_id', 14);
$this->objet_pear_url->addQueryString('adme_action', 'administrer');
$form =& new HTML_QuickForm('form_param_carto', 'post', str_replace('&amp;', '&', $this->objet_pear_url->getUrl()));
$squelette =& $form->defaultRenderer();
$squelette->setFormTemplate("\n".'<form{attributes}>'."\n".'<ul>'."\n".'{content}'."\n".'</ul>'."\n".'</form>'."\n");
$squelette->setElementTemplate( '<li>'."\n".
77,17 → 77,17
'<!-- BEGIN required --><span class="symbole_obligatoire">*</span><!-- END required -->'."\n".
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'."\n".
'</li>'."\n");
$requete = $requete = 'SHOW TABLES FROM '.INS_BASE;
$resultat = $this->objet_pear_db->query($requete) ;
if (DB::isError($resultat)) {
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
}
$option_tables = array();
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
$option_tables[$ligne['Tables_in_'.INS_BASE]] = $ligne['Tables_in_'.INS_BASE];
}
$javascript= array('onchange' => 'javascript:this.form.submit();');
$form->addElement('select', 'nom_table1', INS_TABLE, $option_tables, $javascript);
$requete = 'SHOW TABLES FROM '.$this->objet_pear_db->dsn['database'];
$resultat = $this->objet_pear_db->query($requete) ;
if (DB::isError($resultat)) {
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ;
}
$option_tables = array();
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
$option_tables[$ligne['Tables_in_'.$this->objet_pear_db->dsn['database']]] = $ligne['Tables_in_'.$this->objet_pear_db->dsn['database']];
}
$javascript= array('onchange' => 'javascript:this.form.submit();');
$form->addElement('select', 'nom_table1', INS_TABLE, $option_tables, $javascript);
$requete = $requete = 'SELECT * FROM carto_config WHERE cc_menu_id='.$_GET['adme_menu_id'];
$resultat = $this->objet_pear_db->query($requete) ;