correction formulaire abomailmans mini une liste
This commit is contained in:
parent
e314369ab9
commit
bda51673e0
@ -1,8 +1,8 @@
|
||||
#CACHE{0}
|
||||
<div class="formulaire_spip formulaire_#FORM" id="formulaire_#FORM[_(#ENV{id_abomailman})]">
|
||||
|
||||
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
|
||||
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
|
||||
[<div class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</div>]
|
||||
[<div class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</div>]
|
||||
|
||||
[(#ENV*{editable}|oui)
|
||||
<form method='post' action='#ENV{action}'>
|
||||
|
@ -67,28 +67,26 @@ function formulaires_abomailman_mini_une_liste_traiter_dist($id_abomailman = "")
|
||||
// on initialise l'envoi
|
||||
// on traite chaque liste via une fonction reutilisable ailleurs
|
||||
// on passe abonnement a true d'office
|
||||
$traiter=abomailman_traiter_abonnement($id_abomailman,true);
|
||||
$traiter = abomailman_traiter_abonnement($id_abomailman,true);
|
||||
$titre = $traiter[0];
|
||||
$proprio_email=$traiter[1];
|
||||
$liste_email=$traiter[2];
|
||||
$sujet=$traiter[3];
|
||||
$body="$nom - $email ".$traiter[4];
|
||||
$headers=$traiter[5];
|
||||
$proprio_email = $traiter[1];
|
||||
$liste_email = $traiter[2];
|
||||
$sujet = $traiter[3];
|
||||
$body = "$nom - $email ".$traiter[4];
|
||||
$headers = $traiter[5];
|
||||
|
||||
if (abomailman_mail($nom, $email, $proprio_email,$liste_email, $sujet, $body,$headers)){
|
||||
if (abomailman_mail($nom, $email, $proprio_email, $liste_email, $sujet, $body, $headers)){
|
||||
$message_listes .= "<p><strong>$titre</strong><p>";
|
||||
}else{
|
||||
} else {
|
||||
$message_listes .= "<p><strong>". _T('pass_erreur_probleme_technique')."</strong></p>";
|
||||
$probleme=true;
|
||||
}
|
||||
|
||||
$message .= $body."". _T("abomailmans:message_confirmation_unique_a");
|
||||
$message .= $message_listes;
|
||||
|
||||
$message .= "<p>" . _T("abomailmans:message_confirm_suite") . "</p>";
|
||||
|
||||
if ($probleme==false)
|
||||
return $message;
|
||||
else
|
||||
return $message_listes;
|
||||
}
|
||||
?>
|
||||
if ($probleme==false) {
|
||||
return array('message_ok' => $message);
|
||||
} else {
|
||||
return array('message_erreur' => $message_listes);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user