ESH/pdf_items.php

56 lines
1.8 KiB
PHP
Raw Normal View History

2024-10-23 18:28:06 +05:30
<?php
include('pdf_header.php');
$TABLENAME='tbl_items';
$TABLENAME2='tbl_categories';
?>
<html>
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: small}
-->
</style>
<body>
<center>
<p><b><font size="15px">Items Report &nbsp;</font></b></p>
</center>
<table width="100%" border="1" cellspacing="1" cellpadding="1" style="font:Arial, Helvetica, sans-serif; font-size:10px;">
<tr class="bg2">
<th width="8%" align="center" ><strong>S.No.</strong></th>
<th width="15%" align="center"><strong>Item Name</strong></th>
<th width="22%" align="center"><strong>Material</strong></th>
<th width="15%" align="center"><strong>Sub-Material</strong></th>
<th width="15%" align="center"><strong>Specification</strong></th>
<th width="15%" align="center"><strong>PL No</strong></th>
<th width="10%" align="center"><strong>Remarks</strong></th>
</tr>
<?php
$count=1;
$sql="SELECT a.*, b.cat_name as cat,c.cat_name as subcat,item_spec FROM $TABLENAME a LEFT JOIN $TABLENAME2 b ON a.cat=b.cat_id LEFT JOIN $TABLENAME2 c on a.subcat=c.cat_id order by a.item_id";
$result = mysqli_query($conn,$sql);
while($row=@mysqli_fetch_array($result))
{
extract($row);
?>
<tr class="bdr_td">
<td align="center" class="bdr_td"><?php echo $count?></td>
<td align="center" class="bdr_td"><?php echo $item_name?></td>
<td align="center" class="bdr_td"><?php echo $cat?></td>
<td align="center" class="bdr_td"><?php echo $subcat?></td>
<td align="center" class="bdr_td"><?php echo $item_spec?></td>
<td align="center" class="bdr_td"><?php echo $pl_no?></td>
<td align="center" class="bdr_td"><?php echo $remarks?></td>
</tr>
<?php
$count++;
}
?>
</table>
</body>
</html>
<?php
include('pdf_footer.php');
?>