From ef7b3bfdb84fe20e9bd0ad36c6d53cdafdd0bc48 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 24 Jan 2010 18:26:35 +0000 Subject: [PATCH] More information on confirm message --- htdocs/adherents/fiche.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 8cef0b37a2e..1ff84f9ed29 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -1018,10 +1018,14 @@ if ($rowid && $action != 'edit') // Confirm validate member if ($action == 'valid') { + $langs->load("mails"); + // Cree un tableau formulaire $formquestion=array(); - if ($adh->email) $formquestion[0]=array('type' => 'checkbox', 'name' => 'send_mail', 'label' => $langs->trans("SendAnEMailToMember",$adh->email), 'value' => ($conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL?true:false)); - + $label=$langs->trans("SendAnEMailToMember"); + $label.=' ('.$langs->trans("MailFrom").': '.$conf->global->ADHERENT_MAIL_FROM.', '; + $label.=$langs->trans("MailRecipient").': '.$adh->email.')'; + if ($adh->email) $formquestion[0]=array('type' => 'checkbox', 'name' => 'send_mail', 'label' => $label, 'value' => ($conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL?true:false)); $ret=$html->form_confirm("fiche.php?rowid=$rowid",$langs->trans("ValidateMember"),$langs->trans("ConfirmValidateMember"),"confirm_valid",$formquestion); if ($ret == 'html') print '
'; }