- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / registration_admission / gui_bridge / default / gui_print_sick_confirm.php
blobd24d2eee1d75cfdd565731cfcff63343b2b84f87
1 <?php
3 # Load std tags
4 require('./gui_bridge/default/gui_std_tags.php');
7 echo StdHeader();
8 echo setCharSet();
9 ?>
10 <TITLE><?php echo $title ?></TITLE>
12 </HEAD>
15 <BODY bgcolor="<?php echo $cfg['body_bgcolor'];?>" onLoad="window.print()"
16 <?php if (!$cfg['dhtml']){ echo 'link='.$cfg['body_txtcolor'].' alink='.$cfg['body_alink'].' vlink='.$cfg['body_txtcolor']; } ?>>
19 <?php
20 # Prepare some values for the template
21 if($insurance){
22 $TP_enc_insurance_name=$insurance['name'];
23 $TP_enc_insurance_nr=$insurance['insurance_nr'];
24 $TP_enc_insurance_subarea=$insurance['sub_area'];
27 # Extract the confirmation record for display
28 if($get_nr){
29 $sickconfirm=$single_obj->FetchRow();
30 }elseif(is_object($sickconfirm_obj)){
31 $sickconfirm=$sickconfirm_obj->FetchRow();
34 # Take over the dept number
35 $dept_nr=$sickconfirm['dept_nr'];
37 $TP_insco_1='AOK';
38 $TP_insco_2='BKK';
39 $TP_insco_3='KKH';
40 $TP_insco_4='TKK';
41 $TP_insco_5='HKH';
42 $TP_insco_6='BGG';
45 $TP_date_birth=formatDate2Local($date_birth,$date_format);
46 $TP_care_logo=createLogo($root_path,'care_logo.gif','0','right');
47 # Signature stamp of the department
48 $TP_dept_sigstamp=nl2br($sickconfirm['sig_stamp']);
49 # Logo of the department
50 $TP_width='';
51 # Logo of the department
52 $logobuff=$root_path.'gui/img/logos_dept/dept_'.$dept_nr.'.'.$sickconfirm['logo_mime_type'];
53 if(file_exists($logobuff)){
54 $TP_dept_logo=$logobuff;
55 # Check the logo dimensions
56 $logosize=GetImageSize($logobuff);
57 # If height > $logo_ht_limit, use limit
58 if($logosize[1]>$logo_ht_limit) $TP_height='height='.$logo_ht_limit;
59 else $TP_height='height='.$logosize[1];
60 }else{
61 $TP_dept_logo=$root_path.'gui/img/common/default/pixel.gif'; # Else output a transparent pixel
64 $TP_date_end=formatDate2Local($sickconfirm['date_end'],$date_format);
65 $TP_date_start=formatDate2Local($sickconfirm['date_start'],$date_format);
66 $TP_date_confirm=formatDate2Local($sickconfirm['date_confirm'],$date_format);
68 $TP_diagnosis=nl2br($sickconfirm['diagnosis']);
70 # Get the address of the hospital from the global config table
71 $glob_obj->getConfig('main_info_address');
72 $TP_main_address=nl2br($GLOBAL_CONFIG['main_info_address']);
74 # Load the template, default is "tp_show_sick_confirm.htm"
75 $TP_sickform=&$TP_obj->load('registration_admission/tp_show_sick_confirm'.$sickform_style.'.htm');
77 # Output template
78 eval("echo $TP_sickform;");
82 <?php
83 StdFooter();