<?php include("includes/db_config.php");
$id=$_GET["id"];
$sql="select user_payment.* from user_payment where user_payment.user_id='".$id."'";
$result = mysqli_query($conn, $sql);
?>
 
	<?php include("includes/css.php")?> 

<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">
		<?php include("includes/header.php");?>
		<?php include("includes/sidebar.php");?>
		<div class="content-wrapper">
			<!-- Main content -->
			<section class="content">
				<div class="row">
					<div class="col-xs-12">
						<div class="box box-danger">
							<div class="box-header">
								<div class="row">
									<div class="col-md-4">
										<h3 class="box-title">View Member Payment Details</h3>
									</div>
									
								</div>
							</div>
							<div class="box-body">
								<div class="nav-tabs-custom">
									<div class="table-responsive">
										<table class="table table-bordered">
											<thead></thead>
											<tbody> 
												<?php $res= mysqli_fetch_array($result); 
												 $user_id=$res['user_id'];
                                         $sqls=mysqli_query($conn,"select * from user_profile where id='".$user_id."'")or die(mysqli_error($conn));
                                         $res_lg= mysqli_fetch_array($sqls); ?>
												<tr>
                                            <td colspan="3">
                                                <strong>Name :</strong>
                                                <?php echo $res_lg['name']; ?>
                                            </td>
                                            <td colspan="2">
                                                <strong>Email-Id :</strong>
                                                <?php echo $res_lg['email_id']; ?>
                                            </td> 
                                        </tr>
                                         <tr>
                                            <td colspan="3">
                                                <strong>Contact Number :</strong>
                                                <?php echo $res_lg['contact_no']; ?>
                                            </td>
                                            <td colspan="2">
                                                <strong>Address :</strong>
                                                <?php echo $res_lg['address']; ?>
                                            </td> 
                                        </tr>
                                         <tr>
                                            <td colspan="3">
                                                <strong>Transaction-Id :</strong>
                                                <?php echo $res['transaction_id']; ?>
                                            </td>
                                            <td colspan="2">
                                                <strong>Payment status :</strong>
                                                <?php echo $res['payment_status']; ?>
                                            </td> 
                                        </tr>
                                         <tr>
                                            <td colspan="3">
                                                <strong>Amount :</strong>
                                                <?php echo $res['amount']; ?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <strong>Payment method :</strong>
                                                <?php echo $res['payment_method']; ?>
                                            </td>
                                            <td colspan="2">
                                                <strong>Payment Proof Recypt :</strong>
                                                <img src="images/<?php echo $res['image_proof']; ?>" class="img-responsive"  style="height:20px;">
                                            </td> 
                                        </tr>
                                       
											</tbody>
										
										</table> 
									</div>
								</div>
							</div>
							<!-- /.box-body -->
						</div>
						<!-- /.box -->
					</div>
					<!-- /.col -->
				</div> 
			</section> 
		</div> 
		 <?php include("includes/js.php");?>
</body>


</html>