ohctech_p8/ailment_pdf.php
2024-10-16 19:18:52 +05:30

50 lines
1.5 KiB
PHP

<?php include('pdf_header.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>AILMENT</strong></td>
<td width="25%" align="left"> User :
<?php echo $username ?>
</td>
</tr>
</table>
<table class="col-sm-offset-5" border="1">
<?php
$sql = "select ailment_id,ailment_name,ailment_code,ailment_desc,is_active from ailment";
//echo $sql;
$result = mysqli_query($conn, $sql);
//echo $result;
?>
<tr bgcolor='#eeeeee'>
<th width=20%>Ailment Id</th>
<th width=20%>Ailment Name</th>
<th width=20%>Ailment Code</th>
<th width=20%>Ailment Description</th>
<th width="20%">Status</th>
</tr>
<?php
$i = 0;
while ($rowOfEmployee = mysqli_fetch_array($result)) {
$i++;
?>
<tr>
<td><?php echo $i ?></td>
<td><?php echo $rowOfEmployee['ailment_name'] ?></td>
<td><?php echo $rowOfEmployee['ailment_code'] ?></td>
<td><?php echo $rowOfEmployee['ailment_desc'] ?></td>
<td><?php echo $rowOfEmployee['is_active'] == 'Y' ? 'Active' : 'Inactive' ?></td>
</tr>
<?php
}
?>
</table>
<?php
include('pdf_footer.php');
?>