Images"; echo "

".$results['title']."

"; $imgstr = "http://www.archives.lib.ed.ac.uk/".$results['directory']."/full/".$results['image'].".jpg"; list($width, $height, $type, $attr) = getimagesize($imgstr); echo ""; ?> "; echo "

"; if (($results['caption']) <> '') { echo ""; } echo ""; ## only display if this is a multi-image item if (($results['sequence']) <> 0) { echo ""; echo ""; } echo "
Details:".$results['caption']."
Catalogue ref. code:".$results['ref']."
The catalogue will provide more information about this item
Navigation:Browse this multi-page item
Please note that not all pages may have been digitised. Refer to the catalogue entry to determine full extent, scope and content."; } ## identify which collection current item belongs to $collection = ($results['collection']); $sql_str="SELECT * FROM cms_collections WHERE coll=$collection"; $collsearch = mysql_db_query($dbname, $sql_str, $id_link) or die("collsearch query failed!"); $collresult = mysql_fetch_array($collsearch); if ($collection >0) { echo "
Collection:".$collresult['title']."
[ View all images from this collection ]
"; echo "

\"View Click here to view this image in a new window.

"; } if ($view == "sequence") { if (!isset ($sequence)) { $sequence=1; } $sql_str="SELECT * FROM images WHERE ref LIKE '$ref' AND sequence=$sequence"; $sequencesearch = mysql_db_query($dbname, $sql_str, $id_link) or die("Select Failed!"); $sequenceresults = mysql_fetch_array($sequencesearch); echo "Images: ".$sequenceresults['title'].""; ?> Images"; echo "

".$sequenceresults['title']."

"; ## create top navigation ## create link back to main entry $sql_str="SELECT * FROM images WHERE ref LIKE '$ref' AND sequence=1"; $linksearch = mysql_db_query($dbname, $sql_str, $id_link) or die("Select Failed!"); echo "

"; $linkresult = mysql_fetch_array($linksearch); $desclink = "Description

"; $sql_str="SELECT * FROM images WHERE ref LIKE '$ref'"; $navsearch = mysql_db_query($dbname, $sql_str, $id_link) or die("Select Failed!"); if ($sequence>1) { $prev=$sequence-1; } else { $prev=1; } $last = mysql_numrows($navsearch); if ($sequence<($last-1)) { $next=$sequence+1; } else { $next=$last; } echo "

".$desclink."First page | Previous page | Next page | Last page

"; ## echo "\"".$results['title']."\""; $imgstr = "http://www.archives.lib.ed.ac.uk/".$sequenceresults['directory']."/full/".$sequenceresults['image'].".jpg"; list($width, $height, $type, $attr) = getimagesize($imgstr); echo ""; ?>

View larger image Click here to view this image in a new window.

Accessibility menu