* @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(); //Initialisations des variables $date = CValue::getOrSession("date", CMbDT::date()); $today = CMbDT::date(); $hour = CMbDT::time(null); $board = CValue::get("board", 1); $boardItem = CValue::get("boardItem", 1); $consult = new CConsultation(); // Récupération des fonctions $cabinets = CMediusers::loadFonctions(); // Récupération de la liste des anesthésistes $mediuser = new CMediusers(); $anesthesistes = $mediuser->loadAnesthesistes(PERM_READ); if ($consult->consultation_id) { $date = $consult->_ref_plageconsult->date; CValue::setSession("date", $date); } // Récupération des plages de consultation du jour et chargement des références $listPlages = array(); foreach ($anesthesistes as $anesth) { $listPlages[$anesth->_id]["anesthesiste"] = $anesth; $plage = new CPlageconsult(); $where = array(); $where["chir_id"] = "= '{$anesth->_id}'"; $where["date"] = "= '{$date}'";
/** * Load functions with given permission * * @param int $permType Permission level * * @return CFunctions[] */ function loadFunctions($permType = PERM_READ) { return $this->_ref_functions = CMediusers::loadFonctions($permType, $this->_id); }
* @version $Revision: 19316 $ */ CCanDo::checkRead(); $fiche_ei_id = CValue::get("fiche_ei_id", 0); //Récupération du type de fiche à générer et de la RSPO concernée. $type_ei_id = CValue::get("type_ei_id"); $blood_salvage_id = CValue::get("blood_salvage_id"); $fiche = new CFicheEi(); $listFct = new CFunctions(); // Droit admin et edition de fiche if (CCanDo::admin() && $fiche_ei_id) { $fiche->load($fiche_ei_id); } // Chargement des Utilisateurs if (CCanDo::admin()) { $listFct = CMediusers::loadFonctions(PERM_READ); foreach ($listFct as $fct) { $fct->loadRefsUsers(); } } $fiche->loadRefsFwd(); if (!$fiche->_ref_evenement) { $fiche->_ref_evenement = array(); } /* * Si l'on est dans le cas où nous souhaitons préremplir automatiquement * quelques champs à l'aide du modèle de fiche d'incident (module cell saver). */ if ($type_ei_id) { $type_fiche = new CTypeEi(); $type_fiche->load($type_ei_id);
<?php /** * $Id: vw_stats.php 21492 2013-12-20 09:24:10Z aurelie17 $ * * @package Mediboard * @subpackage Cabinet * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision: 21492 $ */ CCanDo::checkRead(); // Current user $mediuser = CMediusers::get(); // Filter $filter = new CPlageconsult(); $filter->_date_min = CMbDT::date("last month"); $filter->_date_max = CMbDT::date(); $functions = CMediusers::loadFonctions(PERM_EDIT, null, "cabinet"); $users = $mediuser->loadPraticiens(); $smarty = new CSmartyDP(); $smarty->assign("filter", $filter); $smarty->assign("users", $users); $smarty->assign("functions", $functions); $smarty->display("vw_stats.tpl");
*/ CCanDo::checkRead(); $choicepratcab = CAppUI::pref("choicepratcab"); $aide_id = CValue::get("aide_id", CValue::post("aide_id", '')); $class = CValue::get("class"); $field = CValue::get("field"); $text = CValue::get("text", CValue::post("text", "")); $depend_value_1 = CValue::get("depend_value_1"); $depend_value_2 = CValue::get("depend_value_2"); $class_depend_value_1 = CValue::get("class_depend_value_1"); $class_depend_value_2 = CValue::get("class_depend_value_2"); $depend_value_1 = stripslashes(utf8_decode($depend_value_1)); $depend_value_2 = stripslashes(utf8_decode($depend_value_2)); // Liste des users accessibles $listPrat = new CMediusers(); $listFct = $listPrat->loadFonctions(PERM_EDIT); $listPrat = $listPrat->loadUsers(PERM_EDIT); $listFunc = new CFunctions(); $listFunc = $listFunc->loadSpecialites(PERM_EDIT); $listEtab = CGroups::loadGroups(PERM_EDIT); // Objet ciblé $object = new $class(); $dependValues = array(); // To set the depend values always as an array (empty or not) $helped = array(); if ($object->_specs[$field]->helped && !is_bool($object->_specs[$field]->helped)) { if (!is_array($object->_specs[$field]->helped)) { $helped = array($object->_specs[$field]->helped); } else { $helped = $object->_specs[$field]->helped; }