$ums_infos = $um_infos->loadList($where); } // Récupération des ufs $order = "group_id, code"; $ufs = $uf->loadList(null, $order); } if ($use_prestation != null) { // Chargement de la prestation à ajouter/éditer $prestation = new CPrestation(); $prestation->group_id = $group->_id; $prestation->load($prestation_id); $prestation->loadRefsNotes(); // Récupération des prestations $order = "group_id, nom"; /** @var CPrestation[] $prestations */ $prestations = $prestation->loadList(null, $order); foreach ($prestations as $_prestation) { $_prestation->loadRefGroup(); $_prestation->loadRefsNotes(); } } // Création du template $smarty = new CSmartyDP(); $smarty->assign("praticiens", $praticiens); $smarty->assign("etablissements", $etablissements); if ($use_uf != null) { $smarty->assign("uf", $uf); $smarty->assign("ums", $ums); $smarty->assign("ums_infos", $ums_infos); $smarty->display("inc_vw_uf.tpl"); } elseif ($use_prestation != null) {