<?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('/var/zpanel/hostdata/lakeside/springflingevent_ca/','','../','../../','../../../');
  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($homepageRecords, $homepageMetaData) = getRecords(array(
    'tableName'   => 'homepage',
    'allowSearch' => '0',
    'limit'       => '1',
  ));
  $homepageRecord = @$homepageRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$homepageRecord) { dieWith404("Record not found!"); }

  list($sessions_introductionRecords, $sessions_introductionMetaData) = getRecords(array(
    'tableName'   => 'sessions_introduction',
    'allowSearch' => '0',
  ));
  $sessions_introductionRecord = @$sessions_introductionRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$sessions_introductionRecord) { dieWith404("Record not found!"); }

  list($sessions_detailsRecords, $sessions_detailsMetaData) = getRecords(array(
    'tableName'   => 'sessions_details',
'orderBy'=> 'time',  ));

?>
<!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>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Sessions</TITLE>
<LINK HREF="styles.css" REL="stylesheet" TYPE="text/css">
 <script type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
 </HEAD>

<BODY>
<DIV ALIGN="center"><TABLE WIDTH="1000" BORDER="0" ALIGN="CENTER" CELLPADDING="0" CELLSPACING="0" CLASS="tableOuterCell">
  <TR>
    <TD COLSPAN="5"><?php require_once('_include-masthead.php'); ?></TD>
  </TR>
  <TR>
    <TD COLSPAN="5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <?php foreach ($homepageRecord['masthead_image_1'] as $upload): ?>
                    <?php if ($upload['hasThumbnail']): ?>
                    <?php elseif ($upload['isImage']): ?>
                    <td width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" valign="baseline" background="<?php echo $upload['urlPath'] ?>" class="tdLowerInsetImageBG" ></td>
                    <?php else: ?>
                    <?php endif ?>
                    <?php endforeach ?>
                    <td>&nbsp;</td>
                    <?php foreach ($homepageRecord['masthead_image_2'] as $upload): ?>
                    <?php if ($upload['hasThumbnail']): ?>
                    <?php elseif ($upload['isImage']): ?>
                    <td width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" valign="baseline" background="<?php echo $upload['urlPath'] ?>" class="tdLowerInsetImageBG" ></td>
                    <?php else: ?>
                    <?php endif ?>
                    <?php endforeach ?>
                    <td>&nbsp;</td>
                    <?php foreach ($homepageRecord['masthead_image_3'] as $upload): ?>
                    <?php if ($upload['hasThumbnail']): ?>
                    <?php elseif ($upload['isImage']): ?>
                    <td width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" valign="baseline" background="<?php echo $upload['urlPath'] ?>" class="tdLowerInsetImageBG" ></td>
                    <?php else: ?>
                    <?php endif ?>
                    <?php endforeach ?>
                  </tr>
                  <tr>
                    <td><img src="images/single-pixel.gif" width="324" height="1" /></td>
                    <td><img src="images/single-pixel.gif" width="16" height="1" /></td>
                    <td><img src="images/single-pixel.gif" width="324" height="1" /></td>
                    <td><img src="images/single-pixel.gif" width="16" height="1" /></td>
                    <td><img src="images/single-pixel.gif" width="324" height="1" /></td>
                  </tr>
              </table></TD>
  </TR>
  
  <TR>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="30" HEIGHT="10"></TD>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="162" HEIGHT="1"></TD>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="30" HEIGHT="1"></TD>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="750" HEIGHT="1"></TD>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="30" HEIGHT="1"></TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD><?php require_once('_include-navigation.php'); ?></TD>
    <TD>&nbsp;</TD>
    <TD><TABLE width="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Main Content">
      
      <tr>
        <td colspan="2"><h1>Sessions</h1></td>
      </tr>
      <tr>
        <td colspan="2"><?php require_once('_include-sessions-intro.php'); ?></td>
        </tr>
      
      
      <tr>
        <td colspan="2"><img src="images/single-pixel.gif" width="750" height="10" /></td>
        </tr>

      <TR>
        <TD COLSPAN="2"><table width="750" border="0" cellpadding="0" cellspacing="0">  
 <tr>  
  
<h2>Segment 1: 10:15 - 11:15</h2>
<?php 
$_REQUEST['time']="10:15am - 11:15am"; 
include("_include-sessions-segment.php"); 
?>
  
<h2>Segment 2: 11:30am - 12:30pm</h2>
<?php 
$_REQUEST['time']="11:30am - 12:30pm"; 
include("_include-sessions-segment.php"); 
?>
  
<h2>Segment 3: 1:45pm - 2:45pm</h2>
<?php 
$_REQUEST['time']="1:45pm - 2:45pm"; 
include("_include-sessions-segment.php"); 
?>
  
<h2>Segment 4: 3:00pm - 4:00pm</h2>
<?php 
$_REQUEST['time']="3:00pm - 4:00pm"; 
include("_include-sessions-segment.php"); 
?>
  
 </tr>  
</table></TD>
      </TR>

      
      
      <TR>
        <TD><img src="images/single-pixel.gif" width="519" height="10" /></TD>
        <TD><img src="images/single-pixel.gif" width="221" height="1" /></TD>
      </TR>
      
    </TABLE>
      <IMG SRC="images/single-pixel.gif" WIDTH="1" HEIGHT="1"></TD>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD>&nbsp;</TD>
    <TD>&nbsp;</TD>
    <TD><?php require_once('_include-footer.php'); ?></TD>
    <TD>&nbsp;</TD>
  </TR>
  <TR>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="30" HEIGHT="1"></TD>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="162" HEIGHT="1"></TD>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="30" HEIGHT="1"></TD>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="750" HEIGHT="1"></TD>
    <TD><IMG SRC="images/single-pixel.gif" WIDTH="30" HEIGHT="1"></TD>
  </TR>
  
</TABLE>
</DIV>
</BODY>
</HTML>
