<?php include('pdf_header_reverse.php');
include('includes/config/config.php');
//include('pop_up_top.php');
?>
<table width="100%">
    <tr>
        <div style="font-size:12px">
            <td width="25%" align="left"> Run Date :
                <?php  echo date("d-M-Y"); ?>
            </td>
            <td width="50%" align="center" style="font-size:40px"><strong>UNIT LIST </strong></td>
            <td width="25%" align="left"> User :
                <?php  echo $username ?>
            </td>
    </tr>
</table>
<table border="1">
    <?php 
 $sql=base64_decode($filterkey);
 //echo $sql;
 $result = mysqli_query($conn,$sql);
  //echo $result;
  
  ?>
    <tr bgcolor='#eeeeee'>
        <th width=25%>Unit Id</th>
        <th width=25%>Unit Name</th>
        <th width=50%>Remarks</th>
    </tr>
    <?php 
while($rowOfEmployee=mysqli_fetch_array($result)){
	if($rowOfEmployee['status']=='1'){
	$rowOfEmployee['status']="Active";
}else{
	$rowOfEmployee['status']="Inactive";
}

  ?>
    <tr>
        <td><?php  echo $rowOfEmployee['unit_id']?></td>
        <td><?php  echo $rowOfEmployee['unit_name']?></td>
        <td><?php  echo $rowOfEmployee['unit_remarks']?></td>
    </tr>
    <?php 

}
?>
</table>
<?php 
include('pdf_footer.php');
?>