} $ext_codes_ccam = array(); foreach ($sejour->_ext_codes_ccam as $_code) { if (!array_key_exists($_code->code, $ext_codes_ccam)) { $ext_codes_ccam[$_code->code] = array(); $ext_codes_ccam[$_code->code]['count'] = 0; $ext_codes_ccam[$_code->code]['codes'] = array(); } $ext_codes_ccam[$_code->code]['count']++; $ext_codes_ccam[$_code->code]['codes'][] = $_code; } // Chargement des praticiens $listAnesths = new CMediusers(); $listAnesths = $listAnesths->loadAnesthesistes(PERM_DENY); $listChirs = new CMediusers(); $listChirs = $listChirs->loadPraticiens(PERM_DENY); // Liste des dents CCAM $liste_dents = reset(CDentCCAM::loadList()); $smarty = new CSmartyDP(); $smarty->assign('subject', $sejour); $smarty->assign('ext_codes_ccam', $ext_codes_ccam); $smarty->assign('listAnesths', $listAnesths); $smarty->assign('listChirs', $listChirs); $smarty->assign('liste_dents', $liste_dents); $smarty->assign('_is_dentiste', $sejour->_ref_praticien->isDentiste()); $smarty->assign('date', $date); $smarty->assign('from', $from); $smarty->assign('to', $to); $smarty->assign('days', CMbDT::getDays($from, $to)); $smarty->assign('praticiens', $praticiens); $smarty->display('inc_codages_ccam_sejour.tpl');