<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */
  require_once "/home/infinite/public_html/cmsAdmin/lib/viewer_functions.php";
    

  list($storeRecords, $storeMetaData) = getRecords(array(
    'tableName'   => 'store',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $storeRecord = @$storeRecords[0]; // get first record

?>


<?php require_once('../header.ssi'); ?>

      
     
      <p>
      <a href="http://www.infinitewell-being.com/index.php">Home</a> 
      <span class="style1">&raquo;</span>
      <a href="http://www.infinitewell-being.com/store/storeList.php">All Products List</a> 
      <span class="style1">&raquo;</span> 
     <?php echo $storeRecord['title'] ?>
    
      </p>
      
      
      
     <hr/>
         
     <p>  <a href="http://www.infinitewell-being.com/store/storeList.php?category=beverage">Beverages</a>  | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=beverage">Chocolate</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Chocolate">Dried Fruit</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=DVD">DVD</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Fish">Fish</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Gift Boxes">Gift Boxes</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Nuts">Nuts</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=oil">Oil</a>  | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Seeds">Seeds</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Snacks">Snacks</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Spices">Spices</a> | 
     <a href="http://www.infinitewell-being.com/store/storeList.php?category=Vinegar">Vinegar</a></p>
     <br/>
     <br/>
   

 
    
<h3> <?php echo $storeRecord['title'] ?></h3><br/><br/>  
<?php foreach ($storeRecord['product_picture'] 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><strong>  Product:</strong> <?php echo $storeRecord['product_name'] ?></p><br/>
    
<p>  <?php echo $storeRecord['product_description'] ?></p><br/>
    
<p>  <strong> Price:</strong> <?php echo $storeRecord['product_price'] ?>  <br/>
   
<?php echo $storeRecord['add_to_cart'] ?></p><br/> 
     
  
   <p>  <strong> Food Rating:</strong> <?php echo join(', ', getListLabels('store', 'food_rating', $storeRecord['food_rating'])); ?></p><br/>
   <p>  <strong> Weight:</strong> <?php echo $storeRecord['weight'] ?></p><br/>
   <p>  <strong> Serving Size:</strong> <?php echo $storeRecord['serving_size'] ?></p><br/>
   <p>  <strong> Nutritional Information:</strong> <?php echo $storeRecord['nutritional_information'] ?></p><br/>
   <p> <strong> Note: </strong><?php echo $storeRecord['note'] ?></p><br/>
     
     
     

 <!-- STEP 2a: Display Uploads for field 'product_picture' (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 ($storeRecord['product_picture'] 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 -->


    
<?php if (!$storeRecord): ?>
 No record found!<br/><br/>
<?php endif ?>
<!-- /STEP2: Display Records -->


<?php require_once('../footer.ssi'); ?>
