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 /> |
e8439508 |
74 | Action<a href="{$platal->pl_self()}#action_desc">*</a> : |
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"> |
94 | *: La dernière action ajoute simplement la liste de diffusion aux abonnements qui seront proposés au camarade |
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} |
115 | <a href="{$platal->ns}member/{$x.x}">{$x.n}</a> |
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} |
127 | <tr> |
128 | <td class='titre'>Ajouter ... </td> |
129 | <td> |
130 | <input type='text' size='30' name='add_owner' /> |
131 | |
132 | <input type='submit' value='ajouter' /> |
133 | </td> |
134 | </tr> |
135 | </table> |
136 | </form> |
137 | |
138 | |
139 | <h1> |
140 | {$np_m|default:"0"} membre(s) dans la liste |
141 | </h1> |
142 | |
143 | <form method='post' action='{$smarty.server.REQUEST_URI}'> |
144 | <table class='bicol' cellpadding='0' cellspacing='0'> |
145 | {foreach from=$members item=xs key=promo} |
146 | <tr> |
147 | <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td> |
148 | <td> |
149 | {foreach from=$xs item=x} |
8040946c |
150 | {if $promo && strpos($x.l, '@') === false} |
7b2413f6 |
151 | <a href="profile/{$x.l}" class="popup2">{$x.n}</a> |
8040946c |
152 | {elseif $x.x} |
153 | <a href="{$platal->ns}member/{$x.x}">{$x.n}</a> |
154 | {elseif $x.n} |
155 | {$x.n} |
0337d704 |
156 | {else} |
157 | {$x.l} |
158 | {/if} |
ff874621 |
159 | <a href='{$platal->pl_self(1)}?del_member={$x.l}'>{icon name=cross title='retirer membre'}</a> |
0337d704 |
160 | <br /> |
161 | {/foreach} |
162 | </td> |
163 | </tr> |
164 | {/foreach} |
165 | <tr> |
166 | <td class='titre'>Ajouter ...</td> |
167 | <td> |
168 | <input type='text' size='40' name='add_member' /> |
169 | |
170 | <input type='submit' value='ajouter' /> |
171 | </td> |
172 | </tr> |
173 | </table> |
174 | </form> |
175 | |
176 | |
a7de4ef7 |
177 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |