source: trunk/admin/themes/default/template/notification_by_mail.tpl @ 5165

Last change on this file since 5165 was 5123, checked in by plg, 15 years ago

feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.

  • Property svn:eol-style set to LF
File size: 5.2 KB
Line 
1
2{include file='include/autosize.inc.tpl'}
3
4<div class="titrePage">
5  <h2>{'Send mail to users'|@translate} {$TABSHEET_TITLE}</h2>
6</div>
7
8<form method="post" name="notification_by_mail" id="notification_by_mail" action="{$F_ACTION}">
9  {if isset($REPOST_SUBMIT_NAME)}
10  <fieldset>
11    <div class="infos">
12      <input class="submit" type="submit" value="{'Continue processing treatment'|@translate}" name="{$REPOST_SUBMIT_NAME}" {$TAG_INPUT_ENABLED}>
13    </div>
14  </fieldset>
15  {/if}
16
17  {if isset($param)}
18  <fieldset>
19    <legend>{'Parameters'|@translate}</legend>
20    <table>
21      <tr>
22        <td><label>{'Send mail on HTML format'|@translate}</label></td>
23        <td>
24          <label><input type="radio" name="nbm_send_html_mail" value="true"  {if $param.SEND_HTML_MAIL}checked="checked"{/if}>{'Yes'|@translate}</label>
25          <label><input type="radio" name="nbm_send_html_mail" value="false" {if not $param.SEND_HTML_MAIL}checked="checked"{/if}>{'No'|@translate}</label>
26        </td>
27      </tr>
28      <tr>
29        <td>
30          <label for="send_mail_as">{'Send mail as'|@translate}</label>
31          <br><i><small>{'With blank value, gallery title will be used'|@translate}</small></i>
32        </td>
33        <td><input type="text" maxlength="35" size="35" name="nbm_send_mail_as" id="send_mail_as" value="{$param.SEND_MAIL_AS}"></td>
34      </tr>
35      <tr>
36        <td><label>{'Add detailed content'|@translate}</label></td>
37        <td>
38          <label><input type="radio" name="nbm_send_detailed_content" value="true"  {if $param.SEND_DETAILED_CONTENT}checked="checked"{/if}>{'Yes'|@translate}</label>
39          <label><input type="radio" name="nbm_send_detailed_content" value="false" {if not $param.SEND_DETAILED_CONTENT}checked="checked"{/if}>{'No'|@translate}</label>
40        </td>
41      </tr>
42     <tr>
43        <td><label for="complementary_mail_content">{'Complementary mail content'|@translate}</label></td>
44        <td><textarea cols="50" rows="5" name="nbm_complementary_mail_content" id="complementary_mail_content">{$param.COMPLEMENTARY_MAIL_CONTENT}</textarea></td>
45      </tr>
46      <tr>
47        <td>
48          <label>{'Include display of recent pictures group by dates'|@translate}</label>
49          <br><i><small>{'Available only with HTML format'|@translate}</small></i>
50        </td>
51        <td>
52          <label><input type="radio" name="nbm_send_recent_post_dates" value="true" {if $param.SEND_RECENT_POST_DATES}checked="checked"{/if}>{'Yes'|@translate}</label>
53          <label><input type="radio" name="nbm_send_recent_post_dates" value="false" {if not $param.SEND_RECENT_POST_DATES}checked="checked"{/if}>{'No'|@translate}</label>
54        </td>
55      </tr>
56    </table>
57  </fieldset>
58
59  <p>
60    <input class="submit" type="submit" value="{'Submit'|@translate}" name="param_submit" {$TAG_INPUT_ENABLED}>
61    <input class="submit" type="reset" value="{'Reset'|@translate}" name="param_reset">
62  </p>
63  {/if}{* isset $param*}
64
65  {if isset($subscribe)}
66  <fieldset>
67    <legend>{'Subscribe/unsubscribe users'|@translate}</legend>
68    <p><i>{'Warning: subscribing or unsubscribing will send mails to users'|@translate}</i></p>
69    {$DOUBLE_SELECT}
70  </fieldset>
71  {/if}{* isset $subscribe*}
72
73  {if isset($send)}
74    {if empty($send.users)}
75    <p>{'There is no available subscribers to mail.'|@translate}</p>
76    <p>
77    {'Subscribers could be listed (available) only if there is new elements to notify.'|@translate}<br>
78    {'Anyway only webmasters can see this tab and never administrators.'|@translate}
79    </p>
80    {else}
81    <fieldset>
82      <legend>{'Select recipients'|@translate}</legend>
83      <table class="table2">
84        <tr class="throw">
85          <th>{'User'|@translate}</th>
86          <th>{'email'|@translate}</th>
87          <th>{'Last send'|@translate}</th>
88          <th>{'To send ?'|@translate}</th>
89        </tr>
90        {foreach from=$send.users item=u name=user_loop}
91        <tr class="{if $smarty.foreach.user_loop.index is odd}row1{else}row2{/if}">
92          <td><label for="send_selection-{$u.ID}">{$u.USERNAME}</label></td>
93          <td><label for="send_selection-{$u.ID}">{$u.EMAIL}</label></td>
94          <td><label for="send_selection-{$u.ID}">{$u.LAST_SEND}</label></td>
95          <td><input type="checkbox" name="send_selection[]" value="{$u.ID}" {$u.CHECKED} id="send_selection-{$u.ID}"></td>
96        </tr>
97        {/foreach}
98      </table>
99      <p>
100          <a href="#" onclick="SelectAll(document.getElementById('notification_by_mail')); return false;">{'Check all'|@translate}</a>
101        / <a href="#" onclick="DeselectAll(document.getElementById('notification_by_mail')); return false;">{'Uncheck all'|@translate}</a>
102      </p>
103    </fieldset>
104
105    <fieldset>
106      <legend>{'Options'|@translate}</legend>
107      <table>
108       <tr>
109          <td><label for="send_customize_mail_content">{'Complementary mail content'|@translate}</label></td>
110          <td><textarea cols="50" rows="5" name="send_customize_mail_content" id="send_customize_mail_content">{$send.CUSTOMIZE_MAIL_CONTENT}</textarea></td>
111        </tr>
112      </table>
113    </fieldset>
114
115    <p>
116      <input class="submit" type="submit" value="{'Send'|@translate}" name="send_submit" {$TAG_INPUT_ENABLED}>
117    </p>
118    {/if}
119  {/if}{* isset $send*}
120
121</form>
Note: See TracBrowser for help on using the repository browser.