<?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 */
  require_once "/var/www/vhosts/ardingly.com/httpdocs/cmsAdmin/lib/viewer_functions.php";

  list($news_pre_prepRecords, $news_pre_prepMetaData) = getRecords(array(
    'tableName'   => 'news_pre_prep',
'where' => " news_pre_prep_archive = 'michaelmas10' ",  ));

        list($special_eventRecords, $special_eventMetaData) = getRecords(array(
    'tableName'   => 'special_event',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $special_eventRecord = @$special_eventRecords[0]; // get first record
  
          list($news_pre_prep_archiveRecords, $news_pre_prep_archiveMetaData) = getRecords(array(
    'tableName'   => 'news_pre_prep_archive',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $news_pre_prep_archiveRecord = @$news_pre_prep_archiveRecords[0]; // get first record

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Pre-Prep School News, Sussex Pre-Prep School News, Ardingly Pre-Prep School</title>

<meta name="description" content="Ardingly pre-prep school news archive, Lent Term, Summer Term and Michaelmas Term 2009" />
<meta name="keywords" content="Ardingly, pre-prep, school, news, archive, Lent Term, Lent, Summer Term, Summer, Michaelmas Term, Michaelmas, 2009" /><link href="../ardinglypreprepcss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onLoad="MM_preloadImages('../images/envelope_preprep_over.jpg')">
<div id="wrapper">
<div id="header">
  <div id="navigation"><a href="../../index.php" target="_parent" class="top_nav">Home</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="News_list.php" target="_parent" class="top_nav_on">News</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../Welcome.php" target="_parent" class="top_nav">Welcome</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../Pre-prep_School_Admissions_UK/Admissions.php" target="_parent" class="top_nav">Admissions</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../Preprep_Schools_Sussex/Academic.php" target="_parent" class="top_nav">Academic</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../Preprep_Schools_Sussex/Preprep_School_Activities.php" target="_parent" class="top_nav">After School Activities</a></div>
  <div id="logo"><img src="../images/Ardingly-logo-pre-prep_white_web.gif" alt="Ardingly Pre-Prep" width="173" height="73" /></div>
</div>
<div id="left_navigation_4"><a href="News_term_archives.php" target="_parent" class="leftnav_on">News
  Archive</a><br>
  <a href="pre-prep-timetables.php" target="_parent" class="leftnav">Timetables</a><br>
  <a href="Ardingly_Preprep_Farmhouse_Friends.php" target="_parent" class="leftnav">The
    Farmhouse Friends</a><br>
  <a href="Ardingly_Preprep_Information.php" target="_parent" class="leftnav">Pre-Prep Information</a></div>
<div id="strapline2">Co-educational boarding<br /> 
  and day school
    for boys<br /> 
  and girls aged 2 &#189 to 7</div>
<div id="school_links">
    <a href="http://www.ardingly.com/Prep_Schools_Sussex_England/Welcome.php" target="_parent" class="leftnav">Ardingly
    Prep</a> / <a href="http://www.ardingly.com/Ardingly_College_Sussex/Welcome.php" target="_parent" class="leftnav">College</a>
    <hr align="right" width="170" size="1" color="#ffffff"></div>
<div id="content">
      <div id="banner_image"><?php echo $news_pre_prep_archiveRecord['banner_image'] ?></div>
      <div id="text_area">
        <div id="heading">
          <h1>News Michaelmas Term 2010 Archive</h1>
        </div>
        <div id="next_previous"></div>
        <hr align="center" width="550" size="1" noshade />
        <!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
        <?php foreach ($news_pre_prepRecords as $record): ?>
        <div id="thumbnail_image">
          <!-- STEP 2a: Display Uploads for field 'thumbnail' (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['thumbnail'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
          <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>
          <p><?php echo $upload['info2'] ?></p>
          <?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 -->
        </div>
        <div id="list_text">
          <p><b><?php echo $record['title'] ?></b></p>
          <?php echo $record['summary'] ?>
          <p>    
          <b>
            <?php if($record['content'] != "") : ?>
          <p><b><a href="<?php echo $record['_link'] ?>">Find out more >></a></b></p>
            <?php endif; ?>
          </b>
          </p>
        </div>
        <hr align="center" width="550" size="1" noshade />
        <?php endforeach ?>
        <?php if (!$news_pre_prepRecords): ?>
        No records were found!<br/>
        <br/>
        <?php endif ?>
        <!-- /STEP2: Display Records -->
      </div>
      <p>&nbsp;</p>
    </div>
<div id="right_navigation"> <strong>Information</strong><br />
          <br />
              <strong><a href="../Information_Ardingly_College/Special_Event.php" target="_parent" class="rightnav"><?php echo $special_eventRecord['title'] ?></a></strong><br />
      <a href="../Information_Ardingly_College/Ardingly_College_Terms_Calendar.php" target="_parent" class="rightnav">Kalendar</a><br />
  <a href="../Information_Ardingly_College/Open_Mornings_Ardingly_College.php" target="_parent" class="rightnav">Open
    Morning Dates</a><br />
  <a href="../Information_Ardingly_College/Contact_Details_Ardingly_College.php" target="_parent" class="rightnav">Contact</a> / <a href="../Information_Ardingly_College/Directions_Ardingly_College.php" target="_parent" class="rightnav">Visiting & Directions</a><br>
  <a href="../Information_Ardingly_College/Handbooks_Publications_Ardingly_Pre_Prep.php" target="_parent" class="rightnav">Handbooks
    / Publications</a><br />
  <a href="../Information_Ardingly_College/Ardingly_Old_Ardinians.php" target="_parent" class="rightnav">Ardingly Society</a><br />
  <a href="../Information_Ardingly_College/Inspection_Report_Ardingly_College.php" target="_parent" class="rightnav">Inspection
    Reports</a><br />
  <a href="../Information_Ardingly_College/The_Good_Schools_Guide.php" target="_parent" class="rightnav">The
    Good Schools Guide</a><br />
  <a href="../Information_Ardingly_College/Tatlers_Schools_Guide.php" target="_parent" class="rightnav">Tatler's
    Schools Guide 2011</a><br />
  <a href="../Information_Ardingly_College/Venue-Courses-Conferences-Activities.php" target="_parent" class="rightnav">Lettings
    / Courses</a><br>
  <a href="../Information_Ardingly_College/Job_Vacancies_Independent_Schools_Sussex.php" target="_parent" class="rightnav">Job
    Vacancies</a><br>
  <a href="../Information_Ardingly_College/School_Council.php" target="_parent" class="rightnav">The Governing Body</a><br>
  <a href="../Information_Ardingly_College/Policies_Pre_Prep.php" target="_parent" class="rightnav">School Policies</a><br>
  <br>
  <hr align="left" width="150" size="1" color="#ffffff">
  <a href="https://pupils.ardingly.com/api/login/" target="_blank" class="rightnav">Pupil
    Portal</a> / <a href="https://parents.ardingly.com/api/login/" target="_blank" class="rightnav">Parent
      Portal</a><br>
</div>
<div id="mercer"><a href="http://www.mercerdesign.co.uk" target="_blank" class="mercer">mercerdesign.co.uk</a></div>
  <div id="address">Ardingly College, <br />
    Haywards Heath, <br />
    West Sussex RH17 6SQ <br />
    Tel: +44 (0) 1444 893000<br />
  <br />
  <a href="../Information_Ardingly_College/Contact_Details_Ardingly_College.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Contact','','../images/envelope_preprep_over.jpg',1)"><img src="../images/envelope_preprep.jpg" alt="Ardingly Pre Prep" name="Contact" width="22" height="15" border="0" /></a>  <br />
  <br />
  <span class="company_reg">Ardingly College is a Limited Company Registered
  in the UK, No. 3779971 and a Registered Charity No. 1076456 The College is
  also Member of the Woodard Corporation</span></div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7718697-1");
pageTracker._trackPageview();
} catch(err) {}</script></body>
</html>
