<?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 */
  
  // load viewer library
  $libraryPath = 'cmsb/lib/viewer_functions.php';
  $dirsToCheck = array('/home/corralr/public_html/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  // load records from 'listings'
  list($listingsRecords, $listingsMetaData) = getRecords(array(
    'tableName'   => 'listings',
    'loadUploads' => true,
    'allowSearch' => false,
  ));

?>
 <title>Corral De Tierra Real Estate | Salinas Monterey Highway | Corral De Tierra, CA</title>
<!-------------------------------------------------------------------->
<!-------------------------------------------------------------------->


<meta NAME="revisit-after" CONTENT="3 days">
<meta NAME="ROBOTS" CONTENT="ALL, Follow">
<meta NAME="Author" CONTENT="Patricia Grooms ">

<meta NAME="Classification" CONTENT="Real Estate Salinas, Monterey, Corral De Tierra, Residential & Commercial Real Estate, Property Management Rental Properties in Monterey County">

<meta name="description" CONTENT="Corral De Tierra Real Estate Residential Homes & Commercial Property, Rents Property Management
located in Corral De Tierra, Salinas, Monterey County, CA.">


<?php include "top.php"; ?>


<div class="jumbotron" style="padding-top: 18px;">

  		

 <h2> <font color="#005A4A">FEATURED PROPERTIES</font></h2>
	<p align="center"><font color="#800000" size="2">Click on images below for more detailed property information.

	</font>
  <div class="row"> 
  


  <div class="col-xs-6">
<?php foreach ($listingsRecords as $record): ?>
  
	
    <h3 align="center"><font color="#800000"><?php echo $record['status'] ?></font><br>
      <a href="<?php echo $record['_link'] ?>"> <?php echo htmlencode($record['address']) ?></a><br/>
       <font size="3">
       <?php echo $record['bedroom'] ?> Beds <?php echo $record['bath'] ?> Baths | Sq Ft: <?php echo htmlencode($record['approximate_square_footage']) ?>
        <br>
        </font>
        <?php foreach ($record['photos'] as $index => $upload): ?>
    <a href="<?php echo $record['_link'] ?>"> <img src="<?php echo htmlencode($upload['thumbUrlPath3']) ?>" width="400" height="268" alt="" /></a>
   <?php break; ?>
   <?php endforeach ?>  
   
  <br/>
  		<?php echo htmlencode($record['price']) ?>  
 <br/> <font size="3">Email: <a href="mailto:<?php echo $record['email'] ?>"><?php echo join(', ', $record['agent:values']); ?></a></font>
      

		

<?php $maxCols=2; if (@++$count % $maxCols == 0): ?>  </div>  <div class="col-xs-6"> 
  
														    <?php endif; ?> 	
												<?php endforeach ?> </div>
	

    
    </div></div>
			
    </div>
			


    </div>
			


    
    </div>
    
    <?php include "footer.php"; ?>