/** @var CPlageconsult[] $listPlage */ $listPlage = $plage->loadList($where, $order, null, "plageconsult_id", $ljoin); if (!array_key_exists($plageconsult_id, $listPlage)) { $plage->_id = $plageconsult_id = null; } $currPlage = new CPlageconsult(); foreach ($listPlage as $currPlage) { if (!$plageconsult_id && $date == $currPlage->date) { $plageconsult_id = $currPlage->_id; } $currPlage->_ref_chir = $listPrat[$currPlage->chir_id]; $currPlage->loadCategorieFill(); $currPlage->loadRefsNotes(); $currPlage->countPatients(); $currPlage->loadRefsConsultations(false); $currPlage->loadDisponibilities(); } // Création du template $smarty = new CSmartyDP(); $smarty->assign("period", $period); $smarty->assign("periods", $periods); $smarty->assign("hour", $hour); $smarty->assign("hours", CPlageconsult::$hours); $smarty->assign("hide_finished", $hide_finished); $smarty->assign("date", $date); $smarty->assign("today", CMbDT::date()); $smarty->assign("refDate", $refDate); $smarty->assign("ndate", $ndate); $smarty->assign("pdate", $pdate); $smarty->assign("bank_holidays", $bank_holidays); $smarty->assign("chir_id", $chir_id);
<?php /** * $Id$ * * @category Cabinet * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ * @link http://www.mediboard.org */ CCanDo::checkRead(); $plage_id = CValue::get("plage_id"); $plage = new CPlageconsult(); $plage->load($plage_id); $plage->loadRefsNotes(); $plage->loadRefChir()->loadRefFunction(); $plage->loadRefRemplacant()->loadRefFunction(); foreach ($plage->loadRefsConsultations() as $_consult) { $_consult->loadRefPatient()->loadRefPhotoIdentite(); } $plage->loadDisponibilities(); // smarty $smarty = new CSmartyDP(); $smarty->assign("object", $plage); $smarty->display("inc_vw_plage_consult.tpl");