File src/www/admin/compta/categories/index.php artifact 3af79fd85a part of check-in d239c2525e
<?php namespace Garradin; require_once __DIR__ . '/../_inc.php'; if ($user['droits']['compta'] < Membres::DROIT_ADMIN) { throw new UserException("Vous n'avez pas le droit d'accéder à cette page."); } $cats = new Compta_Categories; if (isset($_GET['depenses'])) $type = Compta_Categories::DEPENSES; else $type = Compta_Categories::RECETTES; $tpl->assign('type', $type); $tpl->assign('liste', $cats->getList($type)); $tpl->display('admin/compta/categories/index.tpl'); ?>