From 917268eb7c6d2cf73661cf4421fe7e469b30536e Mon Sep 17 00:00:00 2001 From: jlb Date: Wed, 3 Sep 2003 15:21:06 +0000 Subject: [PATCH] ajout d'un bouton pour l'envoi de la fiche adherent --- htdocs/adherents/fiche.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 3f9dc0ad7cd..f3e918cc443 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -28,10 +28,18 @@ require(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php"); require(DOL_DOCUMENT_ROOT."/paiement.class.php"); require(DOL_DOCUMENT_ROOT."/adherents/XML-RPC.functions.php"); -//$db = new Db(); $adho = new AdherentOptions($db); $errmsg=''; +if (isset($action) && $action='sendinfo') +{ + $adh = new Adherent($db); + $adh->id = $rowid; + $adh->fetch($rowid); + $adh->send_an_email($adh->email,"Voici le contenu de votre fiche\n\n%INFOS%\n\n","Contenu de votre fiche adherent"); +} + + if ($HTTP_POST_VARS["action"] == 'cotisation') { $adh = new Adherent($db); @@ -600,6 +608,13 @@ if ($rowid > 0) print "\n"; + /* + * bouton : "Envoie des informations" + */ + print "[id&action=sendinfo\">Envoyer sa fiche a l'adhérent]\n"; + + print "\n"; + if ($adht->vote == 'yes' && defined("ADHERENT_USE_GLASNOST") && ADHERENT_USE_GLASNOST ==1){ define("XMLRPC_DEBUG", 1);