<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
	<title>Member Receipt | Admin Panel</title>

	<!-- Favicons -->
<link rel="shortcut icon" type="image/x-icon" href="../UserProfile/images/logo/logo.png">

	<!-- Bootstrap CSS -->
	<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">

	<!-- Fontawesome CSS -->
	<link rel="stylesheet" href="assets/plugins/fontawesome/css/fontawesome.min.css">
	<link rel="stylesheet" href="assets/plugins/fontawesome/css/all.min.css">
	 
	<!-- Animate CSS -->
	<link rel="stylesheet" href="assets/css/animate.min.css">

	<!-- Main CSS -->
	<link rel="stylesheet" href="assets/css/admin.css">
		<!-- Datatables CSS -->
	<link rel="stylesheet" href="assets/plugins/datatables/datatables.min.css">

</head>

<body>
	<div class="main-wrapper">
	
		<!-- Header -->
	<?php include 'include/header.php'; ?>
		<!-- /Header -->
		
		<!-- Sidebar -->
		<?php include 'include/leftmenu.php'; ?>
		<!-- /Sidebar -->
		
		<div class="page-wrapper">
			<div class="content container-fluid">
			
				<!-- Page Header -->
				<div class="page-header">
					<div class="row">
						<div class="col">
							<h5 class="page-title"></h5>
    					
						</div>
						<div class="col-auto text-right">
							<a class="btn btn-white filter-btn" href="javascript:void(0);" id="filter_search">
								<i class="fas fa-filter"></i>
							</a>
						</div>
					</div>
				</div>
			
				<?php if($_REQUEST['Asgct']!='')
				{
				    $member_user_id=$_REQUEST['Asgct'];
				    $str="Select * from tbl_memberreg where member_user_id='$member_user_id'";
				    $res=mysqli_query($connection,$str);
				    if(mysqli_num_rows($res)==0)
				    {
				        
				    }else
				    {
				       $row=mysqli_fetch_array($res); 
				?>
                	<div class="row">
						<div class="col-sm-12">
							<div class="card">
								<div class="card-header">
									<h6 class="card-title">Registration Receipt</h6>
									
								</div>
								<div class="card-body">

									<div class="table-responsive">
										<div class="card ">
										    	<div class="form-group">
										<a class="btn btn-primary btn-block" href="AssociateRegistration"  style="padding-top:10px; width:200px">New Registration</a>
									</div>
						<div class="card-body pb-0">
						    
							<div class="row ">
							   
								<div class="col-sm-6 col-md-6">
								    <h4>Associate Information</h4>
									<div class="form-group">
										<p>Associate Id : <?php echo $row['member_user_id']; ?></p>
										<p>Associate Name: <?php echo $row['member_name']; ?></p>
										<p>Password : <?php echo $row['password']; ?></p>
												<p>Sponsor Id : <?php echo $row['sponcer_id']; ?></p>
													<p>Sponsor Name : <?php echo $row['sponcer_name']; ?></p>
														<p>Position : <?php echo $row['position']; ?></p>
														<p>Promoter Id : <?php echo $row['promoter_id']; ?></p>
															<p>Associate Name : <?php echo $row['promoter_name']; ?></p>
									</div>
								
								</div>
									<div class="col-sm-6 col-md-6">
									   <h5> Other Details</h5>
									<div class="form-group">
										<p>Contact No  : <?php echo $row['contact']; ?></p>
										<p>PAN No : <?php echo $row['pan_no']; ?></p>
										<p>Aadhar No : <?php echo $row['aadhar_number']; ?></p>
									
									</div>
								
								</div>
							
							
								
							</div>	
							
						</div>
					</div>
									</div>
								</div>
							</div>
						</div>
					</div>
			
					
					<?php } } ?>
			</div>
		</div> 
	</div>

	<!-- jQuery -->
	<script src="assets/js/jquery-3.5.0.min.js"></script>

	<!-- Bootstrap Core JS -->
	<script src="assets/js/popper.min.js"></script>
	<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>

	<!-- Slimscroll JS -->
	<script src="assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		<script src="assets/plugins/datatables/jquery.dataTables.min.js"></script>
	<script src="assets/plugins/datatables/datatables.min.js"></script> 

	<!-- Custom JS -->
	<script src="assets/js/admin.js"></script>
	<script src="assets/js/select2.min.js"></script>

</body>

</html>

<?php 
function get_direct($member_user_id,$position)
{
    global $connection;
    $str="Select * from tbl_memberreg where sponcer_id='$member_user_id' and position='$position' and status=1";
    $res=mysqli_query($connection,$str);
    return $cnt=mysqli_num_rows($res);
}
?>