4 require_once __DIR__
. '/_inc.php';
6 $membre = $membres->getLoggedUser();
10 throw new UserException("Ce membre n'existe pas.");
15 $tpl->assign('membre', $membre);
17 $cats = new Membres_Categories
;
19 $categorie = $cats->get($membre['id_categorie']);
20 $tpl->assign('categorie', $categorie);
22 $cotisations = new Cotisations_Membres
;
24 if (!empty($categorie['id_cotisation_obligatoire']))
26 $tpl->assign('cotisation', $cotisations->isMemberUpToDate($membre['id'], $categorie['id_cotisation_obligatoire']));
30 $tpl->assign('cotisation', false);
33 $tpl->assign('nb_activites', $cotisations->countForMember($membre['id']));
34 $tpl->assign('cotisations', $cotisations->listForMember($membre['id']));
35 $tpl->assign('cotisations_membre', $cotisations->listSubscriptionsForMember($membre['id']));
37 $tpl->display('admin/mes_cotisations.tpl');