ajout d'un bouton pour l'envoi de la fiche adherent
This commit is contained in:
parent
d13ca48f32
commit
917268eb7c
@ -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 "</tr><tr class=\"barreBouton\">\n";
|
||||
|
||||
/*
|
||||
* bouton : "Envoie des informations"
|
||||
*/
|
||||
print "<td align=\"center\" width=\"25%\" class=\"bouton\" colspan=\"4\">[<a href=\"$PHP_SELF?rowid=$adh->id&action=sendinfo\">Envoyer sa fiche a l'adhérent</a>]</td>\n";
|
||||
|
||||
print "</tr><tr class=\"barreBouton\">\n";
|
||||
|
||||
if ($adht->vote == 'yes' && defined("ADHERENT_USE_GLASNOST") && ADHERENT_USE_GLASNOST ==1){
|
||||
define("XMLRPC_DEBUG", 1);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user