1 {**************************************************************************}
3 {* Copyright (C) 2003-2007 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'>Evénements</a> </h1>
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}.
30 {if $evt.participant_list}
32 [<a href="mailto:?bcc={$evt.short_name}-participants@{#globals.xnet.evts_domain#}">envoyer un mail à ceux qui viennent</a>]
34 [<a href="mailto:?bcc={$evt.short_name}-absents@{#globals.xnet.evts_domain#}">envoyer un mail aux membres non inscrits</a>]
38 {if count($moments) > 1}
40 [<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}"{if !$platal->argv[2]}class="erreur"{/if}>tout</a>]
41 {foreach from=$moments item=m}
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>]
48 [<a href="{$platal->pl_self()}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>]
49 {foreach from=$alphabet item=c}
50 [<a href="{$platal->pl_self()}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>]
54 {if $is_admin}{literal}
55 <script type="text/javascript">
56 function remplitAuto(mail) {
57 document.getElementById('inscription').mail.value=mail;
58 var f = document.getElementById('montant');
68 Ils ont payé mais ont oublié de s'inscrire :
71 <table summary="payé mais non inscrits" class="tinybicol">
78 {iterate from=$oubliinscription item=m}
81 <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
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>
89 <a href="mailto:{$m.email}@{#globals.mail.domain#}">{icon name=email title="mail"}</a>
101 <table summary="participants a l'evenement" class="{if $tout}large{else}tiny{/if}">
103 {if $is_admin && $evt.paiement_id}
104 {assign var=height value='rowspan="2"'}
106 <th {$height|smarty:nodefaults}>Prénom NOM</th>
107 <th {$height|smarty:nodefaults}>Promo</th>
108 <th {$height|smarty:nodefaults}>Info</th>
111 {foreach from=$moments item=m}
112 <th {$height|smarty:nodefaults}>{$m.titre}</th>
115 <th {$height|smarty:nodefaults}>Nombre</th>
117 {if $is_admin && $evt.money}
118 <th {$height|smarty:nodefaults}>Montant</th>
119 <th colspan="3">Payé</th>
122 <th {$height|smarty:nodefaults}>Nombre</th>
125 {if $is_admin && $evt.paiement_id}
127 <th>Télépaiement</th>
132 {foreach from=$participants item=m}
135 <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
136 {if $m.femme}•{/if}{$m.prenom} {$m.nom}
142 <a href="https://www.polytechnique.org/profile/{$m.email}">{icon name=user_suit title="fiche"}</a>
143 <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="vcard"}</a>
144 <a href="mailto:{$m.email}@{#globals.mail.domain#}">{icon name=email title="mail"}</a>
146 <a href="mailto:{$m.email}">{icon name=email title="mail"}</a>
151 {foreach from=$moments item=i}
152 <td>{$m[$i.item_id]}</td>
157 {if $is_admin && $evt.money}
158 <td {if $m.montant > $m.paid}class="erreur"{/if}>{$m.montant}€</td>
159 {if $evt.paiement_id}
160 <td>{$m.telepayment|default:0}€</td>
161 <td>{$m.adminpaid|default:0}€</td>
163 <td {if $m.montant < $m.paid}class="erreur"{/if}>{$m.paid}€</td>
175 {foreach from=$links item=ofs key=txt}
176 <a href="{$platal->pl_self()}?offset={$ofs}&initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
180 {if $absents->total()}
184 <p>Les personnes suivantes ont indiqué qu'elles ne viendraient pas à l'événement :</p>
186 <table class="tinybicol">
187 <tr><th>Prénom NOM</th><th>Origine</th></tr>
188 {iterate from=$absents item=m}
191 <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
192 {if $m.sexe}•{/if}{$m.prenom} {$m.nom}
207 [<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>]
213 En tant qu'administrateur, tu peux fixer la venue (accompagnée ou pas) d'un des membres du groupe.
214 Donne ici son mail, ainsi que le nombre de participants.
217 <form action="{$platal->pl_self()}" method="post" id="inscription">
219 <input type="hidden" name="adm" value="nbs" />
221 Mail: <input name="mail" size="20" />
223 {if $platal->argv[2]}
224 {$evt.titre}: <input name="nb[{$platal->argv[2]}]" size="1" value="1" />
226 {foreach from=$moments item=m}
227 {$m.titre}: <input name="nb[{$m.item_id}]" size="1" value="1"/>
229 Nombre: <input name="nb[1]" size="1" value="1" />
232 <input type="submit" />
241 En tant qu'administrateur, tu peux entrer un paiement reçu par une autre source que le télépaiement
242 du site X.org. Ce montant s'ajoutera aux montants déjà entrés. Si tu as fait une erreur, tu peux
243 entrer un montant négatif.
247 Note que tu peux cliquer sur les noms des membres pour remplir automatiquement la case ci-dessous
250 <form action="{$platal->pl_self()}" method="post" id="montant">
252 <input type="hidden" name="adm" value="prix" />
253 Mail: <input name="mail" size="20" />
254 montant: <input name="montant" size="3" value="0,00" /> €
255 <input type="submit" />
262 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}