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
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');
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); ?
>
39 <?php
echo setCharSet(); ?
>
41 <style type
="text/css" name
="s2">
42 .v12
{ font
-family
:verdana
,arial
; color
:#000000; font-size:12;}
45 <script language
="javascript">
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;
61 <body leftmargin
=0 marginwidth
=0>
64 <table border
=0 cellpadding
=0 cellspacing
=0 width
="100%">
66 <td
class="v12"><b
> 
;<?php
echo $LDCaseNr ?
>.</b
></td
>
67 <td
class="v12"><b
> 
;<?php
echo $LDLastName ?
></b
></td
>
68 <td
class="v12"><b
> 
;<?php
echo $LDName ?
></b
></td
>
69 <td
class="v12"><b
> 
;<?php
echo $LDBday ?
></b
></td
>
70 <td
class="v12"><b
> 
;<?php
echo $LDSelect ?
></b
></td
>
71 <td
class="v12"><b
> 
;<?php
echo $LDShootDate ?
></b
></td
>
72 <td
class="v12"><b
> 
;<?php
echo $LDFullScreen ?
></b
></td
>
75 <td colspan
=7 bgcolor
="#0000ff"></td
>
78 if($mode=='search'&&$enc_obj->record_count
)
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())
87 <td class="v12"> ';
88 switch ($pdata['encounter_class_nr'])
90 case '1': echo ($pdata['encounter_nr'] +
$GLOBAL_CONFIG['patient_inpatient_nr_adder']);
92 case '2': echo ($pdata['encounter_nr'] +
$GLOBAL_CONFIG['patient_outpatient_nr_adder']);
94 default: echo ($pdata['encounter_nr'] +
$GLOBAL_CONFIG['patient_inpatient_nr_adder']);
97 <td class="v12"> '.$pdata['name_last'].' </td>
98 <td class="v12"> '.$pdata['name_first'].' </td>
99 <td class="v12"> '.formatDate2Local($pdata['date_birth'],$date_format).' </td>
100 <td class="v12"> <a href="javascript:demopreview('.$i.')">'.$LDPreviewReport.' <img '.$img_arrow.'></a><input type="radio" name="xray_pic" value="1" onFocus="demopreview('.$i.')" > </td>
101 <td class="v12"> demo </td>
102 <td class="v12"><a href="javascript:window.top.location.replace(\'sampledicom.htm\')" title="'.$LDFullScreen.'"><img '.$img_torso.'></a></td>
105 <td colspan=7 bgcolor="#0000ff"></td>
109 <td class="v12"> '.$pdata['name_last'].' </td>
110 <td class="v12"> '.$pdata['name_first'].' </td>
111 <td class="v12"> '.formatDate2Local($pdata['date_birth'],$date_format).' </td>
112 <td class="v12"> <a href="javascript:demopreview('.$i.')">'.$LDPreviewReport.' <img '.$img_arrow.'></a><input type="radio" name="xray_pic" value="1" onFocus="demopreview('.$i.')" > </td>
113 <td class="v12"> demo </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>
117 <td colspan=7 bgcolor="#0000ff"></td>
121 echo '<input type="hidden" name="xray_pic" value="">';