3 function createDataBlock($param)
5 global $stored_findings, $edit;
10 <textarea name="'.$param.'" cols=82 rows=10 wrap="physical">'.stripslashes($stored_findings[$param]).'</textarea>';
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;
26 echo ' <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.'\')">';
33 <font face="verdana,arial" color="#000000" size=2>'.$value.'</font><br> ';
39 <table border
=0 cellpadding
=1 cellspacing
=0 bgcolor
="#000000">
44 <table border
=0 cellpadding
=0 cellspacing
=0 bgcolor
="#ffffff">
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.' '.$global_phone[$subtarget] ?
></font
>
56 <td align
="right" width
=65%
>
57 <font size
=1 color
="#000099" face
="verdana,arial">
59 echo $batch_nr.' <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>";
62 <?php
echo $LDXrayDate.' <br>';
63 if(!empty($entry_date) && $entry_date!= DBF_NODATE
) echo formatDate2Local($entry_date,$date_format); ?
>
67 <tr bgcolor
="<?php echo $bgc1 ?>">
68 <td valign
="top" align
="right"><font color
="#000099" size
=2 face
="verdana,arial">
70 echo $LDCaseNr.'<br>'.$LDFamilyName.'<br>'.$LDName.'<br>'.$LDBDay;
74 <div
class="fva0_ml10"><font color
="#000000" size
=2 face
="verdana,arial">
76 echo $full_en.'<br>'.$result['name_last'].'<br>'.$result['name_first'].'<br>'.formatDate2Local($result['date_birth'],$date_format);
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') ?
>
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') ?
>
96 <tr bgcolor
="<?php echo $bgc1 ?>">
97 <td
><div
class=fva2_ml10
><font color
="#000099">
98 <?php
echo $LDDate ?
>:
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);
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']);
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']); ?
>