當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CMediusers::loadEtablissements方法代碼示例

本文整理匯總了PHP中CMediusers::loadEtablissements方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMediusers::loadEtablissements方法的具體用法?PHP CMediusers::loadEtablissements怎麽用?PHP CMediusers::loadEtablissements使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CMediusers的用法示例。


在下文中一共展示了CMediusers::loadEtablissements方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: CMediusers

    $currProc->getEtatRedac();
    $currProc->loadLastActif();
    $currProc->loadLastEntry();
    $currProc->loadFirstEntry();
}
// Procédure en Cours de demande
$procDemande = CDocGed::loadProcDemande($user->_id);
foreach ($procDemande as $keyProc => &$currProc) {
    $currProc->loadRefs();
    $currProc->getEtatRedac();
    $currProc->loadLastActif();
    $currProc->loadLastEntry();
}
// Procédure en Attente de Rédaction
$procEnCours = CDocGed::loadProcRedacAndValid($user->_id);
foreach ($procEnCours as $keyProc => &$currProc) {
    $currProc->loadRefs();
    $currProc->getEtatRedac();
    $currProc->loadLastEntry();
}
// Liste des Etablissements selon Permissions
$mediuser = new CMediusers();
$etablissements = $mediuser->loadEtablissements(PERM_READ);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("etablissements", $etablissements);
$smarty->assign("procTermine", $procTermine);
$smarty->assign("procDemande", $procDemande);
$smarty->assign("procEnCours", $procEnCours);
$smarty->assign("docGed", $docGed);
$smarty->display("vw_procencours.tpl");
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:vw_procencours.php

示例2: CIntervHorsPlage

 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
global $can, $m, $tab;
CCanDo::checkRead();
$hors_plage = new CIntervHorsPlage();
if (!$hors_plage->canRead()) {
    $can->redirect();
}
// Toutes les salles des blocs
$listBlocs = CGroups::loadCurrent()->loadBlocs(PERM_READ);
// Les salles autorisées
$salle = new CSalle();
$listSalles = $salle->loadListWithPerms(PERM_READ);
// Liste des Etablissements selon Permissions
$etablissements = CMediusers::loadEtablissements(PERM_READ);
// Chargement des prestations
$prestations = CPrestation::loadCurrentList();
$operation_id = CValue::getOrSession("operation_id");
$chir_id = CAppUI::conf("dPplanningOp COperation use_session_praticien") ? CValue::getOrSession("chir_id") : CValue::get("chir_id");
$sejour_id = CValue::get("sejour_id");
$hour_urgence = CValue::get("hour_urgence");
$min_urgence = CValue::get("min_urgence");
$date_urgence = CValue::get("date_urgence");
$salle_id = CValue::get("salle_id");
$patient_id = CValue::get("pat_id");
$grossesse_id = CValue::get("grossesse_id");
$consult_related_id = CValue::get("consult_related_id");
// L'utilisateur est-il un praticien
$user = $chir = CMediusers::get();
if ($chir->isPraticien() and !$chir_id) {
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:31,代碼來源:vw_edit_urgence.php

示例3: CModule

    $setup = new $setupclass();
    $module = new CModule();
    $module->compareToSetup($setup);
    $obsolete_module = $module->_upgradable;
}
// Feed module with tabs
require "./modules/{$module->mod_name}/index.php";
if ($tab !== null) {
    $module->addConfigureTab();
}
if (!$a || $a === "index") {
    $tab = $module->getValidTab($tab);
}
if (!$suppressHeaders) {
    // Liste des Etablissements
    $etablissements = CMediusers::loadEtablissements(PERM_EDIT);
    //current Group
    $current_group = CGroups::loadCurrent();
    // Messages
    $messages = new CMessage();
    $messages = $messages->loadPublications("present", $m, $g);
    // Mails
    $mails = CUserMessageDest::loadNewMessages();
    // Creation du Template
    $tplHeader = new CSmartyDP("style/{$uistyle}");
    $tplHeader->assign("offline", false);
    $tplHeader->assign("nodebug", true);
    $tplHeader->assign("obsolete_module", $obsolete_module);
    $tplHeader->assign("localeInfo", $locale_info);
    // Favicon
    $tplHeader->assign("mediboardShortIcon", CFaviconLoader::loadFile("style/{$uistyle}/images/icons/favicon.ico"));
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:main.php


注:本文中的CMediusers::loadEtablissements方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。