<?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('/clientdata/zeus-dynamic-1/a/c/activetravel.com.au/www/','','../','../../','../../../');
  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($toursRecords, $toursMetaData) = getRecords(array(
    'tableName'   => 'tours',
    'allowSearch' => '0',  
  ));

 // load records
  list($escorted_toursRecords, $escorted_toursMetaData) = getRecords(array(
    'tableName'   => 'escorted_tours',
    'allowSearch' => '0',  
  ));

  // load records
  list($polar_toursRecords, $polar_toursMetaData) = getRecords(array(
    'tableName'   => 'polar_tours',
  ));
  
 // load records
  list($river_cruisesRecords, $river_cruisesMetaData) = getRecords(array(
    'tableName'   => 'river_cruises',
  ));




?>
<!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-Language" content="en-us">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="stylesheet" type="text/css" href="style.css">
 <script type="text/javascript" src="data.files/dmenu.js"></script>
 <script type="text/javascript" src="subnav.files/dmenu.js"></script>
 </head>
<body>




<body bgcolor="#282723">

<div align="center">
	<table border="0" cellpadding="0" cellspacing="0" width="975" id="table1">
		<tr>
			<td>
			<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table2">
				<tr>
					<td>
					<img border="0" src="images/activetours12w.gif" width="12" height="1"></td>
					<td>
					<img border="0" src="images/activetours282w.gif" width="282" height="1"></td>
					<td>
					<img border="0" src="images/activetours168.gif" width="168" height="1"></td>
					<td>
					<img border="0" src="images/activetours296w.gif" width="296" height="1"></td>
					<td>
					<img border="0" src="images/activetours205w.gif" width="205" height="1"></td>
					<td>
					<img border="0" src="images/activetours12w.gif" width="12" height="1"></td>
				</tr>
				<tr>
					<td>
					<img border="0" src="images/activetours12x34.gif" width="12" height="34"></td>
					<td>&nbsp;</td>
					<td valign="top">&nbsp;</td>
					<td valign="top">   <script type="text/javascript" src="subnav.js"></script></td>
					<td valign="top">
					<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table15">
						<tr>
							<td valign="top">
							<p style="margin-top: 12px">
							<img border="0" src="images/tel.jpg" width="204" height="18"></td>
						</tr>
						</table>
					</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>
					<img border="0" src="images/activetravel_07.jpg" width="12" height="74"></td>
					<td><a href="http://www.activetravel.com.au">
					<img border="0" src="images/activetravel_08.jpg" width="282" height="74"></a></td>
					<td colspan="3">
					<img border="0" src="images/activetravel669w.gif" width="669" height="1"></td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>
					<img border="0" src="images/activetravel23h.gif" width="1" height="23"></td>
					<td>&nbsp;</td>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>
					<img border="0" src="images/activetravel59h.gif" width="1" height="59"></td>
					<td colspan="4" valign="top">
					<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table3">
						<tr>
							<td>
							<img border="0" src="images/activetravel178w.gif" width="178" height="1"></td>
							<td>
							<img border="0" src="images/activetravel773w.gif" width="773" height="1"></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td><script type="text/javascript" src="data.js"></script></td>
						</tr>
					</table>
					</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td bgcolor="#FFFFFF" colspan="6">
					<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table4">
						<tr>
							<td>
							<img border="0" src="images/activetravel12x12.gif" width="12" height="12"></td>
							<td>
							<img border="0" src="images/activetravel663w.gif" width="663" height="1"></td>
							<td>
							<img border="0" src="images/activetravel6w.gif" width="6" height="1"></td>
							<td>
							<img border="0" src="images/activetravel282w.gif" width="282" height="1"></td>
							<td>
							<img border="0" src="images/activetravel12x12.gif" width="12" height="12"></td>
						</tr>
						<tr>
							<td>
							<img border="0" src="images/activetravel215h.gif" width="1" height="215"></td>
							<td valign="top">
							main
</td>
							<td>&nbsp;</td>
							<td valign="top">
							small
</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td>
							<img border="0" src="images/activetravel12x16.gif" width="12" height="16"></td>
							<td>
							<img border="0" src="images/activetravel16h.gif" width="1" height="16"></td>
							<td>
							<img border="0" src="images/activetravel16h.gif" width="1" height="16"></td>
							<td valign="top">
							<img border="0" src="images/activetravel_32.gif" width="282" height="16"></td>
							<td>
							<img border="0" src="images/activetravel12x16.gif" width="12" height="16"></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td colspan="3" bgcolor="#D6D7D6">
							<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table5">
								<tr>
									<td width="19">
									<img border="0" src="images/activetravel19w.gif" width="19" height="1"></td>
									<td>
									<img border="0" src="images/activetravel644w.gif" width="644" height="1"></td>
									<td>
									<img border="0" src="images/activetravel6w.gif" width="6" height="1"></td>
									<td>
									<img border="0" src="images/activetravel267w.gif" width="267" height="1"></td>
									<td>
									<img border="0" src="images/activetravel15x25.gif" width="15" height="25"></td>
								</tr>
								<tr>
									<td width="19">&nbsp;</td>
									<td valign="top">
									<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table6">
										<tr>
											<td>
											<img border="0" src="images/activetravel619.gif" width="619" height="1"></td>
											<td>
											<img border="0" src="images/activetravel25.gif" width="25" height="1"></td>
										</tr>
										<tr>
											<td valign="top">
											<div align="left">
											<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table8">
												<tr>
													<td align="left">
													<h1>bbbb
													<font color="#D8212B">|&nbsp;
													</font>aaa</h1></td>
												</tr>
												<tr>
													<td>
													<p class="intro">country 
													intro</td>
												</tr>
												<tr>
													<td>&nbsp;</td>
												</tr>
												<tr>
													<td>&nbsp;</td>
												</tr>
												<tr>
													<td>
													
													
													
													
													<table border="0" bordercolor="#D6D7D6" style="background-color:#D6D7D6" width="618" cellpadding="0" cellspacing="0"> <?php foreach ($toursRecords as $record): ?><?php foreach ($escorted_toursRecords as $record): ?>

	<tr>
		<td width="532" colspan="3"><p class="bodybold"> 
						<span style="font-size: 14px; font-weight: 700"><?php echo $record['tour_name'] ?></span></td>
		<td width="86" colspan="2">
		<p align="right">
		<font face="Arial" style="font-weight: 700" size="1"><?php echo $record['length_of_trip'] ?> </font>
		<font face="Arial" style="font-weight: 700" size="1">DAYS</font></td>
	</tr>
	<tr>
		<td class="body" width="561" colspan="5">
		<p class="body" style="margin-bottom: 6px"><?php echo $record['tour_summary'] ?></td>
	</tr>
	<tr>
		<td class="sumgen" valign="top" width="133" rowspan="5">

				
				      
       <p style="margin-top: 3px">

				
				      
       <!-- 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['main_image'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <a href="<?php echo $record['_link'];?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?> " height="<?php echo $upload['thumbHeight'] ?>" alt="" / border="0" ><br/>

         
          <?php endif ?>
        <?php endforeach ?>
 
 </td>
		<p>
		<tr>
		<td valign="top" width="93">
		<p class="body" style="margin-top: 3px; margin-bottom: 3px; margin-left:10px"><b>Holiday type:</b></td>
		<td valign="top" width="280"><p class="body" style="margin-top: 3px; margin-bottom: 3px; margin-left:5px">
		<?php echo join(', ', getListLabels('tours', 'type_of_trip_activity', $record['type_of_trip_activity'])); ?></td>
		<td class="body" valign="top" width="16">
		<p style="margin-top: 3px; margin-bottom: 3px">&nbsp;</td>
		<td valign="top" width="70" rowspan="2">
		<p class="body" style="margin-top: 3px; margin-bottom: 3px; margin-left:5px">
		<a href="<?php echo $record['_link'] ?>"><img src="/images/details.jpg " width="61" height="18" alt="more info" border="0"/></a>
<tr>
		<td class="body" valign="top" width="93">
		<p style="margin-top: 3px; margin-bottom: 3px; margin-left:10px">
		<b>Departs from:</b></td>
		<td valign="top" width="280"><p class="body" style="margin-top: 3px; margin-bottom: 3px; margin-left:5px">
		<?php echo $record['starting_in_city'] ?></td>
		<td class="body" valign="top" width="16">
		&nbsp;</td>
														<tr>
		<td class="body" valign="top" width="93">
		<p style="margin-top: 3px; margin-bottom: 3px; margin-left:10px">
		<b>Dates:</b></td>
		<td valign="top" width="346" colspan="3"><p class="body" style="margin-top: 3px; margin-bottom: 3px; margin-left:5px">
		<?php echo $record['departs'] ?></td>
		<tr>
		<td class="body" valign="top" width="93">
		<p style="margin-top: 3px; margin-bottom: 3px; margin-left:10px">
		<b>Price from:</b></td>
		<td valign="top" width="346" colspan="3">
		<b><p class="body" style="margin-top: 3px; margin-bottom: 3px; margin-left:5px">
</b>		<?php echo $record['currency'] ?>
		<?php echo $record['departure_1_price_twin'] ?></td>
		<tr>
		<td class="sumgen" valign="top" style="border-bottom: 1px solid #3A7190" colspan="5">
		&nbsp;</td>
		<tr>
		<td class="sumgen" valign="top" colspan="5">
		&nbsp;</td>
		<TR>
		<TD class="sumgen" valign="top" valign="top">


 <?php endforeach ?>

    <?php if (!$toursRecords): ?>
      No records were found!<br/><br/>
    <?php endif ?>
    
     <?php endforeach ?>

    <?php if (!$escorted_toursRecords): ?>
      No records were found!<br/><br/>
    <?php endif ?>

    
</td>

						
        
    </TABLE> 
<b></b></td>
												</tr>
												<tr>
													<td>&nbsp;</td>
												</tr>
												<tr>
													<td>&nbsp;</td>
												</tr>
											</table>
											</div>
											</td>
											<td valign="top">&nbsp;</td>
										</tr>
									</table>
									</td>
									<td valign="top">&nbsp;</td>
									<td valign="top">
									<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table7">
										<tr>
											<td valign="top">
											<img border="0" src="images/activetravel267w.gif" width="267" height="1"></td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">
											</td>
										</tr>
										<tr>
											<td valign="top">
											<img border="0" src="images/activetravel59h.gif" width="1" height="59"></td>
										</tr>
										<tr>
											<td valign="top">
											<img border="0" src="images/expect.jpg" width="265" height="24"></td>
										</tr>
										<tr>
											<td valign="top">
													<img border="0" src="images/activetravel9h.gif" width="1" height="9"></td>
										</tr>
										<tr>
											<td valign="top">
											<p class="intro">expect</td>
										</tr>
										<tr>
											<td valign="top">
											&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">
											&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">
											&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">
											<a target="_blank" href="http://www.print.com.au">
											<img border="0" src="images/print.jpg" width="265" height="37"></a></td>
										</tr>
										<tr>
											<td valign="top">
											<a href="http://www.enquiry.com.au">
											<img border="0" src="images/enquiry.jpg" width="265" height="38"></a></td>
										</tr>
										<tr>
											<td valign="top">
											<a target="_blank" href="http://www.gallery.com.au">
											<img border="0" src="images/gallery.jpg" width="265" height="37"></a></td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">
											<a href="http://www.hotels.com.au">
											<img border="0" src="images/prepost.jpg" width="265" height="37"></a></td>
										</tr>
										<tr>
											<td valign="top">
											<a href="http://www.extend.com.au">
											<img border="0" src="images/extend.jpg" width="265" height="38"></a></td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">
											<img border="0" src="images/searchagain_03.jpg" width="265" height="37"></td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
										<tr>
											<td valign="top">&nbsp;</td>
										</tr>
									</table>
									</td>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td width="19">&nbsp;</td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								</tr>
							</table>
							</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td>
							<img border="0" src="images/activetravel12x12.gif" width="12" height="12"></td>
							<td>
							<img border="0" src="images/activetravel12x12.gif" width="12" height="12"></td>
							<td>
							<img border="0" src="images/activetravel6w.gif" width="6" height="1"></td>
							<td>
							<img border="0" src="images/activetravel12x12.gif" width="12" height="12"></td>
							<td>
							<img border="0" src="images/activetravel12x12.gif" width="12" height="12"></td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
</div>

</body>

</html>