
<!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>Change Clossing Status | 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">
<style>
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
</style>
</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">Set Reward Withdrawal Wallet</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>
	
						<div class="row">
						
						<div class="col-sm-12">
							<div class="card">
								<div class="card-header">
									<h6 class="card-title">Set Clossing Status</h6>
								</div>
								<div class="card-body">
                            <?php
                            $check='unchecked';
                            $resP=mysqli_query($connection,"Select * from tbl_setting");
                            $rowP=mysqli_fetch_array($resP);
                            $openStatus=$rowP['openStatus'];
                            if($openStatus==1)
                            {
                                $check="checked";
                            }
                            
                            ?>
									<div class="table-responsive">
										<div class="card filter-card">
						<form name="wallet" id="wallet" method="post" action="Apk/SetClossingStatus"> 
						<div class="card-body pb-0">
							<div class="row filter-row">
							    <div class="col-sm-6 col-md-3">
									<div class="form-group">
								    <lable>Status</lable>
                                  
									</div>
								</div>
								<div class="col-sm-6 col-md-3">
									<div class="form-group">
									<label class="switch" style="margin-top: 10px;">
                                      <input type="checkbox" <?php echo $check; ?> name="openStatus" id="openStatus" >
                                      <span class="slider round"></span>
                                    </label>
									
									</div>
								</div>
						
								<div class="col-sm-6 col-md-3">
									<div class="form-group">
									<button type="submit" class="btn btn-success btn-rounded"  style="width:150px;padding-top:10px">Submit</button>
										</div>
									</div>
								</div>
							
								
							</div>	
						
						</div>
					</div>
									</div>
								</div>
									</form> 
							</div>
						
						</div>
					</div>
	
			</div>
		</div> 
	</div>
		<div class="row">
						<div class="col-sm-12">
							<div class="card">
														<div class="card-body">

									<div class="table-responsive">
										<table class="table table-stripped" id="example" >
											<thead>
												<tr style="background-color: #ff0080;color:#FFF">
											    											<th>#</th>
                                        			<th>Sys Date</th>
													<th>Wallet Address</th>
													<th>Transaction Id</th>
												   
												</tr>
											</thead>
											<tbody>
											    <?php 
											    $cnt=1;
											    $str="Select * from tbl_walletTransactionScait  order by record_no desc";
											    $res=mysqli_query($nadcon,$str);
											    while($row=mysqli_fetch_array($res))
											    {
											    ?>
												<tr>
												    
												    <td><?php echo $cnt++; ?></td>
												    	<td><?php echo date("d-M-Y H:i:s",strtotime($row['sys_date'])); ?></td>
													<td><?php echo $row['WalletAddress']; ?></td>
													<td>******....*******<?php  ?></td>
												
													
												</tr>
												<?php } ?>


											</tbody>
										</table>
									</div>
								</div>
							</div>
						</div>
					</div>
	</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>

</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);
}
?>