Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
179afa7f | 3 | {* Copyright (C) 2003-2008 Polytechnique.org *} |
0337d704 | 4 | {* http://opensource.polytechnique.org/ *} |
5 | {* *} | |
6 | {* This program is free software; you can redistribute it and/or modify *} | |
7 | {* it under the terms of the GNU General Public License as published by *} | |
8 | {* the Free Software Foundation; either version 2 of the License, or *} | |
9 | {* (at your option) any later version. *} | |
10 | {* *} | |
11 | {* This program is distributed in the hope that it will be useful, *} | |
12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} | |
13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} | |
14 | {* GNU General Public License for more details. *} | |
15 | {* *} | |
16 | {* You should have received a copy of the GNU General Public License *} | |
17 | {* along with this program; if not, write to the Free Software *} | |
18 | {* Foundation, Inc., *} | |
19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} | |
20 | {* *} | |
21 | {**************************************************************************} | |
22 | ||
23 | ||
24 | {if !$details.own} | |
25 | <p class='erreur'> | |
26 | Tu n'es pas administrateur de la liste, mais du site. | |
27 | </p> | |
28 | {/if} | |
29 | ||
3eb25eb3 | 30 | {include file="lists/header_listes.tpl" on=admin} |
0337d704 | 31 | |
32 | <p> | |
a7de4ef7 | 33 | Pour inscrire un utilisateur, il faut remplir les champs prévus à cet effet en saisissant un de |
34 | ses identifiants, de la forme "prenom.nom", ou "prenom.nom.promo" en cas d'homonymie. Pour inscrire plusieurs utilisateurs, les séparer par des espaces. | |
35 | L'icône {icon name=cross title='retirer membre'} permet de désinscrire de la liste quelqu'un | |
36 | qui y était abonné. | |
0337d704 | 37 | </p> |
38 | ||
0baf0741 | 39 | {if $unregistered|@count neq 0} |
40 | <h1>Marketing d'utilisateurs non-inscrits</h1> | |
41 | ||
42 | <p> | |
43 | {if $unregistered|@count eq 1} | |
44 | L'utilisateur suivant n'est pas inscrit à Polytechnique.org. Tu peux l'y inciter en lui faisant envoyer un mail de marketing. Une fois inscrit à Polytechnique.org, l'inscription à la liste lui sera automatiquement proposée. | |
45 | {else} | |
46 | Les utilisateurs suivants ne sont pas inscrits à Polytechnique.org. Tu peux les y inciter en leur faisant envoyer des | |
47 | mails de marketing. Une fois inscrits à Polytechnique.org, l'inscription à la liste leur sera automatique proposée. | |
48 | {/if} | |
49 | <p> | |
50 | ||
51 | <script type="text/javascript"> | |
52 | {literal} | |
53 | function showEmail(val, login) | |
54 | { | |
55 | var span = document.getElementById("mk_s_mail[" + login + "]"); | |
56 | var state = (val == 'marketu' || val == 'markets') ? '' : 'none'; | |
57 | span.style.display = state; | |
58 | } | |
59 | {/literal} | |
60 | </script> | |
61 | ||
62 | <form method="post" action='{$smarty.server.REQUEST_URI}'> | |
63 | <table class="bicol"> | |
64 | {foreach from=$unregistered key=login item=it} | |
65 | <tr class="{cycle values="pair,impair"}"> | |
66 | <td>{$login}</td> | |
67 | <td> | |
e8439508 | 68 | Camarade : |
0baf0741 | 69 | <select name="mk_uid[{$login}]"> |
70 | {iterate from=$it item=user} | |
71 | <option value="{$user.user_id}">{$user.prenom} {$user.nom} (X{$user.promo})</option> | |
72 | {/iterate} | |
73 | </select><br /> | |
38421eaa | 74 | Action* : |
0baf0741 | 75 | <select name="mk_action[{$login}]" onchange="showEmail(this.value, '{$login}');"> |
76 | <option value="none">Aucune</option> | |
77 | <option value="marketu">Envoyer un mail en ton nom</option> | |
78 | <option value="markets">Envoyer un mail au nom de Polytechnique.org</option> | |
79 | <option value="sub">Lui proposer l'inscription</option> | |
80 | </select><br /> | |
81 | <span id="mk_s_mail[{$login}]" style="display: none"> | |
e8439508 | 82 | Email : <input type="text" name="mk_email[{$login}]" value="" /> |
0baf0741 | 83 | </span> |
84 | </td> | |
85 | </tr> | |
86 | {/foreach} | |
87 | </table> | |
88 | <p class="center"> | |
89 | <input type="submit" name="send_mark" value="Envoyer les marketings !" /> | |
90 | </p> | |
91 | </form> | |
92 | ||
93 | <p class="smaller"> | |
38421eaa | 94 | *La dernière action ajoute simplement la liste de diffusion aux abonnements qui seront proposés au camarade |
0baf0741 | 95 | lors de son inscription à Polytechnique.org sans pour autant lui enovyer de mail de marketing. Cette action est |
96 | automatique si tu choisis l'envoi de mail. | |
97 | </p> | |
98 | ||
99 | {/if} | |
100 | ||
0337d704 | 101 | <h1> |
a7de4ef7 | 102 | modérateurs de la liste |
0337d704 | 103 | </h1> |
104 | ||
105 | <form method='post' action='{$smarty.server.REQUEST_URI}'> | |
106 | <table class='tinybicol' cellpadding='0' cellspacing='0'> | |
107 | {foreach from=$owners item=xs key=promo} | |
108 | <tr> | |
109 | <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td> | |
110 | <td> | |
111 | {foreach from=$xs item=x} | |
8040946c | 112 | {if $promo && strpos($x.l, '@') === false} |
7b2413f6 | 113 | <a href="profile/{$x.l}" class="popup2">{$x.n}</a> |
8040946c | 114 | {elseif $x.x} |
108d1d90 | 115 | <a href="{$platal->ns}member/{$x.x}">{if $x.n|trim}{$x.n}{else}{$x.l}{/if}</a> |
8040946c | 116 | {elseif $x.n} |
117 | {$x.n} | |
0337d704 | 118 | {else} |
119 | {$x.l} | |
120 | {/if} | |
a7de4ef7 | 121 | <a href='{$platal->pl_self(1)}?del_owner={$x.l}'>{icon name=cross title='retirer modérateur'}</a> |
0337d704 | 122 | <br /> |
123 | {/foreach} | |
124 | </td> | |
125 | </tr> | |
126 | {/foreach} | |
108d1d90 FB |
127 | <tr class="pair"> |
128 | <td class='titre'>Ajouter</td> | |
0337d704 | 129 | <td> |
130 | <input type='text' size='30' name='add_owner' /> | |
0337d704 | 131 | <input type='submit' value='ajouter' /> |
132 | </td> | |
133 | </tr> | |
134 | </table> | |
135 | </form> | |
136 | ||
137 | ||
138 | <h1> | |
38421eaa | 139 | {$np_m|default:"0"} membre{if $np_m > 1}s{/if} dans la liste |
0337d704 | 140 | </h1> |
141 | ||
108d1d90 | 142 | <form method='post' action='{$smarty.server.REQUEST_URI}' enctype="multipart/form-data"> |
0337d704 | 143 | <table class='bicol' cellpadding='0' cellspacing='0'> |
144 | {foreach from=$members item=xs key=promo} | |
145 | <tr> | |
146 | <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td> | |
147 | <td> | |
148 | {foreach from=$xs item=x} | |
8040946c | 149 | {if $promo && strpos($x.l, '@') === false} |
7b2413f6 | 150 | <a href="profile/{$x.l}" class="popup2">{$x.n}</a> |
8040946c | 151 | {elseif $x.x} |
108d1d90 | 152 | <a href="{$platal->ns}member/{$x.x}">{if $x.n|trim}{$x.n}{else}{$x.l}{/if}</a> |
8040946c | 153 | {elseif $x.n} |
154 | {$x.n} | |
0337d704 | 155 | {else} |
156 | {$x.l} | |
157 | {/if} | |
ff874621 | 158 | <a href='{$platal->pl_self(1)}?del_member={$x.l}'>{icon name=cross title='retirer membre'}</a> |
0337d704 | 159 | <br /> |
160 | {/foreach} | |
161 | </td> | |
162 | </tr> | |
163 | {/foreach} | |
164 | <tr> | |
108d1d90 FB |
165 | <th colspan="2">Ajouter</th> |
166 | </tr> | |
167 | <tr class="pair"> | |
168 | <td class="titre">Liste</td> | |
0337d704 | 169 | <td> |
170 | <input type='text' size='40' name='add_member' /> | |
108d1d90 FB |
171 | </td> |
172 | </tr> | |
173 | <tr class="pair"> | |
174 | <td class="titre">ou fichier(*)</td> | |
175 | <td> | |
176 | <input type="file" name="add_member_file" />* | |
177 | </td> | |
178 | </tr> | |
179 | <tr class="pair"> | |
180 | <td colspan="2" class="center"> | |
0337d704 | 181 | <input type='submit' value='ajouter' /> |
182 | </td> | |
183 | </tr> | |
184 | </table> | |
185 | </form> | |
186 | ||
108d1d90 FB |
187 | <div class="smaller"> |
188 | * Le fichier doit contenir une adresse e-mail par ligne. Les X doivent être identifiés par une adresse | |
189 | @polytechnique.org, @m4x.org ou @melix.net/org. | |
190 | </div> | |
191 | ||
0337d704 | 192 | |
a7de4ef7 | 193 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |