<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  require_once "/home/sites/bridlington.net/public_html/cmsAdmin/lib/viewer_functions.php";

  list($serviced_accommodationRecords, $serviced_accommodationMetaData) = getRecords(array(
    'tableName'   => 'serviced_accommodation',
    'orderBy'     => 'RAND()',
  ));

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hotel and Guest House Accommodation in Bridlington from Bridlington.net</title>
<style type="text/css" media="all">
<!--
@import url("../_css/2col-t.css");
-->
</style>
<style type="text/css" media="print">
<!--
@import url("../_css/2col-prnt.css");
-->
</style>
<!--[if IE 5]>
<style type="text/css"> 
/* IE 5 does not use the standard box model, so the column widths are overidden to render the page correctly. */
#outerWrapper #contentWrapper #leftColumn1 {
  width: 220px;
}
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css"> 
/* The proprietary zoom property gives IE the hasLayout property which addresses several bugs. */
#outerWrapper #contentWrapper, #outerWrapper #contentWrapper #content {
  zoom: 1;
}
</style>
<![endif]-->
<!--[if lt IE 7]>
<style type="text/css"> 
img, div {
  behavior: url("2ColumnFixedLeftSidebar_images/iepngfix.htc");
}
</style>
<![endif]-->
<style type="text/css">
<!--
a:visited {
	color: #E88954;
}
a:hover {
	color: #002654;
}
-->
</style></head>

<body>
<?php include("../header.html"); ?>
<div id="outerWrapper">
  <div id="contentWrapper">
    <div id="leftColumn1">
      <h2>Accommodation Search</h2>
      
      <p>Please feel free to use the search facility below to refine the accommodation list to match your precise requirements.</p>
      <p>
      </p>
      <form method="post" action="serviced_list.php">
        
        <table border="0" cellspacing="0" cellpadding="0">
          <tr>
     <td colspan="2">&nbsp;<h2><strong>Accommodation Type</strong></h2><br />
       
       <select name="accommodation_type">
         <option value="">&lt;Please select from this list&gt;</option>
         <option value="">Any</option>
         <option>Hotel</option>
         <option>Guest House</option>
         </select>     </td>
          </tr>
          <tr>
     <td colspan="2"><br />
       <h2><strong>&nbsp;Location</strong></h2><br />
     
       <select name="location">
         <option value="">&lt;Please select from this list&gt;</option>
         <option value="">Any</option>
         <option value="on the North Side of Bridlington">North</option>
         <option value="in the Centre of Bridlington">Central</option>
         <option value="on the South Side of Bridlington">South</option>
         <option value="on the outskirts of Bridlington">Outskirts</option>
         <option value="in Sewerby">Sewerby</option>
         <option value="in Flamborough">Flamborough</option>
         <option value="in Bempton">Bempton</option>
         <option value="over 10 Miles from Bridlington">Other Area</option>
         </select>
       &nbsp;</p>       </p>     </td>
          </tr>
          
          </td>
          </tr>
          <tr>
            <td colspan="2"><br />
              Simply select your preferred accommodation type and location above and tick any facilities which you require from your serviced accommodation and press the &quot;Search Listings&quot; button below.<br />
            <br /></td>
          </tr>
          <tr>
            <td>&nbsp;
            <h2>Opening Times&nbsp;</h2></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
          <tr>
            <td>&nbsp;Open Christmas&nbsp;</td>
            <td><input type="checkbox" name="open_christmas" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Open New Year&nbsp;</td>
            <td><input type="checkbox" name="open_new_year" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Open All Year&nbsp;</td>
            <td><input type="checkbox" name="open_all_year" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;
            <h2>Room Facilities&nbsp;</h2></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;En suite&nbsp;</td>
            <td><input type="checkbox" name="en_suite" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;TV in Bedrooms&nbsp;</td>
            <td><input type="checkbox" name="tv" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Tea/Coffee Facilities&nbsp;</td>
            <td><input type="checkbox" name="tea_coffee_facilities" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Cot Available&nbsp;</td>
            <td><input type="checkbox" name="cot_available" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Family Rooms&nbsp;</td>
            <td><input type="checkbox" name="family_rooms" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Central Heating&nbsp;</td>
            <td><input type="checkbox" name="central_heating" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Sea Views&nbsp;</td>
            <td><input type="checkbox" name="sea_views_available" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;
            <h2>General Facilities&nbsp;</h2></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;Evening Meals&nbsp;</td>
            <td><input type="checkbox" name="evening_meals" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Fully Licensed&nbsp;</td>
            <td><input type="checkbox" name="fully_licensed" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Evening Entertainment&nbsp;</td>
            <td><input type="checkbox" name="evening_entertainment" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Fully Non Smoking&nbsp;</td>
            <td><input type="checkbox" name="totally_non_smoking" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Pets Accepted&nbsp;</td>
            <td><input type="checkbox" name="pets_accepted" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Swimming Pool&nbsp;</td>
            <td><input type="checkbox" name="swimming_pool" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Gym/Health Club&nbsp;</td>
            <td><input type="checkbox" name="gym" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;WiFi Facilities&nbsp;</td>
            <td><input type="checkbox" name="wi_fi_facilities" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Children Welcome&nbsp;</td>
            <td><input type="checkbox" name="children_welcome" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Key Provided&nbsp;</td>
            <td><input type="checkbox" name="key_provided" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;
            <h2>Disabled Facilities&nbsp;</h2></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;Disabled Facilities&nbsp;</td>
            <td><input type="checkbox" name="disabled_facilities" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Wheelchair Access&nbsp;</td>
            <td><input type="checkbox" name="wheelchair_access" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Passenger Lift&nbsp;</td>
            <td><input type="checkbox" name="passenger_lift" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Stair Lift&nbsp;</td>
            <td><input type="checkbox" name="stairlift" value="Yes" /></td>
          </tr>
          
          <tr>
            <td>&nbsp;Ground floor Rooms&nbsp;</td>
            <td><input type="checkbox" name="ground_floor_rooms" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;
            <h2>Parking&nbsp;</h2></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;Onsite Parking&nbsp;</td>
            <td><input type="checkbox" name="free_parking_on_premises" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Parking Permits&nbsp;</td>
            <td><input type="checkbox" name="parking_permits" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;
            <h2>Financial&nbsp;</h2></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;Credit Cards Accepted&nbsp;</td>
            <td><input type="checkbox" name="credit_cards" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Child Reductions&nbsp;</td>
            <td><input type="checkbox" name="reductions_for_children" value="Yes" /></td>
          </tr>
          <tr>
            <td>&nbsp;Senior Citizen Reductions&nbsp;</td>
            <td><input type="checkbox" name="reductions_for_senior_citizens" value="Yes" /></td>
          </tr>
          
        </table><br/>
        
        
        <div align="center">
          <input type="submit" name="search" value="  Search Listings  "/>
        </div>
        
        
        
</form>
<p>&nbsp;</p></div>
    <div id="content">
<h1>Hotel and Guest House Accommodation in Bridlington</h1><p>&nbsp;</p>
<hr />

<p></p>

      <p><?php foreach ($serviced_accommodationRecords as $record): ?>
   <table width="125" border="0" align="right">
        <tr>
         <tr>
          <td><?php foreach ($record['uploads'] as $upload): ?>
        <?php if ($upload['hasThumbnail']): ?>
        <a href="<?php echo $record['_link'] ?>" target="_blank"><img src="<?php echo $upload['thumbUrlPath2'] ?>" alt="" width="<?php echo $upload['thumbWidth2'] ?>" height="<?php echo $upload['thumbHeight2'] ?>" border="0" align="right" /></a><br/>
        
        <?php elseif ($upload['isImage']): ?>
        <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>
        
        <?php else: ?>
        <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>
        
        <?php endif ?><?php break; ?>
        <?php endforeach ?></td>
        </tr>
      </table>   
  <h3> <u><a href="<?php echo $record['_link'] ?>" target="_blank"><?php echo $record['establishment_name'] ?></a></u><br/></h3>
      
      
      
      <p><?php echo $record['establishment_name'] ?> is a <?php echo $record['accommodation_type'] ?> with <?php echo $record['number_of_rooms'] ?> rooms and is located <?php echo $record['location'] ?>.  </p>
      <p>Prices start from £<?php echo $record['price_pppn'] ?> per person per night.<br>
      </p>
      <p><?php echo $record['summary'] ?></p>
      <p><a href="<?php echo $record['_link'] ?>" target="_blank">Click here for more information on  <?php echo $record['establishment_name'] ?></a> <br />
      For your convenience the page will open in a new window.</p>
      
      
<hr />
      <br/>
        
        
   <?php endforeach; ?><h2>

    <?php if ($serviced_accommodationMetaData['invalidPageNum']): ?>
      Results page '<?php echo $serviced_accommodationMetaData['page']?>' not found, <a href="<?php echo $serviced_accommodationMetaData['firstPageLink'] ?>">start over &gt;&gt;</a>.<br/><br/>
    <?php elseif (!$serviced_accommodationRecords): ?>
      Sorry we curently have no accommodation matching your selected criteria, please try searching again using more flexible options<br/><br/>
    <?php endif ?>
  <!-- /STEP2: Display Records -->


  <!-- STEP3: Display Page Links (Paste anywhere below "Load Record List") -->
    <?php if ($serviced_accommodationMetaData['prevPage']): ?>
      <a href="<?php echo $serviced_accommodationMetaData['prevPageLink'] ?>">&lt;&lt; prev</a>
    <?php else: ?>
      &lt;&lt; prev
    <?php endif ?>

    - page <?php echo $serviced_accommodationMetaData['page'] ?> of <?php echo $serviced_accommodationMetaData['totalPages'] ?> -

    <?php if ($serviced_accommodationMetaData['nextPage']): ?>
      <a href="<?php echo $serviced_accommodationMetaData['nextPageLink'] ?>">next &gt;&gt;</a>
    <?php else: ?>
      next &gt;&gt;
    <?php endif ?></h2>
  <!-- /STEP3: Display Page Links -->&nbsp;</p>
    </div>
  </div>
</div>
<?php include("../footer.html"); ?>
</body>
</html>