52 lines
1.5 KiB
PHP
52 lines
1.5 KiB
PHP
<?php
|
|
include('pdf_header.php');
|
|
?><html>
|
|
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
|
|
|
|
<body>
|
|
<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:20px"><strong>PENDING EXPIRY LIST</strong></td>
|
|
<td width="25%" align="left"> User : <?php echo $username ?></td>
|
|
</tr>
|
|
</table>
|
|
<table border="1" width="100%">
|
|
<?php
|
|
$sql = base64_decode($filterkey);
|
|
//echo $sql;
|
|
$result = mysqli_query($conn, $sql);
|
|
$count = 0;
|
|
?><tr bgcolor='#eeeeee'>
|
|
<th width=5%>Sr.</th>
|
|
<th width=35%>Item</th>
|
|
<th width=20%>Quantity</th>
|
|
<th width=20%>Batch</th>
|
|
<th width=20%>Expiry</th>
|
|
</tr><?php
|
|
while ($row1 = mysqli_fetch_array($result)) {
|
|
extract($row1);
|
|
|
|
$item_desc = getItemWithFormName($row1['item_id']);
|
|
$item_qty = $row1['stock_qty'];
|
|
$item_batch = $row1['item_batch_no'];
|
|
$item_expiry_date = date_format(date_create($row1['expiry_date']), "M-Y ");
|
|
$count = $count + 1;
|
|
?><tr>
|
|
<td><?php echo $count; ?></td>
|
|
<td> <?php echo $item_desc; ?></td>
|
|
<td align="right"> <?php echo $item_qty ?></td>
|
|
<td align="right"> <?php echo $item_batch ?></td>
|
|
<td align="right"> <?php echo $item_expiry_date ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
</body>
|
|
|
|
</html>
|
|
<?php
|
|
include('pdf_footer.php');
|
|
?>
|