$smarty->assign('breakfile', 'javascript:window.close()'); # Window bar title $smarty->assign('sWindowTitle', ucfirst($result[name_last]) . "," . ucfirst($result[name_first]) . " " . $result[date_birth] . " " . $LDPatDataFolder); # Body Onload js $sOnLoadJs = 'onLoad="initwindow();'; if ($mode == 'changes_saved') { $sOnLoadJs = $sOnLoadJs . 'window.opener.location.reload();'; } $sOnLoadJs = $sOnLoadJs . '"'; $smarty->assign('sOnLoadJs', $sOnLoadJs); //-- get dept_nr if (isset($_SESSION['deptnr'])) { $dept_nr = $_SESSION['deptnr']; } $multi = new multi(); $vct = $multi->__genNumbers(); # if rooming list enabled $room = $vct[8] == 2 ? $room : 'GENERAL'; $pid = $enc_obj->EncounterExists($pn); $multi->doctorSTAT($_SESSION['sess_login_userid'], $pn); # Collect js code ob_start(); ?> <script language="javascript"> <!-- var urlholder; var changed_flag=0; function initwindow(){ if (window.focus) window.focus(); //window.resizeTo(800,600);
$lang_tables[] = 'prompt.php'; $lang_tables[] = 'departments.php'; define('LANG_FILE', 'nursing.php'); //define('NO_2LEVEL_CHK',1); // get current url < dennis . mollel @ yahoo . com $curpath = 'http'; if ($_SERVER["HTTPS"] == "on") { $curpath .= "s"; } $curpath .= "://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; $local_user = '******'; require_once $root_path . 'include/inc_front_chain_lang.php'; # create multi functional object include_once $root_path . 'include/care_api_classes/class_multi.php'; $multi_obj = new multi(); $vct = $multi_obj->__genNumbers(); /** * Set default values if not available from url */ //if (!isset($dept_nr)||empty($dept_nr)) { $dept_nr=$_SESSION['sess_dept_nr'];} # Default station must be set here !! if (!isset($pday) || empty($pday)) { $pday = date('d'); } if (!isset($pmonth) || empty($pmonth)) { $pmonth = date('m'); } if (!isset($pyear) || empty($pyear)) { $pyear = date('Y'); } $s_date = $pyear . '-' . $pmonth . '-' . $pday; if ($s_date == date('Y-m-d')) {
$vc .= $_POST['nhif'] == 1 ? '1|' : '0|'; # NHIF NUMBER $vc .= $_POST['diabetic'] == 1 ? '1|' : '0|'; # DIABETIC NUMBER $vc .= $_POST['nrooming'] == 1 ? '1|' : '2|'; # Enable/Disable Rooming List $vc .= $_POST['flagdiag'] == 1 ? '1|' : '0|'; # Patient Diagnosis flaging $vc .= $_POST['expire'] == 1 ? '1|' : '0|'; # User password Expiring Date $vc .= $_POST['nodisch'] == 1 ? '1' : '0'; # User password Expiring Date # save outputs $saved = $nb->_saveNumbers($vc); # get saved numbers $val = $nb->__genNumbers(); } ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd"> <?php html_rtl($lang); ?> <HEAD> <?php echo setCharSet(); ?> <?php require $root_path . 'include/inc_js_gethelp.php'; require $root_path . 'include/inc_css_a_hilitebu.php'; ?>
# Consider the early morning hours to belong to the past day if (date('H.i') < DOC_CHANGE_TIME) { $offset_day--; } if ($pnr1 = $duty1['ha' . $offset_day]) { $person1 =& $pers_obj->getPersonellInfo($pnr1); } if (SHOW_DOC_2 && ($pnr2 = $duty2['hr' . $offset_day])) { $person2 =& $pers_obj->getPersonellInfo($pnr2); } #### End of routine to fetch doctors on duty } # load config options include_once $root_path . 'include/care_api_classes/class_multi.php'; $cd_obj = new multi(); $vct = $cd_obj->__genNumbers(); # 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('nursing'); # Reload the page after 60 seconds $smarty->assign('sReloadPage', TRUE); $smarty->assign('sReloadTarget', $REQUEST_URI . '&refreshed=1'); $smarty->assign('sReloadDelay', 300); #print '<hr />requested: '.$REQUEST_URI.'<hr />'; # Title in toolbar $smarty->assign('sToolbarTitle', $dept . " :: {$LDOutpatientClinic} (" . formatDate2Local($s_date, $date_format, '', '', $null = '') . ")");