/* echo '<tr> <td colspan=6><font face="verdana,arial" size=2> <img '.createComIcon($root_path,'warn.gif','0').'> <font color=red>'.$LDCachedInfo.'</font> <a href="'.$thisfile.URL_APPEND.'&force_no_cache=1&retpath='.$retpath.'">'.$LDClkNoCache.'</a> </td> </tr>'; */ $cached_plan = str_replace('URLAPPEND', URL_APPEND, $cached_plan); $cached_plan = str_replace('IMGALT', $LDShowActualPlan, $cached_plan); $cached_plan = str_replace('SHOWBUTTON', $LDShow, $cached_plan); echo str_replace('URLREDIRECTAPPEND', URL_REDIRECT_APPEND, $cached_plan); } else { $toggler = 0; # Start generating the NOC list $temp_out = ''; while (list($x, $v) = each($dept_OC)) { if (in_array($v['nr'], $quicklist)) { if ($dutyplan = $pers_obj->getNOCDutyplan($v['nr'], $pyear, $pmonth)) { $a = unserialize($dutyplan['duty_1_txt']); $r = unserialize($dutyplan['duty_2_txt']); $ha = unserialize($dutyplan['duty_1_pnr']); $hr = unserialize($dutyplan['duty_2_pnr']); if ($ha['ha' . ($plan_day - 1)]) { $OC_1 = $pers_obj->getPersonellInfo($ha['ha' . ($plan_day - 1)]); } if ($hr['hr' . ($plan_day - 1)]) { $OC_2 = $pers_obj->getPersonellInfo($hr['hr' . ($plan_day - 1)]); } } } else { if (isset($a)) { unset($a); }
if ($dept == "") { $dept = "plast"; } if ($pmonth == "") { $pmonth = date('n'); } if ($pyear == "") { $pyear = date('Y'); } $thisfile = basename($_SERVER['PHP_SELF']); require_once $root_path . 'include/care_api_classes/class_department.php'; $dept_obj = new Department(); $dept_obj->preloadDept($dept_nr); require_once $root_path . 'include/care_api_classes/class_personell.php'; $pers_obj = new Personell(); $dutyplan =& $pers_obj->getNOCDutyplan($dept_nr, $pyear, $pmonth); $firstday = date("w", mktime(0, 0, 0, $pmonth, 1, $pyear)); $maxdays = date("t", mktime(0, 0, 0, $pmonth, 1, $pyear)); switch ($retpath) { case "menu": $rettarget = $root_path . 'main/op-doku.php' . URL_APPEND; break; case "qview": $rettarget = 'nursing-or-dienst-schnellsicht.php' . URL_APPEND . '&hilitedept=' . $dept_nr; break; default: $rettarget = "javascript:window.history.back()"; } # Prepare page title $sTitle = "{$LDORNOC}::{$LDDutyPlan}::"; $LDvar = $dept_obj->LDvar();