1e8900b026b7419917295b08bb617f832840a599
[platal.git] / templates / marketing / volontaire.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2011 Polytechnique.org                             *}
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 <h1>Marketing volontaire</h1>
24
25 <p>
26 Choix de la promo&nbsp;:
27 </p>
28 <p>
29 {foreach from=$promos item=p}
30 <a href="marketing/volontaire/{$p}">{$p}</a>
31 {cycle values=",,,,,,,,,,,,,,<br />"}
32 {/foreach}
33 </p>
34
35 {if $addr}
36
37 <p>[<a href="marketing/promo/{$platal->argv[1]}">Marketing promo pour la promo {$platal->argv[1]}</a>]</p>
38
39 {if $addr->total()}
40 <h2>Marketing volontaire</h2>
41 <table class="bicol" cellpadding="3" summary="Adresses déjà utilisées">
42   <tr>
43     <th>Camarade concerné</th>
44     <th>Adresse email</th>
45     <th>"informateur"</th>
46   </tr>
47   {iterate from=$addr item=it}
48   <tr class="{cycle values="pair,impair"}">
49     <td><a href="marketing/private/{$it.uid}">{profile user=$it.uid link=false promo=true}</a></td>
50     <td>{$it.email}</td>
51     <td>{$it.forlife}</td>
52   </tr>
53   {/iterate}
54 </table>
55 {else}
56 <p>
57 pas d'informations pour les gens de cette promo
58 </p>
59 {/if}
60 {/if}
61
62 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}