<?php /** * dPbloc * * @category Bloc * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version SVN: $Id:$ * @link http://www.mediboard.org */ CCanDo::checkEdit(); if (!($plageop_id = CValue::getOrSession("plageop_id"))) { CAppUI::setMsg("Vous devez choisir une plage opératoire", UI_MSG_WARNING); CAppUI::redirect("m=dPbloc&tab=vw_edit_planning"); } // Infos sur la plage opératoire $plage = new CPlageOp(); $plage->load($plageop_id); if (!$plage->temps_inter_op) { $plage->temps_inter_op = "00:00:00"; } $plage->loadRefsFwd(); $plage->loadRefChir()->loadRefFunction(); $plage->loadRefAnesth()->loadRefFunction(); $plage->loadRefsNotes(); // Création du template $smarty = new CSmartyDP(); $smarty->assign("plage", $plage); $smarty->display("vw_edit_interventions.tpl");
$plagesel->temps_inter_op = "00:00:00"; } if ($plagesel->_id) { if (count($arrKeySalle) && !in_array($plagesel->salle_id, $arrKeySalle) || $plagesel->date != $date) { $plageop_id = 0; $plagesel = new CPlageOp(); } $plagesel->loadAffectationsPersonnel(); } if (!$plagesel->_id) { $plagesel->date = $date; $plagesel->debut = CPlageOp::$hours_start . ":00:00"; $plagesel->fin = CPlageOp::$hours_start . ":00:00"; } // On charge le praticien et ses fonctions secondaires $chir = $plagesel->loadRefChir(); $chir->loadRefFunction(); $_functions = $chir->loadBackRefs("secondary_functions"); // Liste des Specialités $function = new CFunctions(); $specs = $function->loadSpecialites(PERM_READ, 1); // Liste des Anesthésistes $mediuser = new CMediusers(); $anesths = $mediuser->loadAnesthesistes(); CMbObject::massLoadFwdRef($anesths, "function_id"); foreach ($anesths as $_anesth) { $_anesth->loadRefFunction(); } // Liste des praticiens $chirs = $mediuser->loadChirurgiens(); CMbObject::massLoadFwdRef($chirs, "function_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"); $object = new CPlageOp(); $object->load($plage_id); $object->loadRefsNotes(); $object->loadRefChir()->loadRefFunction(); $object->loadRefAnesth()->loadRefFunction(); $object->loadRefSpec(); $object->loadRefsOperations(); $object->loadRefSalle(); foreach ($object->_ref_operations as $_op) { $_op->loadRefPatient()->loadRefPhotoIdentite(); } // smarty $smarty = new CSmartyDP(); $smarty->assign("object", $object); $smarty->display("inc_vw_plageop.tpl");