<?php 
require_once("header.php");
require_once("session_check.php");

//FETCH DATA FROM DATABASE
$fetch_record = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM `razorpay_payment` WHERE `id` = '".$_REQUEST['id']."'"));
?>

<?php require_once("left_panel.php");?>
<div class="content">
	<div class="workplace">
		<div class="row-fluid">
			<div class="span12">
				<div class="head clearfix">
					<div class="isw-documents"></div>					
					<h1>Donation Details</h1>					
				</div>
				<form action="" method="post" enctype="multipart/form-data">
				<div class="block-fluid">
					<div class="row-form clearfix">
						<div class="span3"><b>Amount</b></div>
						<div class="span9"><b>Rs. <?php echo stripslashes($fetch_record['amount']);?></b></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Name</div>
						<div class="span9"><?php echo stripslashes($fetch_record['name']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Email Address</div>
						<div class="span9"><?php echo stripslashes($fetch_record['email']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Phone No.</div>
						<div class="span9"><?php echo stripslashes($fetch_record['phone']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Address</div>
						<div class="span9"><?php echo stripslashes($fetch_record['address']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Donation Date</div>
						<div class="span9"><?php echo date("d.m.Y h:i A",strtotime($fetch_record['paid_on']));?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">&nbsp;</div>
						<div class="span9">						
							<button class="btn" type="button" name="back" onclick="window.location.href='facebook_donation_list.php'">Back To Facebook Donations List</button>
						</div>
					</div>
				</div>
				</form>
			</div>
		</div>
	</div>
</div> 

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