<?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/hummingb/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($festival_pagesRecords, $festival_pagesMetaData) = getRecords(array(    'tableName'   => 'festival_pages',	   'where'       => whereRecordNumberInUrl(1),    'limit'       => '1',  ));  $festival_pagesRecord = @$festival_pagesRecords[0]; // get first record    // load records  list($festival_adsRecords, $festival_adsMetaData) = getRecords(array(    'tableName'   => 'festival_ads',    'allowSearch' => '0',    'limit'       => '1',  ));  $festival_adsRecord = @$festival_adsRecords[0]; // get first record     // load records  list($footerRecords, $footerMetaData) = getRecords(array(    'tableName'   => 'footer',    'allowSearch' => '0',    'limit'       => '1',  ));  $footerRecord = @$footerRecords[0]; // get first record      // load records  list($festival_bannerRecords, $festival_bannerMetaData) = getRecords(array(    'tableName'   => 'festival_banner',    'allowSearch' => '0',    'limit'       => '1',  ));  $festival_bannerRecord = @$festival_bannerRecords[0]; // get first record     list($allPages, $selectedPage) = getRecords(array(      'tableName'            => 'festival_pages',     'allowSearch'           =>  false,   ));		    // load records  list($other_pages_festivalRecords, $other_pages_festivalMetaData) = getRecords(array(    'tableName'   => 'other_pages_festival',    'where'       => whereRecordNumberInUrl(1),    'limit'       => '1',  ));  $other_pages_festivalRecord = @$other_pages_festivalRecords[0]; // get first record    // load records  list($rh_column_festival_topRecords, $rh_column_festival_topMetaData) = getRecords(array(    'tableName'   => 'rh_column_festival_top',    'allowSearch' => '0',    'limit'       => '1',  ));  $rh_column_festival_topRecord = @$rh_column_festival_topRecords[0]; // get first record      list($rh_column_festival_bottomRecords, $rh_column_festival_bottomMetaData) = getRecords(array(    'tableName'   => 'rh_column_festival_bottom',    'allowSearch' => '0',    'limit'       => '1',  ));  $rh_column_festival_bottomRecord = @$rh_column_festival_bottomRecords[0]; // get first record  // show error message if no matching record is found  if (!$festival_pagesRecord) { dieWith404("Record not found!"); }?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Expires" CONTENT="0"><title><?php echo $other_pages_festivalRecord['metatitle'] ?></title><META NAME="description" content="<?php echo $other_pages_festivalRecord['metadescription'] ?>"> <link href='favicon.ico' rel='shortcut icon' type='image/gif'/><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="styles.css" rel="stylesheet" type="text/css"><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js" type="text/javascript"></script><script src="menu.js" type="text/javascript"></script><link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" /><link rel="stylesheet" type="text/css" href="ddsmoothmenu-v.css" /><script type="text/javascript" src="ddsmoothmenu.js">/************************************************ Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)* This notice MUST stay intact for legal use* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code***********************************************/</script><script type="text/javascript">ddsmoothmenu.init({	mainmenuid: "smoothmenu1", //menu DIV id	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"	classname: 'ddsmoothmenu', //class added to menu's outer DIV	//customtheme: ["#1c5a80", "#18374a"],	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]})</script></head><div id="maincontainer"><?php include("header.php"); ?><!--end header--><div id="headerpic">        <?php foreach ($festival_bannerRecord['banner_upload'] 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 ?>            </div><!--end headepicr--><div id="smoothmenu1" class="ddsmoothmenu"><ul>  <?php foreach ($allPages as $page): ?>          <?php $link = $page['url'] ? $page['url'] : $page['_link']; ?>               <li><a href="<?php echo $link; ?>">   <?php echo $page['title'] ?> </a>  </li>         <?php endforeach; ?>  </ul><br style="clear: left" /></div><div id="content"><div id="content-left">  <h1><?php echo $other_pages_festivalRecord['headline'] ?></h1>  <h2><?php echo $other_pages_festivalRecord['subhead'] ?></h2>  <p><?php echo $other_pages_festivalRecord['content'] ?></p></div><div id="content-right"><?php echo $rh_column_festival_topRecord['content'] ?>  <p align="center"> <!-- STEP 2a: Display Uploads for field 'festival-ads' (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 shuffle($festival_adsRecord['festival-ads']); ?> <?php foreach ($festival_adsRecord['festival-ads'] 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']): ?>            <a href="<?php echo $upload['info1']; ?>" target="_blank"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /></a><br/>          <?php else: ?>            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>          <?php endif ?>        <?php endforeach ?>      <!-- STEP2a: /Display Uploads --></p><?php echo $rh_column_festival_bottomRecord['content'] ?></div><div id="clear"></div></div><!--end content--><div id="footer"><p align="center"><a href="festival.php?Home-1">HOME</a> | <a href="festival.php?Sedona-2">SEDONA</a> | <a href="festival.php?Festival-Gala-8">FESTIVAL GALA</a> | <a href="festival.php?Festival-Presentations-7">FESTIVAL PRESENTATIONS</a> | <a href="festival.php?Festival-Presentations-9">FESTIVAL ACTIVITIES</a><br />      <a href="festival.php?Sedona-Business-Supporters-6">SEDONA BUSINESS SUPPORTERS</a> | <a href="festival.php?Deals-5">DEALS</a> | <a href="festival.php?Tickets-4">TICKETS</a> | <a href="festival.php?Maps-3">MAPS</a> | <a href="festival.php?Maps-11">MEDIA</a></p>  <?php include("footer.php"); ?></div><!--end footer--></div><!--end maincontainer--><p align="center"><a href="http://www.fp2marketing.com" target="_blank"><img src="http://www.fp2marketing.com/logo_fp2_link2.jpg" alt="FP2 Marketing and Website Design" border="0"></a></p><div align="center" class="photocredit">Top Cathedral Rock photo by: <a href="http://www.andrewholman.com" target="_blank">Andrew Holman Photography</a><br />  (hummingbird) Randall Blackwood <br />  <br /></div></body></html>