0) { $b = mysql_fetch_assoc($r); extract($b); //gets all the placename data //$place = $PlaceID; } } // end if isset $val /*************************************************/ if($place>0) { if (!isset($thismap)) { $thismap=0; //offset along the $os array } $sql = "select PlaceID, county,OSSheetNo from placenames where PlaceID='$place'"; $res = mysql_query($sql); $county = mysql_result($res,0,"county"); $oss = mysql_result($res,0,"OSSheetNo"); $os = explode(',',$oss); if ($os[$thismap]==0) $thismap=0; //reset the counter back to the start; $sheeter = sprintf("%03d",$os[$thismap]);//$osinumber = sprintf("%03d",$OSSheetNo); // ditto AS THREE DIGITS $fff = explode('/',$file); $fffcounty = $fff[0]; //limerick $file = $fffcounty."/".$sheeter; $nextmap = $thismap+1; $nextlink = "zoomifyDynamicViewer.php?file=$file&path=$path&val=$val&place=$place&thismap=$nextmap"; //warning text for multiple maps $multimap = "

The place you are seeking appears on more than one six-inch map. Click here to see the next one."; $multimap = "

The place you are seeking appears on more than one six-inch map. Click a number..."; for ($i=0;$i"; $multimap = $multimap." ".$j.""; if($i==$thismap)$multimap=$multimap.""; } //file=".$filenoext."&path=./pix/&val=".$valID."&place=".$PlaceID } //end if place>0 /**************************************************/ //default values $width = 700; $height = 450; print(" "); ?>

"); if ((isset($val)) and ($val!=0)) { $MapRef = str_replace(' ',' or ',$MapRef); print(" The map above shows the OSI Map Sheet for the location where $Forename1 $Surname1 lived. You can zoom in, drag the map with the mouse, or move around the map with the arrows in the controls on the map. It may take a moment for the map to become fully clear after you zoom in or move.
To identify the precise location, use the zooming control to find
  1. the parish of $Parish
  2. the townland of $Townland "); if($PlaceName!="") { print("
  3. the placename $PlaceName"); } print("
  4. the individual (red-numbered) holding, numbered $MapRef
      When you have finished, use the close button at the top right to close this popup area. "); //if($place>0) echo $multimap;//ALERT USER TO MULTIPLE MAPS. } // end if isset $val if ((isset($val)) and ($val==0)) //its a placename search, not for a person { print(" The map above shows the OSI Map Sheet for the location you chose. "); // if($place>0) echo $multimap;//ALERT USER TO MULTIPLE MAPS. //removed for simplicity. } //AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA if (($showpage!=1) and ($townplan!=1)) { if(substr($file,strlen($file)-1)!='a')//not already an a file { print (" Some OS Map sheets come in two halves - to see the second half, if it exists, click [here]. "); } //print (" You can zoom in, drag the map with the mouse, or move around the map with the arrows in the controls on the map. It may take a moment for the map to become fully clear after you zoom in or move the maps. When you have finished, use the close button at the top right to close this popup area. "); } //end if showpage not 1, so it's a map // BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB if ($showpage==1) { //its a scan, not a map print(" The image above shows a digital scan of the original Griffith's Valuation ledger page. Use the zooming controls to examine the page in more detail. "); if ($rs>0) { print("The record you clicked is $rs lines from the top. "); } print(" When you have finished, use the close button at the top right to close this popup area. "); } /* if ($townplan==1) { //print ("Town plan . Path is $path.
      file is $file
      "); $retrievedetails = $file.".png"; $sss = "select * from townplans where image = '$retrievedetails'"; $rrr = mysql_query($sss); $errr = mysql_error(); $ttt = mysql_result($rrr,0,'town'); print ("

      $retrievedetails

      $sss

      $errr Town plan of $ttt .
      "); } */ ?>