ESH/reffered_by_pdf.php
2024-10-23 18:28:06 +05:30

66 lines
1.9 KiB
PHP

<?php
include('pdf_header.php');
//include('includes/config/config.php');
//include('includes/functions.php');
include('log_entry.php');
//include('pop_up_top.php');
?>
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
<style>
</style>
<br><br>
<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>REFERRED BY LIST</strong></td>
<td width="25%" align="left"> User :
<?php echo $username ?>
</td>
</tr>
</table>
<br><br>
<table width="100%" border="1">
<?php
$sql="select * from referred_by_master";
//echo $sql;
error_log("query: ".$sql);
$result = @mysqli_query($conn,$sql);
//echo $result;
?><tr bgcolor="#eeeeee">
<th width="10%">Id</th>
<th width="30%">Referred By</th>
<th width="30%">DEscription</th>
<th width="30%">Remarks</th>
</tr><?php
$i=0;
while($row=@mysqli_fetch_array($result)){
$i++;
// calculate age by dob
// $age = date_diff(date_create($row['dob']), date_create('now'))->y;
// $date_added=date_create($row['date_added']);
// $date_added=date_format($date_added,"d-m-Y");
// $resumed_duties_from=date_create($row['resumed_duties_from']);
// $resumed_duties_from=date_format($resumed_duties_from,"d-m-Y");
// $tested_positive_on=date('d-m-Y h:i A', strtotime($row['tested_positive_on']));
// $discharge_on=date('d-m-Y h:i A', strtotime($row['discharge_on']));
?><tr>
<td><?php echo $i?></td>
<td><?php echo $row['referred_by']?></td>
<td><?php echo $row['description']?></td>
<td><?php echo $row['remarks']?></td>
</tr><?php
}
?>
</table>
<?php
include('pdf_footer.php');
?>
<script>
</script>