1 {**************************************************************************}
3 {* Copyright (C) 2003-2009 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
23 <h1>{$asso->nom} : <a href='{$platal->ns}events'>Événements</a> </h1>
26 {if $evt.titre || count($moments) eq 1}
27 {$evt.nb_tot} personne{if $evt.nb_tot > 1}s ont réalisé leur {else} a réalisé son {/if}
29 {$evt.nb} personne{if $evt.nb > 1}s ont réalisé leur{else} a réalisé son {/if}
31 inscription à l'événement {$evt.intitule} {if $evt.titre}- {$evt.titre} {/if}
32 qui aura lieu {$evt.date}.
35 {if $evt.participant_list && $is_admin}
37 [<a href="mailto:?bcc={$evt.short_name}-participants@{#globals.xnet.evts_domain#}">envoyer un email à ceux qui viennent</a>]
39 [<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>]
41 [<a href="mailto:?bcc={$evt.short_name}-paye@{#globals.xnet.evts_domain#}">envoyer un email aux personnes ayant payé</a>]
43 [<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>]
47 {if count($moments) > 1}
49 [<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}"{if
50 !$platal->argv[2]}class="erreur"{/if}>Vue générale</a>]
51 {foreach from=$moments item=m}
52 [<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>]
58 [<a href="{$platal->pl_self()}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>]
59 {foreach from=$alphabet item=c}
60 [<a href="{$platal->pl_self()}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>]
64 {if $is_admin}{literal}
65 <script type="text/javascript">
66 function remplitAuto(mail) {
67 document.getElementById('inscription').mail.value=mail;
68 var f = document.getElementById('montant');
77 Ils ont payé mais ont oublié de s'inscrire :
80 <table summary="payé mais non inscrits" class="tinybicol">
87 {iterate from=$oubliinscription item=m}
90 {if $is_admin}<a href="javascript:remplitAuto('{$m.user->login()}')">{/if}
91 {profile user=$m.user link=false}
92 {if $is_admin}</a>{/if}
94 <td>{$m.user->promo()}</td>
96 <a href="https://www.polytechnique.org/profile/{$m.user->login()}">{icon name=user_suit title="fiche"}</a>
97 <a href="https://www.polytechnique.org/vcard/{$m.user->login()}.vcf">{icon name=vcard title="vcard"}</a>
98 <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a>
100 <td>{$m.montant}</td>
110 <table summary="participants a l'evenement" class="{if $tout}large{else}tiny{/if}">
112 {if $is_admin && $evt.paiement_id && $tout}
113 {assign var=height value='rowspan="2"'}
115 <th {$height|smarty:nodefaults}>Prénom NOM</th>
116 <th {$height|smarty:nodefaults}>Promo</th>
117 <th {$height|smarty:nodefaults}>Info</th>
120 {foreach from=$moments item=m}
121 <th {$height|smarty:nodefaults}>{$m.titre}</th>
124 <th {$height|smarty:nodefaults}>Nombre</th>
126 {if $is_admin && $evt.money}
127 <th {$height|smarty:nodefaults}>Montant</th>
128 <th colspan="3">Payé</th>
131 <th {$height|smarty:nodefaults}>Nombre</th>
134 {if $is_admin && $evt.paiement_id && $tout}
136 <th>Télépaiement</th>
141 {foreach from=$participants item=m}
144 {if $is_admin}<a href="javascript:remplitAuto('{$m.user->login()}')">{/if}
145 {profile user=$m.user promo=false link=false}
146 {if $is_admin}</a>{/if}
148 <td>{$m.user->promo()}</td>
150 {if $m.user->hasProfile()}
151 <a href="https://www.polytechnique.org/profile/{$m.user->login()}">{icon name=user_suit title="fiche"}</a>
152 <a href="https://www.polytechnique.org/vcard/{$m.user->login()}.vcf">{icon name=vcard title="vcard"}</a>
153 <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a>
155 <a href="mailto:{$m.user->bestEmail()}">{icon name=email title="email"}</a>
160 {foreach from=$moments item=i}
161 <td>{$m[$i.item_id]}</td>
166 {if $is_admin && $evt.money}
167 <td {if $m.montant > $m.paid}class="erreur"{/if}>{$m.montant}€</td>
168 {if $evt.paiement_id}
169 <td>{$m.telepayment|default:0}€</td>
170 <td>{$m.adminpaid|default:0}€</td>
172 <td{if $m.montant < $m.paid} style="color: maroon"{/if}>{$m.paid}€</td>
181 {if $is_admin && $evt.money && $tout}
183 {assign var=cols value=$moments|@count}
184 <td colspan="{$cols+3}" class="right"><strong>Total</strong></td>
185 <td>{$evt.topay}€</td>
186 {if $evt.paiement_id}
187 <td>{$evt.telepaid|default:0}€</td>
188 <td>{$evt.adminpaid|default:0}€</td>
190 <td>{$evt.paid}€</td>
196 {foreach from=$links item=ofs key=txt}
197 <a href="{$platal->pl_self()}?offset={$ofs}&initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
205 <p>Les personnes suivantes ont indiqué qu'elles ne viendraient pas à l'événement :</p>
207 <table class="tinybicol">
208 <tr><th>Prénom NOM</th><th>Origine</th></tr>
209 {foreach from=$absents item=m}
212 {if $is_admin}<a href="javascript:remplitAuto('{$m->login()}')">{/if}
213 {profile user=$m link=false promo=false}
214 {if $is_admin}</a>{/if}
228 <a href="{$platal->ns}events/csv/{$evt.eid}/{$platal->argv[2]}/{$evt.intitule}{if $evt.titre}.{$evt.titre}{/if}.csv">
229 {icon name=page_excel title="Télécharger au format Excel"} Télécharger le fichier Excel
236 En tant qu'administrateur, tu peux fixer la venue (accompagnée ou pas) d'un des membres du groupe.
237 Donne ici son email, ainsi que le nombre de participants.
240 <form action="{$platal->pl_self()}" method="post" id="inscription">
243 <input type="hidden" name="adm" value="nbs" />
245 Email : <input name="mail" size="20" />
247 {if $platal->argv[2]}
248 {$evt.titre} : <input name="nb[{$platal->argv[2]}]" size="1" value="1" />
250 {foreach from=$moments item=m}
251 {$m.titre} : <input name="nb[{$m.item_id}]" size="1" value="1"/>
253 Nombre : <input name="nb[1]" size="1" value="1" />
256 <input type="submit" />
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.
271 Note que tu peux cliquer sur les noms des membres pour remplir automatiquement la case ci-dessous.
274 <form action="{$platal->pl_self()}" method="post" id="montant">
277 <input type="hidden" name="adm" value="prix" />
278 Email : <input name="mail" size="20" />
279 montant : <input name="montant" size="3" value="0,00" /> €
280 <input type="submit" />
287 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}