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

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

feature 2060: Remove {$TAG_INPUT_ENABLED} from tpl files.

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