6 <table cellpadding
=0 cellspacing
=0 border
=0 width
=745 class="lab">
9 <td colspan
=4 bgcolor
="#ffe3e3" align
="center"><font size
=3 color
="#ee6666" face
="verdana,arial"><b
> <?php
echo $LDCentralLab." - ".$formtitle ?
></b
></td
>
13 <td bgcolor
="#ee6666"><font size
=1 color
="#ffffff" face
="verdana,arial"><b
><?php
echo strtoupper($LDMaterial); ?
></b
></td
>
14 <td bgcolor
="#ee6666"><font size
=1 color
="#ffffff" face
="verdana,arial"><b
><?php
echo strtoupper($LDRequestedTest); ?
></b
></td
>
15 <td bgcolor
="#ee6666" align
="center"><font size
=1 color
="#ffffff" face
="verdana,arial"><b
><?php
echo strtoupper($LDLabel); ?
></b
></td
>
16 <td bgcolor
="<?php echo $bgc1 ?>"></td
>
21 <td bgcolor
="<?php echo $bgc1 ?>"><font size
=1 color
="#990000" face
="arial">
22 <table border
=0 cellpadding
=0 cellspacing
=0 class="lab">
26 while(list($x,$v)=each($LDBacLabMaterialType))
28 list($x2,$v2)=each($LDBacLabMaterialType);
31 <td>'.$v.' </td>
32 <td>'.$v2.' </td>
37 if($edit) echo '<a href="javascript:setM(\''.$x.'\')">';
40 if($edit_form ||
$read_form )
42 if($stored_material[$x])
44 echo '<img src="../img/filled_pink_block.gif" ';
49 echo '<img src="../img/pink_border.gif" ';
54 echo '<img src="../img/pink_border.gif" ';
57 echo 'border=0 width=18 height=6 align="absmiddle" id="'.$x.'">';
59 if($edit) echo '</a><input type="hidden" name="'.$x.'" value="'.$inp_v.'">';
63 if($edit) echo '<a href="javascript:setM(\''.$x2.'\')">';
66 if($edit_form ||
$read_form )
68 if($stored_material[$x2])
70 echo '<img src="../img/filled_pink_block.gif" ';
75 echo '<img src="../img/pink_border.gif" ';
80 echo '<img src="../img/pink_border.gif" ';
83 echo 'border=0 width=18 height=6 align="absmiddle" id="'.$x2.'">';
85 if($edit) echo '</a><input type="hidden" name="'.$x2.'" value="'.$inp_v.'">';
95 <td bgcolor
="<?php echo $bgc1 ?>"><font size
=1 color
="#990000" face
="arial">
96 <table border
=0 cellpadding
=0 cellspacing
=0 class="lab">
99 while(list($x3,$v3)=each($LDBacLabTestType))
101 list($x4,$v4)=each($LDBacLabTestType);
104 <td>'.$v3.' </td>
105 <td>'.$v4.' </td>
109 if($edit) echo '<a href="javascript:setM(\''.$x3.'\')">';
112 if($edit_form ||
$read_form )
114 if($stored_test_type[$x3])
116 echo '<img src="../img/filled_pink_block.gif" ';
121 echo '<img src="../img/pink_border.gif" ';
126 echo '<img src="../img/pink_border.gif" ';
129 echo 'border=0 width=18 height=6 align="absmiddle" id="'.$x3.'">';
131 if($edit) echo '</a><input type="hidden" name="'.$x3.'" value="'.$inp_v.'">';
135 if($edit) echo '<a href="javascript:setM(\''.$x4.'\')">';
138 if($edit_form ||
$read_form )
140 if($stored_test_type[$x4])
142 echo '<img src="../img/filled_pink_block.gif" ';
147 echo '<img src="../img/pink_border.gif" ';
152 echo '<img src="../img/pink_border.gif" ';
155 echo 'border=0 width=18 height=6 align="absmiddle" id="'.$x4.'">';
156 if($edit) echo '</a><input type="hidden" name="'.$x4.'" value="'.$inp_v.'">';
168 <td bgcolor
="<?php echo $bgc1 ?>" align
="right">
169 <table border
=0 cellpadding
=10 bgcolor
="#ee6666">
175 if($edit ||
$edit_findings ||
$read_form ||
$edit_form)
177 echo '<img src="'.$root_path.'main/imgcreator/barcode_label_single_large.php?sid='.$sid.'&lang='.$lang.'&pn='.$result['patnum'].'" width=282 height=178>';
186 <td align
="right" bgcolor
="<?php echo $bgc1 ?>">
188 <!-- Table
for the
case nr
-->
189 <table border
=0 cellspacing
=0 cellpadding
=0>
197 echo "<td><font size=1 face=\"verdana,arial\" color= \"#990000\">".$i."</td>";
206 if(substr($result['patnum'],$n,1)==$i) echo '<img src="../img/filled_pink_block.gif"';
207 else echo '<img src="../img/pink_border.gif"';
208 echo ' border=0 width=18 height=6 align="absmiddle"></td>';
217 <td
><font size
=1> 
;</td
>
222 <!-- Table
for the day
and month code
-->
223 <table border
=0 cellspacing
=0 cellpadding
=0>
227 echo "<td><font size=1 face=\"verdana,arial\" color= \"#990000\">".$i."</td>";
229 <td
><font size
=1 face
="arial" color
= "#990000">20</td
>
231 <td
><font size
=1 face
="arial" color
= "#990000">30</td
>
241 if($edit_form ||
$read_form )
243 /* Process the sampling date, isolate the elements from the DATE format */
244 list($yearval,$monval,$dayval) = explode("-",$stored_request['sample_date']);
248 /* If fresh form, assume today */
249 $yearval=(int)date('Y');
250 $dayval=(int)date('d');
251 $monval=(int)date('m');
254 /* Process the day of the week, separate the 10's from ones */
259 $day_ones=$dayval-$day_tens;
264 $day_ones=$dayval-$day_tens;
269 $day_ones=$dayval-$day_tens;
275 //echo $day_ones." ".$day_tens;
279 if($day_ones==$i) echo '<img src="../img/filled_pink_block.gif"';
280 else echo '<img src="../img/pink_border.gif"';
281 echo ' border=0 width=18 height=6 align="absmiddle"></td>';
286 if($day_tens==10) echo '<img src="../img/filled_pink_block.gif"';
287 else echo '<img src="../img/pink_border.gif"';
288 echo ' border=0 width=18 height=6 align="absmiddle"></td>';
294 if($day_tens==20) echo '<img src="../img/filled_pink_block.gif"';
295 else echo '<img src="../img/pink_border.gif"';
296 echo ' border=0 width=18 height=6 align="absmiddle"></td>';
302 if($day_tens==30) echo '<img src="../img/filled_pink_block.gif"';
303 else echo '<img src="../img/pink_border.gif"';
304 echo ' border=0 width=18 height=6 align="absmiddle"></td>';
311 echo "<td><font size=1 face=\"arial\" color= \"#990000\">".$LDShortMonth[$i]." </td>";
321 if($monval==$i) echo '<img src="../img/filled_pink_block.gif"';
322 else echo '<img src="../img/pink_border.gif"';
323 echo ' border=0 width=18 height=6 align="absmiddle"></td>';
328 <td
><font size
=1> 
;</td
>
336 <!-- The red row
for batch number
-->
337 <tr bgcolor
="<?php echo $bgc1 ?>">
338 <td bgcolor
="#ee6666" colspan
=4><font size
=1 color
="#ffffff" face
="verdana,arial">
339 <b
><?php
echo $LDBatchNumber." ".$batch_nr ?
> </b
>
346 <tr bgcolor
="#fff3f3" valign
="top">
348 echo "<img src='".$root_path."classes/barcode/image.php?code=".$batch_nr."&style=68&type=I25&width=180&height=40&xres=2&font=5' border=0>";
351 <td align
="right" rowspan
=7>
360 <tr bgcolor
="#fff3f3" valign
="top">
361 <td align
="right"><font size
=3 color
="#ee6666" face
="verdana,arial"><b
><?php
echo $LDMaterial ?
></b
></td
>
362 <td colspan
=2><font size
=2 color
="black" face
="verdana,arial"> 
;<?php
if($edit_form ||
$read_form ||
$edit_findings) echo stripslashes($stored_request['material_note']); ?
></font
></td
>
366 <tr bgcolor
="#fff3f3" valign
="top">
367 <td align
="right"><font size
=3 color
="#ee6666" face
="verdana,arial"><b
><?php
echo $LDDiagnosis ?
></b
></td
>
368 <td colspan
=2><font size
=2 color
="black" face
="verdana,arial"><?php
if($edit_form ||
$read_form ||
$edit_findings) echo stripslashes($stored_request['diagnosis_note']); ?
></font
></td
>
371 <tr bgcolor
="<?php echo $bgc1 ?>" valign
="top">
372 <td align
="right" ><font size
=1 color
="#cc0000" face
="verdana,arial">
373 <?php
echo $LDImmuneSupp ?
></td
>
374 <td colspan
=2><?php
printRadioButton('immune_supp',1) ?
> <?php
echo $LDYes ?
> <?php
printRadioButton('immune_supp',0) ?
> <?php
echo $LDNo ?
><br
>
378 <tr bgcolor
="#fff3f3" valign
="top">
379 <td colspan
=3><font size
=2 color
="#ee6666" face
="verdana,arial"><b
><?php
echo $LDFillLabOnly ?
></b
></td
>
382 <tr bgcolor
="#fff3f3" valign
="top">
383 <td
><font size
=1 color
="#ee6666" face
="verdana,arial"><?php
384 echo $LDLEN.' ';
387 echo '<input type="text" name="entry_nr" size=10 maxlength=10 ';
388 if($stored_findings['entry_nr']) echo 'value="'.$stored_findings['entry_nr'].'">';
393 if($stored_findings['entry_nr']) echo $stored_findings['entry_nr'];
396 <td colspan
=2><font size
=1 color
="#ee6666" face
="verdana,arial"><?php
397 echo $LDDate.' ';
400 echo ' <input type="text" name="rec_date" size=10 maxlength=10 value="';
401 if($stored_findings['rec_date'] && $stored_findings['rec_date']!=DBF_NODATE
) echo formatDate2Local($stored_findings['rec_date'],$date_format);
402 else echo formatDate2Local(date('Y-m-d'),$date_format);
403 echo '" onBlur="IsValidDate(this,\''.$date_format.'\')">';
407 if($stored_findings['rec_date'] && $stored_findings['rec_date']!=DBF_NODATE
) echo formatDate2Local($stored_findings['rec_date'],$date_format);
412 <tr bgcolor
="<?php echo $bgc1 ?>" valign
="top">
413 <td align
="right" > 
;</td
>
416 if($edit_findings) echo '
417 <a href="javascript:setM(\'findings_init\')">';
418 if($stored_findings['findings_init'])
420 echo '<img src="f.gif"';
425 echo '<img src="b.gif"';
429 echo ' width=18 height=6';
431 if($edit_findings) echo ' border=0 id="findings_init"></a><input type="hidden" name="findings_init" value="'.$inp_v.'">';
434 echo $LDInitFindings.' ';
436 if($edit_findings) echo '
437 <a href="javascript:setM(\'findings_current\')">';
438 if($stored_findings['findings_current'])
440 echo '<img src="f.gif"';
445 echo '<img src="b.gif"';
449 echo ' width=18 height=6';
451 if($edit_findings) echo ' border=0 id="findings_current"></a><input type="hidden" name="findings_current" value="'.$inp_v.'">';
454 echo $LDCurrentFindings.' ';
456 if($edit_findings) echo '
457 <a href="javascript:setM(\'findings_final\')">';
458 if($stored_findings['findings_final'])
460 echo '<img src="f.gif"';
465 echo '<img src="b.gif"';
469 echo ' width=18 height=6';
471 if($edit_findings) echo ' border=0 id="findings_final"></a><input type="hidden" name="findings_final" value="'.$inp_v.'">';
474 echo $LDFinalFindings.' ';