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