51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
|
<?php include('pdf_header_reverse.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>CATEOGRY </strong></td>
|
||
|
<td width="25%" align="left"> User :
|
||
|
<?php echo $username ?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table border="1">
|
||
|
<?php
|
||
|
$sql="select cat_id,cat_name,remarks,status from tbl_categories";
|
||
|
//echo $sql;
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
|
||
|
?>
|
||
|
<tr bgcolor='#eeeeee'>
|
||
|
<th width=50%>Category Name</th>
|
||
|
<th width=25%>Remarks</th>
|
||
|
<th width=25%>Status</th>
|
||
|
</tr>
|
||
|
<?php
|
||
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
||
|
if($rowOfEmployee['status']=='1'){
|
||
|
$rowOfEmployee['status']="Active";
|
||
|
}else{
|
||
|
$rowOfEmployee['status']="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');
|
||
|
?>
|