<?php
   require_once "C:/Inetpub/charlotteparent/cmsAdmin/lib/viewer_functions.php";
 
 list($aboutRecords, $aboutMetaData) = getRecords(array(
    'tableName'   => 'about',
	'limit'         => '4',   
	
  ));  
  


?> 
 


<!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>Untitled Document</title>
</head>

<body/>
 <?php foreach ($aboutRecords as $record): ?>
 
   <?php
   
$num = $record['header'];   
 
list($header_images_smallRecords, $header_images_smallMetaData) = getRecords(array(  
  'tableName' => 'header_images_small',  
  'where'	  => "num ='$num'", 
  
));  


 ?>
 <?php foreach ($header_images_smallRecords as $record): ?>


            <?php foreach ($record['image'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><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 endforeach ?>


     
    <?php endforeach ?>
     
      Title: <?php echo $record['title'] ?><br/>
      
      Blog: <?php echo $record['blog_title'] ?><br/>
      Content: <?php echo $record['content'] ?><br/>
 <hr/>
     
    <?php endforeach ?>
     <hr/>
  




</body>
</html>
