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

Last change on this file since 9586 was 9586, checked in by patdenice, 13 years ago

feature:2114
Simplify all admin templates.

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