- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / radiology / radiolog-xray-pat-list.php
blob174ed8457aa246d9aefe4332f7a21be1a7937155
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 beta 2.0.1 - 2004-07-04
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');
16 $thisfile=basename(__FILE__);
18 if($mode=='search'&&!empty($sk)){
20 if(!isset($db) || !$db) include_once($root_path.'include/inc_db_makelink.php');
21 if($dblink_ok) {
22 /* Load date formatter */
23 include_once($root_path.'include/inc_date_format_functions.php');
24 }else { echo "$LDDbNoLink<br>"; }
26 include_once($root_path.'include/care_api_classes/class_encounter.php');
27 $enc_obj=new Encounter;
28 $result=$enc_obj->searchEncounterBasicInfo($sk);
30 include_once($root_path.'include/care_api_classes/class_globalconfig.php');
31 $GLOBAL_CONFIG=array();
32 $glob_obj=new GlobalConfig($GLOBAL_CONFIG);
33 $glob_obj->getConfig('patient_%');
37 <?php html_rtl($lang); ?>
38 <head>
39 <?php echo setCharSet(); ?>
41 <style type="text/css" name="s2">
42 .v12{ font-family:verdana,arial; color:#000000; font-size:12;}
43 </style>
45 <script language="javascript">
46 <!--
48 function demopreview(x)
50 window.parent.PREVIEWFRAME.location.replace('radiolog-xray-display-film.php?sid=<?php echo "$sid&lang=$lang" ?>&mode=preview');
51 window.parent.DIAGNOSISFRAME.location.replace('radiolog-xray-diagnosis.php?sid=<?php echo "$sid&lang=$lang" ?>&mode=preview');
52 document.plist.xray_pic[x].checked=true;
55 function hilite_bg(x)
58 // -->
59 </script>
60 </head>
61 <body leftmargin=0 marginwidth=0>
63 <form name="plist">
64 <table border=0 cellpadding=0 cellspacing=0 width="100%">
65 <tr>
66 <td class="v12"><b>&nbsp;<?php echo $LDCaseNr ?>.</b></td>
67 <td class="v12"><b>&nbsp;<?php echo $LDLastName ?></b></td>
68 <td class="v12"><b>&nbsp;<?php echo $LDName ?></b></td>
69 <td class="v12"><b>&nbsp;<?php echo $LDBday ?></b></td>
70 <td class="v12"><b>&nbsp;<?php echo $LDSelect ?></b></td>
71 <td class="v12"><b>&nbsp;<?php echo $LDShootDate ?></b></td>
72 <td class="v12"><b>&nbsp;<?php echo $LDFullScreen ?></b></td>
73 </tr>
74 <tr>
75 <td colspan=7 bgcolor="#0000ff"></td>
76 </tr>
77 <?php
78 if($mode=='search'&&$enc_obj->record_count)
80 $i=0;
81 $img_arrow=createComIcon($root_path,'bul_arrowblusm.gif','0','absmiddle'); // Load the torse icon image
82 $img_torso=createComIcon($root_path,'torso.gif','0'); // Load the torse icon image
83 while($pdata=$result->FetchRow())
85 echo'
86 <tr>
87 <td class="v12">&nbsp;';
88 switch ($pdata['encounter_class_nr'])
90 case '1': echo ($pdata['encounter_nr'] + $GLOBAL_CONFIG['patient_inpatient_nr_adder']);
91 break;
92 case '2': echo ($pdata['encounter_nr'] + $GLOBAL_CONFIG['patient_outpatient_nr_adder']);
93 break;
94 default: echo ($pdata['encounter_nr'] + $GLOBAL_CONFIG['patient_inpatient_nr_adder']);
96 echo '&nbsp;</td>
97 <td class="v12">&nbsp;'.$pdata['name_last'].'&nbsp;</td>
98 <td class="v12">&nbsp;'.$pdata['name_first'].'&nbsp;</td>
99 <td class="v12">&nbsp;'.formatDate2Local($pdata['date_birth'],$date_format).'&nbsp;</td>
100 <td class="v12">&nbsp;<a href="javascript:demopreview('.$i.')">'.$LDPreviewReport.' <img '.$img_arrow.'></a><input type="radio" name="xray_pic" value="1" onFocus="demopreview('.$i.')" >&nbsp;</td>
101 <td class="v12">&nbsp; demo &nbsp;</td>
102 <td class="v12"><a href="javascript:window.top.location.replace(\'sampledicom.htm\')" title="'.$LDFullScreen.'"><img '.$img_torso.'></a></td>
103 </tr>
104 <tr>
105 <td colspan=7 bgcolor="#0000ff"></td>
106 </tr>';
107 $i++;
108 /* echo '&nbsp;</td>
109 <td class="v12">&nbsp;'.$pdata['name_last'].'&nbsp;</td>
110 <td class="v12">&nbsp;'.$pdata['name_first'].'&nbsp;</td>
111 <td class="v12">&nbsp;'.formatDate2Local($pdata['date_birth'],$date_format).'&nbsp;</td>
112 <td class="v12">&nbsp;<a href="javascript:demopreview('.$i.')">'.$LDPreviewReport.' <img '.$img_arrow.'></a><input type="radio" name="xray_pic" value="1" onFocus="demopreview('.$i.')" >&nbsp;</td>
113 <td class="v12">&nbsp; demo &nbsp;</td>
114 <td class="v12"><a href="javascript:window.top.location.replace(\'radiolog-xray-javastart.php'.URL_REDIRECT_APPEND.'&mode=display1\')" title="'.$LDFullScreen.'"><img '.$img_torso.'></a></td>
115 </tr>
116 <tr>
117 <td colspan=7 bgcolor="#0000ff"></td>
118 </tr>';
119 $i++;
120 */ }
121 echo '<input type="hidden" name="xray_pic" value="">';
124 </table>
125 </form>
127 </body>
128 </html>