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