From e49b8069e8ffd3aa8a5b3a651b4130406bae532b Mon Sep 17 00:00:00 2001 From: jlb Date: Mon, 3 Feb 2003 11:35:17 +0000 Subject: [PATCH] p'tites modifs --- htdocs/adherents/fiche.php | 6 ++++++ htdocs/adherents/liste.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 4bc3f948d31..35ce2887b60 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -84,12 +84,18 @@ if ($HTTP_POST_VARS["action"] == 'confirm_valid' && $HTTP_POST_VARS["confirm"] = { $adh = new Adherent($db, $rowid); $adh->validate($user->id); + $adh->fetch($rowid); + $mesg=preg_replace("/%INFO%/","Prenom : $adh->prenom\nNom : $adh->nom\nSociete = $adh->societe\nAdresse = $adh->adresse\nCode Postal : $adh->cp\nVille : $adh->ville\nPays : $adh->pays\nEmail : $adh->email\nLogin : $adh->login\nPassword : $adh->pass\nNote : $adh->note",$conf->adherent->email_valid); + mail($adh->email,"Vos coordonnees sur http://$SERVER_NAME/",$mesg); } if ($HTTP_POST_VARS["action"] == 'confirm_resign' && $HTTP_POST_VARS["confirm"] == yes) { $adh = new Adherent($db, $rowid); $adh->resiliate($user->id); + $adh->fetch($rowid); + $mesg=preg_replace("/%INFO%/","Prenom : $adh->prenom\nNom : $adh->nom\nSociete = $adh->societe\nAdresse = $adh->adresse\nCode Postal : $adh->cp\nVille : $adh->ville\nPays : $adh->pays\nEmail : $adh->email\nLogin : $adh->login\nPassword : $adh->pass\nNote : $adh->note",$conf->adherent->email_resil); + mail($adh->email,"Vos coordonnees sur http://$SERVER_NAME/",$mesg); } diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php index 2ec429029f7..82d348a752f 100644 --- a/htdocs/adherents/liste.php +++ b/htdocs/adherents/liste.php @@ -26,7 +26,7 @@ llxHeader(); $db = new Db(); -if ($sortorder == "") { $sortorder="DESC"; } +if ($sortorder == "") { $sortorder="ASC"; } if ($sortfield == "") { $sortfield="d.nom"; } if ($page == -1) { $page = 0 ; }