Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 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 | ||
34ade5a6 | 23 | <h1>{$asso->nom} : <a href='{$platal->ns}events'>Événements</a> </h1> |
0337d704 | 24 | |
25 | <p> | |
20c5c7e6 | 26 | {$evt.nb_tot} personne{if $evt.nb_tot > 1}s ont réalisé leur {else} a réalisé son {/if} |
20c5c7e6 SJ |
27 | inscription à l'événement {$evt.intitule} {if $evt.titre}- {$evt.titre} {/if} |
28 | qui aura lieu {$evt.date}. | |
0337d704 | 29 | </p> |
30 | ||
2b522870 | 31 | {if $evt.short_name && $participants|@count && $is_admin} |
0337d704 | 32 | <p class="center"> |
9ff5b337 SJ |
33 | [<a href="mailto:?bcc={$evt.short_name}-participants@{#globals.xnet.evts_domain#}">envoyer un email à ceux qui viennent</a>] |
34 | <br /> | |
35 | [<a href="mailto:?bcc={$evt.short_name}-absents@{#globals.xnet.evts_domain#}">envoyer un email aux membres du groupe n'ayant pas répondu</a>] | |
36 | <br /> | |
37 | [<a href="mailto:?bcc={$evt.short_name}-paye@{#globals.xnet.evts_domain#}">envoyer un email aux personnes ayant payé</a>] | |
38 | <br /> | |
39 | [<a href="mailto:?bcc={$evt.short_name}-participants-non-paye@{#globals.xnet.evts_domain#}">envoyer un email aux inscrits n'ayant pas encore payé</a>] | |
0337d704 | 40 | </p> |
41 | {/if} | |
42 | ||
5070a22d | 43 | {if count($moments) > 1} |
0337d704 | 44 | <p class="center"> |
04d55591 SJ |
45 | [<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}"{if |
46 | !$platal->argv[2]}class="erreur"{/if}>Vue générale</a>] | |
0337d704 | 47 | {foreach from=$moments item=m} |
f6bdd218 | 48 | [<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 | 49 | {/foreach} |
50 | </p> | |
51 | {/if} | |
52 | ||
53 | <p class="center"> | |
e979cd2b | 54 | [<a href="{$platal->pl_self()}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>] |
0337d704 | 55 | {foreach from=$alphabet item=c} |
e979cd2b | 56 | [<a href="{$platal->pl_self()}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>] |
0337d704 | 57 | {/foreach} |
58 | </p> | |
59 | ||
d24c8a11 | 60 | {if $is_admin}{literal} |
0337d704 | 61 | <script type="text/javascript"> |
62 | function remplitAuto(mail) { | |
63 | document.getElementById('inscription').mail.value=mail; | |
8919c4e1 | 64 | var f = document.getElementById('montant'); |
65 | if (f) | |
66 | f.mail.value=mail; | |
0337d704 | 67 | } |
68 | </script> | |
69 | {/literal} | |
70 | ||
71 | {if $oublis} | |
72 | <p class="erreur"> | |
e8439508 | 73 | Ils ont payé mais ont oublié de s'inscrire : |
0337d704 | 74 | </p> |
75 | ||
a7de4ef7 | 76 | <table summary="payé mais non inscrits" class="tinybicol"> |
0337d704 | 77 | <tr> |
a7de4ef7 | 78 | <th>Prénom NOM</th> |
0337d704 | 79 | <th>Promo</th> |
80 | <th>Infos</th> | |
81 | <th>Montant</th> | |
82 | </tr> | |
896479ae | 83 | {foreach from=$oubliinscription item=m} |
98a7e9dc | 84 | <tr class="pair"> |
0337d704 | 85 | <td> |
e46cf8c4 | 86 | {if $is_admin}<a href="javascript:remplitAuto('{$m.user->login()}')">{/if} |
07eb5b0e | 87 | {profile user=$m.user link=false} |
ad40e162 | 88 | {if $is_admin}</a>{/if} |
0337d704 | 89 | </td> |
07eb5b0e | 90 | <td>{$m.user->promo()}</td> |
0337d704 | 91 | <td> |
07eb5b0e FB |
92 | <a href="https://www.polytechnique.org/profile/{$m.user->login()}">{icon name=user_suit title="fiche"}</a> |
93 | <a href="https://www.polytechnique.org/vcard/{$m.user->login()}.vcf">{icon name=vcard title="vcard"}</a> | |
94 | <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a> | |
0337d704 | 95 | </td> |
a7c0d514 | 96 | <td>{$m.amount|replace:'.':','} €</td> |
0337d704 | 97 | </tr> |
896479ae | 98 | {/foreach} |
0337d704 | 99 | </table> |
100 | ||
101 | <hr /> | |
102 | {/if} | |
103 | ||
104 | {/if} | |
105 | ||
106 | <table summary="participants a l'evenement" class="{if $tout}large{else}tiny{/if}"> | |
107 | <tr> | |
40ca91d2 | 108 | {if $is_admin && $evt.paiement_id && $tout} |
58591700 | 109 | {assign var=height value='rowspan="2"'} |
110 | {/if} | |
111 | <th {$height|smarty:nodefaults}>Prénom NOM</th> | |
112 | <th {$height|smarty:nodefaults}>Promo</th> | |
113 | <th {$height|smarty:nodefaults}>Info</th> | |
0337d704 | 114 | {if $tout} |
b479e26b | 115 | {if $moments} |
116 | {foreach from=$moments item=m} | |
58591700 | 117 | <th {$height|smarty:nodefaults}>{$m.titre}</th> |
b479e26b | 118 | {/foreach} |
119 | {else} | |
58591700 | 120 | <th {$height|smarty:nodefaults}>Nombre</th> |
b479e26b | 121 | {/if} |
d24c8a11 | 122 | {if $is_admin && $evt.money} |
58591700 | 123 | <th {$height|smarty:nodefaults}>Montant</th> |
124 | <th colspan="3">Payé</th> | |
0337d704 | 125 | {/if} |
126 | {else} | |
58591700 | 127 | <th {$height|smarty:nodefaults}>Nombre</th> |
0337d704 | 128 | {/if} |
129 | </tr> | |
40ca91d2 | 130 | {if $is_admin && $evt.paiement_id && $tout} |
58591700 | 131 | <tr> |
132 | <th>Télépaiement</th> | |
133 | <th>Autre</th> | |
134 | <th>Total</th> | |
135 | </tr> | |
136 | {/if} | |
0337d704 | 137 | {foreach from=$participants item=m} |
ed21e24a | 138 | <tr> |
0337d704 | 139 | <td> |
07eb5b0e FB |
140 | {if $is_admin}<a href="javascript:remplitAuto('{$m.user->login()}')">{/if} |
141 | {profile user=$m.user promo=false link=false} | |
f97a955b | 142 | {if $is_admin}</a>{/if} |
0337d704 | 143 | </td> |
07eb5b0e | 144 | <td>{$m.user->promo()}</td> |
0337d704 | 145 | <td> |
07eb5b0e FB |
146 | {if $m.user->hasProfile()} |
147 | <a href="https://www.polytechnique.org/profile/{$m.user->login()}">{icon name=user_suit title="fiche"}</a> | |
148 | <a href="https://www.polytechnique.org/vcard/{$m.user->login()}.vcf">{icon name=vcard title="vcard"}</a> | |
149 | <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a> | |
0337d704 | 150 | {else} |
07eb5b0e | 151 | <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a> |
0337d704 | 152 | {/if} |
153 | </td> | |
154 | {if $tout} | |
b479e26b | 155 | {if $moments} |
156 | {foreach from=$moments item=i} | |
157 | <td>{$m[$i.item_id]}</td> | |
158 | {/foreach} | |
159 | {else} | |
160 | <td>{$m[1]}</td> | |
161 | {/if} | |
d24c8a11 | 162 | {if $is_admin && $evt.money} |
0337d704 | 163 | <td {if $m.montant > $m.paid}class="erreur"{/if}>{$m.montant}€</td> |
58591700 | 164 | {if $evt.paiement_id} |
165 | <td>{$m.telepayment|default:0}€</td> | |
166 | <td>{$m.adminpaid|default:0}€</td> | |
167 | {/if} | |
43863a7f | 168 | <td{if $m.montant < $m.paid} style="color: maroon"{/if}>{$m.paid}€</td> |
0337d704 | 169 | {/if} |
170 | {else} | |
171 | <td> | |
172 | {$m.nb} | |
173 | </td> | |
174 | {/if} | |
175 | </tr> | |
176 | {/foreach} | |
3eaf05e3 | 177 | {if $is_admin && $evt.money && $tout} |
e01ebe65 FB |
178 | <tr> |
179 | {assign var=cols value=$moments|@count} | |
180 | <td colspan="{$cols+3}" class="right"><strong>Total</strong></td> | |
181 | <td>{$evt.topay}€</td> | |
182 | {if $evt.paiement_id} | |
183 | <td>{$evt.telepaid|default:0}€</td> | |
184 | <td>{$evt.adminpaid|default:0}€</td> | |
185 | {/if} | |
186 | <td>{$evt.paid}€</td> | |
187 | </tr> | |
188 | {/if} | |
0337d704 | 189 | </table> |
190 | ||
191 | <p class="descr"> | |
192 | {foreach from=$links item=ofs key=txt} | |
e979cd2b | 193 | <a href="{$platal->pl_self()}?offset={$ofs}&initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a> |
0337d704 | 194 | {/foreach} |
195 | </p> | |
196 | ||
07eb5b0e | 197 | {if $absents|@count} |
61664f8b | 198 | |
199 | <hr /> | |
200 | ||
201 | <p>Les personnes suivantes ont indiqué qu'elles ne viendraient pas à l'événement :</p> | |
202 | ||
203 | <table class="tinybicol"> | |
204 | <tr><th>Prénom NOM</th><th>Origine</th></tr> | |
07eb5b0e | 205 | {foreach from=$absents item=m} |
61664f8b | 206 | <tr> |
207 | <td> | |
07eb5b0e FB |
208 | {if $is_admin}<a href="javascript:remplitAuto('{$m->login()}')">{/if} |
209 | {profile user=$m link=false promo=false} | |
adcc7deb | 210 | {if $is_admin}</a>{/if} |
61664f8b | 211 | </td> |
212 | <td> | |
07eb5b0e | 213 | {$m->promo()} |
61664f8b | 214 | </td> |
215 | </tr> | |
07eb5b0e | 216 | {/foreach} |
61664f8b | 217 | </table> |
218 | ||
219 | {/if} | |
220 | ||
d24c8a11 | 221 | {if $is_admin} |
0337d704 | 222 | |
223 | <p class="descr"> | |
80575e7c | 224 | {include file="include/csv.tpl" url="`$platal->ns`events/csv/`$evt.eid`/`$platal->argv[2]`/`$evt.csv_name`.csv"} |
0337d704 | 225 | </p> |
226 | ||
227 | <hr /> | |
228 | ||
229 | <p class="descr"> | |
a7de4ef7 | 230 | En tant qu'administrateur, tu peux fixer la venue (accompagnée ou pas) d'un des membres du groupe. |
faefdbb7 | 231 | Donne ici son email, ainsi que le nombre de participants. |
0337d704 | 232 | </p> |
233 | ||
e979cd2b | 234 | <form action="{$platal->pl_self()}" method="post" id="inscription"> |
4fcbb455 | 235 | {xsrf_token_field} |
0337d704 | 236 | <p class="descr"> |
ed21e24a | 237 | <input type="hidden" name="adm" value="nbs" /> |
bd46a8e4 | 238 | |
faefdbb7 | 239 | Email : <input name="mail" size="20" /> |
ed21e24a | 240 | |
241 | {if $platal->argv[2]} | |
77af6562 | 242 | {$evt.titre} : <input name="nb[{$platal->argv[2]}]" size="1" value="1" /> |
b479e26b | 243 | {else} |
ed21e24a | 244 | {foreach from=$moments item=m} |
77af6562 | 245 | {$m.titre} : <input name="nb[{$m.item_id}]" size="1" value="1"/> |
ed21e24a | 246 | {foreachelse} |
77af6562 | 247 | Nombre : <input name="nb[1]" size="1" value="1" /> |
ed21e24a | 248 | {/foreach} |
b479e26b | 249 | {/if} |
ed21e24a | 250 | <input type="submit" /> |
0337d704 | 251 | </p> |
3bfa0e8d PC |
252 | <p class="descr"> |
253 | Tu peux aussi enlever toute trace de son inscription ou de sa décision de ne pas s'insscrire (s'il n'a rien payé). | |
254 | <div class="center"> | |
255 | <input type="submit" name="cancel" value="Annuler l'inscription" /> | |
256 | </div> | |
257 | </p> | |
0337d704 | 258 | </form> |
259 | ||
ed21e24a | 260 | {if $evt.money} |
261 | ||
0337d704 | 262 | <hr /> |
263 | ||
264 | <p class="descr"> | |
a7de4ef7 | 265 | En tant qu'administrateur, tu peux entrer un paiement reçu par une autre source que le télépaiement |
266 | du site X.org. Ce montant s'ajoutera aux montants déjà entrés. Si tu as fait une erreur, tu peux | |
267 | entrer un montant négatif. | |
0337d704 | 268 | </p> |
269 | ||
270 | <p class="descr"> | |
77af6562 | 271 | Note que tu peux cliquer sur les noms des membres pour remplir automatiquement la case ci-dessous. |
0337d704 | 272 | </p> |
273 | ||
e979cd2b | 274 | <form action="{$platal->pl_self()}" method="post" id="montant"> |
4fcbb455 | 275 | {xsrf_token_field} |
0337d704 | 276 | <p class="descr"> |
0337d704 | 277 | <input type="hidden" name="adm" value="prix" /> |
faefdbb7 | 278 | Email : <input name="mail" size="20" /> |
77af6562 | 279 | montant : <input name="montant" size="3" value="0,00" /> € |
0337d704 | 280 | <input type="submit" /> |
281 | </p> | |
282 | </form> | |
283 | {/if} | |
284 | ||
ed21e24a | 285 | {/if} |
286 | ||
a7de4ef7 | 287 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |