get($id); if (!$membre) { throw new UserException("Ce membre n'existe pas."); } $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->assign('membre', $membre); $tpl->display('admin/membres/cotisations.tpl'); ?>