1 {**************************************************************************}
3 {* Copyright (C) 2003-2010 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
26 Tu n'es pas administrateur de la liste, mais du site.
30 {include file="lists/header_listes.tpl" on=admin}
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
39 {if $unregistered|@count neq 0}
40 <h1>Marketing d'utilisateurs non-inscrits</h1>
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 email de marketing. Une fois inscrit à Polytechnique.org, l'inscription à la liste lui sera automatiquement proposée.
46 Les utilisateurs suivants ne sont pas inscrits à Polytechnique.org. Tu peux les y inciter en leur faisant envoyer des
47 emails de marketing. Une fois inscrits à Polytechnique.org, l'inscription à la liste leur sera automatique proposée.
51 <script type="text/javascript">
53 function showEmail(val, login)
55 var span = document.getElementById("mk_s_mail[" + login + "]");
56 var state = (val == 'marketu' || val == 'markets') ? '' : 'none';
57 span.style.display = state;
62 <form method="post" action='{$smarty.server.REQUEST_URI}'>
65 {foreach from=$unregistered key=login item=it}
66 <tr class="{cycle values="pair,impair"}">
70 <select name="mk_uid[{$login}]">
71 {iterate from=$it item=user}
72 <option value="{$user.user_id}">{$user.prenom} {$user.nom} (X{$user.promo})</option>
76 <select name="mk_action[{$login}]" onchange="showEmail(this.value, '{$login}');">
77 <option value="none">Aucune</option>
78 <option value="marketu">Envoyer un email en ton nom</option>
79 <option value="markets">Envoyer un email au nom de Polytechnique.org</option>
80 <option value="sub">Lui proposer l'inscription</option>
82 <span id="mk_s_mail[{$login}]" style="display: none">
83 Email : <input type="text" name="mk_email[{$login}]" value="" />
90 <input type="submit" name="send_mark" value="Envoyer les marketings !" />
95 *La dernière action ajoute simplement la liste de diffusion aux abonnements qui seront proposés au camarade
96 lors de son inscription à Polytechnique.org sans pour autant lui envoyer d'email de marketing. Cette action est
97 automatique si tu choisis l'envoi d'email.
103 modérateurs de la liste
106 <form method='post' action='{$smarty.server.REQUEST_URI}'>
108 <table class='tinybicol' cellpadding='0' cellspacing='0'>
109 {foreach from=$owners item=xs key=promo}
111 <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td>
113 {foreach from=$xs item=x}
114 {if $promo && strpos($x.l, '@') === false}
115 <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
117 <a href="{$platal->ns}member/{$x.x}">{if $x.n|trim}{$x.n}{else}{$x.l}{/if}</a>
123 <a href='{$platal->pl_self(1)}?del_owner={$x.l}&token={xsrf_token}'>{icon name=cross title='retirer modérateur'}</a>
130 <td class='titre'>Ajouter</td>
132 <input type='text' size='30' name='add_owner' />
133 <input type='submit' value='ajouter' />
141 {$np_m|default:"0"} membre{if $np_m > 1}s{/if} dans la liste
144 <form method='post' action='{$smarty.server.REQUEST_URI}' enctype="multipart/form-data">
146 <table class='bicol' cellpadding='0' cellspacing='0'>
147 {foreach from=$members item=xs key=promo}
149 <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td>
151 {foreach from=$xs item=x}
152 {if $promo && strpos($x.l, '@') === false}
153 <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
155 <a href="{$platal->ns}member/{$x.x}">{if $x.n|trim}{$x.n}{else}{$x.l}{/if}</a>
161 <a href='{$platal->pl_self(1)}?del_member={$x.l}&token={xsrf_token}'>{icon name=cross title='retirer membre'}</a>
168 <th colspan="2">Ajouter</th>
171 <td class="titre">Liste</td>
173 <input type='text' size='40' name='add_member' />
177 <td class="titre">ou fichier(*)</td>
179 <input type="file" name="add_member_file" />*
183 <td colspan="2" class="center">
184 <input type='submit' value='ajouter' />
190 <div class="smaller">
191 * Le fichier doit contenir une adresse email par ligne. Les X doivent être identifiés par une adresse
192 @polytechnique.org, @m4x.org ou @melix.net/org.
196 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}