18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$membre = $membres->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
{
|
|
|
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$membre = $membres->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 Membres\Cotisations;
if (!empty($categorie['id_cotisation_obligatoire']))
{
$tpl->assign('cotisation', $cotisations->isMemberUpToDate($membre['id'], $categorie['id_cotisation_obligatoire']));
}
else
{
|