Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1489 → Rev 1490

/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.22 2007-06-25 09:59:03 alexandre_tb Exp $
// CVS : $Id: inscription.class.php,v 1.23 2007-06-26 09:32:33 neiluj Exp $
/**
* Inscription
*
31,7 → 31,7
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.22 $ $Date: 2007-06-25 09:59:03 $
*@version $Revision: 1.23 $ $Date: 2007-06-26 09:32:33 $
// +------------------------------------------------------------------------------------------------------+
*/
 
204,14 → 204,16
setLatLonForm(marker);
}
});' ;
if ($this->getElementValue ('latitude') != '' && $this->getElementValue('longitude') != '') {
$script .= '
point = new GLatLng('.$this->getElementValue('latitude').', '.$this->getElementValue('longitude').');
marker = new GMarker(point, {draggable: true});
map.addOverlay(marker);' ;
}
$script .= 'geocoder = new GClientGeocoder();
}
if($_REQUEST['action'] == 'modifier') {
if ($this->getElementValue ('latitude') != '' && $this->getElementValue('longitude') != '') {
$script .= '
point = new GLatLng('.$this->getElementValue('latitude').', '.$this->getElementValue('longitude').');
marker = new GMarker(point, {draggable: true});
map.addOverlay(marker);' ;
}
}
$script .= 'geocoder = new GClientGeocoder();
};
function showAddress() {
var adress_1 = document.getElementById("a_adresse1").value ;
/trunk/client/bottin/bibliotheque/bottin.fonct.php
788,7 → 788,8
if (is_int($tableau[$i]['nom_bdd'])) {
} else {
$requete .= $tableau[$i]['nom_bdd'].'="'.$valeur[$tableau[$i]['nom_bdd']].'",';
if(isset($valeur[$tableau[$i]['nom_bdd']]))
$requete .= $tableau[$i]['nom_bdd'].'="'.$valeur[$tableau[$i]['nom_bdd']].'",';
}
}
//cas des fichiers
1331,6 → 1332,9
//-- Fin du code source ------------------------------------------------------------
/*
* $Log$
* Revision 1.17 2007-06-25 15:37:57 alexandre_tb
* correction de bug
*
* Revision 1.16 2007-06-25 09:59:03 alexandre_tb
* ajout de carte_google, mise en place des templates avec api/formulaire, configuration de multiples inscriptions, ajout de modele pour les mails
*
/trunk/client/bottin/inscription.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.php,v 1.27 2007-06-25 09:59:03 alexandre_tb Exp $
// CVS : $Id: inscription.php,v 1.28 2007-06-26 09:32:32 neiluj Exp $
/**
* Inscription
*
32,7 → 32,7
//Autres auteurs :
*@author Florian SCHMITT <florian@ecole-et-nature.org>
*@copyright Tela-Botanica 2000-2007
*@version $Revision: 1.27 $ $Date: 2007-06-25 09:59:03 $
*@version $Revision: 1.28 $ $Date: 2007-06-26 09:32:32 $
// +------------------------------------------------------------------------------------------------------+
*/
 
221,6 → 221,10
if (DB::isError ($resultat)) {
return ("Echec de la requete : $requete<br />".$resultat->getMessage()) ;
}
if($resultat->numRows() == 0)
return INS_MESSAGE_EXPIRATION;
$ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT) ;
$donnees = unserialize (stripslashes($ligne->id_donnees)) ;
228,8 → 232,10
// pour charger la globale ins_config
$GLOBALS['ins_config'] = inscription::getConfig($donnees['id_inscription']);
// Template du formulaire
$GLOBALS['ins_config']['ic_inscription_template'] = inscription::getTemplate(INS_TEMPLATE_FORMULAIRE,
$GLOBALS['ins_config']['ic_id_inscription']);
// si l inscription est modere on place la demande en attente
// et on envoie un mail au moderateur
288,7 → 294,9
//cas d'une authentification reussie---------------------------------------------------------------------
if ($GLOBALS['AUTH']->getAuth() && ($_REQUEST['action']!='modifier')) {
// Il faut charger ins_config
$GLOBALS['ins_config'] = inscription::getConfig($GLOBALS['AUTH']->getAuthData('a_ce_id_inscription'));
if(empty($GLOBALS['ins_config']))
$GLOBALS['ins_config'] = inscription::getConfig($GLOBALS['AUTH']->getAuthData('a_ce_id_inscription'));
return info() ;
}
298,6 → 306,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.27 2007-06-25 09:59:03 alexandre_tb
* ajout de carte_google, mise en place des templates avec api/formulaire, configuration de multiples inscriptions, ajout de modele pour les mails
*
* Revision 1.26 2007-06-01 15:11:00 alexandre_tb
* correction de la verification de l email qui ne fonctionnait plus
*
/trunk/client/projet/classes/projet.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: projet.class.php,v 1.9 2007-06-25 12:15:06 alexandre_tb Exp $
// CVS : $Id: projet.class.php,v 1.10 2007-06-26 09:32:33 neiluj Exp $
/**
* Application projet
*
31,7 → 31,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.9 $
*@version $Revision: 1.10 $
// +------------------------------------------------------------------------------------------------------+
*/
 
476,7 → 476,7
function getTousLesProjets(&$objetDB, $exclu = '')
{
$sql = '';
if (isset ($this->_projet_exclu) && count($this->_projet_exclu)) {
if (isset($this) && isset ($this->_projet_exclu) && count($this->_projet_exclu)) {
$sql = 'where p_id not in (';
foreach ($this->_projet_exclu as $valeur) {
$sql .= $valeur.',' ;