3 function createDataBlock($param){
4 global $stored_findings, $edit;
8 <textarea name="'.$param.'" cols=82 rows=4 wrap="physical">'.stripslashes($stored_findings[$param]).'</textarea>';
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;
19 echo ' <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.'\')">';
23 echo ' <font color="#000000" size=2>'.$value.'</font><br> ';
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.' '.$global_phone[$subtarget] ?
></font
>
36 <td align
="right" width
=65%
>
37 <font size
=1 color
="#000099">
39 echo $batch_nr.' <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>";
44 echo $LDEntryDate.' <br>';
45 if($entry_date!="0000-00-00") echo formatDate2Local($entry_date,$date_format);
51 <tr bgcolor
="<?php echo $bgc1 ?>">
52 <td valign
="top" align
="right"><font color
="#000099" size
=2>
54 echo $LDCaseNr.'<br>'.$LDFamilyName.'<br>'.$LDName.'<br>'.$LDBDay;
58 <div
class="fva0_ml10"><font color
="#000000" size
=2>
60 echo $full_en.'<br>'.$result['name_last'].'<br>'.$result['name_first'].'<br>'.formatDate2Local($result['date_birth'],$date_format);
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') ?
>
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') ?
>
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') ?
>
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') ?
>
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') ?
>
106 <tr bgcolor
="<?php echo $bgc1 ?>">
107 <td
><div
class=fva2_ml10
><font color
="#000099">
108 <?php
echo $LDDate ?
>:
111 //$fdate=formatDate2Local($stored_findings['findings_date'],$date_format);
113 //createInputBlock('findings_date',$fdate);
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']);
126 <td align
="right"><div
class=fva2_ml10
><font color
="#000099">
127 <?php
echo $LDReportingDoc ?
>:
128 <?php
createInputBlock('doctor_id',$stored_findings['doctor_id']); ?
>