* See the file "copy_notice.txt" for the licence notice */ define('LANG_FILE', 'prompt.php'); $local_user = '******'; require_once $root_path . 'include/inc_front_chain_lang.php'; # Do some filtering if (isset($mode) && $mode == 'cancel' && isset($encounter_nr) && $encounter_nr) { include_once $root_path . 'include/care_api_classes/class_access.php'; # Create user access object $user =& new Access($cby, $pw); if ($user->isKnown() && $user->hasValidPassword() && $user->isNotLocked()) { $is_cancelled = 0; include_once $root_path . 'include/care_api_classes/class_encounter.php'; $encounter = new Encounter(); //if($encounter->Cancel($encounter_nr,$cby)){ if ($encounter->Cancel($encounter_nr, $user->Name())) { header("location:" . basename(__FILE__) . URL_REDIRECT_APPEND . "&is_cancelled=1"); exit; } else { echo $LDDbNoSave . '<p>' . $encounter->getLastQuery(); } } else { $error_msg = $LDWrongLoginPW; } } elseif ((!isset($is_cancelled) || !$is_cancelled) && $submitted) { header("location:aufnahme_daten_zeigen.php" . URL_REDIRECT_APPEND . "&encounter_nr={$encounter_nr}"); exit; } else { //$error_msg=$LDTellEdpIfPersist; } ?>