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