# Get the cached plan
$cached_plan = '';
$is_cached = $core->getDBCache('NOCS_' . $plan_date, $cached_plan);
if (!$is_cached || $is_cached && $force_no_cache) {
    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_OC = $dept_obj->getAllActiveWithNOC();
    include_once $root_path . 'include/care_api_classes/class_personell.php';
    $pers_obj = new Personell();
    $quicklist =& $pers_obj->getNOCQuicklist($dept_OC, $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', "{$LDORNOC} :: {$LDQuickView}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('op_duty.php','quick')");
# href for close button
$smarty->assign('breakfile', $breakfile);