substr($elem, 0, strpos($elem, '_')), $tarifsSelectionnes); $lesComptes = array_map(fn($elem) : string => substr($elem, 1 + strpos($elem, '_')), $tarifsSelectionnes); $_SESSION['lesVersements'] = Utils::getVersementsTarifsComptes( $_SESSION['annee_recu'], $lesTarifs, $lesComptes, $champsNom); // ajouter les versements sans tarif (tri par nom, compte, date) $versementsSansTarif = Utils::getVersementsComptes($_SESSION['annee_recu'], $comptesSelectionnes, $champsNom); foreach ($versementsSansTarif as $versement) { $_SESSION['lesVersements'][] = $versement; } // préparation de l'affichage $tpl->assign('lesVersements', $_SESSION['lesVersements']); $tpl->assign('plugin_css', ['style.css']); // envoyer au template $tpl->display(PLUGIN_ROOT . '/templates/versements_activites.tpl');