function handler_admin_nl_edit(&$page, $nid = 'last', $aid = null, $action = 'edit') {
$page->changeTpl('newsletter/edit.tpl');
$page->addCssLink('nl.css');
- $page->setTitle('Administration - Newsletter : Edition');
- require_once("newsletter.inc.php");
+ $page->setTitle('Administration - Newsletter : Édition');
+ require_once 'newsletter.inc.php';
$nl = new NewsLetter($nid);
if($action == 'edit' && $aid != 'update') {
$eaid = $aid;
- if(Post::has('title')) {
+ if (Post::has('title')) {
$art = new NLArticle(Post::v('title'), Post::v('body'), Post::v('append'),
- $eaid, Post::v('cid'), Post::v('pos'));
+ $eaid, Post::v('cid'), Post::v('pos'));
} else {
- $art = ($eaid == 'new') ? new NLArticle() : $nl->getArt($eaid);
+ $art = ($eaid == 'new') ? new NLArticle() : $nl->getArt($eaid);
+ }
+ if ($art && !$art->check()) {
+ $page->trigError("Cet article est trop long.");
}
$page->assign('art', $art);
}
$res = XDB::iterRow(
"SELECT sa.alias, IF(s.nom_usage,s.nom_usage,s.nom) AS nom,
s.prenom, FIND_IN_SET('femme', s.flags) AS femme,
- GROUP_CONCAT(m.email) AS mails, MAX(m.last) AS dateDernier
+ GROUP_CONCAT(m.email SEPARATOR ', ') AS mails, MAX(m.last) AS dateDernier
FROM register_marketing AS m
INNER JOIN auth_user_md5 AS s ON ( m.sender = s.user_id )
INNER JOIN aliases AS sa ON ( sa.id = m.sender
<td>
<a href="admin/promo">Ajout promotion</a>
|
- <a href="admin/user">Edition</a>
+ <a href="admin/user">Édition</a>
|
<a href="admin/homonyms">Homonymes</a>
|
{* *}
{**************************************************************************}
-<h1>Edition de message</h1>
+<h1>Édition de message</h1>
<form action="{$platal->pl_self()}" method="post">
{xsrf_token_field}
{xsrf_token_field}
<table class="bicol">
<tr class="pair">
- <th colspan="2">Edition de l'email de relance</th>
+ <th colspan="2">Édition de l'email de relance</th>
</tr>
<tr class="pair">
<td align="right"><strong>From :</strong></td>
<table class="bicol" cellpadding="3" cellspacing="0">
<tr>
<td>
- Créer un nouvel article ...
+ Créer un nouvel article...
</td>
<td style='vertical-align:middle; border-left: 1px gray solid' class="center">
<a href="admin/newsletter/edit/{$nl->_id}/new#edit">{icon name=add title="créer"}</a>
[<a href="admin/newsletter/edit/{$nl->_id}">retour</a>]
</p>
-{if !$art->check()}<p class='erreur'>article trop long !</p>{/if}
<table class='bicol'>
<tr><th>Version texte</th></tr>
<tr id='text'>
<strong>Mot de passe enregistré le {$smarty.now|date_format}</strong>
</p>
<p>
- <strong>Attention!</strong> Il est crypté irréversiblement,
+ <strong>Attention !</strong> Il est crypté irréversiblement,
donc <strong>non récupérable</strong>. Pour retrouver un accès au site
consécutivement à une perte de mot de passe, la procédure
est longue et laborieuse...
</td>
{if $is_admin}
<td class="center">
- <a href="{$platal->ns}member/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=user_edit title="Edition du profil"}</a>
+ <a href="{$platal->ns}member/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=user_edit title="Édition du profil"}</a>
<a href="{$platal->ns}member/del/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=delete title="Supprimer de l'annuaire"}</a>
</td>
{/if}