Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 776 → Rev 777

/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.11 2006-03-02 16:57:31 alexandre_tb Exp $
// CVS : $Id: inscription.fonct.php,v 1.11 2006-03-02 16:57:31 alexandre_tb Exp $
// CVS : $Id: inscription.fonct.php,v 1.12 2006-03-15 11:02:35 alexandre_tb Exp $
// CVS : $Id: inscription.fonct.php,v 1.12 2006-03-15 11:02:35 alexandre_tb Exp $
/**
* Fonctions du module inscription
*
32,8 → 32,8
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.11 $ $Date: 2006-03-02 16:57:31 $
*@version $Revision: 1.11 $ $Date: 2006-03-02 16:57:31 $
*@version $Revision: 1.12 $ $Date: 2006-03-15 11:02:35 $
*@version $Revision: 1.12 $ $Date: 2006-03-15 11:02:35 $
// +------------------------------------------------------------------------------------------------------+
*/
 
179,7 → 179,7
* @param array un tableau de valeur avec en clé les noms des champs du formulaire
* @return void
*/
function mise_a_jour($valeur, $id = '') {echo 'toto';
function mise_a_jour($valeur, $id = '') {
// ====================Mise à jour dans l'annuaire gen_annuaire ====================
if ($id == '') {
$id = $GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID);
206,6 → 206,8
 
function requete_annuaire($valeur) {
$req = INS_CHAMPS_NOM.'="'.addslashes($valeur['nom']).'", ';
if (isset($valeur['est_structure']) && $valeur['est_structure'] == 0)
$req .= INS_CHAMPS_PRENOM.'="'.addslashes($valeur['prenom']).'", ';
// Initialisation de variable pour éviter des notices
foreach (array ('adresse_1', 'adresse_2', 'ville', 'telephone', 'fax', 'site') as $val) {
if (!isset ($valeur[$val])) $valeur[$val] = '' ;
518,6 → 520,10
$mail -> send ($ligne[INS_CHAMPS_MAIL], $headers, $body) ;
// Envoi du mail aux administrateur du site
foreach ($GLOBALS['mail_admin'] as $administrateur) {
$mail -> send ($administrateur, $headers, $body) ;
}
if (PEAR::isError($mail)) {
echo 'erreur d\'envoi' ;
return false ;
644,6 → 650,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.11 2006/03/02 16:57:31 alexandre_tb
* correction appel au générateur de nom wiki
*
* Revision 1.10 2006/02/28 14:02:20 alexandre_tb
* suppression des insertion dans les tables du bazar
*