<?php 
ob_start();
session_start();
if($_SESSION['frontuserid']=="")
{header("location:login");exit();}?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php include'head.php' ?>
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="description" content="Brozers Mall">
<meta name="keywords" content="Brozers Mall" />
<style>
h3{ font-weight:normal; font-size:14px;}


    .btn { background-image: linear-gradient( #4f0761, #b303e0);
    border-radius: 5px 5px 5px 5px;
    border: 0.5px solid white;
    color: white;
    transition: 0.5s;
}

.amount_list{
    width: 100%;
    padding: 15px 10% 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}
.left-addon .icon {
    left: 5px;
    top: 0px;
}

.amount_list p {
    width: 100%;
    margin: 5px 5px;
    padding: 10px 0;
    box-sizing: border-box;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 3px 1px -2px rgb(0 0 0 / 20%), 0 2px 2px 0 rgb(0 0 0 / 14%), 0 1px 5px 0 rgb(0 0 0 / 12%);
    transition: .3s cubic-bezier(.25,.8,.5,1),color 1ms;
    background: #f5f5f5;
    border: 0;
        border-radius: 6px;
}
.payment_box{
    width: 100%;
    padding-left: 4%;
    box-sizing: border-box;
}

.van-radio {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.payment_box .van-radio {
    height: 48px;
    line-height: 48px;
    font-size: 16px;
}
.van-radio__icon {
    -webkit-box-flex: 0;
    -webkit-flex: none;
    flex: none;
    height: 1em;
    font-size: 20px;
    line-height: 1em;
    cursor: pointer;
}
.payment_box .van-radio__icon--checked .van-icon {
    color: #333;
    background-color: transparent;
    border-color: transparent;
    font-size: 20px;
    width: 25px;
    display: inline-block;
}
.payment_box .van-radio__icon .van-icon {
    border: transparent;
    width: 25px;
    display: inline-block;
}
.van-radio__label {
        margin-left: 8px;
    color: #323233;
    margin-top: -23px;
}

.payment_text {
    height: 48px;
    line-height: 48px;
    font-size: 14px;
    color: #757575;
}
.recharge_btn {
    width: 100%;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin: 12px 0 24px;*/
    margin-top:3% !important;
    margin-bottom:50px;
}

.recharge_btn button {
    background: #009688;
    color: #fff;
    font-size: 14px;
    border-radius: 2px;
    border: 0;
    padding: 14px 0;
    text-align: center;
    width: 52%;
}
.btn-primary:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #333;
}
.appBottomMenu .item.active i {
    color: #4F0761 !important;
}
.appBottomMenu .item.active span {
    color: #4F0761 !important;
}

.appBottomMenu .item .ion-md-person{color:#4F0761 !important;}
.appBottomMenu .item .toggleSidebar span{color:#4F0761 !important;}

#appCapsule {
    padding: 12px;
}
.form-control{border-radius:33px;}
.text{font-size:13px;}
.left-addon input {
    padding-left: 62px;
    height: 41px;
}

.appHeader1 {
	background-color: #fff !important;
	border-color: #fff !important;
}
.appContent3 {
	background: #009688 !important;
	border-color: #2196f3 !important;
	padding:12px;
	border-radius:3px;
	font-size:16px;
}
.user-block img {
	width: 40px;
	height: 40px;
	float: left;
	margin-right:10px;
	background:#333;
}
.img-circle {
	border-radius: 50%;
}

.light{
    height: 24px;
    padding: 0px 0px;
	margin: 5px 2px;
	border-radius: 20px;
width: 24px;}
.light1{
    height: 26px;
    padding: 0px 0px;
	margin: 5px 2px;
	border-radius: 20px;
width: 26px;}

.recharge{
       
        margin-top:5px;
}
.accordion .card-header h2{text-align:left;}
.bx-shadow{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)!important;}
.mine{
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #fff;
    font-size: 16px;
    padding: 20px 0;
}
.modal-title {
    font-weight: normal;
    color: #000;
}
.top-header {
    /*background: url(assets/img/bgtiop.png) no-repeat;*/
    background-color:#4F0761;
    padding:14px;
    overflow: hidden;
    background-size: cover;
         margin: 30px 0px 0px 16px;
    width: 98%;
    border-radius: 6px;
}
.top-header .nb{
	width: 40px;
    height: 40px;
    float: left;
	margin-top: 23px;
    margin-right: 15px;
    margin-left: 19px;
  
}
.id-m{
    margin: 29px 0 0 0;
    font-size: 17px;
    color: #fff;
    font-weight: 500;
}


.bnt{
     box-shadow: 0 3px 1px -2px rgb(0 0 0 / 20%), 0 2px 2px 0 rgb(0 0 0 / 14%), 0 1px 5px 0 rgb(0 0 0 / 12%);
    background: #f5f5f5;
    border-radius: 2px;
    font-size: 14px;
    height: 36px;
    line-height: 36px;
    color: rgba(0,0,0,.87);
    border: 0;
    width: 50%;
}
.icn-right{
 color: #7f7e7e !important;
    position: absolute;
    right: 31px;

}

.bx-shadow {
    box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)!important;
}
.bgf {
    display: flex;
	color:#fff;
	font-size:17px;
    flex-direction: column;
    align-items: center;
}
.bgf h4{
	color:#fff;
	font-size:18px;
}

.bgf p{font-size:16px;}
.van-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.top-chunk {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.top-chunk-sub{
    color: #fff;
    text-align: center;
    flex: 1;
}
.van-grid-item__content--center {
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.van-grid-item__content {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    padding: 16px 8px;
    background-color: #fff;
}

.van-grid-item__content i{
    font-size: 33px;
    color: #a9a7a7;
}

.flt{
    position: fixed;
    top: 291px;
    right: 19px;
        width: 67px;
    font-size: 17px;
    height: 67px;
    border-color: #009688;
    color: #009688;
    background-color: #fff !important;
    border-radius: 50%;
}

.accordion .card-header a i{display:none;}

.btn-success {
    color: #000;
    background-color: #28dfd7;
    border-color: #28dfd7;
}

.btn-bell{
       background-color: #ffffff;
    border-color: #ffffff;
    color: #ffffff !important;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    font-size: 28px;
    padding: 10px;

    
}
.modal-header{background-color:#fff; border:none;}
.modal-footer{border:none;}
.contentBox.long .contentBox-body{padding: 7px;}

ul{list-style-type:none;}
a{
    
    color: #62686e;
    text-decoration: none;

}
a:hover {
    color: #009688;
    text-decoration: none;
}
.uni-input-input {
    position: relative;
    display: block;
    height: 100%;
    width:100%;
    border:none;
    background:#fff;
    color: inherit;
    opacity: 1;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-indent: inherit;
    text-transform: inherit;
    text-shadow: inherit;
}
.tele{     width: 17px;
    position: absolute;
    left: 11px;
    top: 8px;
}
.tele:hover{
    
}

 
.equal{
        width: 30px;
    position: absolute;
    left: 30%;
}
.plus{
    width: 30px;
    position: absolute;
    right: 32%;
}
.bgpan{color:#bebebe !important;}

.amount_list p:hover{background-color:#4F0761; color:#fff;}

.badge-danger, a.badge-danger {
    background: #ff2d55 !important;
    border-color: #ff2d55 !important;
    height: 22px;
    line-height: 8px;
}



@media only screen and (max-width: 600px) {
    
    .dwd {
    width: 30%;
    padding: 10px 0;
}
.badge-danger, a.badge-danger{padding:6px;}
    
    .equal{    
        left: 37%;
    width: 21px;}
    .plus {
    width: 21px;
    position: absolute;
    right: 33%;
}
    .amount_list{    padding: 15px 0% 15px;}
    .bgf{font-size:13px;}
 .dropdown-item{padding: 6px 13px;}
 .btn-bell{margin:-8px 9px 0px 0;}
 .mnu-list li {
    padding: 18px 25px;
    margin: 1px 0;
}
.dropdown-toggle::after{display:none;}
.top-header{width:92%; padding:0px;    margin: 13px 0px 0px 16px;}
.nmn{padding-right: 20px !important; display:block !important; color: #757575 !important;}
.modal{top:90px;}

.top-chunk{padding:18px;}


.otbt {
    width: 95%;
    margin: 0 12px;
}
.amount_list p{width:100%;}/*29%*/
.recharge_btn{margin-top:47% !important;}
.bgf h4{font-size:13px;}

 .recharge_btn {
    margin-top: 22% !important;
}
 
}
  
  
    

</style>
</head>

<body>

<!-- basic modal -->
<div class="modal fade wd500" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title" id="myModalLabel">Notice</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <p>Notice
Latest Announcement: Due to the fluctuation of the banking system and the instability of the banking system, the withdrawal and arrival of the account are delayed.
Please be patient. Please don’t worry, all members will arrive in the account. Your funds will always belong to you. The security of the platform is the highest 
in the world. Good game, the delay in the account will cause inconvenience to everyone, please forgive me! Winmoney Club

</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <!--<button type="button" class="btn btn-primary">Save changes</button>-->
      </div>
    </div>
  </div>
</div>


<!-- App Header -->
<div class="appHeader1" style="background-color:#4F0761 !important">
<div class="left">
            <a href="#" onClick="goBack();" class="icon goBack">
                <i class="icon ion-md-arrow-back"></i>
            </a>
            <div class="pageTitle">Recharge</div>
        </div>
        
        <div class="right"> 
        
        <a href="rechargehistory"><i style="font-size:18px;" class="icon ion-md-list"></i></a>
  <!--<div class="dropdown">
  <a class="" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="font-size:25px;">
    <i class="icon ion-md-list"></i></a>
  

  <div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
    <!--<a class="dropdown-item" href="promotionrecord.php">Promotion Record</a>->
    <a class="dropdown-item" href="bonusrecord.php">Bonus Record</a>
    <a class="dropdown-item" href="promotion_apply_record.php">Apply Record</a>
  </div>
</div>-->
  </div>
 
</div>
<!-- * App Header --> 
<!-- App Capsule -->
<div id="appCapsule">
  <div class="appContent1">
      
      <div class="container-fluid top-header "> 
  <div class="  text-white" style="    padding: 8px 0;">
    <div class="row">
      <!--<div class="col-md-4 mb-1">
        <div class="user-block"> 
        <img class="img-circle bx-shadow img-bordered-lg" src="assets/img/avatar.svg"> 
        User ID: 00000901 <br>
        Mobile: +91 00000901<br>
        
        </div>
  </div>
  
  <div class="col-md-8 mb-1">
      <a href="#" class="btn btn-bell float-right" data-toggle="modal" data-target="#basicModal"><i class="fa fa-info-circle"></i></a>
  </div>-->
  </div>
  
  <div class="row top-chunk">
      
      <div class="top-chunk-sub bgf"><!---class pre --float-left-->
          <h4>TOTAL GET <br>
          <span class="bgpan">₹345</span>
          </h4>
          <!--<div class="recharge ">
              <a href="recharge.php" class="btn btn-sm btn-success pull-left m-0" style="background-color:#39b54a!important; color:#fff; border-radius: 6px; border:none;">Recharge</a>
          </div>
          
         <!-- <div class="d-flex " style="padding-left: 18px;">
              <a href="update_profile.php" class="btn btn-sm btn-success pull-left m-0" style="border-radius: 6px;background-color:#fff; width: 247px; color: #333;">Update Profile</a><!-data-toggle="modal" data-target="#basicModal2"->
          </div>-->
          <img src="assets/img/equal.png" class="equal">
        </div>
        
        
        
        <div class="top-chunk-sub bgf">
         <h4>CASH<br>
          <span class="bgpan">₹300</span>
          </h4> 
          <!--<div class="recharge ">
              <a href="reward.php" class="btn btn-sm btn-success pull-left m-0" style="background-color:#2196f3!important;     height: 20px; color:#fff; border-radius:0px; border-color: #2196f3;">See</a>
          </div>-->
        </div>
        
        
        <div class="top-chunk-sub bgf">
          <h4>BONUS <br>
          <span class="bgpan">₹45</span>
          </h4>
          <!--<div class="recharge ">
              <a href="withdrawal.php" class="btn btn-sm btn-success pull-left m-0" style="background-color:#2196f3!important;     height: 20px; color:#fff; border-radius:0px; border-color: #2196f3;">See</a>
          </div>-->
          <img src="assets/img/plus.png" class="plus">
        </div>
        
        
        
        
        
      </div>
      
      
      </div>

</div>
      
   
   
      
    <!--<h3 class="text-center m-2" style="color:red;">Any Problem? Contact </span></h3>
    <?php
$Query=mysqli_query($con,"select * from tbl_website WHERE id=1");
$row=mysqli_fetch_array($Query);
//print_r($row);exit;
?>
<h3 class="text-center m-2"><span style="color:#29B6F6;"><?php echo $row['mail'] ;?></span></h3>-->

<!--<h2 style="font-weight:bold; font-size: 15px;" class="text-center m-2">Balance: <span>₹ <?php echo number_format(wallet($con,'amount',$userid), 2);?></span></h2>-->
    <form action="#" id="paymentForm" method="post" class="card-body" autocomplete="off">
      <!--<div class="inner-addon left-addon">
      <i class="icon ion-md-wallet"></i>
        <input type="number" id="userammount" name="userammount" class="form-control" value="" placeholder="Enter recharge amount" required >
      </div>-->
            <div>
        <!--<p style="color: red; font-size:11px;" ><strong>Note:</strong> <br>
        <?php   
         $data=mysqli_query($con,"select * from tbl_paymentsetting");
      $val=mysqli_fetch_array($data);
        ?>
        1.Minimmum Recharge = <?php echo $val['rechargeamount']; ?> Rs 
        <br>

  2. If any one  not add Rechrge amount in wallet contact our customer service 
      
      <a class="badge badge-danger" href="#">Recharge Support</a>
        </p>-->
        
        <h4 style="font-size: 16px;">Select Payment Amount</h4>
            </div>
            

            <div class="amount_list">
                
                
                <div class="dwd">
                    <a class="badge badge-danger " href="#">Bonus 5%</a>
                    <p class="" onclick="myfunction(100)">
                    
                  ₹ <span data-v-d269120a="">100</span>
                  </p>
                </div>
                
                  
                  <div class="dwd">
                       <a class="badge badge-danger " href="#">Bonus 15%</a>
                      <p class="" onclick="myfunction(300)">
                     
                  ₹ <span data-v-d269120a="">300</span>
                  </p>
                  </div>
                  
                  
                  
                  <div class="dwd">
                      <a class="badge badge-danger " href="#">Bonus 20%</a>
                      <p class="" onclick="myfunction(500)">
                      
                  ₹ <span data-v-d269120a="">500</span>
                  </p>
                  </div>
                  
                  
                  
                  <div class="dwd">
                      <a class="badge badge-danger " href="#">Bonus 20%</a>
                      <p class="" onclick="myfunction(1000)">
                      
                  ₹ <span data-v-d269120a="">1000</span>
                  </p>
                  </div >
                  
                  
                  
                  <div class="dwd">
                      <a class="badge badge-danger " href="#">Bonus 25%</a>
                      <p class="" onclick="myfunction(3000)">
                      
                  ₹ <span data-v-d269120a="">3000</span>
                  </p>
                  </div>
                  
                  
                  
                  <div class="dwd">
                       <a class="badge badge-danger " href="#">Bonus 30%</a>
                      <p class="" onclick="myfunction(5000)">
                     
                  ₹ <span data-v-d269120a="">5000</span>
                  </p>
                  </div>
                  
                  
                  
                  <div class="dwd">
                      <a class="badge badge-danger " href="#">Bonus 30%</a>
                      <p class="" onclick="myfunction(10000)">
                  ₹ <span data-v-d269120a="">10000</span>
                  </p>
                  </div>
                  
                  
                  
                  <div class="dwd">
                      <a class="badge badge-danger " href="#">Bonus 30%</a>
                      <p class="" onclick="myfunction(20000)">
                  ₹ <span data-v-d269120a="">20000</span>
                  </p>
                  </div>
                  
                
                
            </div>
           <script>
               function myfunction(val)
               {
                   
                  document.getElementById("userammount").value = val;
               }
           </script> 
           
           <!-- <div class="payment_text" >
                <p class="payment_text">Payment</p>
                <div role="radiogroup " class="van-radio-group">
                    <div role="radio" tabindex="0" aria-checked="true" class="van-radio">
                        <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" name="payment" id="customCheck1" value="EkPay" onchange="Check24(this)" checked>
                        <label class="custom-control-label" for="customCheck1"></label>
                      </div>
                      
                      
                    <span class="van-radio__label">
                        <span class="text">EkPay</span><br>
                        
                        </span>
                        </div>
                        </div>
                        
                        <div role="radiogroup " class="van-radio-group">
                    <div role="radio" tabindex="0" aria-checked="true" class="van-radio">
                        <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" value="WowPay" name="payment" id="customCheck2"  onchange="Check25(this)" disabled>
                        <label class="custom-control-label" for="customCheck2"></label>
                      </div>
                      
                      
                    <span class="van-radio__label">
                        <span class="text">WowPay</span><br>
                        
                        </span>
                        </div>
                        </div>
                        
                        <div role="radiogroup " class="van-radio-group">
                   <div role="radio" tabindex="0" aria-checked="true" class="van-radio">
                        <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" value="WinPay" name="payment" id="customCheck3" onchange="Check26(this)" disabled>
                        <label class="custom-control-label" for="customCheck3"></label>
                      </div>
                      
                      
                    <span class="van-radio__label">
                        <span class="text">WinPay</span><br>
                        
                        </span>
                        </div>
                        </div>
                
            </div>-->
    <div class="recharge_btn text-center ">
        <input type="submit" id="userammount" name="userammount" class="btn btn-primary" style="width:206px;color:#fff;background-color:#4F0761 !important;background-image: none;" value="Add Cash ₹300">  
        </div>
        
       
    </form>
  </div>
</div>
<script>
    

 function Check24(value){
      var val = value.checked;
     //console.log(val);
     if(val == true){
	$("#customCheck1").prop('disabled', false);
	$("#customCheck2").prop('disabled', true);
	$("#customCheck3").prop('disabled', true);
     }else{
    $("#customCheck1").prop('disabled', false);
	$("#customCheck2").prop('disabled', false);
	$("#customCheck3").prop('disabled', false);
     }
 };


 function Check25(value){
     var val = value.checked;
     //console.log(val);
     if(val == true){
	$("#customCheck1").prop('disabled', true);
	$("#customCheck2").prop('disabled', false);
	$("#customCheck3").prop('disabled', true);
     }else{
        $("#customCheck1").prop('disabled', false);
	$("#customCheck2").prop('disabled', false);
	$("#customCheck3").prop('disabled', false);
     }
};
 function Check26(value){
      var val = value.checked;
     //console.log(val);
     if(val == true){
	$("#customCheck1").prop('disabled', true);
	$("#customCheck2").prop('disabled', true);
	$("#customCheck3").prop('disabled', false);
     }else{
     $("#customCheck1").prop('disabled', false);
	$("#customCheck2").prop('disabled', false);
	$("#customCheck3").prop('disabled', false);
     }
 };


 
 


</script>
<!--<div class="container d-flex justify-content-center"><a href="rechargehistory.php" class"badge bg-info"> Recharge Record</a>
</div>-->


<!-- appCapsule -->

<?php include("include/footer.php");?>
<?php
$Query=mysqli_query($con,"select * from tbl_walletsummery WHERE userid='$userid'");
$row=mysqli_fetch_array($Query);
?>
<div id="paymentdetail" class="modal fade" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content ">
      <div class="modal-body">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
       <span aria-hidden="true">×</span></button>
       <p>&nbsp;</p>
        <div class="">
        <form action="checkout.php" method="post" >
        <div class="inner-addon left-addon">
      <i class="icon ion-md-person"></i>
  <input type="text" id="name" name="name" class="form-control" placeholder="Enter Your Name" value="<?php echo $row['name']; ?>">
      </div>
      <div class="inner-addon left-addon">
      <i class="icon ion-md-phone-portrait"></i>
        <input type="tel" id="mobile" name="mobile" class="form-control" placeholder="Enter Mobile Number"  value="<?php echo user($con,'mobile',$userid);?>" readonly>
      </div>
      <div class="inner-addon left-addon">
     
      </div>
      <input type="hidden" name="finalamount" id="finalamount" value="">
      <input type="hidden" name="action" id="action" value="paydetail">
      <div class="text-center mt-3">
        <button type="submit" class="btn btn-primary" style="width:264px;"> Recharge </button>
        </div>
        </form>          
        </div>
      </div>
    </div>
  </div>
</div>
<script src="assets/js/lib/jquery-3.4.1.min.js"></script> 
<!-- Bootstrap--> 
<script src="assets/js/lib/popper.min.js"></script> 
<script src="assets/js/lib/bootstrap.min.js"></script> 
<!-- Owl Carousel --> 
<script src="assets/js/plugins/owl.carousel.min.js"></script> 
<!-- Main Js File --> 
<script src="assets/js/app.js"></script>
<script src="assets/js/jquery.validate.min.js"></script>
<script src="assets/js/payment.js.php"></script>

</body>
</html>