{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2007 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-<h1>{$asso.nom} : <a href='{$platal->ns}events'>Evénements</a> </h1>
+<h1>{$asso.nom} : <a href='{$platal->ns}events'>Evénements</a> </h1>
<p>
-L'événement {$evt.intitule} {if $evt.titre} - {$evt.titre}{/if} comptera
-{$evt.nb_tot} personne{if $evt.nb_tot > 1}s{/if}.
+L'événement {$evt.intitule}
+{if $evt.titre} - {$evt.titre}
+{/if}
+{if $evt.titre || count($moments) eq 0}
+comptera {$evt.nb_tot} personne{if $evt.nb_tot > 1}s{/if}.
+{else}
+({$evt.nb} personne{if $evt.nb > 1}s{/if} ont réalisé leur inscription).
+{/if}
</p>
-{if $evt.participant_list}
+{if $evt.participant_list && $is_admin}
<p class="center">
-[<a href="mailto:?bcc={$evt.short_name}-participants@evts.polytechnique.org">envoyer un mail à ceux qui viennent</a>]
+[<a href="mailto:?bcc={$evt.short_name}-participants@{#globals.xnet.evts_domain#}">envoyer un mail à ceux qui viennent</a>]
-
-[<a href="mailto:?bcc={$evt.short_name}-absents@evts.polytechnique.org">envoyer un mail aux membres non inscrits</a>]
+[<a href="mailto:?bcc={$evt.short_name}-absents@{#globals.xnet.evts_domain#}">envoyer un mail aux membres non inscrits</a>]
</p>
{/if}
{if count($moments) > 1}
<p class="center">
-[<a href="{$platal->ns}events/admin/{$evt.eid}"{if !$platal->argv[2]}class="erreur"{/if}>tout</a>]
+[<a href="{$platal->ns}events/admin/{$evt.short_name|default:$evt.eid}"{if !$platal->argv[2]}class="erreur"{/if}>tout</a>]
{foreach from=$moments item=m}
-[<a href="{$platal->ns}events/admin/{$evt.eid}/{$m.item_id}" {if $platal->argv[2] eq $m.item_id}class="erreur"{/if}>{$m.titre}</a>]
+[<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>]
{/foreach}
</p>
{/if}
<p class="center">
-[<a href="{$platal->path}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>]
+[<a href="{$platal->pl_self()}" {if !$smarty.request.initiale}class="erreur"{/if}>tout</a>]
{foreach from=$alphabet item=c}
-[<a href="{$platal->path}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>]
+[<a href="{$platal->pl_self()}?initiale={$c}"{if $smarty.request.initiale eq $c} class="erreur"{/if}>{$c}</a>]
{/foreach}
</p>
-{if $admin}{literal}
+{if $is_admin}{literal}
<script type="text/javascript">
function remplitAuto(mail) {
document.getElementById('inscription').mail.value=mail;
var f = document.getElementById('montant');
if (f)
f.mail.value=mail;
- return false;
}
</script>
{/literal}
{if $oublis}
<p class="erreur">
-Ils ont payé mais ont oublié de s'inscrire :
+Ils ont payé mais ont oublié de s'inscrire :
</p>
-<table summary="payé mais non inscrits" class="tiny">
+<table summary="payé mais non inscrits" class="tinybicol">
<tr>
- <th>Prénom NOM</th>
+ <th>Prénom NOM</th>
<th>Promo</th>
<th>Infos</th>
<th>Montant</th>
</tr>
{iterate from=$oubliinscription item=m}
- <tr style="background:#d0c198;">
+ <tr class="pair">
<td>
- <a href="" {if $admin}onclick="return remplitAuto('{$m.email}')"{/if}>
+ <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
{$m.prenom} {$m.nom}
</a>
</td>
<td>{$m.promo}</td>
<td>
- <a href="https://www.polytechnique.org/profile/{$m.email}"><img src="images/loupe.gif" alt="[fiche]" /></a>
- <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf"><img src="images/vcard.png" alt="[vcard]" /></a>
- <a href="mailto:{$m.email}@polytechnique.org"><img src="images/mail.png" alt="mail" /></a>
+ <a href="https://www.polytechnique.org/profile/{$m.email}">{icon name=user_suit title="fiche"}</a>
+ <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="vcard"}</a>
+ <a href="mailto:{$m.email}@{#globals.mail.domain#}">{icon name=email title="mail"}</a>
</td>
<td>{$m.montant}</td>
</tr>
<table summary="participants a l'evenement" class="{if $tout}large{else}tiny{/if}">
<tr>
- <th>Prénom NOM</th>
- <th>Promo</th>
- <th>Info</th>
+ {if $is_admin && $evt.paiement_id && $tout}
+ {assign var=height value='rowspan="2"'}
+ {/if}
+ <th {$height|smarty:nodefaults}>Prénom NOM</th>
+ <th {$height|smarty:nodefaults}>Promo</th>
+ <th {$height|smarty:nodefaults}>Info</th>
{if $tout}
{if $moments}
{foreach from=$moments item=m}
- <th>{$m.titre}</th>
+ <th {$height|smarty:nodefaults}>{$m.titre}</th>
{/foreach}
{else}
- <th>Nombre</th>
+ <th {$height|smarty:nodefaults}>Nombre</th>
{/if}
- {if $admin && $evt.money}
- <th>Montant</th>
- <th>Payé</th>
+ {if $is_admin && $evt.money}
+ <th {$height|smarty:nodefaults}>Montant</th>
+ <th colspan="3">Payé</th>
{/if}
{else}
- <th>Nombre</th>
+ <th {$height|smarty:nodefaults}>Nombre</th>
{/if}
</tr>
+ {if $is_admin && $evt.paiement_id && $tout}
+ <tr>
+ <th>Télépaiement</th>
+ <th>Autre</th>
+ <th>Total</th>
+ </tr>
+ {/if}
{foreach from=$participants item=m}
<tr>
<td>
- <a href="" {if $admin}onclick="return remplitAuto('{$m.email}')"{/if}>
+ {if $is_admin}<a href="javascript:remplitAuto('{$m.email}')">{/if}
{if $m.femme}•{/if}{$m.prenom} {$m.nom}
- </a>
+ {if $is_admin}</a>{/if}
</td>
<td>{$m.promo}</td>
<td>
{if $m.x}
- <a href="https://www.polytechnique.org/profile/{$m.email}"><img src="images/loupe.gif" alt="[fiche]" /></a>
- <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf"><img src="images/vcard.png" alt="[vcard]" /></a>
- <a href="mailto:{$m.email}@polytechnique.org"><img src="images/mail.png" alt="mail" /></a>
+ <a href="https://www.polytechnique.org/profile/{$m.email}">{icon name=user_suit title="fiche"}</a>
+ <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="vcard"}</a>
+ <a href="mailto:{$m.email}@{#globals.mail.domain#}">{icon name=email title="mail"}</a>
{else}
- <a href="mailto:{$m.email}"><img src="images/mail.png" alt="mail"></a>
+ <a href="mailto:{$m.email}">{icon name=email title="mail"}</a>
{/if}
</td>
{if $tout}
{else}
<td>{$m[1]}</td>
{/if}
- {if $admin && $evt.money}
+ {if $is_admin && $evt.money}
<td {if $m.montant > $m.paid}class="erreur"{/if}>{$m.montant}€</td>
- <td>{$m.paid}€</td>
+ {if $evt.paiement_id}
+ <td>{$m.telepayment|default:0}€</td>
+ <td>{$m.adminpaid|default:0}€</td>
+ {/if}
+ <td {if $m.montant < $m.paid}class="erreur"{/if}>{$m.paid}€</td>
{/if}
{else}
<td>
<p class="descr">
{foreach from=$links item=ofs key=txt}
-<a href="{$platal->path}?offset={$ofs}&initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
+<a href="{$platal->pl_self()}?offset={$ofs}&initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
{/foreach}
</p>
-{if $admin}
+{if $absents->total()}
+
+<hr />
+
+<p>Les personnes suivantes ont indiqué qu'elles ne viendraient pas à l'événement :</p>
+
+<table class="tinybicol">
+ <tr><th>Prénom NOM</th><th>Origine</th></tr>
+ {iterate from=$absents item=m}
+ <tr>
+ <td>
+ <a href="" {if $is_admin}onclick="return remplitAuto('{$m.email}')"{/if}>
+ {if $m.sexe}•{/if}{$m.prenom} {$m.nom}
+ </a>
+ </td>
+ <td>
+ {$m.promo}
+ </td>
+ </tr>
+ {/iterate}
+</table>
+
+{/if}
+
+{if $is_admin}
<p class="descr">
-[<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>]
+[<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>]
</p>
<hr />
<p class="descr">
-En tant qu'administrateur, tu peux fixer la venue (accompagnée ou pas) d'un des membres du groupe.
+En tant qu'administrateur, tu peux fixer la venue (accompagnée ou pas) d'un des membres du groupe.
Donne ici son mail, ainsi que le nombre de participants.
</p>
-<form action="{$platal->path}" method="post" id="inscription">
+<form action="{$platal->pl_self()}" method="post" id="inscription">
<p class="descr">
<input type="hidden" name="adm" value="nbs" />
<hr />
<p class="descr">
-En tant qu'administrateur, tu peux entrer un paiement reçu par une autre source que le télépaiement
-du site X.org. Ce montant s'ajoutera aux montants déjà entrés. Si tu as fait une erreur, tu peux
-entrer un montant négatif.
+En tant qu'administrateur, tu peux entrer un paiement reçu par une autre source que le télépaiement
+du site X.org. Ce montant s'ajoutera aux montants déjà entrés. Si tu as fait une erreur, tu peux
+entrer un montant négatif.
</p>
<p class="descr">
Note que tu peux cliquer sur les noms des membres pour remplir automatiquement la case ci-dessous
</p>
-<form action="{$platal->path}" method="post" id="montant">
+<form action="{$platal->pl_self()}" method="post" id="montant">
<p class="descr">
<input type="hidden" name="adm" value="prix" />
Mail: <input name="mail" size="20" />
{/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}