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.2 - 2006-07-10
7 * GNU General Public License
8 * Copyright 2002,2003,2004,2005,2006 Elpidio Latorilla
11 * See the file "copy_notice.txt" for the licence notice
13 define('LANG_FILE','lab.php');
14 define('NO_2LEVEL_CHK',1);
15 require_once($root_path.'include/inc_front_chain_lang.php');
17 $breakfile=$root_path.'main/startframe.php'.URL_APPEND
;
18 // reset all 2nd level lock cookies
19 require($root_path.'include/inc_2level_reset.php');
21 # Start Smarty templating here
26 # Note: it is advisable to load this after the inc_front_chain_lang.php so
27 # that the smarty script can use the user configured template theme
29 require_once($root_path.'gui/smarty_template/smarty_care.class.php');
30 $smarty = new smarty_care('common');
32 # Module title in the toolbar
34 $smarty->assign('sToolbarTitle',$LDLab);
37 $smarty->assign('pbHelp',"javascript:gethelp('submenu1.php','$LDLab')");
39 $smarty->assign('breakfile',$breakfile);
42 $smarty->assign('title',$LDLab);
44 # Medical lab submenu block
46 $smarty->assign('LDMedLab',$LDMedLab);
48 $smarty->assign('LDMedLabTestRequest',"<a href=\"labor_test_request_pass.php?sid=$sid&lang=$lang&target=chemlabor&user_origin=lab\">$LDTestRequest</a>");
49 $smarty->assign('LDTestRequestChemLabTxt',$LDTestRequestChemLabTxt);
51 $smarty->assign('LDMedLabTestReception',"<a href=\"labor_test_request_pass.php?sid=$sid&lang=$lang&target=admin&subtarget=chemlabor&user_origin=lab\">$LDTestReception</a>");
52 $smarty->assign('LDTestReceptionTxt',$LDTestReceptionTxt);
54 $smarty->assign('LDSeeData',"<a href=\"labor_datasearch_pass.php?sid=$sid&lang=$lang&route=validroute\">$LDSeeData </a>");
55 $smarty->assign('LDSeeLabData',$LDSeeLabData);
57 $smarty->assign('LDNewData',"<a href=\"labor_datainput_pass.php?sid=$sid&lang=$lang\">$LDNewData</a>");
58 $smarty->assign('LDEnterLabData',$LDEnterLabData);
60 # Pathology lab submenu block
62 $smarty->assign('LDPathLab',$LDPathLab);
64 $smarty->assign('LDPathLabTestRequest',"<a href=\"labor_test_request_pass.php?sid=$sid&lang=$lang&target=patho&user_origin=lab\">$LDTestRequest</a>");
65 $smarty->assign('LDTestRequestPathoTxt',$LDTestRequestPathoTxt);
67 $smarty->assign('LDPathLabTestReception',"<a href=\"labor_test_request_pass.php?sid=$sid&lang=$lang&target=admin&subtarget=patho&user_origin=lab\">$LDTestReception</a>");
69 # Bacteriology lab submenu block
71 $smarty->assign('LDBacLab',$LDBacLab);
73 $smarty->assign('LDBacLabTestRequest',"<a href=\"labor_test_request_pass.php?sid=$sid&lang=$lang&target=baclabor&user_origin=lab\">$LDTestRequest</a>");
74 $smarty->assign('LDTestRequestBacterioTxt',$LDTestRequestBacterioTxt);
76 $smarty->assign('LDBacLabTestReception',"<a href=\"labor_test_request_pass.php?sid=$sid&lang=$lang&target=admin&subtarget=baclabor&user_origin=lab\">$LDTestReception</a>");
78 # Blood lab submenu block
80 $smarty->assign('LDBloodBank',$LDBloodBank);
82 $smarty->assign('LDBloodRequest',"<a href=\"labor_test_request_pass.php?sid=$sid&lang=$lang&target=blood&user_origin=lab\">$LDBloodRequest</a>");
83 $smarty->assign('LDBloodRequestTxt',$LDBloodRequestTxt);
85 $smarty->assign('LDBloodTestReception',"<a href=\"labor_test_request_pass.php?sid=$sid&lang=$lang&target=admin&subtarget=blood&user_origin=lab\">$LDTestReception</a>");
87 # Test parameters admin submenu block
89 $smarty->assign('LDAdministration',$LDAdministration);
91 $smarty->assign('LDTestParameters',"<a href=\"labor_test_param_edit_pass.php?sid=$sid&lang=$lang&user_origin=lab\">$LDTestParameters</a>");
92 $smarty->assign('LDTestParametersTxt',$LDTestParametersTxt);
93 $smarty->assign('LDTestGroups',"<a href=\"labor_test_group_edit_pass.php?sid=$sid&lang=$lang&user_origin=lab\">$LDTestGroups</a>");
94 $smarty->assign('LDTestGroupsTxt',$LDTestGroupsTxt);
96 # Assign the submenu to the mainframe center block
98 $smarty->assign('sMainBlockIncludeFile','laboratory/submenu_lab.tpl');
101 * show Mainframe Template
104 $smarty->display('common/mainframe.tpl');