- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / include / inc_test_findings_form_radio.php
blob0a89c0149516987757935647325442c3e2ae7229
1 <?php
3 function createDataBlock($param)
5 global $stored_findings, $edit;
7 if ($edit)
8 {
9 echo '
10 <textarea name="'.$param.'" cols=82 rows=10 wrap="physical">'.stripslashes($stored_findings[$param]).'</textarea>';
12 else
14 echo '
15 <blockquote><font face="verdana,arial" color="#000000" size=2>'.nl2br(stripslashes($stored_findings[$param])).'</font></blockquote>';
20 function createInputBlock($param, $value)
22 global $stored_findings, $date_format, $edit, $lang;
24 if ($edit)
26 echo '&nbsp;<input type="text" name="'.$param.'" value="'.$value.'" size=';
27 if ($param=='doctor_id') echo '35 maxlength=35>';
28 else echo '10 maxlength=10 onBlur="IsValidDate(this,\''.$date_format.'\')" onKeyUp="setDate(this,\''.$date_format.'\',\''. $lang.'\')">';
30 else
32 echo '&nbsp;
33 <font face="verdana,arial" color="#000000" size=2>'.$value.'</font><br>&nbsp;';
39 <table border=0 cellpadding=1 cellspacing=0 bgcolor="#000000">
40 <tr>
41 <td>
44 <table border=0 cellpadding=0 cellspacing=0 bgcolor="#ffffff">
45 <tr>
46 <td>
48 <table cellpadding="0" cellspacing=1 border="0" width=700>
49 <tr valign="top" bgcolor="<?php echo $bgc1 ?>">
50 <td width=35%><div class="fva2_ml10">
51 <font size=5 color="#0000ff" face="verdana,arial">
52 <b><?php echo $LDTestFindings ?></b></font><br>
53 <font size=3 color="#000099" face="verdana,arial"><b><?php echo $formtitle ?></b></font><br>
54 <font size=1 color="#000099" face="verdana,arial"><?php echo $global_address[$subtarget].'<br>'.$LDTel.'&nbsp;'.$global_phone[$subtarget] ?></font>
55 </td>
56 <td align="right" width=65%>
57 <font size=1 color="#000099" face="verdana,arial">
58 <?php
59 echo $batch_nr.'&nbsp;&nbsp;<br>';
60 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>";
61 ?>&nbsp;&nbsp;<br>
62 <?php echo $LDXrayDate.'&nbsp;&nbsp;<br>';
63 if(!empty($entry_date) && $entry_date!= DBF_NODATE) echo formatDate2Local($entry_date,$date_format); ?>
64 &nbsp;&nbsp;</font>
65 </td></tr>
67 <tr bgcolor="<?php echo $bgc1 ?>">
68 <td valign="top" align="right"><font color="#000099" size=2 face="verdana,arial">
69 <?php
70 echo $LDCaseNr.'<br>'.$LDFamilyName.'<br>'.$LDName.'<br>'.$LDBDay;
72 </td>
73 <td valign="top">
74 <div class="fva0_ml10"><font color="#000000" size=2 face="verdana,arial">
75 <?php
76 echo $full_en.'<br>'.$result['name_last'].'<br>'.$result['name_first'].'<br>'.formatDate2Local($result['date_birth'],$date_format);
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 $LDTestFindings ?><br>
85 <?php createDataBlock('findings') ?>
86 </div></td>
87 </tr>
89 <tr bgcolor="<?php echo $bgc1 ?>">
90 <td valign="top" colspan=2 ><div class=fva0_ml10><font color="#000099">
91 <?php echo $LDDiagnosis ?><br>
92 <?php createDataBlock('diagnosis') ?>
93 </div></td>
94 </tr>
96 <tr bgcolor="<?php echo $bgc1 ?>">
97 <td ><div class=fva2_ml10><font color="#000099">
98 <?php echo $LDDate ?>:
99 <?php
101 /* if($mode=="edit") $fdate=formatDate2Local($stored_findings['findings_date'],$date_format);
102 else $fdate=formatDate2Local(date("Y-m-d"),$date_format);
105 if($mode=='edit' && $stored_findings['findings_date']) $fdate=formatDate2Local($stored_findings['findings_date'],$date_format);
106 else $fdate=formatDate2Local(date('Y-m-d'),$date_format);
108 /* if($stored_findings['findings_date']) $fdate=formatDate2Local($stored_findings['findings_date'],$date_format);
109 else $fdate=formatDate2Local(date('Y-m-d'),$date_format);*/
111 //createInputBlock('findings_date',$fdate);
113 if($edit){
115 //gjergji : new calendar
116 require_once ('../../js/jscalendar/calendar.php');
117 $calendar = new DHTML_Calendar('../../js/jscalendar/', $lang, 'calendar-system', true);
118 $calendar->load_files();
120 echo $calendar->show_calendar($calendar,$date_format,'findings_date',$stored_findings['findings_date']);
121 //end gjergji
124 </div></td>
125 <td align="right"><div class=fva2_ml10><font color="#000099">
126 <?php echo $LDReportingDoc ?>:</font><font color="#000000">
127 <?php createInputBlock('doctor_id',$stored_findings['doctor_id']); ?>
128 &nbsp;&nbsp;
129 </div></td>
130 </tr>
131 </table>
133 </td>
134 </tr>
135 </table>
137 </td>
138 </tr>
139 </table>