<?php   
	include_once("../view/header-footer/header.php");  
?>  
<script>

        
        
        
        $(document).ready(function()
        {        
            
                var URL = "<?php echo ROOTPATH;?>";    
                document.getElementById('AMMT').onkeyup = function () 
                {   
                    document.getElementById('AmountDisplay').innerHTML = inWords(document.getElementById('AMMT').value);
                };     
             
            
        });       
    </script> 
 
<script>
        //Function To Display Popup
    
        
</script>
  
   
 <!-- Features -->
   <div class="innerDeader">
      <div class="container">
       <a href="javascript:void(0);" id="go-back" class="goBack PaySound">
           <img src="<?php echo ROOTPATH;?>/images/Arrow 1.svg" alt="back">
       </a>   
          <h4> MWI TOPUP </h4>  
          <?php 
            if(isset($_SESSION['topSuc'])) 
            {
          ?>
          <span style="font-size:13px;color:green;font-weight:bold;">
           <?php  
                if(isset($_SESSION['Regis']))  
                    echo $_SESSION['Regis'];
            ?>  
            </span>  
            <?php 
                } else { 
            ?> 
            <span style="font-size:13px;color:red;font-weight:bold;">
           <?php  
                if(isset($_SESSION['Regis']))  
                    echo $_SESSION['Regis'];
            ?>  
            </span>    
            <?php  } ?>  
     </div>  
    
       
   </div>
   <div class="innerBody">
       <div class="container">
        <div class="formBox">
            <form method="post" autocomplete="off">
                 
          
          <div class="form-outline">
            <label class="form-label" for="form12">Amount</label>  
            <input type="number"  class="form-control"  id="AccountList"  name="amount"   id="AMMT"      />
            <span>Amount above 1,00,000/- is accepted</span>
            <span id="AmountDisplay"> </span>
          </div>   
		  
		 <div class="form-outline mt-5">
            <label class="form-label" for="form12">Enter Transaction Password</label>
            <input type="text"  class="form-control"    type="password"  [(ngModel)] = 'line1'    name="pinno"  id="pinno"      required  />
          </div> 
          
	     <div class="form-outline">
            <label class="form-label" for="form12">Available Balance</label>
            <input type="text"   class="form-control"   value="₹<?php echo $PAYWAllet;?>" readonly  /> 
          </div>
		  
          
		  <input type="submit" class="btn btn-primary bigBtn PaySound mb-3"   onclick="PaySubmit();"  name="submit" id="Mysubmit" value="SUBMIT"/> 
		   <a href="mwireports.php"class="PaySound " style="background-color: #055e06;
                    border: none;
                    color: #fff;
                    padding: 5px 10px;
                    text-align: center;
                    text-decoration: none;
                    display: inline-block;
                    width:100%; 
                    border-radius:5px;
                    font-size: 15px;
                    margin: 4px 2px;
                    cursor: pointer;" >REPORTS
            </a> 
            
		 
		  <a href="javascript:void(0);" id="go-backDown" class="PaySound " style="background-color: #747474;
                    border: none;
                    color: #fff;
                    padding: 5px 10px;
                    text-align: center;
                    text-decoration: none;
                    display: inline-block;
                    width:100%; 
                    border-radius:5px;
                    font-size: 15px;
                    margin: 4px 2px;
                    cursor: pointer;" >Go Back</a>
          </form>

        </div>  
       </div>
   </div>  
   
     
</div>
 
<?php 
  include_once("../view/header-footer/footer.php");  
unset($_SESSION['Regis']);  
unset($_SESSION['topSuc']); 
unset($_SESSION['QRSET']); 