<?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 = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/home/bainbrid/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 'artman_articles'
  list($artman_articlesRecords, $artman_articlesMetaData) = getRecords(array(
    'tableName'   => 'artman_articles',
    'loadUploads' => false,
    'allowSearch' => true,
  ));
?>
<!DOCTYPE html>

<html>
<head>
<title>Bainbridge Georgia Search Results</title>
<meta name="description" content="Bainbridge Georgia Search Results">
<meta name="keywords" content="Bainbridge Georgia Search Results">
<link rel="stylesheet" type="text/css" href="http://bainbridgega.com/bnews/new.css">




<?php include "../header0513.txt"; ?> 



<h1 class="newscat">BainbridgeGA Search Results</h1>

<?php foreach ($artman_articlesRecords as $record): ?>
<a href="<?php echo $record['_link'] ?>"><?php echo htmlencode($record['title']) ?></a> &nbsp; 
<?php echo $record['categoryNum:label'] ?> &nbsp; 
<?php echo date("M jS, Y", strtotime($record['date'])) ?><br/>
<?php echo substr(strip_tags($record['content']), 0, 180); ?>
      <hr/>
    <?php endforeach ?>

    <?php if (!$artman_articlesRecords): ?>
      No records were found!<br/><br/>
    <?php endif ?>


</p>
</div>
</td>
<td><? include "newslist.php"; ?></td>
</tr>
</table>
<br>
<? include "../footer.txt"; ?>

</div>
</body>
</html>