$where["plagesop.date"] = "BETWEEN '{$date}' AND '{$fin}'"; if ($bloc->_id) { $salles = $bloc->loadRefsSalles(); $where["plagesop.salle_id"] = CSQLDataSource::prepareIn(array_keys($salles)); } $where["operations.annulee"] = "= '0'"; $where["operations.rank"] = "= '0'"; $order = "plagesop.date, plagesop.chir_id"; /** @var COperation[] $listNonValidees */ $listNonValidees = $operation->loadList($where, $order, null, null, $ljoin); foreach ($listNonValidees as $_operation) { $_operation->loadRefPlageOp(); $_operation->loadExtCodesCCAM(); $_operation->loadRefPraticien()->loadRefFunction(); $_operation->loadRefPatient(); } $listHorsPlage = CIntervHorsPlage::getForDates($date, $fin, null, array_keys($bloc->_ref_salles)); foreach ($listHorsPlage as $_operation) { $_operation->loadRefPlageOp(); $_operation->loadExtCodesCCAM(); $_operation->loadRefPraticien()->loadRefFunction(); $_operation->loadRefPatient(); } // Création du template $smarty = new CSmartyDP(); $smarty->assign("blocs", $blocs); $smarty->assign("nbAlertes", $nbAlertes); $smarty->assign("listNonValidees", $listNonValidees); $smarty->assign("listHorsPlage", $listHorsPlage); $smarty->assign("edit_mode", $edit_mode); $smarty->display("vw_alertes.tpl");
* $Id$ * * @category Bloc * @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(); $date_start = CValue::get("date", CMbDT::date()); $date_end = CValue::get("end", $date_start); $chir_id = CValue::get("chir_id"); $chir = new CMediusers(); $chirs = array(); if ($chir_id) { $chir->load($chir_id); $chir->loadRefFunction(); $chirs[] = $chir_id; } $listHorsPlage = CIntervHorsPlage::getForDates($date_start, $date_end, $chirs); foreach ($listHorsPlage as $_operation) { $_operation->loadRefPraticien()->loadRefFunction(); $_operation->loadRefPatient()->loadRefPhotoIdentite(); } // smarty $smarty = new CSmartyDP(); $smarty->assign("chir", $chir); $smarty->assign("date", $date_start); $smarty->assign("objects", $listHorsPlage); $smarty->display("inc_vw_horsplage.tpl");