63 lines
1.6 KiB
PHP
63 lines
1.6 KiB
PHP
|
|
<?php
|
||
|
|
include('pdf_header_reverse.php');
|
||
|
|
include('includes/config/config.php');
|
||
|
|
//include('pop_up_top.php');
|
||
|
|
include('list_pdf_header.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 */
|
||
|
|
}
|
||
|
|
.header {
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
.title {
|
||
|
|
font-size: 20px;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
|
||
|
|
<table>
|
||
|
|
<tr class="header">
|
||
|
|
<td width="25%" align="left">Run Date: <?php echo date("d-M-Y"); ?></td>
|
||
|
|
<td width="50%" align="center" class="title"><strong>CATEGORY</strong></td>
|
||
|
|
<td width="25%" align="left">User: <?php echo $username; ?></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<th>Category Name</th>
|
||
|
|
<th>Remarks</th>
|
||
|
|
<th>Status</th>
|
||
|
|
</tr>
|
||
|
|
<?php
|
||
|
|
$sql = "SELECT cat_id, cat_name, remarks, status FROM tbl_categories";
|
||
|
|
$result = mysqli_query($conn, $sql);
|
||
|
|
|
||
|
|
while ($rowOfEmployee = mysqli_fetch_array($result)) {
|
||
|
|
$rowOfEmployee['status'] = ($rowOfEmployee['status'] == '1') ? "Active" : "Inactive";
|
||
|
|
?>
|
||
|
|
<tr>
|
||
|
|
<td><?php echo $rowOfEmployee['cat_name']; ?></td>
|
||
|
|
<td><?php echo $rowOfEmployee['remarks']; ?></td>
|
||
|
|
<td><?php echo $rowOfEmployee['status']; ?></td>
|
||
|
|
</tr>
|
||
|
|
<?php
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<?php
|
||
|
|
include('pdf_footer.php');
|
||
|
|
?>
|