<?php /** * $Id$ * * @package Mediboard * @subpackage SSR * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCando::checkEdit(); $date = CValue::get("date", CMbDT::date()); $kine_id = CValue::getOrSession("kine_id", CAppUI::$instance->user_id); // Chargement de la liste des utilisateurs $user = new CMediusers(); $kines = CModule::getActive("dPprescription") ? CFunctionCategoryPrescription::getAllExecutants() : $user->loadKines(); $kine = new CMediusers(); $kine->load($kine_id); $kine->loadRefIntervenantCdARR(); // Création du template $smarty = new CSmartyDP(); $smarty->assign("kine", $kine); $smarty->assign("kines", $kines); $smarty->assign("kine_id", $kine_id); $smarty->display("vw_kine_board.tpl");
<?php /** * $Id$ * * @category Urgences * @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(); $consult_id = CValue::get("consult_id"); $consult = new CConsultation(); $consult->load($consult_id); $consult->loadRefPlageConsult(); $sejour = $consult->loadRefSejour(); $rpu = $sejour->loadRefRPU(); $services = array(); $list_mode_sortie = null; if ($rpu && $rpu->_id) { // Mise en session du rpu_id $_SESSION["dPurgences"]["rpu_id"] = $rpu->_id; $rpu->loadRefSejourMutation(); $affectation = $sejour->loadRefCurrAffectation(); $affectation->loadRefService(); // Urgences pour un séjour "urg" if ($sejour->type == "urg") { $services = CService::loadServicesUrgence(); }