MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1705/absoluteresultstechnologies.net/public_html/public_html/rsvpfiat/
File Upload :
Current < : /hermes/bosweb/b1705/absoluteresultstechnologies.net/public_html/public_html/rsvpfiat/index.php

<?php include_once('includes.php'); ?>
<?php
	
	if(!isset($_GET['vid'])) $_GET['vid'] = $dealerInfo[$_SESSION['registration']['selectedDealer']]['initialVideo'];
	
	$curCat = '';
	$lastVid = '';
	$allVidArray = array();
	foreach($dealerInfo[$_SESSION['registration']['selectedDealer']]['playlist'] as $cat => $vidArray)
	{
		foreach($vidArray as $i => $vid)
		{
			$allVidArray[] = $vid;			
			$lastVid = $vid;
			
			if($_GET['vid'] == $vid)
			{
				$curCat = $cat;				
			}
		}
	}
	$curKey = array_search($_GET['vid'],$allVidArray);
	if($curKey >= (count($allVidArray)-1)) $nextVid = $dealerInfo[$_SESSION['registration']['selectedDealer']]['initialVideo'];
	else $nextVid = $allVidArray[$curKey+1];

	if($curKey === 0) $prevVid = $lastVid;
	else $prevVid = $allVidArray[$curKey-1];

?>
<?php include_once('header.php'); ?>
<style>
	.formTbl th,.formTbl td {text-align:left;font-size:14pt;padding-bottom:2px}
	.formTbl th {padding-right:10px}
	.formTbl th, .formTbl td {color:white}
	.formTbl td input {font-size:16pt;width:300px}
</style>
<script src="scripts/ajax.js" language="javascript"></script>
<script>
	function saveInfo()
	{		
		if(document.getElementById('firstname') != undefined) firstname=encodeURIComponent(document.getElementById('firstname').value);
		if(document.getElementById('lastname') != undefined) lastname=encodeURIComponent(document.getElementById('lastname').value);
		if(document.getElementById('email') != undefined) email=encodeURIComponent(document.getElementById('email').value);
		if(document.getElementById('mobilePhone') != undefined) mobilePhone=encodeURIComponent(document.getElementById('mobilePhone').value);
		if(document.getElementById('postalCode') != undefined) postalCode=encodeURIComponent(document.getElementById('postalCode').value);
		
		htmlStr = 'index.php?saveInfo=&firstname=' + firstname + '&lastname=' + lastname + '&email=' + email + '&mobilePhone=' + mobilePhone + '&postalCode=' + postalCode;
		ajax_do(htmlStr);
	}	
</script>
<link href="http://vjs.zencdn.net/4.0/video-js.css" rel="stylesheet">
<style>.vjs-loading-spinner div {display:none;}</style>
<script src="http://vjs.zencdn.net/4.0/video.js"></script>
<script>
	function seeVideo(vid)
	{
		location.href = "index.php?vid=" + vid;
	}
	
</script>


			<div style="padding-bottom:8px;background-color:#9e0000">
				<div style="padding:20px 0px 20px 0px;background-color:#efefef;background-image:url('images/topBG.jpg');font-size:14pt;">
<table cellspacing="0" cellpadding="0">
	<tr>
		<td style="vertical-align:middle;color:white;font-family:verdana;font-size:12pt;vertical-align:top">
			<table cellspacing="0" cellpadding="0" style="width:100%;">
				<tr>
					<td style="padding:15px 0px;padding-top:0px"><div style="border-top:1px solid #555;border-bottom:1px solid #333;height:0px;"></div></td>
				</tr>
	<?php foreach($dealerInfo[$_SESSION['registration']['selectedDealer']]['playlist'] as $btn => $video) { ?>
				<tr>
					<td onClick="seeVideo('<?= $video[0] ?>')" onMouseOver="this.style.cursor='pointer'">
						<table cellspacing="0" cellpadding="0" style="width:100%">
							<tr>
								<td style="padding:0px;padding-left:0px;vertical-align:middle;text-align:left;"><img src="images/btn_<?= $btn ?>.png"></td>
								<td style="padding:0px;padding-left:10px;text-align:right;width:30px;"><?= ($curCat == $btn ? '<img src="images/arrow.png">':'') ?></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td style="padding:15px 0px"><div style="border-top:1px solid #555;border-bottom:1px solid #333;height:0px;"></div></td>
				</tr>
	<?php } ?>		
			</table>			
			<div style="height:20px"></div>	
			<div style="background-color:#9e0000;padding:20px 5px;color:white;font-size:10pt">	
	<?php if($_SESSION['registration']['selectedDealer'] == 'ottawagreatestautosale.com') { ?>
				<img src="images/ottawaLogo.png">
	<?php } else { ?>	
				<font style="color:yellow;font-size:14pt"><?= $dealerInfo[$_SESSION['registration']['selectedDealer']]['name'] ?></font>
				<br>
				<?= $dealerInfo[$_SESSION['registration']['selectedDealer']]['address'] ?>
				<br>
		<?php if($_SESSION['registration']['selectedDealer'] == 'bristolstreetevent.com' || $_SESSION['registration']['selectedDealer'] == 'vospersfiatevent.com' || $_SESSION['registration']['selectedDealer'] == 'lookersevent.com') { 
				$urlTxt = 'Click Here To Visit Our Website';
			  } else { 
			  $urlTxt = $dealerInfo[$_SESSION['registration']['selectedDealer']]['website'];
			  }?>	
				<a href="http://<?= $dealerInfo[$_SESSION['registration']['selectedDealer']]['website'] ?>" style="font-size:10pt;color:white" target="_blank"><?= $urlTxt ?></a>
	<?php } ?>						
			</div>
									
		</td>
		<td style="padding-left:30px">
			<!--<iframe width="560" height="315" src="http://www.youtube.com/embed/<?= $dealerInfo[$_SESSION['registration']['selectedDealer']]['firstvideo'] ?>?wmode=opaque&autoplay=1&loop=1&playlist=KwLOirv0b-Q,gYx7bAsLgzI,RRMnOd5yF1U,RaN__7FwSI4" frameborder="0" allowfullscreen></iframe>-->
		
			
			 <video class="video-js vjs-default-skin" width="560" height="315" controls autoplay id="myvideo"  data-setup="{}">
			    <source src="video/<?= $_GET['vid'] ?>.mp4" type='video/mp4' />
			    <source src="video/<?= $_GET['vid'] ?>.webm" type='video/webm' />
			 </video>
			<center>
				<div style="padding:5px 10px 0px 10px;background-color:#111">
					<center>
						<table cellspacing="0" cellpadding="0" style="width:100%">
							<tr>
								<td style="width:90%;color:white;font-size:11pt;text-align:left;vertical-align:middle"><?= str_replace(array('_','[USA]'),' ',$_GET['vid']) ?></td>
								<td style="width:30px"><img src="images/arrow_left.png" onClick="seeVideo('<?= $prevVid ?>');" border="0" onMouseOver="this.style.cursor='pointer'"></td>
								<td style="width:30px"><img src="images/arrow_right.png" onClick="seeVideo('<?= $nextVid ?>');" border="0" onMouseOver="this.style.cursor='pointer'"></td>
							</tr>
						</table>
					</center>
				</div>
			</center>
			 
			<script>	
				 myPlayer = _V_("myvideo");
				 
			    var myFunc = function(){
				  
				  seeVideo('<?= $nextVid ?>');
				};
				myPlayer.on("ended", myFunc);
			
			</script>
		</td>
	</tr>
</table>
	<?php if($dealerInfo[$_SESSION['registration']['selectedDealer']]['area'] == "us") { ?>
		
		<?php if($_SESSION['registration']['selectedDealer'] == 'rochesterhillsgreatestautosale.com') { ?>
		<div style="height:20px; margin-top: 10px; font-size: 48px; color: yellow;text-align: center;">JULY 18, 19 & 20 ONLY</div>					
		<?php	} else { ?>
		
		<div style="height:20px; margin-top: 10px; font-size: 48px; color: yellow;text-align: center;">JULY 18 & 19 ONLY</div>			
	<?php } ?>
	<?php } ?>
	

<div style="position:relative;width:880px;color:yellow;font-size:25pt;padding-top:20px">
	<center>EXCLUSIVE EVENT: <?= strtoupper($dealerInfo[$_SESSION['registration']['selectedDealer']]['eventDate']) ?> ONLY</center>
</div>	
</div>

</div>
	<br>
	<!-- Add jQuery library -->
	<script type="text/javascript" src="scripts/fancybox/lib/jquery-1.9.0.min.js"></script>

	<!-- Add fancyBox main JS and CSS files -->
	<script type="text/javascript" src="scripts/fancybox/source/jquery.fancybox.js?v=2.1.4"></script>
	<link rel="stylesheet" type="text/css" href="scripts/fancybox/source/jquery.fancybox.css?v=2.1.4" media="screen" />
	
	<script type="text/javascript">
		$(document).ready(function() {
			$(".fancybox").fancybox({
				width:	700,
				height:	350,
				autoSize: false,
				
				beforeLoad : function() {
					myPlayer.pause();		
				},
				
				
				afterClose : function() {
					myPlayer.play();
				}});
				
			$(".fancybox2").fancybox({
				width:	700,
				height:	500,
				autoSize: false,
				
				beforeLoad : function() {
					myPlayer.pause();		
				},
				
				
				afterClose : function() {
					myPlayer.play();
				}});
				
		});
		
		
		
	</script>
<table cellspacing="0" cellpadding="0">
	<tr>
	<?php if($dealerInfo[$_SESSION['registration']['selectedDealer']]['blackbook'] == "YES") { ?>
		<td style="padding:0px 5px"><a class="fancybox fancybox.iframe" href="cbb.php"><img src="images/cbbButton.jpg" border="0"></a></td>
	<?php } ?>	
	<?php if($dealerInfo[$_SESSION['registration']['selectedDealer']]['promotions'] != "") { ?>
		<td style="padding:0px 5px"><a href="<?= $dealerInfo[$_SESSION['registration']['selectedDealer']]['promotions'] ?>" target="_blank"><img src="images/promotionsButton.jpg" border="0"></a></td>
	<?php } ?>	
		<td style="padding:0px 5px"><a class="fancybox fancybox.iframe" href="appointment.php"><img src="images/testDriveButton.jpg" border="0"></a></td>	
	<?php if($dealerInfo[$_SESSION['registration']['selectedDealer']]['inventory'] != "") { ?>
		<td style="padding:0px 5px"><a href="<?= $dealerInfo[$_SESSION['registration']['selectedDealer']]['inventory'] ?>" target="_blank"><img src="images/<?= $dealerInfo[$_SESSION['registration']['selectedDealer']]['brand'] ?>InventoryButton.jpg" border="0"></a></td>
	<?php } ?>	
	</tr>
</table>
<?php
	if(!isset($_SESSION['webhit']))
	{
		$_SESSION['webhit'] = true;
?>
		<iframe height="0" width="0" src="http://ar.absoluteresults.com/misc/webHits.php?url=<?= $_SESSION['registration']['selectedDealer'] ?>&dealer=<?= $_SESSION['registration']['selectedDealer'] ?>&eventID=<?= $dealerInfo[$_SESSION['registration']['selectedDealer']]['eventID'] ?>" frameborder="0"></iframe>  
<?php
	}
?>		
\
	<script>
		function tooglePrivacy() {
	        if ($('#privacy').css('display') == 'none') {
	            $('#privacy-read-more').css('display', 'none');
	            $('#privacy').css('display', 'inline');
	        } else {
	            $('#privacy-read-more').css('display', 'inline');
	            $('#privacy').css('display', 'none');
	        }
	    }
	   </script>
	<div style="width:800px;font-size:9pt;color:#aaa;padding-top:20px">Your privacy is of utmost importance to us. <a href="" 
        id="privacy-read-more" onclick="tooglePrivacy(); return false;">
        Read More</a> 
        <div style="display:none" id="privacy">
	        By providing your personal information, you consent to its use and 
	        disclosure in accordance with our <a href="http://www.absoluteresults.com/downloads/Privacy%20Policy.pdf" target="_blank">Privacy Policy</a>. Therefore, it is 
	        important that you read and understand our privacy policy prior to 
	        providing any personal information about yourself.
        </div>
    </div>
<?php include_once('footer.php'); ?>