echo "
";
//echo " |
include '_common/includes/footer.shtml'; ?> |
"; // DEBUG ONLY if (file_exists('_common/images3/' . $filename)) { // echo "File $filename exists!"; // DEBUG ONLY $pic_exists = 1; } else { // echo "File $filename does not exist!"; // DEBUG ONLY $pic_exists = 0; } } // ARRAY OF PICTURE FILENAMES AND CAPTIONS - MUST BE SEQUENTIAL STARTING AT 1 /* TEMPLATE NEW ROW TO PASTE IN FOR NEW PICS: "FILENAME" => "CAPTION", */ $pict_array = array( "awards-20131_lrg.jpg" => "Islands Luxury Hotel of the Year 2013", "awards-20132_lrg.jpg" => "Breakfast of the Year, Small Hotel 2013", "awards-20133_lrg.jpg" => "Gold Laurel - Fabulous & Witty Menus 2013", "awards-20134_lrg.jpg" => "Say cheese(es)!", "cottages-bluebird1_lrg.jpg" => "Winter view from Kilmchael woods", "cottages-bluebird2_lrg.jpg" => "Sitting room - light and spacious", "cottages-bluebird3_lrg.jpg" => "The fireplace", "cottages-bluebird4_lrg.jpg" => "Twin bedroom - a peaceful night", "cottages-bluebird5_lrg.jpg" => "Main bedroom", "cottages-bluebird6_lrg.jpg" => "The kitchen", "cottages-bluebird7_lrg.jpg" => "One of Geoffrey's bees", /* COPY OF gardens-detail11 */ "cottages-finch1_lrg.jpg" => "View from the potager", "cottages-finch2_lrg.jpg" => "Sitting room - a warm welcome", "cottages-finch3_lrg.jpg" => "High noon", "cottages-finch4_lrg.jpg" => "Twin bedroom - a peaceful night", "cottages-finch5_lrg.jpg" => "Main bedroom", "cottages-finch6_lrg.jpg" => "Dining", "cottages-finch7_lrg.jpg" => "Sunsets over Goatfell, as seen from the garden...", /* COPY OF mainhouse-view4 */ "cottages-peacock1_lrg.jpg" => "Front view", "cottages-peacock2_lrg.jpg" => "The hallway and piano", "cottages-peacock3_lrg.jpg" => "Visitors", "cottages-peacock4_lrg.jpg" => "Sitting room", "cottages-peacock5_lrg.jpg" => "Main bedroom", "cottages-peacock6_lrg.jpg" => "Twin bedroom", "cottages-peacock7_lrg.jpg" => "Gargoyle", "cottages-vane1_lrg.jpg" => "Front view", "cottages-vane2_lrg.jpg" => "Private garden", "cottages-vane3_lrg.jpg" => "The unicorn weather vane", "cottages-vane4_lrg.jpg" => "Sitting room", "cottages-vane5_lrg.jpg" => "Main bedroom", "cottages-vane6_lrg.jpg" => "Twin bedroom", "cottages-vane7_lrg.jpg" => "Dining", "gardens-pics1_lrg.jpg" => "", "gardens-pics2_lrg.jpg" => "", "gardens-pics3_lrg.jpg" => "", "gardens-pics4_lrg.jpg" => "", "gardens-pics5_lrg.jpg" => "", "gardens-pics6_lrg.jpg" => "", "gardens-pics7_lrg.jpg" => "", "gardens-pics8_lrg.jpg" => "", "gardens-pics9_lrg.jpg" => "", "gardens-pics10_lrg.jpg" => "", "gardens-pics11_lrg.jpg" => "", "gardens-pics12_lrg.jpg" => "", "gardens-pics13_lrg.jpg" => "", "gardens-pics14_lrg.jpg" => "", "gardens-pics15_lrg.jpg" => "", "gardens-pics16_lrg.jpg" => "", "gardens-pics17_lrg.jpg" => "", "gardens-pics18_lrg.jpg" => "", "gardens-pics19_lrg.jpg" => "", "gardens-pics20_lrg.jpg" => "", "gardens-pics21_lrg.jpg" => "", "gardens-detail1_lrg.jpg" => "", "gardens-detail2_lrg.jpg" => "", "gardens-detail3_lrg.jpg" => "", "gardens-detail4_lrg.jpg" => "", "gardens-detail5_lrg.jpg" => "", "gardens-detail6_lrg.jpg" => "", "gardens-detail7_lrg.jpg" => "", "gardens-detail8_lrg.jpg" => "", "gardens-detail9_lrg.jpg" => "", "gardens-detail10_lrg.jpg" => "", "gardens-view1_lrg.jpg" => "", "gardens-view2_lrg.jpg" => "", "gardens-view3_lrg.jpg" => "", "gardens-view4_lrg.jpg" => "", "gardens-view5_lrg.jpg" => "", "gardens-view6_lrg.jpg" => "", "gardens-view7_lrg.jpg" => "", "gardens-view8_lrg.jpg" => "2005 Flood and Skipness", "gardens-view9_lrg.jpg" => "", "gardens-view10_lrg.jpg" => "", "mainhouse-dining1_lrg.jpg" => "The Dining Room", "mainhouse-dining2_lrg.jpg" => "The Dining Room", "mainhouse-dining3_lrg.jpg" => "The Dining Room - detail", "mainhouse-dining4_lrg.jpg" => "The Dining Room - detail", "mainhouse-dining5_lrg.jpg" => "Asparagus à la Kilmichael", "mainhouse-forest1_lrg.jpg" => "Four-poster bed", "mainhouse-forest2_lrg.jpg" => "Space to relax", "mainhouse-forest3_lrg.jpg" => "Entrance", "mainhouse-forest4_lrg.jpg" => "Bathroom", "mainhouse-fullarton1_lrg.jpg" => "Private sitting room", "mainhouse-fullarton2_lrg.jpg" => "Elegant bedroom", "mainhouse-fullarton3_lrg.jpg" => "Detail", "mainhouse-fullarton4_lrg.jpg" => "The bathroom was originally the butler's pantry", "mainhouse-garden1_lrg.jpg" => "Private sitting room...", "mainhouse-garden2_lrg.jpg" => "...overlooking the garden", "mainhouse-garden3_lrg.jpg" => "Mahogany four-poster bed", "mainhouse-garden4_lrg.jpg" => "Writing table", "mainhouse-garden5_lrg.jpg" => "Detail", "mainhouse-grizel1_lrg.jpg" => "Named for the wife of the owner in 1681", "mainhouse-grizel2_lrg.jpg" => "Beautifully furnished", "mainhouse-grizel3_lrg.jpg" => "Romantic detail", "mainhouse-grizel4_lrg.jpg" => "Sleigh bed", "mainhouse-grizel5_lrg.jpg" => "Lovely bathroom", "mainhouse-publ1_lrg.jpg" => "The Blue Drawing Room", "mainhouse-publ2_lrg.jpg" => "The Blue Drawing Room", "mainhouse-publ3_lrg.jpg" => "The Blue Drawing Room - detail", "mainhouse-publ4_lrg.jpg" => "The Yellow Drawing Room", "mainhouse-publ5_lrg.jpg" => "The Yellow Drawing Room", "mainhouse-publ6_lrg.jpg" => "The Yellow Drawing Room - detail", "mainhouse-publ7_lrg.jpg" => "The Hall", "mainhouse-publ8_lrg.jpg" => "The Hall - detail", "mainhouse-publ9_lrg.jpg" => "The Hall - with a visitor!", "mainhouse-publ10_lrg.jpg" => "Detail", "mainhouse-rose1_lrg.jpg" => "Originally the principal bedroom", "mainhouse-rose2_lrg.jpg" => "Draped bed", "mainhouse-rose3_lrg.jpg" => "Detail", "mainhouse-rose4_lrg.jpg" => "Large light bathroom", "mainhouse-view1_lrg.jpg" => "View from the front lawn", "mainhouse-view2_lrg.jpg" => "View from the flower garden", "mainhouse-view3_lrg.jpg" => "Another view of the front", "mainhouse-view4_lrg.jpg" => "Sunsets over Goatfell, seen from the garden...", "mainhouse-view5_lrg.jpg" => "...are often spectacular", "mainhouse-view6_lrg.jpg" => "...as are our freshly gilded camels!", "stablecourt-byre1_lrg.jpg" => "Entrance", "stablecourt-byre2_lrg.jpg" => "Sitting room with living-flame fire", "stablecourt-byre3_lrg.jpg" => "Bedroom with mahogany four-poster bed", "stablecourt-byre4_lrg.jpg" => "Courtyard window", "stablecourt-dovecote1_lrg.jpg" => "Front view", "stablecourt-dovecote2_lrg.jpg" => "Armchairs by the window, looking out onto the garden", "stablecourt-dovecote3_lrg.jpg" => "Twin bedroom", "stablecourt-dovecote4_lrg.jpg" => "Detail", "stablecourt-dovecote5_lrg.jpg" => "The dovecote in the gable end", "stablecourt-smithy1_lrg.jpg" => "Entrance", "stablecourt-smithy2_lrg.jpg" => "Bedroom", "stablecourt-smithy3_lrg.jpg" => "Bedroom", "stablecourt-smithy4_lrg.jpg" => "Bathroom", "stablecourt-view1_lrg.jpg" => "View of The Stable Court - converted 18th century stone-built stables", ); // GET OR INITIALIZE VARIABLES $pic_name_url=$_GET['pic']; checkOK($pic_name_url); $pic_name="$pic_name_url"; $error_msg = "Sorry - the image you requested cannot be found."; // SET PAGE TITLE AND FILENAME PARTS if (stristr("$pic_name", 'cottages-')) { $pic_prefix = 'cottages'; $pageheader = 'selfcater.gif'; $pageheader_alt = 'Kilmichael self-catering - deluxe cottages'; if (stristr("$pic_name", '-vane')) { $pagetitle = 'Wren Cottage'; $pic_suffix = 'vane'; } elseif (stristr("$pic_name", '-peacock')) { $pagetitle = 'Peacock Cottage'; $pic_suffix = 'peacock'; } elseif (stristr("$pic_name", '-finch')) { $pagetitle = 'Finch Cottage'; $pic_suffix = 'finch'; } elseif (stristr("$pic_name", '-bluebird')) { $pagetitle = 'Bluebird Cottage'; $pic_suffix = 'bluebird'; } else { $pagetitle = 'Cottages'; $pic_suffix = ''; } $infopage = 'cottages.shtml'; $infoanchor = "#" . $pic_suffix; $infotext = $pagetitle . " - details and booking"; } elseif (stristr("$pic_name", 'gardens-')) { $pic_prefix = 'gardens'; $pageheader = 'us.gif'; $pageheader_alt = 'Kilmichael - The Gardens'; if (stristr("$pic_name", '-pics')) { $pagetitle = 'The Gardens'; $pic_suffix = 'pics'; $infopage = ''; $infoanchor = '#'; $infotext = ''; } else { $pagetitle = 'The Gardens'; $pic_suffix = 'none'; $infopage = 'rooms.shtml'; $infoanchor = "#"; $infotext = 'The Main House'; } } elseif (stristr("$pic_name", 'mainhouse-')) { $pic_prefix = 'mainhouse'; $pageheader = 'mh.gif'; $pageheader_alt = 'Kilmichael - Accommodation in The Main House'; if (stristr("$pic_name", '-dining')) { $pagetitle = 'The Dining Room'; $pic_suffix = 'dining'; } elseif (stristr("$pic_name", '-forest')) { $pagetitle = 'The Forest Room'; $pic_suffix = 'forest'; } elseif (stristr("$pic_name", '-fullarton')) { $pagetitle = 'The Fullarton Suite'; $pic_suffix = 'fullarton'; } elseif (stristr("$pic_name", '-garden')) { $pagetitle = 'The Garden Suite'; $pic_suffix = 'garden'; } elseif (stristr("$pic_name", '-grizel')) { $pagetitle = 'Grizel\'s Room'; $pic_suffix = 'grizel'; $pageheader = 'us.gif'; } elseif (stristr("$pic_name", '-publ')) { $pagetitle = 'The Main House'; $pic_suffix = 'publ'; $pageheader = 'us.gif'; } elseif (stristr("$pic_name", '-rose')) { $pagetitle = 'The Rose Bedroom'; $pic_suffix = 'rose'; } elseif (stristr("$pic_name", '-view')) { $pagetitle = 'The Main House'; $pic_suffix = 'view'; $pageheader = 'us.gif'; } else { $pagetitle = 'Main House'; $pic_suffix = 'none'; } # a wee hack for the dining page... if (stristr("$pic_name", '-dining')) { $infopage = 'dining.shtml'; $infoanchor = ""; $infotext = $pagetitle . " - Kilmichael cuisine"; } else { $infopage = 'rooms.shtml'; $infoanchor = "#" . $pic_suffix; $infotext = $pagetitle . " - details and booking"; } } elseif (stristr("$pic_name", 'stablecourt-')) { $pic_prefix = 'stablecourt'; $pageheader = 'st.gif'; $pageheader_alt = 'Kilmichael - Accommodation in The Stable Court'; if (stristr("$pic_name", '-byre')) { $pagetitle = 'The Byre Suite'; $pic_suffix = 'byre'; } elseif (stristr("$pic_name", '-dovecote')) { $pagetitle = 'The Dovecote'; $pic_suffix = 'dovecote'; } elseif (stristr("$pic_name", '-smithy')) { $pagetitle = 'The Smithy'; $pic_suffix = 'smithy'; } elseif (stristr("$pic_name", '-view')) { $pagetitle = 'The Stable Court'; $pic_suffix = 'view'; } else { $pagetitle = 'Main House - Stable Court'; $pic_suffix = ''; } $infopage = 'court.shtml'; $infoanchor = "#" . $pic_suffix; $infotext = $pagetitle . " - details and booking"; } elseif (stristr("$pic_name", 'awards-')) { $pic_prefix = 'awards'; $pageheader = 'us.gif'; $pageheader_alt = 'Kilmichael'; $pagetitle = 'Scottish Hotel Awards'; $pic_suffix = '2013'; $infopage = 'accolades.shtml'; $infoanchor = ""; $infotext = $pagetitle . " - more details"; } // $show_all_flag = '_all.jpg'; // look in filename => display all pics $show_all_pos = strpos($pic_name, $show_all_flag); if ($show_all_pos === false) { $show_all = 0; } else { $show_all = 1; } ?>
echo "
";
//echo " |
include '_common/includes/footer.shtml'; ?> |