<?php   
	include_once("../view/header-footer/header.php");  
?>  
  
  
  
  
  
<script>
function del_record(val)
{
                     URL = "<?php echo ROOTPATH;?>";
                        var r = confirm("Do you really want to delete record !");
                        if (r == true) 
                        {        
                            
                              
                        }
                        
                        $.ajax({	
                            type: "POST",
                            url: URL+"/ajax/validation.php",
                            data: {DeleteBankAcc:1,id:val},
                            beforeSend: function(){ 
                            },
                            success: function(data)
                            {
                                location.reload();
                                     	 	
                            }
                            });    
}

</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>DELETE PAYEE</h4>
          <span><?php echo $_SESSION['TpMsg']; ?></span>
     </div>    
   </div>
   <div class="innerBody">
       <?php 
        if(!isset($_SESSION['TpMsg'])) {
       ?>
       <div class="container">
         <div class="tableBox">
            <table>
                
                <tr>
                    <th   style="width:auto">S No.</th> 
                    <th   style="width:auto">Name</th>  
                    <th   style="width:auto">Acc No</th>  
                    <th   style="width:auto">IFSC</th>  
                    <th   style="width:auto">Action</th>  
                       
                </tr>  
                
                    <?php 
                                $sr = 1;
                                foreach($Result as $dmm) 
                                { 
                                          
                    ?>   
                    <tr>
                        <td><?php echo $sr++;?></td>
                        <td><?php echo $dmm->accName;?> </td>
                        <td><?php echo $dmm->accno;?></td>  
                        <td><?php echo $dmm->ifsc;?></td>     
                        <td><a href="DeleteMAccount.php?DelId=<?php echo $dmm->id;?>" >Delete</a></td>     
                    </tr>
                    <?php    
                        }     
                    ?> 
                 
              </table>
         </div>
         
         <?php } else { ?>
         <div class="formBox">
           <form method="post" autocomplete="off">  
           <div class="form-outline">
            <label class="form-label" for="form12">Enter OTP</label>
            <input type="number"  class="form-control" name="enterOtp"  id="enterOtp"     required   maxlength="10" /> 
            <span><?php echo $_SESSION['deletMsg'];;?></span>
            <input type="submit" class="btn btn-primary bigBtn PaySound mt-3"      name="DelOtp"  value="Delete"/> 
             <a href="DeleteMAccount.php?clearAll=1"   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>
            <span style="color:red;">
            <?php 
            echo $_SESSION['OtpLoginEror'];
                } 
            ?>  
            </div>
         
       </div>
   </div> 
</div> 
<?php 
  include_once("../view/header-footer/footer.php");  
  unset($_SESSION['deletMsg']);
   