$datum = date('Y-m-d'); $zeit = date('H:m:s'); $toggler = 0; // init sql dbase $dbtable = 'care_admission_patient'; $fieldname = array($LDPatListElements[4], $LDLastName, $LDName, $LDBirthDate); if (!isset($searchkey)) { $searchkey = ''; } if (!isset($mode)) { $mode = ''; } if (isset($mode) && $mode == 'search' && !empty($searchkey)) { include_once $root_path . 'include/care_api_classes/class_encounter.php'; $enc_obj = new Encounter(); $admission = $enc_obj->searchInpatientNotInWardBasicInfo($searchkey); include_once $root_path . 'include/care_api_classes/class_globalconfig.php'; $GLOBAL_CONFIG = array(); $glob_obj = new GlobalConfig($GLOBAL_CONFIG); $glob_obj->getConfig('patient_%'); } # 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'); # Title in toolbar $smarty->assign('sToolbarTitle', "{$LDAssignOcc} {$s}");