From e4df4d017918ac75bec1507de4e6290ce4208e30 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 19 Nov 2006 17:22:01 +0000 Subject: [PATCH] New: Ajout confirmation sur fonction envoi fiche adherent par mail --- htdocs/adherents/fiche.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 5b8de7149b1..6393c567237 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -53,7 +53,7 @@ $typeid=isset($_GET["typeid"])?$_GET["typeid"]:$_POST["typeid"]; * Actions */ -if ($_POST["action"] == 'sendinfo') +if ($_POST["action"] == 'confirm_sendinfo' && $_POST["confirm"] == 'yes') { $adh = new Adherent($db); $adh->id = $rowid; @@ -115,7 +115,7 @@ if ($_POST["action"] == 'cotisation') } } -if ($action == 'update') +if ($_REQUEST["action"] == 'update') { if ($_POST["bouton"] == $langs->trans("Save")) { @@ -683,6 +683,13 @@ if ($rowid && $action != 'edit') print '
'; } + // Confirmation de l'envoi fiche par mail + if ($action == 'sendinfo') + { + $html->form_confirm("fiche.php?rowid=$rowid",$langs->trans("SendCardByMail"),$langs->trans("ConfirmSendCardByMail"),"confirm_sendinfo"); + print '
'; + } + // Confirmation de la Résiliation if ($action == 'resign') {