<?php echo "<?xml version='1.0'?>\n"; ?>
<!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>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  <style type="text/css">
    body          { font-family: arial; }
    .instructions { border: 3px solid #000; background-color: #EEE; padding: 10px; text-align: left; margin: 25px}
  </style>
 </head>
<body>

  <!-- INSTRUCTIONS -->
    <div class="instructions">
      <b>Sample Page Viewer - Instructions:</b>
      <ol>
        <li>Remove any fields you don't want displayed.</li>
        <li>Rearrange remaining fields to suit your needs.</li>
        <li>Copy and paste code into previously designed page (or add design to this page).</li>
      </ol>
    </div>
  <!-- /INSTRUCTIONS -->



  <!-- STEP1: Load Record (Paste this above other step) -->
    <?php
      require_once "http://www.shoreshot.net/cmsAdmin/lib/viewer_functions.php";
      $options = array();                // NOTE: see online documentation for more details on these options
      $options['tableName'] = 'homepage'; // (REQUIRED) MySQL tablename to list record from. Example: "article";
      $options['recordNum'] = '';        // (optional) Record number to display.  Example: "1"; Defaults to number on end of url, then 1
      $options['where']     = '';        // (ADVANCED) MySQL WHERE conditions to use INSTEAD of recordNum to look up record. Example: "fieldname = 'value'"
      $record = getRecord($options);
    ?>
  <!-- /STEP1: Load Record -->



  <!-- STEP2: Display Record (Paste this where you want your record displayed and re-arrange fields) -->
  <h1>Homepage Page Viewer</h1>
          Content: <?php echo $record['content'] ?><br/>
    <?php endif ?>

    <?php if (empty($record)): ?><!-- Display "No Records Found" Message -->
      No record found!<br/><br/>
    <?php endif ?>
  <!-- STEP2: /Display Record -->



<div style="float: right; font-size: 10px; color: #999999">
  <a href='http://www.interactivetools.com/'>Content Management</a> by interactivetools.com<br/><br/>
</div>

</body>
</html>