<?php   
	include_once("../view/header-footer/header.php");  
?>  
  
  
  
   <!-- 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> DEBIT DETAILS FOR <?php if($_REQUEST['type']==1) echo "NEFT";else  if($_REQUEST['type']==1) echo "IMPS"; else if($_REQUEST['type']==3) echo "UPI"; else if($_REQUEST['type']==4) echo "TOPUP"; else if($_REQUEST['type']==5) echo "ID TO ID"; ?></h4>
     </div>    
   </div>
   <div class="innerBody">
       <div class="container">
         <di class="tableBox">
            <table width="100%">   
                
                <tr> 
                    <th>S No.</th> 
                    <th>Amount</th> 
                    <th>Date</th>   
                    <th>To</th>   
                </tr>  
                
                  <?php 
                    $sr=1;
                    foreach($NEFT as $mpt) 
                    {
                        
                            if(  ($_REQUEST['type']==1)  ||  ($_REQUEST['type']==2) ) 
                            {  
                                
                                $stmt =  $conn->prepare("select accName from  UI__AddAccount  where     accno=:accno and  ifsc=:ifsc   ");    
                                $stmt->bindValue(':accno', $mpt->beneficiary_accountno, PDO::PARAM_STR);
                                $stmt->bindValue(':ifsc', $mpt->beneficiary_ifsc, PDO::PARAM_STR);
                                $stmt->execute();  
                                $AccDetails = $stmt->fetch(PDO::FETCH_OBJ);  
                                $gname = $AccDetails->accName; 
                            }
                            
                             if(  ($_REQUEST['type']==3) || ($_REQUEST['type']==5)   ) 
                                 $gname = $mpt->orgAmt; 
                                 
                            if(($_REQUEST['type']==4)) 
                            {   
                                $stmt =  $conn->prepare("select nm from  UI__Rgst  where    cuurentId=:cuurentId  ");    
                                $stmt->bindValue(':cuurentId', $mpt->Rid, PDO::PARAM_STR); 
                                $stmt->execute();  
                                $AccDetails = $stmt->fetch(PDO::FETCH_OBJ);  
                                $gname = $AccDetails->nm; 
                            }     
                  ?>
                  <tr> 
                        <td><?php echo $sr++;?></td>
                        <td><?php if(($_REQUEST['type']==1) ||  ($_REQUEST['type']==2) )  echo  $mpt->amount; else   echo $mpt->amt; ?></td>
                        <td><?php if(($_REQUEST['type']==1) ||  ($_REQUEST['type']==2) ) echo  $mpt->last_update; else     echo $mpt->Tdate;?></td>
                        <td><?php echo $gname;?></td>
                    </tr>   
                  <?php } ?>
                    
                   
                
                                           
                     
              </table>
         </div>
       </div>
   </div>
     
</div>
 
<?php 
  include_once("../view/header-footer/footer.php");  
    unset($_SESSION['TpMsg']);