if (!($is_cached = $core->getDBCache('DOCS_' . $plan_date, $cached_plan))) { $force_no_cache = true; } if ($force_no_cache || !$force_no_cache && !$is_cached) { if (!$hilitedept) { if ($dept_nr) { $hilitedept = $dept_nr; } } # Load the department list with oncall doctors include_once $root_path . 'include/care_api_classes/class_department.php'; $dept_obj = new Department(); $dept_DOC = $dept_obj->getAllActiveWithDOC(); include_once $root_path . 'include/care_api_classes/class_personell.php'; $pers_obj = new Personell(); $quicklist =& $pers_obj->getDOCQuicklist($dept_DOC, $pyear, $pmonth); } # Start Smarty templating here /** * LOAD Smarty */ # Note: it is advisable to load this after the inc_front_chain_lang.php so # that the smarty script can use the user configured template theme require_once $root_path . 'gui/smarty_template/smarty_care.class.php'; $smarty = new smarty_care('common'); # Title in toolbar $smarty->assign('sToolbarTitle', $LDDocsOnDuty); # href for help button $smarty->assign('pbHelp', "javascript:gethelp('docs_duty_quickview.php')"); # href for close button $smarty->assign('breakfile', $breakfile);