55 lines
1.4 KiB
PHP
55 lines
1.4 KiB
PHP
<?php
|
|
include('pdf_header_reverse.php');
|
|
include('includes/config/config.php');
|
|
//include('pop_up_top.php');
|
|
?>
|
|
|
|
<style>
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse; /* Collapse borders */
|
|
}
|
|
th, td {
|
|
border: 1px solid black; /* Consistent border style */
|
|
padding: 8px; /* Add padding for better readability */
|
|
text-align: left; /* Align text to the left */
|
|
}
|
|
th {
|
|
background-color: #eeeeee; /* Header background color */
|
|
}
|
|
</style>
|
|
|
|
<table width="100%">
|
|
<tr>
|
|
<td width="25%" align="left" style="font-size: 12px">Run Date: <?php echo date("d-M-Y"); ?></td>
|
|
<td width="50%" align="center" style="font-size: 20px"><strong>Item Form</strong></td>
|
|
<td width="25%" align="left">User: <?php echo $username; ?></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table border="1">
|
|
<tr>
|
|
<th width="50%">Item Form Name</th>
|
|
<th width="50%">Item Form Code</th>
|
|
</tr>
|
|
<?php
|
|
$sql = "SELECT * FROM medicine_form";
|
|
$result = mysqli_query($conn, $sql);
|
|
|
|
while ($rowOfEmployee = mysqli_fetch_array($result)) {
|
|
// Optionally check status if needed
|
|
$status = ($rowOfEmployee['status'] == '1') ? "Active" : "Inactive";
|
|
?>
|
|
<tr>
|
|
<td><?php echo $rowOfEmployee['form_name']; ?></td>
|
|
<td><?php echo $rowOfEmployee['form_code']; ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
|
|
<?php
|
|
include('pdf_footer.php');
|
|
?>
|