ADDED src/templates/admin/mes_cotisations.tpl
Index: src/templates/admin/mes_cotisations.tpl
==================================================================
--- src/templates/admin/mes_cotisations.tpl
+++ src/templates/admin/mes_cotisations.tpl
@@ -0,0 +1,77 @@
+{include file="admin/_head.tpl" title="Mes cotisations" current="mes_cotisations"}
+
+
+{if $cotisation}
+ - Cotisation obligatoire
+ - {$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}
+
+ - À jour de cotisation ?
+ -
+ {if !$cotisation.a_jour}
+ Non, cotisation non payée
+ {else}
+ ✓ Oui
+ {if $cotisation.expiration}
+ (expire le {$cotisation.expiration|format_sqlite_date_to_french})
+ {/if}
+ {/if}
+
+{/if}
+ -
+ {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}
+
+{if !empty($cotisations_membre)}
+ {foreach from=$cotisations_membre item="co"}
+ - {$co.intitule|escape} —
+ {if $co.a_jour}
+ À jour{if $co.expiration} — Expire le {$co.expiration|format_sqlite_date_to_french}{/if}
+ {else}
+ En retard
+ {/if}
+
+ {/foreach}
+{/if}
+
+
+{if !empty($cotisations)}
+
+
+ Date |
+ Cotisation |
+
+
+ {foreach from=$cotisations item="c"}
+
+ {$c.date|format_sqlite_date_to_french} |
+
+ {$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}
+ |
+
+ {/foreach}
+
+
+{/if}
+
+{include file="admin/_foot.tpl"}
ADDED src/www/admin/mes_cotisations.php
Index: src/www/admin/mes_cotisations.php
==================================================================
--- src/www/admin/mes_cotisations.php
+++ src/www/admin/mes_cotisations.php
@@ -0,0 +1,39 @@
+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');
+
+?>