Differences From Artifact [3211b6ac5b]:

To Artifact [2b55b9725c]:


19
20
21
22
23
24
25
26
27
28

29

30







31




32
33
34

35
36
37
38
39
40

if (!$membre)
{
    throw new UserException("Ce membre n'existe pas.");
}

$champs = $config->get('champs_membres');


$cats = new Membres_Categories;

$categorie = $cats->get($membre['id_categorie']);









$tpl->assign('categorie', $categorie);




$tpl->assign('membre', $membre);

$tpl->assign('champs', $champs->getAll());


$tpl->assign('custom_js', array('datepickr.js'));

$tpl->display('admin/membres/fiche.tpl');

?>







|


>

>

>
>
>
>
>
>
>
|
>
>
>
>
|
|
|
>

|




19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

if (!$membre)
{
    throw new UserException("Ce membre n'existe pas.");
}

$champs = $config->get('champs_membres');
$tpl->assign('champs', $champs->getAll());

$cats = new Membres_Categories;

$categorie = $cats->get($membre['id_categorie']);
$tpl->assign('categorie', $categorie);

$m_transactions = new Membres_Transactions;

if (!empty($categorie['id_transaction_obligatoire']))
{
	$transactions = new Transactions;
	$tr = $transactions->get($categorie['id_transaction_obligatoire']);

	$tpl->assign('cotisation', $tr);
	$tpl->assign('statut_cotisation', $m_transactions->isMemberUpToDate($membre['id'], $tr));
}
else
{
	$tpl->assign('cotisation', false);
}

$tpl->assign('nb_paiements', $m_transactions->countForMember($membre['id']));

$tpl->assign('membre', $membre);

$tpl->display('admin/membres/fiche.tpl');

?>