$date = CMbDT::date(); foreach ($plateau->loadRefsTechniciens(false) as $_technicien) { $_technicien->countSejoursDate($date); } // Technicien à editer $technicien = new CTechnicien(); $technicien->load(CValue::get("technicien_id")); $technicien->plateau_id = $plateau->_id; $technicien->loadRefsNotes(); $technicien->loadRefPlateau(); $technicien->loadRefKine(); $technicien->countSejoursDate($date); // Alter egos pour les transferts de séjours $where["kine_id"] = "= '{$technicien->kine_id}'"; /** @var CTechnicien[] $alteregos */ $alteregos = $technicien->loadList($where); unset($alteregos[$technicien->_id]); foreach ($alteregos as $_alterego) { $_alterego->loadRefPlateau(); $_alterego->loadRefKine(); } // Kinés $user = new CMediusers(); $kines = $user->loadKines(); // Création du template $smarty = new CSmartyDP(); $smarty->assign("technicien", $technicien); $smarty->assign("alteregos", $alteregos); $smarty->assign("plateau", $plateau); $smarty->assign("kines", $kines); $smarty->display("inc_edit_technicien.tpl");
<?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");