<?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('/home/billd3/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($bird_photosRecords, $bird_photosMetaData) = getRecords(array(    'tableName'   => 'bird_photos',  ));	$bird_photosRecord = @$bird_photosRecords[0]; // get first record      // load records  list($songbird_photosRecords, $songbird_photosMetaData) = getRecords(array(    'tableName'   => 'bird_photos',    'limit'       => '1',	'where'       => "(`subcat` LIKE '%\tSongbirds\t%')",  ));	$songbird_photo = $songbird_photosRecords[0];     // load record  list($waterbird_photosRecords, $waterbird_photosMetaData) = getRecords(array(    'tableName'   => 'bird_photos',    'where'       => "(`subcat` LIKE '%\tWaterbirds\t%')",    'limit'       => '1',  ));	$waterbird_photo = $waterbird_photosRecords[0];	     // load record  list($preybird_photosRecords, $preybird_photosMetaData) = getRecords(array(    'tableName'   => 'bird_photos',    'where'       => "(`subcat` LIKE '%\tBirds of Prey\t%')",    'limit'       => '1',  ));	$preybird_photo = $preybird_photosRecords[0];       // load record  list($otherbird_photosRecords, $otherbird_photosMetaData) = getRecords(array(    'tableName'   => 'bird_photos',    'where'       => "(`subcat` LIKE '%\tAll Other Birds\t%')",    'limit'       => '1',  ));	$otherbird_photo = $otherbird_photosRecords[0];  // show error message if no matching record is found  if (!$bird_photosRecord) {    header("HTTP/1.0 404 Not Found");    print "Record not found!";    exit;  }?><?php include "include_header.php"; ?>        <table width="1000" border="0" cellspacing="0" cellpadding="0">          <tr>            <td align="left" valign="top"><img src="images/1pixel.gif" width="1" height="12" /></td>          </tr>          <tr>            <td align="left" valign="top"><h1>BIRD PHOTOGRAPHY GALLERIES</h1></td>          </tr>          <tr>            <td align="left" valign="top"><img src="images/div-line-gradient.jpg" width="1000" height="2" vspace="1" /></td>          </tr>          <tr>            <td align="left" valign="top"><img src="images/1pixel.gif" width="1" height="8" /></td>          </tr>          <tr>            <td align="left" valign="top" class="content"><table width="1000" border="0" cellspacing="0" cellpadding="0">              <tr>                <td width="618" align="left" valign="top" class="content">Select a Bird Photography Gallery below!</td>                <td width="48" align="left" valign="top" class="content">&nbsp;</td>                <td width="334" align="center" valign="top" class="content"><a href="http://rolfnussbaumer.photoshelter.com/gallery/Bill-Sharon-Draker/G0000QFpzJOOitLY/P0000ufowkSZbrow"><img src="images/bnr-stock-photo-dealer-rolf-nussbaumer.png" alt="buy stock scenic scenery landscape photography photos" width="334" height="76" vspace="2" /><br />                </a>ALL PHOTOGRAPHY <span class="style4">©</span> BILL &amp; SHARON DRAKER </td>                <?php if (!$bird_photography_galleryRecord): ?>      No record found!<br/><br/>    <?php endif ?>              </tr>                          </table></td>          </tr>          <tr>            <td align="left" valign="top">&nbsp;</td>          </tr>                    <tr>            <td align="left" valign="top" class="style1">            <table width="1000" border="0">   <tr>  <td colspan="2" align="left" valign="top">  </td></tr><tr>  <td width="489" align="left" valign="top"><table width="475" border="0" cellspacing="0" cellpadding="0">    <tr>      <td width="325" align="center" valign="top"><table width="100" height="100" border="0" cellpadding="0" cellspacing="0" id="frame">        <tr>          <td>        <?php foreach ($bird_photosRecord['upload_images'] as $upload): ?>          <?php if ($upload['hasThumbnail']): ?>            <a href="bird-photography.php"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></a>            <?php endif ?>            <?php endforeach ?><br/>          </td>        </tr>      </table></td>      <td width="131" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">        <tr>          <td>&nbsp;</td>        </tr>        <tr>          <td><h2><a href="bird-photography.php">VIEW ALL<br />            BIRD PHOTOS</a></h2></td>        </tr>        <tr>          <td><img src="assets/1pixel.gif" width="1" height="4" /></td>        </tr>        <tr>          <td><h3>&nbsp;</h3></td>        </tr>        <tr>          <td><img src="assets/1pixel.gif" width="1" height="16" /></td>        </tr>        <tr>          <td>&nbsp;</td>        </tr>      </table>            </br>        </br>        </br></td>    </tr>    <tr>      <td height="25" align="center" valign="top">&nbsp;</td>      <td align="left" valign="top">&nbsp;</td>    </tr>  </table></td>  <td width="501" align="left" valign="top"><table width="475" border="0" cellspacing="0" cellpadding="0">    <tr>      <td width="325" align="center" valign="top"><table width="100" height="100" border="0" cellpadding="0" cellspacing="0" id="frame">                          <tr>                            <td><?php foreach ($songbird_photo['upload_images'] as $upload): ?>                                <?php if ($upload['hasThumbnail']): ?>                                <a href="bird-songbird-photography.php"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></a>                                <?php endif ?>                                <?php endforeach ?>                            </td>                          </tr>                      </table></td>      <td width="131" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">          <tr>            <td>&nbsp;</td>          </tr>          <tr>            <td><h2><a href="bird-songbird-photography.php">SONGBIRD<br />              PHOTOS</a></h2></td>          </tr>          <tr>            <td><img src="assets/1pixel.gif" width="1" height="4" /></td>          </tr>          <tr>            <td><h3>&nbsp;</h3></td>          </tr>          <tr>            <td><img src="assets/1pixel.gif" width="1" height="16" /></td>          </tr>          <tr>            <td>&nbsp;</td>          </tr>        </table>          </br>          </br>          </br></td>    </tr>    <tr>      <td height="25" align="center" valign="top">&nbsp;</td>      <td align="left" valign="top">&nbsp;</td>    </tr>  </table></td></tr><tr>    </tr> </table>                        <table width="1000" border="0">              <tr>                <td colspan="2" align="left" valign="top"></td>              </tr>              <tr>                <td width="489" align="left" valign="top"><table width="475" border="0" cellspacing="0" cellpadding="0">                    <tr>                      <td width="325" align="center" valign="top">                      <table width="100" height="100" border="0" cellpadding="0" cellspacing="0" id="frame">                        <tr>                          <td><?php foreach ($waterbird_photo['upload_images'] as $record): ?>                              <?php if ($upload['hasThumbnail']): ?>                              <a href="bird-waterbird-photography.php"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></a>                              <?php endif ?>                          	  <?php endforeach ?>                          </td>                        </tr>                    </table>                      </td>                      <td width="131" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">                          <tr>                            <td>&nbsp;</td>                          </tr>                          <tr>                            <td><h2><a href="bird-waterbird-photography.php">WATERBIRD<br />                              PHOTOS</a></h2></td>                          </tr>                          <tr>                            <td><img src="assets/1pixel.gif" width="1" height="4" /></td>                          </tr>                          <tr>                            <td><h3>&nbsp;</h3></td>                          </tr>                          <tr>                            <td><img src="assets/1pixel.gif" width="1" height="16" /></td>                          </tr>                          <tr>                            <td>&nbsp;</td>                          </tr>                        </table>                          </br>                          </br>                          </br></td>                    </tr>                    <tr>                      <td height="25" align="center" valign="top">&nbsp;</td>                      <td align="left" valign="top">&nbsp;</td>                    </tr>                </table></td>                <td width="501" align="left" valign="top"><table width="475" border="0" cellspacing="0" cellpadding="0">                    <tr>                      <td width="325" align="center" valign="top"><table width="100" height="100" border="0" cellpadding="0" cellspacing="0" id="frame">                          <tr>                            <td><?php foreach ($preybird_photo['upload_images'] as $upload): ?>                                <?php if ($upload['hasThumbnail']): ?>                                <a href="bird-birdsofprey-photography.php"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></a>                                <?php endif ?>                                <?php endforeach ?>                            </td>                          </tr>                      </table></td>                      <td width="131" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">                          <tr>                            <td>&nbsp;</td>                          </tr>                          <tr>                            <td><h2><a href="bird-birdsofprey-photography.php">Birds Of Prey<br />                              PHOTOS</a></h2></td>                          </tr>                          <tr>                            <td><img src="assets/1pixel.gif" width="1" height="4" /></td>                          </tr>                          <tr>                            <td><h3>&nbsp;</h3></td>                          </tr>                          <tr>                            <td><img src="assets/1pixel.gif" width="1" height="16" /></td>                          </tr>                          <tr>                            <td>&nbsp;</td>                          </tr>                        </table>                          </br>                          </br>                          </br></td>                    </tr>                    <tr>                      <td height="25" align="center" valign="top">&nbsp;</td>                      <td align="left" valign="top">&nbsp;</td>                    </tr>                </table></td>              </tr>              <tr> </tr>            </table>            <table width="1000" border="0">              <tr>                <td colspan="2" align="left" valign="top"></td>              </tr>              <tr>                <td width="489" align="left" valign="top"><table width="475" border="0" cellspacing="0" cellpadding="0">                  <tr>                    <td width="325" align="center" valign="top"><table width="100" height="100" border="0" cellpadding="0" cellspacing="0" id="frame">                        <tr>                          <td><?php foreach ($otherbird_photo['upload_images'] as $upload): ?>                              <?php if ($upload['hasThumbnail']): ?>                              <a href="bird-allotherbirds-photography.php"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></a>                              <?php endif ?>                              <?php endforeach ?>                          </td>                        </tr>                    </table></td>                    <td width="131" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">                        <tr>                          <td>&nbsp;</td>                        </tr>                        <tr>                          <td><h2><a href="bird-allotherbirds-photography.php">VIEW ALL OTHER<br />                            BIRD PHOTOS</a></h2></td>                        </tr>                        <tr>                          <td><img src="assets/1pixel.gif" width="1" height="4" /></td>                        </tr>                        <tr>                          <td><h3>&nbsp;</h3></td>                        </tr>                        <tr>                          <td><img src="assets/1pixel.gif" width="1" height="16" /></td>                        </tr>                        <tr>                          <td>&nbsp;</td>                        </tr>                      </table>                        </br>                        </br>                        </br></td>                  </tr>                  <tr>                    <td height="25" align="center" valign="top">&nbsp;</td>                    <td align="left" valign="top">&nbsp;</td>                  </tr>                </table></td>                <td width="501" align="left" valign="top">&nbsp;</td>              </tr>              <tr> </tr>            </table>            <p>&nbsp;</p>            <p>&nbsp;</p></td>          </tr>        </table>        <?php include "include_footer.php"; ?>