2 error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
);
3 require('./roots.php');
4 require($root_path.'include/inc_environment_global.php');
5 /*** CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
6 * GNU General Public License
7 * Copyright 2002,2003,2004,2005 Elpidio Latorilla
10 * See the file "copy_notice.txt" for the licence notice
12 define('LANG_FILE','radio.php');
13 define('NO_2LEVEL_CHK',1);
14 require_once($root_path.'include/inc_front_chain_lang.php');
15 // reset all 2nd level lock cookies
16 require($root_path.'include/inc_2level_reset.php');
18 $thisfile=basename(__FILE__
);
19 $breakfile=$root_path.'main/startframe.php'.URL_APPEND
;
20 $HTTP_SESSION_VARS['sess_path_referer']=$top_dir.$thisfile;
22 # Start Smarty templating here
27 # Note: it is advisable to load this after the inc_front_chain_lang.php so
28 # that the smarty script can use the user configured template theme
30 require_once($root_path.'gui/smarty_template/smarty_care.class.php');
31 $smarty = new smarty_care('common');
33 # Create a helper smarty object without reinitializing the GUI
34 $smarty2 = new smarty_care('common', FALSE);
36 # Added for the common header top block
38 $smarty->assign('sToolbarTitle',$LDRadio);
40 # Added for the common header top block
41 $smarty->assign('pbHelp',"javascript:gethelp('submenu1.php','$LDRadio')");
43 $smarty->assign('breakfile',$breakfile);
46 $smarty->assign('title',$LDRadio);
52 <script language
="javascript">
60 echo 'w=window.parent.screen.width;
61 h=window.parent.screen.height;
68 radiologwin
=window
.open("radiolog-xray-javastart.php?sid=<?php echo "$sid&lang
=$lang" ?>&user=<?php echo $aufnahme_user.'"' ?>,"radiologwin","menubar=no,resizable=yes,scrollbars=yes, width=" + (w-15) + ", height=" + (h-60) );
70 if($cfg['dhtml
']) echo '
71 window
.radiologwin
.moveTo(0,0);';
76 <script language="javascript" src="<?php echo $root_path; ?>js/dicom.js"></script>
80 $sTemp = ob_get_contents();
83 # Append javascript to JavaScript block
85 $smarty->append('JavaScript
',$sTemp);
87 # Prepare the submenu icons
89 $aSubMenuIcon=array(createComIcon($root_path,'bestell
.gif
','0'),
90 createComIcon($root_path,'waiting
.gif
','0'),
91 createComIcon($root_path,'torso
.gif
','0'),
92 createComIcon($root_path,'torso_br
.gif
','0'),
93 createComIcon($root_path,'eye
.gif
','0'),
94 createComIcon($root_path,'bubble
.gif
','0')
97 # Prepare the submenu item descriptions
99 $aSubMenuText=array($LDTestRequestRadioTxt,
107 # Prepare the submenu item links indexed by their template tags
109 $aSubMenuItem=array('LDTestRequestRadio
' => "<a href=\"".$root_path."modules/laboratory/labor_test_request_pass.php".URL_APPEND."&target=radio&user_origin=lab\">$LDTestRequestRadio</a>",
110 'LDTestReception
' => "<a href=\"".$root_path."modules/laboratory/labor_test_request_pass.php".URL_APPEND."&target=admin&subtarget=radio&user_origin=lab\" >$LDTestReception</a>",
111 'LDDicomImages
' => "<a href=\"radio_pass.php".URL_APPEND."&target=view\">$LDDicomImages</a>",
112 'LDUploadDicom
' => "<a href=\"radio_pass.php".URL_APPEND."&target=upload\">$LDUploadDicom</a>",
113 'LDSelectViewer
' => "<a href=\"javascript:popSelectDicomViewer('$sid','$lang')\">$LDSelectViewer</a>",
114 'LDNews
' => "<a href=\"".$root_path."modules/news/newscolumns.php". URL_APPEND."&dept_nr=19\">$LDNews</a>"
117 # Create the submenu rows
121 while(list($x,$v)=each($aSubMenuItem)){
124 if($cfg['icons
'] != 'no_icon
') $smarty2->assign('sIconImg
','<img
'.$aSubMenuIcon[$iRunner].'>');
125 $smarty2->assign('sSubMenuItem
',$v);
126 $smarty2->assign('sSubMenuText
',$aSubMenuText[$iRunner]);
127 $smarty2->display('common
/submenu_row
.tpl
');
128 $sTemp = ob_get_contents();
131 $smarty->assign($x,$sTemp);
134 # Assign the submenu to the mainframe center block
136 $smarty->assign('sMainBlockIncludeFile
','radiology
/submenu_radiology
.tpl
');
142 $smarty->display('common
/mainframe
.tpl
');