| 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} : |
| 24 | {if ($smarty.request.add || $smarty.request.mod || $get_form) && $admin} |
| 25 | <a href='{$smarty.server.PHP_SELF}'>Evénements</a> |
| 26 | {else} |
| 27 | Evénements |
| 28 | {/if} |
| 29 | </h1> |
| 30 | |
| 31 | {if !$logged} |
| 32 | <p class="descr"> |
| 33 | Aucune manifestation publique n'a été saisie par ce groupe pour l'instant... |
| 34 | </p> |
| 35 | {elseif $get_form} |
| 36 | {include file='xnet/groupe/form_evenement.tpl'} |
| 37 | {else} |
| 38 | |
| 39 | {if $admin} |
| 40 | <p class="center"> |
| 41 | [<a href="{$marty.server.PHP_SELF}?add=1">Annoncer un nouvel événement</a>] |
| 42 | </p> |
| 43 | {/if} |
| 44 | |
| 45 | {if $nb_evt eq 0} |
| 46 | |
| 47 | <p class="descr"> |
| 48 | Aucun événement n'a été référencé par les animateurs du groupe. |
| 49 | </p> |
| 50 | |
| 51 | {else} |
| 52 | |
| 53 | {iterate from=$evenements item=e} |
| 54 | <table class="tiny" cellspacing="0" cellpadding="0"> |
| 55 | <tr> |
| 56 | <th colspan="2"> |
| 57 | {$e.intitule} |
| 58 | {if $admin || $e.show_participants} |
| 59 | <a href="evt-admin.php?eid={$e.eid}"><img src="{rel}/images/loupe.gif" title="Liste des participants" alt="Liste des participants" /></a> |
| 60 | {/if} |
| 61 | {if $admin} |
| 62 | <a href="{$smarty.session.PHP_SELF}?mod=1&eid={$e.eid}"><img src="{rel}/images/profil.png" title="Edition de l'événement" alt="Edition de l'événement" /></a> |
| 63 | <a href="{$smarty.session.PHP_SELF}?sup=1&eid={$e.eid}"><img src="{rel}/images/del.png" alt="Suppression de {$e.intitule}" title="Suppression de {$e.intitule}" /></a> |
| 64 | {/if} |
| 65 | </th> |
| 66 | </tr> |
| 67 | <tr> |
| 68 | <td class="titre">date :</td> |
| 69 | <td> |
| 70 | {if $e.fin} |
| 71 | du {$e.debut|date_format:"%d %B %Y à %H:%M"}<br /> |
| 72 | au {$e.fin|date_format:"%d %B %Y à %H:%M"} |
| 73 | {else} |
| 74 | le {$e.debut|date_format:"%d %B %Y à %H:%M"} |
| 75 | {/if} |
| 76 | </td> |
| 77 | </tr> |
| 78 | <tr> |
| 79 | <td class="titre">annonceur :</td> |
| 80 | <td> |
| 81 | <a href='https://polytechnique.org/fiche.php?user={$e.alias}' class='popup2'>{$e.prenom} {$e.nom} ({$e.promo})</a> |
| 82 | </td> |
| 83 | </tr> |
| 84 | <tr> |
| 85 | <td class="titre"> |
| 86 | <a href='evt-detail.php?eid={$e.eid}'>Détails...</a> |
| 87 | </td> |
| 88 | <td {if $smarty.request.backfrom eq $e.eid}class="erreur"{/if}> |
| 89 | {if $e.inscrit} |
| 90 | <small>tu es inscrit à cet événément. |
| 91 | {if $e.inscrit > 1}(avec {$e.inscrit - 1} invité{if $e.inscrit > 2}s{/if}){/if} |
| 92 | </small> |
| 93 | {else} |
| 94 | <small>tu n'es pas inscrit à cet événément.</small> |
| 95 | {/if} |
| 96 | </td> |
| 97 | </tr> |
| 98 | </table> |
| 99 | <br /> |
| 100 | {/iterate} |
| 101 | |
| 102 | {/if} |
| 103 | |
| 104 | {/if} |
| 105 | |
| 106 | {* vim:set et sw=2 sts=2 sws=2: *} |