if (!$_nb) { $debute = "{$jour} {$_timing}"; $event = new CPlanningEvent($debute, $debute, $_plage->_freq, "", $color, true, null, null); $event->type = "rdvfree"; $event->plage["id"] = $_plage->_id; if ($_plage->locked == 1) { $event->disabled = true; } $event->plage["color"] = $_plage->color; //Ajout de l'évènement au planning $planning->addEvent($event); } } } } $week = CMbDate::weekNumber($debut); // Création du template $smarty = new CSmartyDP(); $smarty->assign("period", $period); $smarty->assign("periods", $periods); $smarty->assign("date", $date); $smarty->assign("refDate", $debut); $smarty->assign("ndate", $ndate); $smarty->assign("pdate", $pdate); $smarty->assign("listPraticiens", $listPraticiens); $smarty->assign("chir_id", $chir_id); $smarty->assign("function_id", $function_id); $smarty->assign("plageconsult_id", $plageconsult_id); $smarty->assign("plage", $plage); $smarty->assign("planning", $planning); $smarty->assign("bank_holidays", $bank_holidays);