");
// setup automatic refresh of this page at 5 minutes
echo ("");
echo ("
PET Web Search Tool ... imgsearch.php3 v1.1");
echo ("");
// reset submit button on each reload of search tool page
echo ("");
echo ("
");
echo ("");
// Variables SN(Study Number) PN(Patient Name) LN(Last 4 SSN) SD(Study Date)
// are passed into this php3 script in the URL ... i.e.
// http://10.11.12.13/imgsearch.php3?SN=P01000&PN=Public,Joe&LN=1234
echo ("
PET Web Image Search Results $PN ($LN) $SD
");
echo ("");
// define directories and load directory array
$miDirName = "Main Image Directory";
$miDirPath = '/ecat_data/'; // main ecat folder
$dirArray["$miDirName"] = "$miDirPath";
//
$wbDirName = "Archive Image Directory";
$wbDirPath = sprintf("%swb%s/%s/",$miDirPath,substr($SN,2,1),substr($SN,3,1));
$dirArray["$wbDirName"] = "$wbDirPath";
//
$kmDirName = "Kaiser Reports Directory";
$kmDirPath = '/reports/kaiser/'; // main kaiser folder
$dirArray["$kmDirName"] = "$kmDirPath";
//
$ksDirName = "Kaiser Archive Directory";
$ksDirPath = sprintf("%sP0%s000/",$kmDirPath,substr($SN,2,1));
$dirArray["$ksDirName"] = "$ksDirPath";
//
$vnDirName = "VISN 22 Image Directory";
$vnDirPath = '/reports/visn22/'; // main visn22 folder
$dirArray["$vnDirName"] = "$vnDirPath";
// start form and link to next script (imgconvert.php3)
echo ("");
echo ("