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 | |
7b2413f6 |
23 | <h1>{$asso.nom} : <a href='{$platal->ns}events'>Evénements</a> </h1> |
0337d704 |
24 | |
25 | <p> |
ed21e24a |
26 | L'événement {$evt.intitule} {if $evt.titre} - {$evt.titre}{/if} comptera |
27 | {$evt.nb_tot} personne{if $evt.nb_tot > 1}s{/if}. |
0337d704 |
28 | </p> |
29 | |
30 | {if $evt.participant_list} |
31 | <p class="center"> |
7d73bb7b |
32 | [<a href="mailto:?bcc={$evt.short_name}-participants@{#globals.xnet.evts_domain#}">envoyer un mail à ceux qui viennent</a>] |
76bbde1c |
33 | - |
7d73bb7b |
34 | [<a href="mailto:?bcc={$evt.short_name}-absents@{#globals.xnet.evts_domain#}">envoyer un mail aux membres non inscrits</a>] |
0337d704 |
35 | </p> |
36 | {/if} |
37 | |
5070a22d |
38 | {if count($moments) > 1} |
0337d704 |
39 | <p class="center"> |
f6bdd218 |
40 | [<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}"{if !$platal->argv[2]}class="erreur"{/if}>tout</a>] |
0337d704 |
41 | {foreach from=$moments item=m} |
f6bdd218 |
42 | [<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}/{$m.item_id}" {if $platal->argv[2] eq $m.item_id}class="erreur"{/if}>{$m.titre}</a>] |
0337d704 |
43 | {/foreach} |
44 | </p> |
45 | {/if} |
46 | |
47 | <p class="center"> |
e979cd2b |
48 | [<a href="{$platal->pl_self()}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>] |
0337d704 |
49 | {foreach from=$alphabet item=c} |
e979cd2b |
50 | [<a href="{$platal->pl_self()}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>] |
0337d704 |
51 | {/foreach} |
52 | </p> |
53 | |
54 | {if $admin}{literal} |
55 | <script type="text/javascript"> |
56 | function remplitAuto(mail) { |
57 | document.getElementById('inscription').mail.value=mail; |
8919c4e1 |
58 | var f = document.getElementById('montant'); |
59 | if (f) |
60 | f.mail.value=mail; |
0337d704 |
61 | return false; |
62 | } |
63 | </script> |
64 | {/literal} |
65 | |
66 | {if $oublis} |
67 | <p class="erreur"> |
68 | Ils ont payé mais ont oublié de s'inscrire : |
69 | </p> |
70 | |
71 | <table summary="payé mais non inscrits" class="tiny"> |
72 | <tr> |
73 | <th>Prénom NOM</th> |
74 | <th>Promo</th> |
75 | <th>Infos</th> |
76 | <th>Montant</th> |
77 | </tr> |
78 | {iterate from=$oubliinscription item=m} |
79 | <tr style="background:#d0c198;"> |
80 | <td> |
81 | <a href="" {if $admin}onclick="return remplitAuto('{$m.email}')"{/if}> |
82 | {$m.prenom} {$m.nom} |
83 | </a> |
84 | </td> |
85 | <td>{$m.promo}</td> |
86 | <td> |
7ac1ef77 |
87 | <a href="https://www.polytechnique.org/profile/{$m.email}">{icon name=user_suit title="fiche"}</a> |
88 | <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="vcard"}</a> |
7d73bb7b |
89 | <a href="mailto:{$m.email}@{#globals.mail.domain#}">{icon name=email title="mail"}</a> |
0337d704 |
90 | </td> |
91 | <td>{$m.montant}</td> |
92 | </tr> |
93 | {/iterate} |
94 | </table> |
95 | |
96 | <hr /> |
97 | {/if} |
98 | |
99 | {/if} |
100 | |
101 | <table summary="participants a l'evenement" class="{if $tout}large{else}tiny{/if}"> |
102 | <tr> |
103 | <th>Prénom NOM</th> |
104 | <th>Promo</th> |
105 | <th>Info</th> |
106 | {if $tout} |
b479e26b |
107 | {if $moments} |
108 | {foreach from=$moments item=m} |
109 | <th>{$m.titre}</th> |
110 | {/foreach} |
111 | {else} |
112 | <th>Nombre</th> |
113 | {/if} |
ed21e24a |
114 | {if $admin && $evt.money} |
0337d704 |
115 | <th>Montant</th> |
116 | <th>Payé</th> |
117 | {/if} |
118 | {else} |
119 | <th>Nombre</th> |
120 | {/if} |
121 | </tr> |
122 | {foreach from=$participants item=m} |
ed21e24a |
123 | <tr> |
0337d704 |
124 | <td> |
125 | <a href="" {if $admin}onclick="return remplitAuto('{$m.email}')"{/if}> |
126 | {if $m.femme}•{/if}{$m.prenom} {$m.nom} |
127 | </a> |
128 | </td> |
129 | <td>{$m.promo}</td> |
130 | <td> |
131 | {if $m.x} |
7ac1ef77 |
132 | <a href="https://www.polytechnique.org/profile/{$m.email}">{icon name=user_suit title="fiche"}</a> |
133 | <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="vcard"}</a> |
7d73bb7b |
134 | <a href="mailto:{$m.email}@{#globals.mail.domain#}">{icon name=email title="mail"}</a> |
0337d704 |
135 | {else} |
f7413044 |
136 | <a href="mailto:{$m.email}">{icon name=email title="mail"}</a> |
0337d704 |
137 | {/if} |
138 | </td> |
139 | {if $tout} |
b479e26b |
140 | {if $moments} |
141 | {foreach from=$moments item=i} |
142 | <td>{$m[$i.item_id]}</td> |
143 | {/foreach} |
144 | {else} |
145 | <td>{$m[1]}</td> |
146 | {/if} |
ed21e24a |
147 | {if $admin && $evt.money} |
0337d704 |
148 | <td {if $m.montant > $m.paid}class="erreur"{/if}>{$m.montant}€</td> |
149 | <td>{$m.paid}€</td> |
150 | {/if} |
151 | {else} |
152 | <td> |
153 | {$m.nb} |
154 | </td> |
155 | {/if} |
156 | </tr> |
157 | {/foreach} |
158 | </table> |
159 | |
160 | <p class="descr"> |
161 | {foreach from=$links item=ofs key=txt} |
e979cd2b |
162 | <a href="{$platal->pl_self()}?offset={$ofs}&initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a> |
0337d704 |
163 | {/foreach} |
164 | </p> |
165 | |
166 | {if $admin} |
167 | |
168 | <p class="descr"> |
7b2413f6 |
169 | [<a href="{$platal->ns}events/csv/{$evt.eid}/{$platal->argv[2]}/{$evt.intitule}{if $evt.titre}.{$evt.titre}{/if}.csv">Télécharger le fichier Excel</a>] |
0337d704 |
170 | </p> |
171 | |
172 | <hr /> |
173 | |
174 | <p class="descr"> |
175 | En tant qu'administrateur, tu peux fixer la venue (accompagnée ou pas) d'un des membres du groupe. |
ed21e24a |
176 | Donne ici son mail, ainsi que le nombre de participants. |
0337d704 |
177 | </p> |
178 | |
e979cd2b |
179 | <form action="{$platal->pl_self()}" method="post" id="inscription"> |
0337d704 |
180 | <p class="descr"> |
ed21e24a |
181 | <input type="hidden" name="adm" value="nbs" /> |
bd46a8e4 |
182 | |
ed21e24a |
183 | Mail: <input name="mail" size="20" /> |
184 | |
185 | {if $platal->argv[2]} |
186 | {$evt.titre}: <input name="nb[{$platal->argv[2]}]" size="1" value="1" /> |
b479e26b |
187 | {else} |
ed21e24a |
188 | {foreach from=$moments item=m} |
189 | {$m.titre}: <input name="nb[{$m.item_id}]" size="1" value="1"/> |
190 | {foreachelse} |
191 | Nombre: <input name="nb[1]" size="1" value="1" /> |
192 | {/foreach} |
b479e26b |
193 | {/if} |
ed21e24a |
194 | <input type="submit" /> |
0337d704 |
195 | </p> |
196 | </form> |
197 | |
ed21e24a |
198 | {if $evt.money} |
199 | |
0337d704 |
200 | <hr /> |
201 | |
202 | <p class="descr"> |
203 | En tant qu'administrateur, tu peux entrer un paiement reçu par une autre source que le télépaiement |
204 | du site X.org. Ce montant s'ajoutera aux montants déjà entrés. Si tu as fait une erreur, tu peux |
205 | entrer un montant négatif. |
206 | </p> |
207 | |
208 | <p class="descr"> |
209 | Note que tu peux cliquer sur les noms des membres pour remplir automatiquement la case ci-dessous |
210 | </p> |
211 | |
e979cd2b |
212 | <form action="{$platal->pl_self()}" method="post" id="montant"> |
0337d704 |
213 | <p class="descr"> |
0337d704 |
214 | <input type="hidden" name="adm" value="prix" /> |
215 | Mail: <input name="mail" size="20" /> |
216 | montant: <input name="montant" size="3" value="0,00" /> € |
217 | <input type="submit" /> |
218 | </p> |
219 | </form> |
220 | {/if} |
221 | |
ed21e24a |
222 | {/if} |
223 | |
0337d704 |
224 | {* vim:set et sw=2 sts=2 sws=2: *} |