2 error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
);
3 require('./roots.php');
4 require($root_path.'include/inc_environment_global.php');
6 * CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
7 * GNU General Public License
8 * Copyright 2002,2003,2004,2005 Elpidio Latorilla
11 * See the file "copy_notice.txt" for the licence notice
14 $lang_tables[]='actions.php';
15 $lang_tables[]='prompt.php';
16 $lang_tables[]='aufnahme.php';
17 define('LANG_FILE','radio.php');
18 # Resolve the local user based on the origin of the script
19 require_once('include/inc_local_user.php');
20 //define('NO_2LEVEL_CHK',1);
21 $local_user='ck_radio_user';
22 require_once($root_path.'include/inc_front_chain_lang.php');
25 require('include/inc_breakfile.php');
27 $thisfile=basename(__FILE__
);
29 $HTTP_SESSION_VARS['sess_file_return']=$thisfile;
31 if(empty($target)) $target='search';
33 # Start Smarty templating here
38 # Note: it is advisable to load this after the inc_front_chain_lang.php so
39 # that the smarty script can use the user configured template theme
41 require_once($root_path.'gui/smarty_template/smarty_care.class.php');
42 $smarty = new smarty_care('nursing');
45 $smarty->assign('sToolbarTitle',"$LDUploadDicom :: $LDSearch ");
48 $smarty->assign('pbBack',FALSE);
50 # href for help button
51 $smarty->assign('pbHelp',"javascript:gethelp('patient_search.php')");
53 # href for close button
54 $smarty->assign('breakfile',$breakfile);
57 $smarty->assign('sWindowTitle',"$LDUploadDicom :: $LDSearch ");
59 # Body onLoad javascript code
61 $smarty->assign('sOnLoadJs','onLoad="document.searchform.searchkey.select()";');
63 # Start creating the search module
64 require_once($root_path.'include/care_api_classes/class_gui_search_person.php');
66 $psearch = & new GuiSearchPerson
;
68 $psearch->setTargetFile('upload.php');
70 $psearch->setCancelFile($breakfile);
72 $psearch->setPrompt($LDPlsFindPersonFirst);
74 # Set to TRUE if you want to auto display a single result
75 //$psearch->auto_show_byalphanumeric =TRUE;
76 # Set to TRUE if you want to auto display a single result based on a numeric keyword
77 # usually in the case of barcode scanner data
78 $psearch->auto_show_bynumeric
= TRUE;
80 $psearch->pretext
='<ul>';
93 $sTemp = ob_get_contents();
96 # Assign to page template object
97 $smarty->assign('sMainFrameBlockData',$sTemp);
102 $smarty->display('common/mainframe.tpl');