";
if($preview==1) { $tmp.= "
preview only do not print
" ; }
$raw .= $tmp; $pdf .= $tmp; $tmp = '';
$pdf .= "

";
$tmp .= "
$info
| TEST |
CONVENTIONAL | INTERNATIONAL |
| RESULT | REF. RANGES | UNIT | RESULT | REF. RANGES | UNIT |
$page
";
// lastpage show note
// lastpage show nosample, others and note
if($pageadd !=1) {
if( $i != $npage ) {
$tmp .="
";
} else {
$tmp .= "$noSample ";
$tmp .= "
\r\n";
if($others != '' && $countline < 39) {
$tmp .= "
$othertitle : \r\n";
$tmp .= "$others |
";
$others = '';
}
}
} else { // page tambahan = 1
if( $i != $npage-1 ) {
$tmp .="";
} else {
$tmp .= "$noSample ";
$tmp .= "
\r\n";
}
}
$tmp .= "
";
$tmp .= "
";
$raw .= $tmp; $pdf .= $tmp; $tmp = '';
$pdf .="

";
$tmp .= "
";
$raw .= $tmp; $pdf .= $tmp; $tmp = '';
$i+=1;
}
if($others != '') {
$tmp .= "
";
if($preview==1) { $tmp.= "
preview only do not print
" ; }
$raw .= $tmp; $pdf .= $tmp; $tmp = '';
$pdf .= "

";
$tmp .= "
$info
$othertitle : \r\n
$others |
";
$tmp .= "
";
$raw .= $tmp; $pdf .= $tmp; $tmp = '';
$pdf .="

";
$tmp .= "
";
}
$tmp .="";
$raw .= $tmp; $pdf .= $tmp; $tmp = '';
echo $pdf;
?>