37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php //include('pdf_header.php');
|
|
include('includes/config/config.php');
|
|
//include('pop_up_top.php');
|
|
header('Content-Type: application/force-download');
|
|
header('Content-disposition: attachment; filename=ailment_list.xls');
|
|
?>
|
|
|
|
<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>
|
|
<th>Ailment Id</th>
|
|
<th>Ailment Name</th>
|
|
<th>Ailment Code</th>
|
|
<th>Ailment Description</th>
|
|
<th>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');
|
|
?>
|