$object->loadNamedFile("identite.jpg"); $object->loadNamedFile("signature.jpg"); // Savoir s'il est relié au LDAP if (isset($object->_ref_user)) { $object->_ref_user->isLDAPLinked(); } // Chargement des banques $banques = array(); if (class_exists("CBanque")) { $order = "nom ASC"; $banque = new CBanque(); $banques = $banque->loadList(null, $order); } // Récupération des disciplines $discipline = new CDiscipline(); $disciplines = $discipline->loadList(); // Récupération des spécialités CPAM $spec_cpam = new CSpecCPAM(); $spec_cpam = $spec_cpam->loadList(null, 'spec_cpam_id ASC'); // Récupération des profils $profile = new CUser(); $profile->template = 1; /** @var CUser[] $profiles */ $profiles = $profile->loadMatchingList(); // Creation du tableau de profil en fonction du type $tabProfil = array(); foreach ($profiles as $profil) { $tabProfil[$profil->user_type][] = $profil->_id; } $tag = false; if ($object->_id) {
* @package Mediboard * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version SVN: $Id: vw_idx_functions.php 19463 2013-06-07 10:36:29Z lryo $ * @link http://www.mediboard.org */ CCanDo::checkRead(); $page = intval(CValue::get('page', 0)); $filter = CValue::getOrSession("filter", ""); $step = 25; $order = "text ASC"; $discipline = new CDiscipline(); if ($filter) { $disciplines = $discipline->seek($filter, null, "{$page}, {$step}", true, null, $order); $total_disciplines = $discipline->_totalSeek; } else { $disciplines = $discipline->loadList(null, $order, "{$page}, {$step}"); $total_disciplines = $discipline->countList(); } foreach ($disciplines as $_discipline) { $_discipline->loadGroupRefsBack(); } $function_id = CValue::getOrSession("function_id"); // Création du template $smarty = new CSmartyDP(); $smarty->assign("discipline", $discipline); $smarty->assign("disciplines", $disciplines); $smarty->assign("total_disciplines", $total_disciplines); $smarty->assign("page", $page); $smarty->assign("step", $step); $smarty->display("vw_list_disciplines.tpl");