Overview
Comment:Gérer les messages utilisateur dans les exceptions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1af78c6b5e13837fef578c869899c9498a08785a
User & Date: bohwaz on 2017-10-18 10:56:22
Other Links: manifest | tags
Context
2017-10-18
10:57
Forcer la mise à jour des feuilles de style check-in: 2f58836d46 user: bohwaz tags: trunk
10:56
Gérer les messages utilisateur dans les exceptions check-in: 1af78c6b5e user: bohwaz tags: trunk
04:48
Merge de la branche de dév sur trunk, la 0.8 est la nouvelle version stable check-in: fa250b1e2a user: bohwaz tags: trunk, stable, 0.8.0
Changes

Modified src/www/admin/compta/projets/index.php from [daf736a4a0] to [2b530a4b42].

35
36
37
38
39
40
41

42
43





44
45
46

47
48





49
50
51

52
53





54
55
56
57
58
59
60
}


if (f('ajouter') && $form->check('ajout_projet'))
{
	$session->requireAccess('compta', Membres::DROIT_ADMIN);


	$projets->add(f('libelle'));
	Utils::redirect('/admin/compta/projets/');





}
elseif (f('modifier') && $form->check('modifier_projet_' . $id))
{

	$projets->edit($id, f('libelle'));
	Utils::redirect('/admin/compta/projets/');





}
elseif (f('supprimer') && $form->check('supprimer_projet_' . $id))
{

	$projets->remove($id);
	Utils::redirect('/admin/compta/projets/');





}


$tpl->assign('action', $action);
$tpl->assign('liste', $projets->getList());

$tpl->display('admin/compta/projets/index.tpl');







>
|
|
>
>
>
>
>



>
|
|
>
>
>
>
>



>
|
|
>
>
>
>
>







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
}


if (f('ajouter') && $form->check('ajout_projet'))
{
	$session->requireAccess('compta', Membres::DROIT_ADMIN);

	try {
		$projets->add(f('libelle'));
		Utils::redirect('/admin/compta/projets/');
	}
	catch (UserException $e)
	{
		$form->addError($e->getMessage());
	}
}
elseif (f('modifier') && $form->check('modifier_projet_' . $id))
{
	try {
		$projets->edit($id, f('libelle'));
		Utils::redirect('/admin/compta/projets/');
	}
	catch (UserException $e)
	{
		$form->addError($e->getMessage());
	}
}
elseif (f('supprimer') && $form->check('supprimer_projet_' . $id))
{
	try {
		$projets->remove($id);
		Utils::redirect('/admin/compta/projets/');
	}
	catch (UserException $e)
	{
		$form->addError($e->getMessage());
	}
}


$tpl->assign('action', $action);
$tpl->assign('liste', $projets->getList());

$tpl->display('admin/compta/projets/index.tpl');