$_operation->loadRefPlageOp(); } } foreach ($patient->loadRefsConsultations() as $_consult) { $_consult->getType(); $_consult->loadRefPlageConsult(); $function = $_consult->loadRefPraticien()->loadRefFunction(); if ($_consult->sejour_id) { unset($patient->_ref_consultations[$_consult->_id]); if (isset($patient->_ref_sejours[$_consult->sejour_id])) { $patient->_ref_sejours[$_consult->sejour_id]->_ref_consultations[$_consult->_id] = $_consult; } } if ($function->group_id != $group->_id) { unset($patient->_ref_consultations[$_consult->_id]); continue; } $_consult->loadRefFacture()->loadRefsNotes(); } $consultation = new CConsultation(); $consultation->load($consultation_id); $consultation->loadRefConsultAnesth(); if (CCanDo::read()) { // Création du template $smarty = new CSmartyDP(); $smarty->assign("is_anesth", $is_anesth); $smarty->assign("consultation", $consultation); $smarty->assign("patient", $patient); $smarty->assign("show_dhe_ecap", CValue::get("show_dhe_ecap", 1)); $smarty->display("httpreq_get_last_refs.tpl"); }
<?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::read(); $listBlocs = CGroups::loadCurrent()->loadBlocs(); $listSalles = array(); foreach ($listBlocs as $_bloc) { $listSalles = $listSalles + $_bloc->loadRefsSalles(); } $salle = new CSalle(); $salle->load(CValue::get("salle_id"), reset($listSalles)->_id); $salle->loadRefBloc(); $date = CValue::get("date", CMbDT::date()); // Liste des jours $listDays = array(); for ($i = 0; $i < 19 * 7; $i += 7) { $dateArr = CMbDT::date("+{$i} day", $date); $listDays[$dateArr] = $dateArr; } // Création du tableau de visualisation $affichages = array(); foreach ($listDays as $keyDate => $valDate) {
/** * $Id$ * * @package Mediboard * @subpackage System * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCanDo::check(); $dialog = CValue::get("dialog"); $start = CValue::get("start", 0); $stats = CValue::get("stats", 0); $period = CValue::get("period", "day"); $csv = CValue::get("csv", 0); if (!CCanDo::read() && !$dialog) { global $can; $can->redirect(); } $filter = new CUserLog(); if (!$dialog) { $filter->_date_min = CValue::getOrSession("_date_min"); $filter->_date_max = CValue::getOrSession("_date_max"); $filter->user_id = CValue::getOrSession("user_id"); $filter->object_id = CValue::getOrSession("object_id"); $filter->object_class = CValue::getOrSession("object_class"); $filter->type = CValue::getOrSession("type"); } else { $filter->_date_min = CValue::get("_date_min"); $filter->_date_max = CValue::get("_date_max"); $filter->user_id = CValue::get("user_id");