<?php   
	include_once("../view/header-footer/header.php");  
?>  
  
   <script>
   
                            $(document).ready(function()
                            {    
                                
                                document.getElementById('amount').onkeyup = function () 
                                {
                                    document.getElementById('AmountDisplay').innerHTML = inWords(document.getElementById('amount').value);
                                    
                                };      
                                
                            });  
                            
                            
                            $(document).ready(function()
                            {    
                                
                                document.getElementById('amount1').onkeyup = function () 
                                {
                                    document.getElementById('AmountDisplay1').innerHTML = inWords(document.getElementById('amount1').value);
                                    
                                };      
                                
                            });  
                            
                             $(document).ready(function()
                            {    
                                
                                document.getElementById('amount2').onkeyup = function () 
                                {
                                    document.getElementById('AmountDisplay2').innerHTML = inWords(document.getElementById('amount2').value);
                                    
                                };      
                                
                            });  
                            
                            
                            
                             
                                                

        function callFun()
        {
            
                    window.location.href = "QrReport.php";
        }
   </script>
 <!-- Features -->
 
 <?php 
    if($_REQUEST['method']==1)
    {
 ?>
   <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>ADD MONEY METHOD-2</h4> 
          
          <?php 
            if(isset($_SESSION['utrPaidAmt']))
            {
          ?>
            <br>
             <h4 style="color:green;">
                    <span onclick="callFun();"><?php echo $_SESSION['utrPaid'];?></span>
            </h4>
            
          <?php }else { ?> 
            <h4 style="color:red;"><?php echo $_SESSION['utrPaid'];?></h4>
          <?php }  ?>
     </div>    
   </div>
   
   
   <div class="innerBody">  
   
   
       <div class="container">
            <?php 
            if(!isset($_SESSION['utrPaid'])) {
            ?> 
            <span> <b> Note: </b> Please scan daily pay Qr code and pay the amount. Then enter generated UTR and amount and then submit your request.</span>
            <?php } ?>
        <div class="formBox">
                
            
            
            <form method="post" autocomplete="off"> 
            
                <?php 
                if(!isset($_SESSION['utrPaid'])) {
                ?>

                <div class="form-check">
                    <img src="<?php echo ROOTPATH;?>/images/dpQr1.jpg"  width="300"/>
                </div>
                
                
                 
                
            <div class="form-outline">
            <label class="form-label" for="form12" style="width: 100%;">Amountx</label>
            <div style="float: left;font-weight: bold;font-size: 20px;width: 31px;border-left: 1px solid #dee0e2;border-top: 1px solid #dee0e2;border-bottom: 1px solid #dee0e2;border-right:1px solid #dee0e2;background-color:#dee0e2;text-align:center;border-radius: .25rem;height:38px">₹</div> 
            <input type="number"   class="form-control brdr-none-left"   name="amount"  id="amount1"  style="float: left; width: 90%;margin-bottom:12px;"  required    /> 
            <span id="AmountDisplay1"></span>
            </div>
                
                
                <div class="form-outline">
                <label class="form-label" for="form12">Enter UTR</label>
                <input type="number" id="form12" class="form-control" name="utr"   required   /> 
                </div>     
                


                <input type="submit" class="btn btn-primary bigBtn PaySound"name="submitReuqest" value="Submit Request" /> 
                
                <?php 
                     }
                ?>
                <a href="QrReport.php" id="go-backDown" class="PaySound " style="background-color: #7f8ca1;
                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;" >QR CODE REPORT</a> 
                

                </form>  
            
        </div>  
       </div> 
   </div>  
   
   <?php } ?>
   
    <?php 
    if($_REQUEST['method']==2)
    {
 ?>
   
    <div class="innerDeader">
      <div class="container">  
          <h4>ADD MONEY METHOD-3</h4>
     </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" style="width: 100%;">Amount</label>
            <div style="float: left;font-weight: bold;font-size: 20px;width: 31px;border-left: 1px solid #dee0e2;border-top: 1px solid #dee0e2;border-bottom: 1px solid #dee0e2;border-right:1px solid #dee0e2;background-color:#dee0e2;text-align:center;border-radius: .25rem;height:38px">₹</div> 
            <input type="number"   class="form-control brdr-none-left"   name="amount"  id="amount2"  required  style="float: left; width: 90%;margin-bottom:12px;"  required    /> 
            <span id="AmountDisplay2"></span>
            </div>

               
                    <br>


                <input type="submit" class="btn btn-primary bigBtn PaySound"name="submit" value="Proceed" />   
                </form>  
                
        </div>  
       </div> 
   </div>  
   
   <?php } ?>
   
   
     <?php 
    if($_REQUEST['method']==3)
    {
 ?>
   
    <div class="innerDeader">
      <div class="container">  
          <h4>ADD MONEY METHOD-1</h4>
     </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" style="width: 100%;">Amount</label>
            <div style="float: left;font-weight: bold;font-size: 20px;width: 31px;border-left: 1px solid #dee0e2;border-top: 1px solid #dee0e2;border-bottom: 1px solid #dee0e2;border-right:1px solid #dee0e2;background-color:#dee0e2;text-align:center;border-radius: .25rem;height:38px">₹</div> 
            <input type="number"   class="form-control brdr-none-left"   name="amount"  id="amount"  required  style="float: left; width: 90%;margin-bottom:12px;"  required    /> 
            <span id="AmountDisplay"></span>
            </div>

                


                <input type="submit" class="btn btn-primary bigBtn PaySound" name="submitcollect" value="Proceed" />   
                </form>  
                
        </div>  
       </div> 
   </div>  
   
   <?php } ?>
   
    
    <?php 
    if($_REQUEST['method']==2)
    {
    ?>
            <div class="form-check">
            <img src="<?php echo ROOTPATH;?>/images/we_accept_add_moneypage1.png"  width="300"/>
            <input   type="hidden" name="PgTYpe" value="2"/>
            </div>
            
    <?php  } ?>  
</div>
 
<?php 
  include_once("../view/header-footer/footer.php");  
    unset($_SESSION['utrPaid']);
    unset($_SESSION['utrPaidAmt']);  
?>