Marketing module rewritten (mostly)
[platal.git] / templates / marketing / volontaire.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
50a40a33 3{* Copyright (C) 2003-2006 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<h1>Marketing volontaire</h1>
24
25<p>
26Choix de la promo :
27</p>
28<p>
29{foreach from=$promos item=p}
15a094c0 30<a href="{rel}/marketing/volontaire?promo={$p}">{$p}</a>
0337d704 31{cycle values=",,,,,,,,,,,,,,<br />"}
32{/foreach}
33</p>
34
35{if $addr}
36
15a094c0 37<p>[<a href="{rel}/marketing/promo/{$smarty.get.promo}">Marketing promo pour la promo {$smarty.get.promo}</a>]</p>
0337d704 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"}">
15a094c0 49 <td><a href="{rel}/marketing/private/{$it.user_id}">{$it.nom} {$it.prenom}</a></td>
0337d704 50 <td>{$it.email}</td>
51 <td>{$it.forlife}</td>
52 </tr>
53 {/iterate}
54</table>
55{else}
56<p>
57pas 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: *}