- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / radiology / radiolog.php
blob957cb89296a9e93b25fcc77eb5d2d75933778dc1
1 <?php
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
8 * elpidio@care2x.org,
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
23 /**
24 * LOAD Smarty
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);
45 # Window bar title
46 $smarty->assign('title',$LDRadio);
48 # Collect javascript
49 ob_start();
52 <script language="javascript">
53 <!--
54 var urlholder;
56 function srcxray(){
57 <?php
58 if($cfg['dhtml'])
60 echo 'w=window.parent.screen.width;
61 h=window.parent.screen.height;
64 else echo 'w=800;
65 h=600;
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) );
69 <?php
70 if($cfg['dhtml']) echo '
71 window.radiologwin.moveTo(0,0);';
74 //-->
75 </script>
76 <script language="javascript" src="<?php echo $root_path; ?>js/dicom.js"></script>
78 <?php
80 $sTemp = ob_get_contents();
81 ob_end_clean();
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,
100 $LDTestReceptionTxt,
101 $LDDicomImagesTxt,
102 $LDUploadDicomTxt,
103 $LDSelectViewerTxt,
104 $LDNewsTxt
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
119 $iRunner = 0;
121 while(list($x,$v)=each($aSubMenuItem)){
122 $sTemp='';
123 ob_start();
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();
129 ob_end_clean();
130 $iRunner++;
131 $smarty->assign($x,$sTemp);
134 # Assign the submenu to the mainframe center block
136 $smarty->assign('sMainBlockIncludeFile','radiology/submenu_radiology.tpl');
139 * show Template
142 $smarty->display('common/mainframe.tpl');