<?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/users/uks60655/html/heritagerailways.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($media_newsRecords, $media_newsMetaData) = getRecords(array(
    'tableName'   => 'media_news',
    'limit'       => '1',
  ));

?>

<!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"><!-- InstanceBegin template="/Templates/mediatemp.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->

<script type="text/javascript" src="highslide/highslide-full.js"></script>
<script type="text/javascript" src="highslide/highslide.config.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="highslide/highslide.css" />
<link rel="stylesheet" type="text/css" href="HRA_stylesheet.css"/>


<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="js/s3Slider.js" type="text/javascript"></script> 

<script type="text/javascript">
$(document).ready(function() {
   $('#s3slider').s3Slider({
      timeOut: 8000
   });
}); 
</script>
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="highslide/highslide-ie6.css" />
<![endif]-->

 

</style><!--[if lte IE 7]>
<style>
.content { margin-right: -1px; } /* this 1px negative margin can be placed on any of the columns in this layout with the same corrective effect. */
ul.nav a { zoom: 1; }  /* the zoom property gives IE the hasLayout trigger it needs to correct extra whiltespace between the links */
</style>
<![endif]--></head>

<body>
<a name="pagetop"></a> 

<div class="container_media">
  <div class="header">
  <div id="s3slider">

	<ul id="s3sliderContent">
    
    	<li class="s3sliderImage">
           <img src="Images/Index Slideshow/banner 1.jpg"/>
        <span class="bottom"> 'The Voice' of the Heritage Railway Movement'</span>        </li>
            
            <li class="s3sliderImage">
           <img src="Images/Index Slideshow/banner 2.jpg"/>
       <span class="bottom">'The Voice' of the Heritage Railway Movement'</span>        </li>
            
            <li class="s3sliderImage">
           <img src="Images/Index Slideshow/banner 3.jpg"/>
         <span class="bottom"> 'The Voice' of the Heritage Railway Movement'</span>       </li>
            
            <li class="s3sliderImage">
           <img src="Images/Index Slideshow/banner 4.jpg"/>
         <span class="bottom">'The Voice' of the Heritage Railway Movement'</span>        </li>
            
            <li class="s3sliderImage">
           <img src="Images/Index Slideshow/banner 5.jpg"/>
            <span class="bottom">'The Voice' of the Heritage Railway Movement'</span>        </li>
        
        <li class="clear s3sliderImage"></li>
        
        
        </ul></div>
    </ul><!-- end s3sliderContnet-->
   
    <!-- end .header -->
    
  </div>
  
  <div class="sidebar1">

        <a href="visits_home.php"><img src="Images/Buttons/visits_home.jpg" width="190" height="27" border="0"></a>
         
    <ul class="nav2">
      <ul>
           <img src="Images/Buttons/media_home.jpg" width="190" height="27" border="0" />
           <a href="media_hradirectors.php">Board of Directors</a>
      		<a href="mem_committees.php">Board Committees</a>
           <a href="media_ChairmansComment.php">Chairman's Comment</a> 
           <a href="media_aboutus.php">What is the Heritage Railway Association</a> 
           <a href="media_keyissues.php">Matters to us</a> 
           <a href="mem_events.php">Events &amp; Presentations</a>
           <a href="mem_awards.php">Awards &amp; Competitions</a>
           <a href="med_articles.php">Media Centre</a></ul>
    </ul>
              	<a href="ent_home.php"><img src="Images/Buttons/enthusiast_home.jpg" width="190" height="27" border="0" /></a>
    			<a href="mem_home.php"><img src="Images/Buttons/members_home.jpg" width="190" height="27" border="0" /></a>
<div class="hra_text">
	
		The Heritage Railway Association represents the majority of heritage and tourist railways and railway preservation groups within 						both the U.K and Ireland. 
	
</div>
 <img src="Images/background images/hra_text_top_pic.gif" width="190" height="49" />
 <img src="Images/media_bottom_sb.jpg" width="190" height="126" /> 
 <!-- end .sidebar1 --></div>
 
  <img src="Images/background images/header_banner_med.gif" width="780" height="18" alt="" align="right"/>
  
<div class="contentlandingpage">
  
    <h1><!-- InstanceBeginEditable name="Title" -->Media News<!-- InstanceEndEditable --></h1>
    <p><!-- InstanceBeginEditable name="Content" -->
 
    <?php foreach ($media_newsRecords as $record): ?>

      <p><?php echo date("D, M jS,", strtotime($record['date'])) ?><p/>
      <!-- For date formatting codes see: http://www.php.net/date -->
      <h2><?php echo $record['title'] ?></h2>
      
      <p><?php echo $record['content'] ?></p>
      <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a><br/>


      <!-- STEP 2a: Display Uploads for field 'image' (Paste this anywhere inside STEP2 to display uploads) -->
        <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
        <?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 ?>
      <!-- STEP2a: /Display Uploads -->


      <hr/>
    <?php endforeach ?>

    <?php if (!$media_newsRecords): ?>
      No records were found!<br/><br/>
    <?php endif ?>

    <!-- InstanceEndEditable --></p>
    <p><!-- InstanceBeginEditable name="Pictures" --><!-- InstanceEndEditable --></p>
    
   
<img src="Images/Index facts/rotate.php" align="center">
     
  </div>
  	
    
  
  <div class="footer">
  
    <fp>
      | <a href="index.php">Home</a> | <a href="visits_home.php">Visits &amp; Days Out</a> | <a href="media_home.php">Media &amp; Research</a> | <a href="ent_home.php">Enthusiasts Section</a> | <a href="mem_home.php">Members Section</a> |    
    
   <br> @ Heritage Railway Association 2011</fp>
    
    <!-- end .footer --></div>
<!-- end .container --></div>

</body>
<!-- InstanceEnd --></html>
