"; if($hkType=="satellite") { echo "PACS Housekeeping
"; } else { echo "Satellite Housekeeping
"; } echo ""; echo "
"; echo "\n"; if ($curOD > 1) { $prevOD = $curOD - 1; $dir_prevOD = sprintf("OD%04d",$prevOD); echo "\n"; } else { echo "\n"; } echo "\n"; if ($curOD < $lastOD) { $nextOD = $curOD + 1; $dir_nextOD = sprintf("OD%04d",$nextOD); echo "\n"; } else { echo "\n"; } echo "

Previous OD

OD $curOD

Next OD

\n"; echo "Location of sensors

\n"; echo "

SREM data

\n"; if($handle = opendir($dir_curOD)) { $file_list = fopen($name_file_list,"r"); while(!feof($file_list)) { $file = rtrim(fgets($file_list)); $ext = strtolower(substr($file, strrpos($file, '.'))); if($ext==".png") { $name = basename($file,$ext); echo "\n"; if ($curOD > 0) { $prevOD = $curOD - 1; $dir_prevOD = sprintf("OD%04d",$prevOD); if(file_exists($dir_prevOD."/".$file)) { echo "\n"; } else { echo "\n"; } } if(file_exists($dir_curOD."/".$file)) { echo "\n"; } else { echo "\n"; } if ($curOD < $lastOD) { $nextOD = $curOD + 1; $dir_nextOD = sprintf("OD%04d",$nextOD); if(file_exists($dir_nextOD."/".$file)) { echo "\n"; } else { echo "\n"; } } echo "

Previous (OD ".$prevOD.")

No $name plot for $dir_prevOD

No $name plot for $dir_curOD

Next (OD ".$nextOD.")

No $name plot for $dir_nextOD

\n"; } } } echo "
"; echo "

"; if($hkType=="satellite") { echo "PACS Housekeeping
"; } else { echo "Satellite Housekeeping
"; } echo "

"; ?>