- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / radiology / dicom_launch_single.php
blob0e55301938578407bac119e96e68e9d61c9d93b9
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');
6 # Switch to the selected dicom viewer module
8 switch($HTTP_SESSION_VARS['sess_dicom_viewer']){
9 case 'raimjava':
10 header("location:raimjava/raimjava_launch_single.php".URL_REDIRECT_APPEND."&pid=$pid&img_nr=$img_nr&fn=$fn");
11 exit;
12 default:
13 # Default viewer
16 /*** CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02
17 * GNU General Public License
18 * Copyright 2002,2003,2004,2005 Elpidio Latorilla
19 * elpidio@care2x.org,
21 * See the file 'copy_notice.txt' for the licence notice
23 define('LANG_FILE','actions.php');
24 //define('LANG_FILE','radio.php');
25 //define('NO_2LEVEL_CHK',1);
26 $local_user='ck_radio_user';
27 require_once($root_path.'include/inc_front_chain_lang.php');
28 require_once($root_path.'global_conf/inc_remoteservers_conf.php');
30 $thisfile=basename(__FILE__);
32 $breakfile='patient_search.php'.URL_APPEND;
34 $nogo=false;
36 if(isset($img_nr)&&$img_nr&&isset($pid)&&$pid&&isset($fn)&&$fn){
37 //echo $img_obj->getLastQuery();
38 $imgpath=$root_path.$dicom_img_localpath.$pid.'/'.$img_nr.'/'.$fn;
39 if(!file_exists($imgpath)){
40 $nogo=true;
42 }else{
43 $nogo=true;
45 # If no go, get out of here
46 if($nogo){
47 //echo $imgpath;
48 header("location:upload.php".URL_REDIRECT_APPEND."&mode=show&pid=$pid&nr=$img_nr");
49 exit;
53 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
54 <?php html_rtl($lang); ?>
55 <HEAD>
56 <TITLE>
57 <?php echo $LDDicomViewer ?>
58 </TITLE>
59 </HEAD>
60 <BODY topmargin=0 leftmargin=0 marginwidth=0 marginheight=0><font face="Verdana, Arial" size=1><?php
61 if(isset($pop_only)&&$pop_only){
63 <a href="javascript:window.close()">&nbsp;>> <?php echo $LDClose ?> <<</a>
64 <?php
65 }else{
67 <a href="upload.php<?php echo URL_APPEND."&saved=1&mode=show&pid=$pid&nr=$img_nr"; ?>"><font size=1>&nbsp;<< <?php echo $LDBack ?></font></a>
68 <?php
70 ?></font>
71 <br>
72 <APPLET
73 CODEBASE = "."
74 CODE = "dicomviewer.Viewer.class"
75 NAME = "Viewer.java"
76 WIDTH = 100%
77 HEIGHT = 100%
78 HSPACE = 0
79 VSPACE = 0
80 ALIGN = middle >
81 <PARAM NAME = "tmpSize" VALUE = "1">
82 <PARAM NAME = "NUM" VALUE = "1">
83 <PARAM NAME = "currentNo" VALUE = "0">
84 <PARAM NAME = "dicURL" VALUE = "http://<?php echo $main_domain ?>/imed/<?php echo $top_dir ?>dicomviewer/Dicom.dic">
85 <PARAM NAME = "imgURL0" VALUE = "http://<?php echo "$main_domain/imed/$dicom_img_localpath$pid/$img_nr/$fn" ?>">
86 </APPLET>
87 </BODY>
88 </HTML>