ESH/notice_pdf.php
2024-10-23 18:28:06 +05:30

61 lines
2.0 KiB
PHP

<?php
// include('pdf_header_reverse.php');
include('includes/config/config.php');
include('includes/functions.php')
//include('pop_up_top.php');
?>
<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>Notice</strong></td><td width="25%" align="left"> User : <?php echo $username ?></td>
</tr>
</table>
<table border="1" width="100%">
<?php
//$sql_waste="SELECT c.ohc_type_name,a.waste_category_name,b.* FROM `waste_category` a inner join bio_medical_waste b on a.waste_category_id=b.waste_category inner join ohc_type c on c.ohc_type_id=b.ohc_type_id where b.ohc_type_id='".$_SESSION['current_ohcttype']."' ";
//$results_issue_items = mysqli_query($conn,$sql_issue_items);
//$sql=base64_decode($filterkey);
//$results= mysqli_query($conn,$sql_waste);
$sql=base64_decode($filterkey);
$result = mysqli_query($conn,$sql);
?>
<strong><tr bgcolor="#eeeeee"><td align="left" width="2%" >Sr.</td><td align="left" width="5%">Trigger Date.</td><td align="left" width="5%">Expiry Date.</td><td align="left" width="10%">Issued By </td><td align="left" width="10%">Issued To </td><td align="left" width="15%">Notice Details</td><td align="left" width="10%">Status</td><td align="left" width="10%">remark </td></tr>
<?php
$count=1;
while ($row1= mysqli_fetch_assoc($result)){
extract($row1);
?>
<tr>
<td><?php echo $count?></td>
<td><?php echo date_format(date_create($row1['trigger_date']),"d-M-Y ")?></td>
<td><?php echo date_format(date_create($row1['expiry_date']),"d-M-Y ")?></td>
<td><?php echo $row1['issued_by']?></td>
<td><?php echo $row1['issued_to']?></td>
<td><?php echo $row1['notice_details']?></td>
<td><?php echo $row1['status']?></td>
<td><?php echo $row1['remark']?></td>
</tr>
<?php
$count++;
}
?>
</table>
</body>
<?php
include('pdf_footer.php');
?>