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

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

feature:2114
Simplify all admin templates.

  • Property svn:eol-style set to LF
File size: 5.4 KB
RevLine 
[2623]1
2{include file='include/autosize.inc.tpl'}
[9586]3{footer_script}{literal}
[7852]4jQuery(document).ready(function(){
[2614]5
[7852]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});
[9586]17{/literal}{/footer_script}
[7852]18
[2531]19<div class="titrePage">
[5021]20  <h2>{'Send mail to users'|@translate} {$TABSHEET_TITLE}</h2>
[2531]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">
[8128]27      <input class="submit" type="submit" value="{'Continue processing treatment'|@translate}" name="{$REPOST_SUBMIT_NAME}">
[2531]28    </div>
29  </fieldset>
30  {/if}
31
32  {if isset($param)}
33  <fieldset>
[5021]34    <legend>{'Parameters'|@translate}</legend>
[2531]35    <table>
36      <tr>
[5021]37        <td><label>{'Send mail on HTML format'|@translate}</label></td>
[2531]38        <td>
[3185]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>
[2531]41        </td>
42      </tr>
43      <tr>
44        <td>
[5021]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>
[2531]47        </td>
[3185]48        <td><input type="text" maxlength="35" size="35" name="nbm_send_mail_as" id="send_mail_as" value="{$param.SEND_MAIL_AS}"></td>
[2531]49      </tr>
50      <tr>
[5021]51        <td><label>{'Add detailed content'|@translate}</label></td>
[2531]52        <td>
[3185]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>
[2531]55        </td>
56      </tr>
57     <tr>
[5021]58        <td><label for="complementary_mail_content">{'Complementary mail content'|@translate}</label></td>
[2531]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>
[8682]63          <label>{'Include display of recent photos grouped by dates'|@translate}</label>
[5021]64          <br><i><small>{'Available only with HTML format'|@translate}</small></i>
[2531]65        </td>
66        <td>
[3185]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>
[2531]69        </td>
70      </tr>
71    </table>
72  </fieldset>
73
74  <p>
[8128]75    <input class="submit" type="submit" value="{'Submit'|@translate}" name="param_submit">
[3185]76    <input class="submit" type="reset" value="{'Reset'|@translate}" name="param_reset">
[2531]77  </p>
78  {/if}{* isset $param*}
79
80  {if isset($subscribe)}
81  <fieldset>
[5021]82    <legend>{'Subscribe/unsubscribe users'|@translate}</legend>
83    <p><i>{'Warning: subscribing or unsubscribing will send mails to users'|@translate}</i></p>
[2531]84    {$DOUBLE_SELECT}
85  </fieldset>
86  {/if}{* isset $subscribe*}
87
88  {if isset($send)}
89    {if empty($send.users)}
[5021]90    <p>{'There is no available subscribers to mail.'|@translate}</p>
[2531]91    <p>
[5021]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}
[2531]94    </p>
95    {else}
96    <fieldset>
[5021]97      <legend>{'Select recipients'|@translate}</legend>
[2531]98      <table class="table2">
99        <tr class="throw">
[5021]100          <th>{'User'|@translate}</th>
101          <th>{'email'|@translate}</th>
102          <th>{'Last send'|@translate}</th>
103          <th>{'To send ?'|@translate}</th>
[2531]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>
[3185]110          <td><input type="checkbox" name="send_selection[]" value="{$u.ID}" {$u.CHECKED} id="send_selection-{$u.ID}"></td>
[2531]111        </tr>
112        {/foreach}
113      </table>
114      <p>
[7852]115          <a href="#" id="checkAllLink">{'Check all'|@translate}</a>
116        / <a href="#" id="uncheckAllLink">{'Uncheck all'|@translate}</a>
[2531]117      </p>
118    </fieldset>
119
120    <fieldset>
[5021]121      <legend>{'Options'|@translate}</legend>
[2531]122      <table>
123       <tr>
[5021]124          <td><label for="send_customize_mail_content">{'Complementary mail content'|@translate}</label></td>
[2531]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>
[8128]131      <input class="submit" type="submit" value="{'Send'|@translate}" name="send_submit">
[2531]132    </p>
133    {/if}
134  {/if}{* isset $send*}
135
136</form>
Note: See TracBrowser for help on using the repository browser.