$smarty->display("inc_vw_idx_services.tpl"); } if ($type_name == "UF") { // Chargement de l'uf à ajouter/éditer $uf = new CUniteFonctionnelle(); $uf->group_id = $group->_id; $uf->load($uf_id); $uf->loadRefUm(); $uf->loadRefsNotes(); // Récupération des ufs $order = "group_id, code"; $ufs = array("hebergement" => $uf->loadGroupList(array("type" => "= 'hebergement'"), $order), "medicale" => $uf->loadGroupList(array("type" => "= 'medicale'"), $order), "soins" => $uf->loadGroupList(array("type" => "= 'soins'"), $order)); // Récupération des Unités Médicales (pmsi) $ums = array(); $ums_infos = array(); $um = new CUniteMedicale(); if (CSQLDataSource::get("sae") && CModule::getActive("atih")) { $um_infos = new CUniteMedicaleInfos(); $ums = $um->loadListUm(); $group = CGroups::loadCurrent(); $where["group_id"] = " = '{$group->_id}'"; $where["mode_hospi"] = " IS NOT NULL"; $where["nb_lits"] = " IS NOT NULL"; $ums_infos = $um_infos->loadList($where); } $smarty->assign("ufs", $ufs); $smarty->assign("uf", $uf); $smarty->assign("ums", $ums); $smarty->assign("ums_infos", $ums_infos); $smarty->display("inc_vw_idx_ufs.tpl"); }
<?php /** * $Id$ * * @category DPhospi * @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @link http://www.mediboard.org */ $um_id = CValue::get("um_id"); $uf_id = CValue::get("uf_id"); $uf = new CUniteFonctionnelle(); if ($uf_id) { $uf->load($uf_id); } $um = new CUniteMedicale(); $um->load($um_id); $smarty = new CSmartyDP(); $smarty->assign("um", $um); $smarty->assign("uf", $uf); $smarty->display("inc_vw_um_mode_hospit.tpl");