<?php
session_start();
include("header.php");
include("leftSideMenu.php");
include("../config.php");

$userId			= $_GET['uid'];
$eventId = $_GET['eid'];

$sqlGetDetails = mysql_query("SELECT * FROM user_information where id= ".$userId." ");
$users				= mysql_fetch_array($sqlGetDetails);

if($users['event_selected']=="26"){
        $event = "A Night With Rabbi Shergill - DC (26th July 2014: 7:30pm)";
} else {
        $event = "A Night with Rabbi Shergill - NYC (27th July: 6:30pm)";
}


?>
<style>
.alt {
    background: none repeat scroll 0 0 #F3F7FB;
}
</style>

<div id="main">
	<div class="full_w">
		<div class="h_title">User Details</div>

		<table id="ve_detail_table" width="100%" border="0" cellspacing="0" cellpadding="0">
			<tbody>

        <tr>
					<td width="40%"><strong>First Name</strong></td>
					<td width="60%"><?php echo $users['first_name'];?></td>
				</tr>
				<tr class="alt">
					<td width="40%"><strong>Middle Name</strong> </td>
					<td width="60%"><?php echo $users['middle_name']; ?></td>
				</tr>

                <tr class="alt">
					<td width="40%"><strong>last Name</strong> </td>
					<td width="60%"><?php echo $users['last_name']; ?></td>
				</tr>
                <tr class="alt">
					<td width="40%"><strong>Email Address</strong> </td>
					<td width="60%"><?php echo $users['email_address']; ?></td>
				</tr>    
				
                    <tr class="alt">
					<td width="40%"><strong>City</strong> </td>
					<td width="60%"><?php echo $users['city']; ?></td>
				</tr>  
				                <tr class="alt">
					<td width="40%"><strong>Province</strong> </td>
					<td width="60%"><?php echo $users['state']; ?></td>
				</tr>  
				                <tr class="alt">
					<td width="40%"><strong>Zip</strong> </td>
					<td width="60%"><?php echo $users['zip']; ?></td>
				</tr>  
				
				 <tr class="alt">
					<td width="40%"><strong>Event</strong> </td>
					<td width="60%"><?php echo $event; ?></td>
				</tr>   
				     
				  

			</tbody>
		</table>
		<div class="entry">
      <button name="back" onclick="window.location.href='registrationListing.php?eid=<?php echo $eventId;?>'">Back</button>
		</div>
	</div>
</div>

<div class="clear"></div>
</div>

<?php include("footer.php"); ?>
