corrections diverses

- bug envoi 
- urls archivages
- corrections pour la mutualisation

(merci à yvan arnaud)
svn/root/tags/v3.3.6
erational@erational.org 11 years ago
parent be6fe0d775
commit e024ad431d

@ -201,10 +201,10 @@ function formulaires_envoi_malettre_traiter_dist(){
"from" => $exp_email,
"renvoyer_a" => $exp_email
);
$envoyer_mail($adresse,$lettre_title,$corps);
$res = $envoyer_mail($adresse,$lettre_title,$corps);
}
if(!$res) {
if (!$res) {
$message.= "<div style='color:red'><strong>$adresse</strong> - "._T('malettre:erreur_envoi')."</div>";
//$message.= "Mailer Error: " . $mail->ErrorInfo;
$success_flag = false;
@ -232,13 +232,13 @@ function formulaires_envoi_malettre_traiter_dist(){
$f_archive=fopen($lettre_archive,"w");
fwrite($f_archive,$recup);
fclose($f_archive);
$message.= " <a href='$url_lettre_archive' target='_blank'>html</a> - ";
$message.= " <a href='$lettre_archive' target='_blank'>html</a> - ";
$lettre_archive = "$path_archive_full/lettre_".date("Ymd")."_".$lettre_hash."_"._request('lang_select').".txt";
$f_archive=fopen($lettre_archive,"w");
fwrite($f_archive,$recup_txt);
fclose($f_archive);
$message.= "<a href='$url_lettre_archive_txt' target='_blank'>txt</a></div>";
$message.= "<a href='$lettre_archive' target='_blank'>txt</a></div>";
// stockage en base
include_spip('base/abstract_sql');

@ -1,4 +1,7 @@
[(#REM) archives lettre
[(#CHEMIN{#EVAL{_DIR_IMG}|concat{lettre/_malettre.html}})]
]<B_archive>
<table class="spip"><tbody>
<tr>
@ -12,10 +15,10 @@
<BOUCLE_archive(MESLETTRES){pagination 5}{!par date}>
<tr>
<td width="20">#ID_MALETTRE</td>
<td width="230"><a href='#'[ onclick="malettref.location.href='(#CHEMIN{IMG/#URL_HTML})'"] style='color:green;'>#TITRE</a> - <small>#LANG</small></td>
<td width="230"><a href='#'[ onclick="malettref.location.href='(#CHEMIN{#EVAL{_DIR_IMG}|concat{#URL_HTML}})'"] style='color:green;'>#TITRE</a> - <small>#LANG</small></td>
<td width="40">[(#DATE|affdate_court)]</td>
<td width="30">[<a href="(#CHEMIN{IMG/#URL_HTML})" target="_blank">html</a>]</td>
<td width="30">[<a href="(#CHEMIN{IMG/#URL_TXT})" target="_blank">txt</a>]</td>
<td width="30">[<a href="(#CHEMIN{#EVAL{_DIR_IMG}|concat{#URL_HTML}})" target="_blank">html</a>]</td>
<td width="30">[<a href="(#CHEMIN{#EVAL{_DIR_IMG}|concat{#URL_TXT}})" target="_blank">txt</a>]</td>
<td width="30"><a href='[(#URL_ACTION_AUTEUR{supprimer_lettre,#ID_MALETTRE,#SELF})]' onclick='return confirm("<:malettre:effacer_confirm:>");' style='color:red;'><:malettre:effacer:></a></td>
</tr>
</BOUCLE_archive>
@ -27,5 +30,4 @@
</B_archive>
<div class="pagination">0 <:malettre:lettres_dispo:></div>
<//B_archive>
<//B_archive>

@ -1,7 +1,7 @@
<paquet
prefix="malettre"
categorie="communication"
version="3.0.4"
version="3.0.5"
schema="1.0.0"
etat="test"
compatibilite="[3.0.0-dev;3.0.*]"

@ -38,7 +38,7 @@
<div style="text-align:justify;margin-bottom:0.4em;padding:5px 10px 10px 10px;background:#fafafa;">
[<div style="float:right;padding:10px 0 2px 15px;"><img src="(#LOGO_ARTICLE|image_reduire{0,110}|image_reduire{110,0}|extraire_attribut{src}|url_absolue)" alt="" border="0" /></div>]
<h2 style="margin:0;padding:0;font-size:1em"><a href="[(#URL_ARTICLE|url_absolue))]" style="font-family:Arial;color:#A5B152;padding-left:0px;text-decoration:none;">#TITRE</a></h2>
<h2 style="margin:0;padding:0;font-size:1em"><a href="[(#URL_ARTICLE|url_absolue)]" style="font-family:Arial;color:#A5B152;padding-left:0px;text-decoration:none;">#TITRE</a></h2>
[<div style="font-family:Arial;font-size:0.8em;color:#848484;">(#TEXTE|image_reduire{600}|liens_absolus)</div>]
</div>
</BOUCLE_edito>
@ -52,9 +52,9 @@
<div style="text-align:justify;margin-bottom:0.4em;padding:5px 10px 10px 10px;">
[<div style="float:right;padding:10px 0 2px 15px;"><img src="(#LOGO_ARTICLE|image_reduire{0,110}|image_reduire{110,0}|extraire_attribut{src}|url_absolue)" alt="" border="0" /></div>]
<h2 style="margin:0;padding:0;font-size:1em"><a href="[(#URL_ARTICLE|url_absolue))]" style="font-family:Arial;color:#A5B152;padding-left:0px;text-decoration:none;">#TITRE</a></h2>
<h2 style="margin:0;padding:0;font-size:1em"><a href="[(#URL_ARTICLE|url_absolue)]" style="font-family:Arial;color:#A5B152;padding-left:0px;text-decoration:none;">#TITRE</a></h2>
[<div style="font-family:Arial;font-size:0.8em;color:#848484;">(#INTRODUCTION)</div><br />]
<a href="[(#URL_ARTICLE|url_absolue))]" style="color:#57B2FF;font-family:Arial;font-size:0.8em;"><:lire_en_ligne:></a>
<a href="[(#URL_ARTICLE|url_absolue)]" style="color:#57B2FF;font-family:Arial;font-size:0.8em;"><:lire_en_ligne:></a>
</div>
</BOUCLE_artx></BOUCLE_selection_bonux>
<div style="clear:both;"></div>

Loading…
Cancel
Save