934f2031ce88b3856e0451d87d3a793b28d033ea
4 require_once __DIR__
. '/../_inc.php';
6 $exercices = new Compta_Exercices
;
7 $journal = new Compta_Journal
;
9 $exercice = utils
::get('exercice') ?
: $exercices->getCurrentId();
13 throw new UserException('Exercice inconnu.');
16 if (empty($_GET['id']) ||
!is_numeric($_GET['id']))
18 throw new UserException("Argument du numéro de membre manquant.");
21 $id = (int) $_GET['id'];
23 $membre = $membres->get($id);
27 throw new UserException("Le membre demandé n'existe pas.");
30 $liste_comptes = $comptes->getListAll();
32 function get_nom_compte($compte)
37 global $liste_comptes;
38 return $liste_comptes[$compte];
41 $tpl->register_modifier('get_nom_compte', 'Garradin\get_nom_compte');
43 $tpl->assign('journal', $journal->listForMember($membre['id'], $exercice));
45 $tpl->assign('exercices', $exercices->getList());
46 $tpl->assign('exercice', $exercice);
47 $tpl->assign('membre', $membre);
49 $tpl->display('admin/compta/operations/membre.tpl');