1 | {* $Id: notification_by_mail.tpl 2641 2008-10-02 20:57:32Z rub $ *} |
---|
2 | |
---|
3 | {include file='include/autosize.inc.tpl'} |
---|
4 | |
---|
5 | <div class="titrePage"> |
---|
6 | <h2>{'nbm_send_mail_to_users'|@translate} {$TABSHEET_TITLE}</h2> |
---|
7 | </div> |
---|
8 | |
---|
9 | <form method="post" name="notification_by_mail" id="notification_by_mail" action="{$F_ACTION}"> |
---|
10 | {if isset($REPOST_SUBMIT_NAME)} |
---|
11 | <fieldset> |
---|
12 | <div class="infos"> |
---|
13 | <input class="submit" type="submit" value="{'nbm_repost_submit'|@translate}" name="{$REPOST_SUBMIT_NAME}" {$TAG_INPUT_ENABLED}/> |
---|
14 | </div> |
---|
15 | </fieldset> |
---|
16 | {/if} |
---|
17 | |
---|
18 | {if isset($param)} |
---|
19 | <fieldset> |
---|
20 | <legend>{'nbm_title_param'|@translate}</legend> |
---|
21 | <table> |
---|
22 | <tr> |
---|
23 | <td><label>{'nbm_send_html_mail'|@translate}</label></td> |
---|
24 | <td> |
---|
25 | <label><input type="radio" name="nbm_send_html_mail" value="true" {if $param.SEND_HTML_MAIL}checked="checked"{/if}/>{'Yes'|@translate}</label> |
---|
26 | <label><input type="radio" name="nbm_send_html_mail" value="false" {if not $param.SEND_HTML_MAIL}checked="checked"{/if}/>{'No'|@translate}</label> |
---|
27 | </td> |
---|
28 | </tr> |
---|
29 | <tr> |
---|
30 | <td> |
---|
31 | <label for="send_mail_as">{'nbm_send_mail_as'|@translate}</label> |
---|
32 | <br/><i><small>{'nbm_info_send_mail_as'|@translate}</small></i> |
---|
33 | </td> |
---|
34 | <td><input type="text" maxlength="35" size="35" name="nbm_send_mail_as" id="send_mail_as" value="{$param.SEND_MAIL_AS}"/></td> |
---|
35 | </tr> |
---|
36 | <tr> |
---|
37 | <td><label>{'nbm_send_detailed_content'|@translate}</label></td> |
---|
38 | <td> |
---|
39 | <label><input type="radio" name="nbm_send_detailed_content" value="true" {if $param.SEND_DETAILED_CONTENT}checked="checked"{/if}/>{'Yes'|@translate}</label> |
---|
40 | <label><input type="radio" name="nbm_send_detailed_content" value="false" {if not $param.SEND_DETAILED_CONTENT}checked="checked"{/if}/>{'No'|@translate}</label> |
---|
41 | </td> |
---|
42 | </tr> |
---|
43 | <tr> |
---|
44 | <td><label for="complementary_mail_content">{'nbm_complementary_mail_content'|@translate}</label></td> |
---|
45 | <td><textarea cols="50" rows="5" name="nbm_complementary_mail_content" id="complementary_mail_content">{$param.COMPLEMENTARY_MAIL_CONTENT}</textarea></td> |
---|
46 | </tr> |
---|
47 | <tr> |
---|
48 | <td> |
---|
49 | <label>{'nbm_send_recent_post_dates'|@translate}</label> |
---|
50 | <br/><i><small>{'nbm_info_send_recent_post_dates'|@translate}</small></i> |
---|
51 | </td> |
---|
52 | <td> |
---|
53 | <label><input type="radio" name="nbm_send_recent_post_dates" value="true" {if $param.SEND_RECENT_POST_DATES}checked="checked"{/if}/>{'Yes'|@translate}</label> |
---|
54 | <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> |
---|
55 | </td> |
---|
56 | </tr> |
---|
57 | </table> |
---|
58 | </fieldset> |
---|
59 | |
---|
60 | <p> |
---|
61 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="param_submit" {$TAG_INPUT_ENABLED}/> |
---|
62 | <input class="submit" type="reset" value="{'Reset'|@translate}" name="param_reset"/> |
---|
63 | </p> |
---|
64 | {/if}{* isset $param*} |
---|
65 | |
---|
66 | {if isset($subscribe)} |
---|
67 | <fieldset> |
---|
68 | <legend>{'nbm_title_subscribe'|@translate}</legend> |
---|
69 | <p><i>{'nbm_warning_subscribe_unsubscribe'|@translate}</i></p> |
---|
70 | {$DOUBLE_SELECT} |
---|
71 | </fieldset> |
---|
72 | {/if}{* isset $subscribe*} |
---|
73 | |
---|
74 | {if isset($send)} |
---|
75 | {if empty($send.users)} |
---|
76 | <p>{'nbm_no_user_available_to_send_L1'|@translate}</p> |
---|
77 | <p> |
---|
78 | {'nbm_no_user_available_to_send_L2'|@translate}<br> |
---|
79 | {'nbm_no_user_available_to_send_L3'|@translate} |
---|
80 | </p> |
---|
81 | {else} |
---|
82 | <fieldset> |
---|
83 | <legend>{'nbm_title_send'|@translate}</legend> |
---|
84 | <table class="table2"> |
---|
85 | <tr class="throw"> |
---|
86 | <th>{'nbm_col_user'|@translate}</th> |
---|
87 | <th>{'nbm_col_mail'|@translate}</th> |
---|
88 | <th>{'nbm_col_last_send'|@translate}</th> |
---|
89 | <th>{'nbm_col_check_user_send_mail'|@translate}</th> |
---|
90 | </tr> |
---|
91 | {foreach from=$send.users item=u name=user_loop} |
---|
92 | <tr class="{if $smarty.foreach.user_loop.index is odd}row1{else}row2{/if}"> |
---|
93 | <td><label for="send_selection-{$u.ID}">{$u.USERNAME}</label></td> |
---|
94 | <td><label for="send_selection-{$u.ID}">{$u.EMAIL}</label></td> |
---|
95 | <td><label for="send_selection-{$u.ID}">{$u.LAST_SEND}</label></td> |
---|
96 | <td><input type="checkbox" name="send_selection[]" value="{$u.ID}" {$u.CHECKED} id="send_selection-{$u.ID}"/></td> |
---|
97 | </tr> |
---|
98 | {/foreach} |
---|
99 | </table> |
---|
100 | <p> |
---|
101 | <a href="#" onclick="SelectAll(document.getElementById('notification_by_mail')); return false;">{'Check all'|@translate}</a> |
---|
102 | / <a href="#" onclick="DeselectAll(document.getElementById('notification_by_mail')); return false;">{'Uncheck all'|@translate}</a> |
---|
103 | </p> |
---|
104 | </fieldset> |
---|
105 | |
---|
106 | <fieldset> |
---|
107 | <legend>{'nbm_send_options'|@translate}</legend> |
---|
108 | <table> |
---|
109 | <tr> |
---|
110 | <td><label for="send_customize_mail_content">{'nbm_send_complementary_mail_content'|@translate}</label></td> |
---|
111 | <td><textarea cols="50" rows="5" name="send_customize_mail_content" id="send_customize_mail_content">{$send.CUSTOMIZE_MAIL_CONTENT}</textarea></td> |
---|
112 | </tr> |
---|
113 | </table> |
---|
114 | </fieldset> |
---|
115 | |
---|
116 | <p> |
---|
117 | <input class="submit" type="submit" value="{'nbm_send_submit'|@translate}" name="send_submit" {$TAG_INPUT_ENABLED}/> |
---|
118 | </p> |
---|
119 | {/if} |
---|
120 | {/if}{* isset $send*} |
---|
121 | |
---|
122 | </form> |
---|