コード例 #1
0
ファイル: edit_planning.php プロジェクト: fbone/mediboard4
    if ($consult->_id) {
        $task = $consult->loadRefTask();
        if (!$task->_id || !$task->prescription_line_element_id) {
            $display_elt = true;
        }
    } else {
        if (!$line_element_id) {
            $elt = new CElementPrescription();
            $elt->consultation = 1;
            if ($elt->countMatchingList()) {
                $display_elt = true;
            }
        }
    }
}
$consult->loadPosition();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("listCat", $listCat);
$smarty->assign("categories", $categories);
$smarty->assign("plageConsult", $plageConsult);
$smarty->assign("consult", $consult);
$smarty->assign("following_consultations", $following_consultations);
$smarty->assign("today_ref_multiple", CAppUI::pref("today_ref_consult_multiple"));
$smarty->assign("chir", $chir);
$smarty->assign("_functions", $_functions);
$smarty->assign("pat", $pat);
$smarty->assign("listPraticiens", $listPraticiens);
$smarty->assign("listFunctions", $listFunctions);
$smarty->assign("correspondantsMedicaux", $correspondantsMedicaux);
$smarty->assign("medecin_adresse_par", $medecin_adresse_par);