40 lines
1.4 KiB
PHP
40 lines
1.4 KiB
PHP
|
<?php
|
||
|
error_reporting(E_ERROR | E_PARSE);
|
||
|
//include('pdf_header_reverse.php');
|
||
|
include('pdf_header.php');
|
||
|
include('includes/config/config.php');
|
||
|
include('includes/functions.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>Checkup List</strong></td>
|
||
|
<td width="25%" align="left"> User : <?php echo $username ?></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table border="1">
|
||
|
<?php
|
||
|
//$sql="select a.*, b. fname, b.lname from checkup_form a, employee b where a.emp_id=b.id";
|
||
|
//echo $sql;
|
||
|
// $result = mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
$sql=base64_decode($filterkey);
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
|
||
|
//$sql1="select * from checkup_form ";
|
||
|
//$result = mysqli_query($conn,$sql1);
|
||
|
?><tr bgcolor='#eeeeee'><th width=5%>Id</th><th width=15%>Checkup Date</th><th width=20%>Employee</th><th width=20%>BMI</th><th width=20%>IsHiperTensed</th><th width=20%>Health Score</th>
|
||
|
</tr><?php
|
||
|
$count=0;
|
||
|
while($row_checkup=mysqli_fetch_array($result)){
|
||
|
$count=$count+1;
|
||
|
?><tr><td><?=$count?></td><td><?=date_format(date_create($row_checkup['checkup_date']),"d-M-Y H:i A")?></td><td><?=$row_checkup['fname'].' '.$row_checkup['lname'] ?></td><td><?=$row_checkup['bmi']?></td><td><?=$row_checkup['isHyperTensed']?></td>
|
||
|
<td><?=$row_checkup['health_score']?></td></tr><?php
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
include('pdf_footer.php');
|
||
|
?>
|