<?php /** * $Id$ * * @category Hospitalisation * @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(); $obs_id = CView::get("obs_id", "num"); CView::checkin(); $obs = new CObservationMedicale(); $obs->load($obs_id); $obs->loadRefAlerte(); $obs->_ref_alerte->loadRefHandledUser(); $smarty = new CSmartyDP(); $smarty->assign("obs", $obs); $smarty->display("inc_vw_alerte_obs.tpl");
<?php /** * $Id$ * * @package Mediboard * @subpackage Hospi * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ $observation_id = CValue::get("observation_id"); $sejour_id = CValue::get("sejour_id"); $user_id = CValue::get("user_id"); $observation = new CObservationMedicale(); if ($observation_id) { $observation->load($observation_id); } else { $observation->sejour_id = $sejour_id; $observation->user_id = $user_id; } $smarty = new CSmartyDP(); $smarty->assign("observation", $observation); $smarty->display("inc_observation.tpl");