Artifact 9b123882d0f72d83f89721fceb14667964b4c4a5:
- File src/www/admin/compta/categories/index.php — part of check-in [c39efc2c38] at 2014-12-18 19:41:50 on branch trunk — Passage à PSR-0 + Dépendances simplifiées avec KD2fw (user: bohwaz, size: 490) [annotate] [blame] [check-ins using]
<?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'); ?>