<?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('/var/www/html/osga.com/','','../','../../','../../../');

  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

  list($articlesRecords, $articlesMetaData) = getRecords(array(

    'tableName'   => 'articles',
    'where'       => 'category NOT LIKE "%FREE_PICKS%" ',
    'limit'       => '9',
    'loadUploads' => '0',
    'orderBy'       =>  'date DESC',

  ));



?>



  <!-- Display Records (Paste this where you want your records to be listed) -->

   <span style="font-family:arial">
    

       <?php foreach ($articlesRecords as $record): ?>
    

      <strong><span class="boxheader-style1"><?php echo $record['categoryNum:label'];?></span></strong><br/>
      

      <strong><span style="font-size:12px"><?php echo $record['title'] ?></span></strong><br/>
      

	  <strong><span style="font-size:11px"><?php echo date("M j, Y ", strtotime($record['date'])) ?></span></strong><br/>
	

      <!-- For date formatting codes see: http://www.php.net/date -->

     <span style="font-size:11px"><?php echo $record['summary'] ?></span><br/>

	 <span style="font-size:11px"><a href="<?php echo $record['_link'] ?>" target="_blank"><b>Read More...</b></a></span><br/>

     <br/>

     <?php endforeach ?>
     <?php if (!$articlesRecords): ?>
     No records were found!<br/><br/>
     <?php endif ?>
</span>

<span class="link-style1" ><a href="http://www.osga.com/News.html" target="_new"><b> More Updates....</b></span>



  <!-- /STEP2: Display Records -->


