<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */
  require_once "/hsphere/local/home/gkornblu/elleschorrphotography.com/cmsAdmin/lib/viewer_functions.php";

list($common_informationRecords, $common_informationMetaData) = getRecords(array(
'tableName' => 'common_information',
'allowSearch'=> false,
'limit' => '1',
));
$common_informationRecord = @$common_informationRecords[0]; // get first record

// load records
list($photo_sharingRecords, $photo_sharingMetaData) = getRecords(array(
'tableName' => 'photo_sharing',
'where'       => whereRecordNumberInUrl(1),
'limit' => '1',
'allowSearch'=> true,
));
$photo_sharingRecord = @$photo_sharingRecords[0]; // get first record

$uploadVar = intval($_REQUEST['uploadNum']);

//set the data from the upoad record to the upload variable. 

$upload = mysql_get('uploads',$uploadVar);



// load records
  list($google_font_namesRecords, $google_font_namesMetaData) = getRecords(array(
    'tableName'   => 'google_font_names',
  ));
  
?>

<!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=utf-8" />
<title>E L L E &nbsp; S C H O R R &nbsp; P H O T O G R A P H Y</title>
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
<meta name="robots" content="index,follow" />
<meta name="description" content="<?php echo $common_informationRecord['site_description'] ?>">
<meta name="keywords" content="<?php echo $common_informationRecord['about_page_keywords'] ?>">
<link rel="stylesheet" type="text/css" href="css/himageMenu2.css.php" />
<link rel="stylesheet" type="text/css" media="screen" href="css/elle.css.php" />
<link rel="stylesheet" type="text/css" media="screen" href="css/style.css.php" />
<link rel="stylesheet" type="text/css" href="css/fonts.css.php" />
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php 
    $output = ''; 
    foreach ($google_font_namesRecords as $record) { $record['name'] = preg_replace("/[, ]/", "+", $record['name']);
      $output .= $record['name'] . "|"; 
    } 
    $output = rtrim($output,"|"); // remove trailing pipe 
    print $output; 
?>">
<link href="../css/elle.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jwplayer.js"></script>
</head>

<body>
<?php
    function mobile_detection ()
{
	if (isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE']))
		return true;
 if (isset ($_SERVER['HTTP_ACCEPT']))
	{
		$accept = strtolower($_SERVER['HTTP_ACCEPT']);
		if (strpos($accept, 'wap') !== false)
			return true;
	}

	if (isset ($_SERVER['HTTP_USER_AGENT']))
	{
		if (strpos ($_SERVER['HTTP_USER_AGENT'], 'Mobile') !== false)
			return true;

		if (strpos ($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== false)
			return true;
			
	if (strpos ($_SERVER['HTTP_USER_AGENT'], 'iPad') !== false)
			return true;
	
if (strpos ($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false)
			return true;
	}
	
	return false;
}
    ?>
<div align="left">
  <?php foreach ($common_informationRecord['photo_sharing_page_masthead'] as $upload): ?>
  <br />
  <img src="<?php echo $upload['urlPath'] ?>" alt="<?php $info1 = htmlspecialchars($upload['info1']); ?>
<?php echo ucwords(strtolower($info1)); ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" />
  <?php endforeach ?>
</div>
<br />
<table align="center" width="80%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center"><a class="special"   href="index.php"><span class="navigation_font">Home</span></a></div></td>
    <td><div align="center"><a class="special"  href="galleries.php"><span class="navigation_font">Galleries</span></a></div></td>
    <td><div align="center"><a class="special"   href="exhibitions.php"><span class="navigation_font">Exhibitions</span></a></div></td>
    <td><div align="center"><a class="special"  href="presentations.php"><span class="navigation_font">Presentations</span></a></div></td>
    <!-- <td><div align="center"><a href="../projects.php"><span class="navigation_font">Projects</span></a></div></td> -->
    <td><div align="center"><a class="special"  href="aboutme.php"><span class="navigation_font">About</span></a></div></td>
    <td><div align="center"><a class="special"  href="contact.php"><span class="navigation_font">Contact</span></a></div></td>
  </tr>
  <tr>
    <td colspan="7"><hr />
      <div align="right" class="body-text-bold-10"><a class="special" href="javascript:history.go(-1)">&lt;&lt;Back to Thumbnails</a></div></td>
  </tr>
</table>
<table width="70%"  align="center" cellpadding="5">
  <tr>
    <td><h2 align="center"><?php echo strtoupper($photo_sharingRecord['title']); ?></h2></td>
  </tr>
  <tr >
    <?php // foreach ($photo_sharingRecord['images'] as $upload): ?>
    <?php //if ($upload['extension'] == 'mp4' ):?>
    <td align="center" valign="top" ><div align="center"><span class=" Large-Text"> <b><?php echo $upload['info1']; ?></b></span><br />
        <span class=" Image-Labels"><?php echo $upload['info2']; ?><br />
        <br />
        </span>
        <div id="container">&nbsp;</div>
        <script type="text/javascript">
    jwplayer("container").setup({
		
		file: "http://www.elleschorrphotography.com<?php echo $upload['urlPath'] ?>",
        height: 420,
        width: 510,
		autostart: false,
        modes: [
            { type: "html5" },
            { type: "flash", src: "player.swf" }
        ]

    });
</script> 
      </div></td>
    <?php //endif ?>
    <?php // endforeach ?>
  </tr>
</table>
</body>
</html>
