[2623] | 1 | |
---|
| 2 | {include file='include/autosize.inc.tpl'} |
---|
[2614] | 3 | |
---|
[2531] | 4 | <div class="titrePage"> |
---|
[5021] | 5 | <h2>{'Send mail to users'|@translate} {$TABSHEET_TITLE}</h2> |
---|
[2531] | 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"> |
---|
[5021] | 12 | <input class="submit" type="submit" value="{'Continue processing treatment'|@translate}" name="{$REPOST_SUBMIT_NAME}" {$TAG_INPUT_ENABLED}> |
---|
[2531] | 13 | </div> |
---|
| 14 | </fieldset> |
---|
| 15 | {/if} |
---|
| 16 | |
---|
| 17 | {if isset($param)} |
---|
| 18 | <fieldset> |
---|
[5021] | 19 | <legend>{'Parameters'|@translate}</legend> |
---|
[2531] | 20 | <table> |
---|
| 21 | <tr> |
---|
[5021] | 22 | <td><label>{'Send mail on HTML format'|@translate}</label></td> |
---|
[2531] | 23 | <td> |
---|
[3185] | 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> |
---|
[2531] | 26 | </td> |
---|
| 27 | </tr> |
---|
| 28 | <tr> |
---|
| 29 | <td> |
---|
[5021] | 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> |
---|
[2531] | 32 | </td> |
---|
[3185] | 33 | <td><input type="text" maxlength="35" size="35" name="nbm_send_mail_as" id="send_mail_as" value="{$param.SEND_MAIL_AS}"></td> |
---|
[2531] | 34 | </tr> |
---|
| 35 | <tr> |
---|
[5021] | 36 | <td><label>{'Add detailed content'|@translate}</label></td> |
---|
[2531] | 37 | <td> |
---|
[3185] | 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> |
---|
[2531] | 40 | </td> |
---|
| 41 | </tr> |
---|
| 42 | <tr> |
---|
[5021] | 43 | <td><label for="complementary_mail_content">{'Complementary mail content'|@translate}</label></td> |
---|
[2531] | 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> |
---|
[5021] | 48 | <label>{'Include display of recent pictures group by dates'|@translate}</label> |
---|
| 49 | <br><i><small>{'Available only with HTML format'|@translate}</small></i> |
---|
[2531] | 50 | </td> |
---|
| 51 | <td> |
---|
[3185] | 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> |
---|
[2531] | 54 | </td> |
---|
| 55 | </tr> |
---|
| 56 | </table> |
---|
| 57 | </fieldset> |
---|
| 58 | |
---|
| 59 | <p> |
---|
[3185] | 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"> |
---|
[2531] | 62 | </p> |
---|
| 63 | {/if}{* isset $param*} |
---|
| 64 | |
---|
| 65 | {if isset($subscribe)} |
---|
| 66 | <fieldset> |
---|
[5021] | 67 | <legend>{'Subscribe/unsubscribe users'|@translate}</legend> |
---|
| 68 | <p><i>{'Warning: subscribing or unsubscribing will send mails to users'|@translate}</i></p> |
---|
[2531] | 69 | {$DOUBLE_SELECT} |
---|
| 70 | </fieldset> |
---|
| 71 | {/if}{* isset $subscribe*} |
---|
| 72 | |
---|
| 73 | {if isset($send)} |
---|
| 74 | {if empty($send.users)} |
---|
[5021] | 75 | <p>{'There is no available subscribers to mail.'|@translate}</p> |
---|
[2531] | 76 | <p> |
---|
[5021] | 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} |
---|
[2531] | 79 | </p> |
---|
| 80 | {else} |
---|
| 81 | <fieldset> |
---|
[5021] | 82 | <legend>{'Select recipients'|@translate}</legend> |
---|
[2531] | 83 | <table class="table2"> |
---|
| 84 | <tr class="throw"> |
---|
[5021] | 85 | <th>{'User'|@translate}</th> |
---|
| 86 | <th>{'email'|@translate}</th> |
---|
| 87 | <th>{'Last send'|@translate}</th> |
---|
| 88 | <th>{'To send ?'|@translate}</th> |
---|
[2531] | 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> |
---|
[3185] | 95 | <td><input type="checkbox" name="send_selection[]" value="{$u.ID}" {$u.CHECKED} id="send_selection-{$u.ID}"></td> |
---|
[2531] | 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> |
---|
[5021] | 106 | <legend>{'Options'|@translate}</legend> |
---|
[2531] | 107 | <table> |
---|
| 108 | <tr> |
---|
[5021] | 109 | <td><label for="send_customize_mail_content">{'Complementary mail content'|@translate}</label></td> |
---|
[2531] | 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> |
---|
[5021] | 116 | <input class="submit" type="submit" value="{'Send'|@translate}" name="send_submit" {$TAG_INPUT_ENABLED}> |
---|
[2531] | 117 | </p> |
---|
| 118 | {/if} |
---|
| 119 | {/if}{* isset $send*} |
---|
| 120 | |
---|
| 121 | </form> |
---|