Overview
Comment: | État des cotisations pour le membre connecté |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
aa80b872002e49d1caa71202550a4686 |
User & Date: | bohwaz on 2014-02-17 18:35:47 |
Other Links: | manifest | tags |
Context
2014-02-17
| ||
20:18 | Possibilité de configurer le champ identifiant et le champ identité des membres check-in: 0a9ee37350 user: bohwaz tags: trunk | |
18:35 | État des cotisations pour le membre connecté check-in: aa80b87200 user: bohwaz tags: trunk | |
18:32 | Statut cotisation à la connexion check-in: 7bf735c72e user: bohwaz tags: trunk | |
Changes
Added src/templates/admin/mes_cotisations.tpl version [6fc92b32e8].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
{include file="admin/_head.tpl" title="Mes cotisations" current="mes_cotisations"} <dl class="cotisation"> {if $cotisation} <dt>Cotisation obligatoire</dt> <dd>{$cotisation.intitule|escape} — {if $cotisation.duree} {$cotisation.duree|escape} jours {elseif $cotisation.debut} du {$cotisation.debut|format_sqlite_date_to_french} au {$cotisation.fin|format_sqlite_date_to_french} {else} ponctuelle {/if} — {$cotisation.montant|escape_money} {$config.monnaie|escape} </dd> <dt>À jour de cotisation ?</dt> <dd> {if !$cotisation.a_jour} <span class="error"><b>Non</b>, cotisation non payée</span> {else} <b class="confirm">✓ Oui</b> {if $cotisation.expiration} (expire le {$cotisation.expiration|format_sqlite_date_to_french}) {/if} {/if} </dd> {/if} <dt> {if $nb_activites == 1} {$nb_activites|escape} cotisation enregistrée {elseif $nb_activites} {$nb_activites|escape} cotisations enregistrées {else} Aucune cotisation enregistrée {/if} </dt> {if !empty($cotisations_membre)} {foreach from=$cotisations_membre item="co"} <dd>{$co.intitule|escape} — {if $co.a_jour} <span class="confirm">À jour</span>{if $co.expiration} — Expire le {$co.expiration|format_sqlite_date_to_french}{/if} {else} <span class="error">En retard</span> {/if} </dd> {/foreach} {/if} </dl> {if !empty($cotisations)} <table class="list"> <thead> <th>Date</th> <td>Cotisation</td> </thead> <tbody> {foreach from=$cotisations item="c"} <tr> <td>{$c.date|format_sqlite_date_to_french}</td> <td> {$c.intitule|escape} — {if $c.duree} {$c.duree|escape} jours {elseif $c.debut} du {$c.debut|format_sqlite_date_to_french} au {$c.fin|format_sqlite_date_to_french} {else} ponctuelle {/if} — {$c.montant|html_money} {$config.monnaie|escape} </td> </tr> {/foreach} </tbody> </table> {/if} {include file="admin/_foot.tpl"} |
Added src/www/admin/mes_cotisations.php version [5f8b1d8cdc].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
<?php namespace Garradin; require_once __DIR__ . '/_inc.php'; $membre = $membres->getLoggedUser(); if (!$membre) { throw new UserException("Ce membre n'existe pas."); } $error = false; $tpl->assign('membre', $membre); $cats = new Membres_Categories; $categorie = $cats->get($membre['id_categorie']); $tpl->assign('categorie', $categorie); $cotisations = new Cotisations_Membres; if (!empty($categorie['id_cotisation_obligatoire'])) { $tpl->assign('cotisation', $cotisations->isMemberUpToDate($membre['id'], $categorie['id_cotisation_obligatoire'])); } else { $tpl->assign('cotisation', false); } $tpl->assign('nb_activites', $cotisations->countForMember($membre['id'])); $tpl->assign('cotisations', $cotisations->listForMember($membre['id'])); $tpl->assign('cotisations_membre', $cotisations->listSubscriptionsForMember($membre['id'])); $tpl->display('admin/mes_cotisations.tpl'); ?> |