4 require_once __DIR__
. '/../_inc.php';
6 if ($user['droits']['compta'] < Membres
::DROIT_ADMIN
)
8 throw new UserException("Vous n'avez pas le droit d'accéder à cette page.");
11 $cats = new Compta_Categories
;
13 if (isset($_GET['depenses']))
14 $type = Compta_Categories
::DEPENSES
;
16 $type = Compta_Categories
::RECETTES
;
18 $tpl->assign('type', $type);
19 $tpl->assign('liste', $cats->getList($type));
21 $tpl->display('admin/compta/categories/index.tpl');