4 require('./gui_bridge/default/gui_std_tags.php');
10 <TITLE
><?php
echo $title ?
></TITLE
>
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']; } ?
>>
20 # Prepare some values for the template
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
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'];
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
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];
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');
78 eval("echo $TP_sickform;");