<?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>DIRECT REFERENCE</h4>
     </div>    
   </div>
   <div class="innerBody">
       <div class="container">
         <di class="tableBox">
            <table>
                
                <tr>
                        <th>Sr</th>  
                        <th>Name</th> 
                        <th>Id</th> 
                        <th>Amount</th> 
                        <th>Date</th>  
                </tr>
                
                    
                    <?php 
                    $sr = 1;
                    foreach($UI__Tpm as $users) 
                    { 
                    $stmt=$conn->prepare("select  *  from UI__Rgst  where cuurentId=:cuurentId");  
                    $stmt->bindValue(':cuurentId', $users->custId , PDO::PARAM_STR);
                    $stmt->execute(); 
                    $UI__Rgst = $stmt->fetch(PDO::FETCH_OBJ);  
                    
                    ?>
                    <tr>
                    <td><?php echo $sr++;?> </td> 
                    <td><?php echo $UI__Rgst->nm;?> </td>
                    <td><?php echo $users->custId;?> </td>     
                    <td>&#8377;<?php echo $users->Amt;?> </td>
                    <td><?php echo $users->Tdate;?> </td> 
                    </tr>
                    <?php } ?>    
                 
              </table>
         </div>
       </div>
   </div>
     
</div>
 
<?php 
  include_once("../view/header-footer/footer.php");  
    unset($_SESSION['TpMsg']);