<?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/brionnyf/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
  list($misc_contentRecords, $misc_contentMetaData) = getRecords(array(
    'tableName'   => 'misc_content',
    'allowSearch' => '0',
    'limit'       => '1',
  ));
  $misc_contentRecord = @$misc_contentRecords[0]; // get first record

  // load records
  list($google_codeRecords, $google_codeMetaData) = getRecords(array(
    'tableName'   => 'google_code',
    'allowSearch' => '0',
    'limit'       => '1',
  ));
  $google_codeRecord = @$google_codeRecords[0]; // get first record

  // load records
  list($shopRecords, $shopMetaData) = getRecords(array(
    'tableName'   => 'shop',
  ));
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo $misc_contentRecord['shop_title'] ?></title>
<meta name="description" content="<?php echo $misc_contentRecord['shop_description'] ?>">
<meta name="keywords" content="<?php echo $misc_contentRecord['shop_keywords'] ?>">
<meta http-equiv="Content-Language" content="en">
<link href="menu/menu_style.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css">
<?php include("includes/google.inc.php"); ?>
</head>
<body>
<?php include("includes/fp.inc.php"); ?>
<div align="center">
<?php include("includes/logo.inc.php"); ?>
<table border="0" width="800" cellspacing="0" cellpadding="0" height="100%">

		<tr>

			<td valign="top"><div align="center">
			  
			  
			  
			  <ul id="menu">
   <li><a href="index.php" target="_self" title="Home">Home</a></li>
   <li><a href="classes.php" target="_self" title="Classes/Fees">Classes/Fees</a></li>
   <li><a href="timetable.php" target="_self" title="Timetable">Timetable</a></li>
   <li><a href="bio.php" target="_self" title="Biography">Biography</a></li>
   <li><a href="faq.php" target="_self" title="FAQ">FAQ</a></li>
   <li><a class="current" href="shop.php" target="_self" title="Shop">Shop</a></li>
   <li><a href="gallery.php" target="_self" title="Gallery">Gallery</a></li>
   <li><a href="contact.php" target="_self" title="Contact">Contact</a></li>
</ul>


			</div>
			<h1 align="center"><font face="Arial">Shop</font></h1>
              <?php foreach ($shopRecords as $record): ?>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td width="200" align="center" valign="top"><span class="left">
      <?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="" />
      <?php elseif ($upload['isImage']): ?>
      <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>
      <?php endif ?>
      <?php endforeach ?>
      <br>
      <strong>Price:</strong> <em>$<?php echo $record['price'] ?></em><br>
	  <?php echo $record['paypal_link'] ?>
      </td>
    <td width="599" align="left" valign="top"><strong><?php echo $record['title'] ?></strong><br>      
      <?php echo $record['content'] ?>
      Colours: <?php echo $record['colours'] ?>
    </td>
    </tr>
  <tr>
    <td height="1" colspan="2" align="left" valign="top">&nbsp;</td>
    </tr>
</table>
    <?php endforeach ?>

    <?php if (!$shopRecords): ?>
      No records were found!<br/><br/>
    <?php endif ?>
  <!-- /STEP2: Display Records -->


			

			<div align="center">

				<?php include("includes/footer.inc.php"); ?>

			</div>

			

		  </td>

		</tr>

	</table>

</div>

<?php include("includes/social.inc.php"); ?>

</body>



</html>

