- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / include / inc_test_request_printout_patho.php
blob98192f0d8e6e014d510d60ee5a7ea6d32929e561
1 <?php
2 if($edit || $read_form){
3 $smarty->assign('barcode_label_single_large','<img src="'.$root_path.'main/imgcreator/barcode_label_single_large.php?sid='.$sid.'&lang='.$lang.'&fen='.$full_en.'&en='.$pn.'" width=282 height=178>');
6 $smarty->assign('formtitle',$formtitle);
7 $smarty->assign('LDTel',$LDTel);
8 $smarty->assign('LDEntryDate',$LDEntryDate);
9 $smarty->assign('LDJournalNumber',$LDJournalNumber);
10 $smarty->assign('LDBlockNumber',$LDBlockNumber);
11 $smarty->assign('LDDeepCuts',$LDDeepCuts);
12 $smarty->assign('LDSpecialDye',$LDSpecialDye);
13 $smarty->assign('LDImmuneHistoChem',$LDImmuneHistoChem);
14 $smarty->assign('LDHormoneReceptors',$LDHormoneReceptors);
15 $smarty->assign('LDSpecials',$LDSpecials);
16 //gjergji : new calendar
17 require_once ('../../js/jscalendar/calendar.php');
18 $calendar = new DHTML_Calendar('../../js/jscalendar/', $lang, 'calendar-system', true);
19 $calendar->load_files();
20 //end gjergji
21 # Collect buffer output
22 ob_start();
24 if($printmode){
25 if($stored_request['entry_date']!=DBF_NODATE) $smarty->assign('entry_date', formatDate2Local($stored_request['entry_date'],$date_format));
26 }else{
28 if($stored_request['status']=='pending'){
29 //gjergji : new calendar
30 $smarty->assign('entry_date',$calendar->show_calendar($calendar,$date_format,'entry_date',$stored_request['entry_date']));
31 //end gjergji
32 }else{
33 $smarty->assign('entry_date',@formatDate2Local($stored_request['entry_date'],$date_format));
37 printLabInterns('journal_nr');
38 $tpbuffer=ob_get_contents();
39 ob_clean();
41 $smarty->assign('val_journal_nr',$tpbuffer);
43 printLabInterns('blocks_nr');
44 $tpbuffer=ob_get_contents();
45 ob_clean();
47 $smarty->assign('val_blocks_nr',$tpbuffer);
49 printLabInterns('deep_cuts');
50 $tpbuffer=ob_get_contents();
51 ob_clean();
53 $smarty->assign('val_deep_cuts',$tpbuffer);
55 printLabInterns('special_dye');
56 $tpbuffer=ob_get_contents();
57 ob_clean();
59 $smarty->assign('val_special_dye',$tpbuffer);
61 printLabInterns('immune_histochem');
62 $tpbuffer=ob_get_contents();
63 ob_clean();
65 $smarty->assign('val_immune_histochem',$tpbuffer);
67 printLabInterns('hormone_receptors');
68 $tpbuffer=ob_get_contents();
69 ob_clean();
71 $smarty->assign('val_hormone_receptors',$tpbuffer);
73 printLabInterns('specials');
74 $tpbuffer=ob_get_contents();
75 ob_clean();
77 $smarty->assign('val_specials',$tpbuffer);
79 ob_end_clean();
81 if($stored_request['quick_cut']) $smarty->assign('input_quick_cut','<img '.createComIcon($root_path,'chkbox_chk.gif','0','absmiddle'));
82 else $smarty->assign('input_quick_cut','<img '.createComIcon($root_path,'chkbox_blk.gif','0','absmiddle'));
84 $smarty->assign('LDSpeedCut',$LDSpeedCut);
85 $smarty->assign('LDRelay',$LDRelayResult);
87 $smarty->assign('val_qc_phone',$stored_request['qc_phone']);
89 $smarty->assign('batch_nr',$batch_nr);
91 $smarty->assign('gifBatchBarcode',"<img src='".$root_path."classes/barcode/image.php?code=$batch_nr&style=68&type=I25&width=145&height=40&xres=2&font=5' border=0>");
94 if($stored_request['quick_diagnosis']) $smarty->assign('input_quick_diagnosis','<img '.createComIcon($root_path,'chkbox_chk.gif','0','absmiddle').'>');
95 else $smarty->assign('input_quick_diagnosis', '<img '.createComIcon($root_path,'chkbox_blk.gif','0','absmiddle').'>');
97 $smarty->assign('LDSpeedTest',$LDSpeedTest);
99 $smarty->assign('LDRelayResult',$LDRelayResult);
100 $smarty->assign('val_qd_phone',$stored_request['qd_phone']);
102 $smarty->assign('LDSpecialNotice',$LDSpecialNotice);
104 $smarty->assign('LDMatType',$LDMatType);
106 if($stored_request['material_type']=="pe") $tpbuffer='<img '.createComIcon($root_path,'radio_chk.gif','0','absmiddle');
107 else $tpbuffer='<img '.createComIcon($root_path,'radio_blk.gif','0','absmiddle');
108 $smarty->assign('input_material_type_pe',$tpbuffer.'>');
110 $smarty->assign('LDPE',$LDPE);
112 if($stored_request['material_type']=="op_specimen") $tpbuffer= '<img '.createComIcon($root_path,'radio_chk.gif','0','absmiddle');
113 else $tpbuffer= '<img '.createComIcon($root_path,'radio_blk.gif','0','absmiddle');
114 $smarty->assign('input_material_type_op_specimen',$tpbuffer.'>');
116 $smarty->assign('LDSpecimen',$LDSpecimen);
118 if($stored_request['material_type']=="shave") $tpbuffer= '<img '.createComIcon($root_path,'radio_chk.gif','0','absmiddle');
119 else $tpbuffer= '<img '.createComIcon($root_path,'radio_blk.gif','0','absmiddle');
120 $smarty->assign('input_material_type_shave',$tpbuffer.'>');
122 $smarty->assign('LDShave',$LDShave);
124 if($stored_request['material_type']=="cytology") $tpbuffer= '<img '.createComIcon($root_path,'radio_chk.gif','0','absmiddle');
125 else $tpbuffer= '<img '.createComIcon($root_path,'radio_blk.gif','0','absmiddle');
126 $smarty->assign('input_material_type_cytology',$tpbuffer.'>');
128 $smarty->assign('LDCytology',$LDCytology);
130 $smarty->assign('val_material_desc',nl2br(stripslashes($stored_request['material_desc'])));
132 $smarty->assign('LDLocalization',$LDLocalization);
133 $smarty->assign('gifVSpacer','<img src="'.$root_path.'gui/img/common/default/pixel.gif" border=0 width=20 height=45 align="left">');
135 $smarty->assign('val_localization',nl2br(stripslashes($stored_request['localization'])));
137 $smarty->assign('LDClinicalQuestions',$LDClinicalQuestions);
139 $smarty->assign('val_clinical_note',nl2br(stripslashes($stored_request['clinical_note'])));
141 $smarty->assign('LDExtraInfo',$LDExtraInfo);
142 $smarty->assign('LDExtraInfoSample',$LDExtraInfoSample);
144 $smarty->assign('val_extra_note',nl2br(stripslashes($stored_request['extra_note'])));
146 $smarty->assign('LDRepeatedTest',$LDRepeatedTest);
147 $smarty->assign('LDRepeatedTestPls',$LDRepeatedTestPls);
149 $smarty->assign('val_repeat_note',nl2br(stripslashes($stored_request['repeat_note'])));
151 $smarty->assign('LDForGynTests',$LDForGynTests);
153 $smarty->assign('LDLastPeriod',$LDLastPeriod);
154 $smarty->assign('val_gyn_last_period',stripslashes($stored_request['gyn_last_period']));
155 $smarty->assign('LDMenopauseSince',$LDMenopauseSince);
156 $smarty->assign('val_gyn_menopause_since',stripslashes($stored_request['gyn_menopause_since']));
157 $smarty->assign('LDHormoneTherapy',$LDHormoneTherapy);
158 $smarty->assign('val_gyn_hormone_therapy',stripslashes($stored_request['gyn_hormone_therapy']));
159 $smarty->assign('LDPeriodType',$LDPeriodType);
160 $smarty->assign('val_gyn_period_type',stripslashes($stored_request['gyn_period_type']));
161 $smarty->assign('LDHysterectomy',$LDHysterectomy);
162 $smarty->assign('val_gyn_hysterectomy',stripslashes($stored_request['gyn_hysterectomy']));
163 $smarty->assign('LDIUD',$LDIUD);
164 $smarty->assign('val_gyn_iud',stripslashes($stored_request['gyn_iud']));
165 $smarty->assign('LDGravidity',$LDGravidity);
166 $smarty->assign('val_gyn_gravida',stripslashes($stored_request['gyn_gravida']));
167 $smarty->assign('LDContraceptive',$LDContraceptive);
168 $smarty->assign('val_gyn_contraceptive',stripslashes($stored_request['gyn_contraceptive']));
170 $smarty->assign('LDOpDate',$LDOpDate);
171 $smarty->assign('inputOpDate',@formatDate2Local($stored_request['op_date'],$date_format));
173 $smarty->assign('LDDoctor',$LDDoctor);
174 $smarty->assign('LDDept',$LDDept);
175 $smarty->assign('val_doctor_sign',stripslashes($stored_request['doctor_sign']));