get($id); if (!$co) { throw new UserException("Cette cotisation n'existe pas."); } $page = (int) utils::get('p') ?: 1; $tpl->assign('page', $page); $tpl->assign('bypage', Cotisations_Membres::ITEMS_PER_PAGE); $tpl->assign('total', $m_cotisations->countMembersForCotisation($co['id'])); $tpl->assign('pagination_url', utils::getSelfUrl(true) . '?id=' . $co['id'] . '&p=[ID]'); $tpl->assign('cotisation', $co); $tpl->assign('order', utils::get('o') ?: 'date'); $tpl->assign('desc', !isset($_GET['a'])); $tpl->assign('liste', $m_cotisations->listMembersForCotisation( $co['id'], $page, utils::get('o'), isset($_GET['a']) ? false : true)); $tpl->display('admin/membres/cotisations/voir.tpl'); ?>