- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / include / inc_test_findings_form_patho.php
blob77baafebbe0b2ad06190ab6e2a1d4a825cc28815
1 <?php
3 function createDataBlock($param){
4 global $stored_findings, $edit;
6 if ($edit){
7 echo '
8 <textarea name="'.$param.'" cols=82 rows=4 wrap="physical">'.stripslashes($stored_findings[$param]).'</textarea>';
9 }else{
10 echo '
11 <blockquote><font color="#000000" size=2>'.nl2br(stripslashes($stored_findings[$param])).'</font></blockquote>';
15 function createInputBlock($param, $value){
16 global $stored_findings, $date_format, $edit, $lang;
18 if ($edit){
19 echo '&nbsp;<input type="text" name="'.$param.'" value="'.$value.'" size=';
20 if ($param=="doctor_id") echo '35 maxlength=35>';
21 else echo '10 maxlength=10 onBlur="IsValidDate(this,\''.$date_format.'\')" onKeyUp="setDate(this,\''.$date_format.'\',\''. $lang.'\')">';
22 }else{
23 echo '&nbsp;<font color="#000000" size=2>'.$value.'</font><br>&nbsp;';
28 <table cellpadding="0" cellspacing=1 border="0" width=700>
29 <tr valign="top" bgcolor="<?php echo $bgc1 ?>">
30 <td width=35%><div class="fva2_ml10">
31 <font size=5 color="#0000ff">
32 <b><?php echo $LDTestFindings ?></b></font><br>
33 <font size=3 color="#000099"><b><?php echo $formtitle ?></b></font><br>
34 <font size=1 color="#000099"><?php echo $global_address[$subtarget].'<br>'.$LDTel.'&nbsp;'.$global_phone[$subtarget] ?></font>
35 </td>
36 <td align="right" width=65%>
37 <font size=1 color="#000099">
38 <?php
39 echo $batch_nr.'&nbsp;&nbsp;<br>';
40 echo "<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>";
41 ?>&nbsp;&nbsp;<br>
42 <?php
44 echo $LDEntryDate.'&nbsp;&nbsp;<br>';
45 if($entry_date!="0000-00-00") echo formatDate2Local($entry_date,$date_format);
47 ?>&nbsp;&nbsp;</font>
48 </td>
49 </tr>
51 <tr bgcolor="<?php echo $bgc1 ?>">
52 <td valign="top" align="right"><font color="#000099" size=2>
53 <?php
54 echo $LDCaseNr.'<br>'.$LDFamilyName.'<br>'.$LDName.'<br>'.$LDBDay;
56 </td>
57 <td valign="top">
58 <div class="fva0_ml10"><font color="#000000" size=2>
59 <?php
60 echo $full_en.'<br>'.$result['name_last'].'<br>'.$result['name_first'].'<br>'.formatDate2Local($result['date_birth'],$date_format);
62 </div>
63 </td>
64 </tr>
66 <tr bgcolor="<?php echo $bgc1 ?>">
67 <td valign="top" colspan=2><div class="fva0_ml10"><font color="#000099">
68 <?php echo $LDMaterial ?><br>
69 <?php createDataBlock('material') ?>
70 </div>
71 </td>
72 </tr>
74 <tr bgcolor="<?php echo $bgc1 ?>">
75 <td valign="top" colspan=2 ><div class=fva0_ml10><font color="#000099">
76 <?php echo $LDMACROFindings ?><br>
77 <?php createDataBlock('macro') ?>
78 </div>
79 </td>
80 </tr>
82 <tr bgcolor="<?php echo $bgc1 ?>">
83 <td valign="top" colspan=2 ><div class=fva0_ml10><font color="#000099">
84 <?php echo $LDMicroFindings ?><br>
85 <?php createDataBlock('micro') ?>
86 </div>
87 </td>
88 </tr>
90 <tr bgcolor="<?php echo $bgc1 ?>">
91 <td valign="top" colspan=2 ><div class=fva0_ml10><font color="#000099">
92 <?php echo $LDAddFindings ?><br>
93 <?php createDataBlock('findings') ?>
94 </div>
95 </td>
96 </tr>
98 <tr bgcolor="<?php echo $bgc1 ?>">
99 <td valign="top" colspan=2 ><div class=fva0_ml10><font color="#000099">
100 <?php echo $LDDiagnosis ?><br>
101 <?php createDataBlock('diagnosis') ?>
102 </div>
103 </td>
104 </tr>
106 <tr bgcolor="<?php echo $bgc1 ?>">
107 <td ><div class=fva2_ml10><font color="#000099">
108 <?php echo $LDDate ?>:
109 <?php
111 //$fdate=formatDate2Local($stored_findings['findings_date'],$date_format);
113 //createInputBlock('findings_date',$fdate);
115 if($edit){
116 //gjergji : new calendar
117 require_once ('../../js/jscalendar/calendar.php');
118 $calendar = new DHTML_Calendar('../../js/jscalendar/', $lang, 'calendar-system', true);
119 $calendar->load_files();
121 echo $calendar->show_calendar($calendar,$date_format,'findings_date',$stored_findings['findings_date']);
122 //end gjergji
125 </div></td>
126 <td align="right"><div class=fva2_ml10><font color="#000099">
127 <?php echo $LDReportingDoc ?>:
128 <?php createInputBlock('doctor_id',$stored_findings['doctor_id']); ?>
129 &nbsp;&nbsp;
130 </div>
131 </td>
132 </tr>
133 </table>