Send email on pwg group:

o Best mail content
  o Add a text area in order to complete email

git-svn-id: http://piwigo.org/svn/trunk@1916 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2007-03-16 22:52:52 +00:00
parent 1a3660405a
commit f1914f122e
6 changed files with 31 additions and 10 deletions

View file

@ -283,6 +283,8 @@ $template->assign_vars(
)
),
'MAIL_CONTENT' => empty($_POST['mail_content'])
? '' : stripslashes($_POST['mail_content']),
'U_CHILDREN' => $cat_list_url.'&parent_id='.$category['id'],
'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=cat_modify',
@ -565,12 +567,14 @@ SELECT id, file, path, tn_ext
pwg_mail_group(
$_POST['group'],
get_str_email_format(true), /* TODO add a checkbox in order to choose format*/
get_l10n_args('Come to visit %s', $category['name']),
get_l10n_args('[%s] Come to visit the category %s',
array($conf['gallery_title'], $category['name'])),
'admin',
'cat_group_info',
array
(
'IMG_URL' => $img_url,
'CAT_NAME' => $category['name'],
'LINK' => make_index_url(
array(
'category' => array(
@ -578,7 +582,8 @@ SELECT id, file, path, tn_ext
'name' => $category['name'],
'permalink' => $category['permalink']
))),
'CPL_CONTENT' => '' /* TODO Add text area to add complementary content */
'CPL_CONTENT' => empty($_POST['mail_content'])
? '' : stripslashes($_POST['mail_content'])
),
'' /* TODO Add listbox in order to choose Language selected */);

View file

@ -582,5 +582,8 @@ $lang['cat_options_title'] = 'Properties';
$lang['An information email was sent to group "%s"'] = 'An information email was sent to group "%s';
$lang['Send an information email to group members'] = 'Send an information email to group members';
$lang['Group'] = 'Group';
$lang['Come to visit %s'] = 'Come to visit %s';
$lang['[%s] Come to visit the category %s'] = '[%s] Come to visit the category %s';
$lang['See you soon.'] = 'See you soon.';
$lang['Come to discover the category:'] = 'Come to discover the category:';
$lang['mail_content'] = 'Mail content';
?>

View file

@ -581,5 +581,8 @@ $lang['cat_options_title'] = 'Propri
$lang['An information email was sent to group "%s"'] = 'Un mail d\'informations a été envoyé aux membres du groupe';
$lang['Send an information email to group members'] = 'Envoyer un mail d\'informations aux membres d\'un groupe';
$lang['Group'] = 'Groupe';
$lang['Come to visit %s'] = 'Venez visiter %s';
$lang['[%s] Come to visit the category %s'] = '[%s] Venez visiter la catégorie %s';
$lang['See you soon.'] = 'A bientôt.';
$lang['Come to discover the category:'] = 'Venez découvrir la catégorie:';
$lang['mail_content'] = 'Contenu du mail';
?>

View file

@ -217,7 +217,7 @@
<table>
<tr>
<td>{lang:Group}</td>
<td><strong>{lang:Group}</strong></td>
<td>
<select name="group">
<!-- BEGIN group_option -->
@ -226,6 +226,13 @@
</select>
</td>
</tr>
<tr>
<td><strong>{lang:mail_content}</strong></td>
<td>
<textarea cols="50" rows="5" name="mail_content" class="description">{MAIL_CONTENT}</textarea>
</td>
</tr>
</table>
<p>

View file

@ -2,6 +2,7 @@
<h2>{lang:Informations}</h2>
<p>{IMG_URL}</p>
<p>{lang:hello}</p>
<p><a href="{LINK}">{LINK}</a></p>
<p>{lang:Come to discover the category:} <a href="{LINK}">{CAT_NAME}</a></p>
<p>{CPL_CONTENT}</p>
<p>{lang:See you soon.}</p>
</div>

View file

@ -1,6 +1,8 @@
{lang:hello}
{lang:Come to discover the category:} {CAT_NAME}
{LINK}
{CPL_CONTENT}
{lang:See you soon.}