| $date |
$name |
$diagnosis |
$doc | ";
if ($status=='Processing') { print "$status | "; }
else { print "$status | "; }
print "View | ";
// See if we have any result PDF's
$pdfdir="/home/sites/nationalcordbloodprogram.com/ftp/result/";
$urlprefix="/patient_reg/result/";
if (file_exists($pdfdir.$filename.'.err') && filesize($pdfdir.$filename.'.err') > 0) {
print "There was an error during submission of your request. Please resubmit your search online or fax it to (212) 570-9061. | ";
} else {
print "";
$match_types = array(
array('_6','View 6/6'),
array('_5','View 5/6'),
array('_4','View 4/6'),
array('_3','View 3/6'),
array('_0','View'),
);
foreach ($match_types as $match_type)
{
$mt_suffix = $match_type[0]; $mt_link = $match_type[1];
foreach (array('.pdf','.PDF') as $pdf_ext)
{
$file = $pdfdir . $filename . $mt_suffix . $pdf_ext;
if (file_exists($file) && is_readable($file)){
print "$mt_link ";
}
}
}
print " | ";
}
# $file = $pdfdir . $filename . "_4.pdf";
# if(file_exists($file) && is_readable($file)){
# print "View 4/6 ";
# }
# $file = $pdfdir . $filename . "_4.PDF";
# if(file_exists($file) && is_readable($file)){
# print "View 4/6 ";
# }
# $file = $pdfdir . $filename . "_5.pdf";
# if(file_exists($file) && is_readable($file)){
# print "View 5/6 & 6/6 ";
# }
# $file = $pdfdir . $filename . "_5.PDF";
# if(file_exists($file) && is_readable($file)){
# print "View 5/6 & 6/6 ";
# }
print "Delete | ";
print "
";
}
print "