<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
   require_once "/home/straffor/public_html/cmsAdmin/lib/viewer_functions.php";

// load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/home/straffor/public_html/','','../','../../','../../../');
  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 from 'standmaps_2015_aerial'
  list($standmaps_2015_aerialRecords, $standmaps_2015_aerialMetaData) = getRecords(array(
    'tableName'   => 'standmaps_2015_aerial',
    'loadUploads' => false,
    'allowSearch' => true,
  ));

  
  // load records from 'standmaps_2015land'
  list($standmaps_2015landRecords, $standmaps_2015landMetaData) = getRecords(array(
    'tableName'   => 'standmaps_2015land',
    'loadUploads' => false,
    'allowSearch' => false,
  ));
  
// load records from 'standmaps_transport'
  list($standmaps_transportRecords, $standmaps_transportMetaData) = getRecords(array(
    'tableName'   => 'standmaps_transport',
    'loadUploads' => false,
    'allowSearch' => false,
  ));


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta id="p7MGM" name="viewport" content="width=device-width"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
		<title>
			Standardized Maps - Index - SRPC 
		</title>
	</head>
	<body>
		<div id="logo">
			<div class="affinity-row thirds">
				<div class="column-third">
					<div class="column-content white">
						<h2 id="logotype_inside">
							<img src="../img_site/graphic_homepg.png" width="168" height="15" hspace="8" vspace="6" align="absmiddle"> 
							<a href="../index.php">
								SRPC 
							</a>
						</h2>
					</div>
				</div>
				<div class="column-third">
					<div class="column-content white">
					</div>
				</div>
				<div class="column-third no-margin">
					<div class="column-content">
						<br> <br> 
					</div>
				</div>
			</div>
		</div>
		</div>
		<div id="menu">
<!-- insert MGM horiz here-->
		</div>
		<div id="layout">
			<div class="affinity-row">
				<div class="column-content">
					<h1>
						Standarized Maps 
					</h1>
					<div id="p7QC_2" class="p7QC">
						<div class="p7QC-Col p7QC-3col-1 percent333">
							<div class="p7QC-content">
<!--START AERIAL MAPS-->
								<h3>
									2015 Aerial 
								</h3>
								<p>
									<img src="mapthumb-aerial.jpg" width="200" height="254"> 
								</p>
<?php foreach ($standmaps_2015_aerialRecords as $record): ?>
								<a href="&lt;?php echo $record['_link'] ?&gt;">
<?php echo htmlencode($record['townaerial15']) ?>
								</a>
								<hr /> 
<?php endforeach ?>
<?php if (!$standmaps_2015_aerialRecords): ?>
								Currently there are no maps in this category.<br /> 
<?php endif ?>
<!--END AERIAL MAPS-->
							</div>
						</div>
						<div class="p7QC-Col p7QC-3col-2 percent333">
							<div class="p7QC-content">
<!--START LAND USE MAPS-->
								<h3>
									2015 Land Use 
								</h3>
								<p>
									<img src="mapthumb-transport.jpg" width="200" height="254"> 
								</p>
<?php foreach ($standmaps_2015landRecords as $record): ?>
								<a href="&lt;?php echo $record['_link'] ?&gt;">
<?php echo htmlencode($record['townLanduse']) ?>
									Map 
								</a>
								<hr /> 
<?php endforeach ?>
<?php if (!$standmaps_2015landRecords): ?>
								Currently there are no maps in this category<br /> <br /> 
<?php endif ?>
<!--END LAND USE MAPS-->
							</div>
						</div>
						<div class="p7QC-Col p7QC-3col-3 percent333">
							<div class="p7QC-content">
<!--START TRANSPORTATION-->
								<h3>
									Transportation 
								</h3>
								<p>
									<img src="mapthumb-transport.jpg" width="200" height="254"> 
								</p>
<?php foreach ($standmaps_transportRecords as $record): ?>
								<a href="&lt;?php echo $record['_link'] ?&gt;">
<?php echo htmlencode($record['townTransp']) ?>
									Map 
								</a>
<?php endforeach ?>
<?php if (!$standmaps_transportRecords): ?>
								<br /> 
<?php endif ?>
<!--END TRANSPORTATION-->
							</div>
						</div>
	</body>
</html>
