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

71 lines
3.1 KiB
PHP

<script<?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:40px"><strong>BIO WASTE GENERATION (MINES)</strong></td>
<td width="25%" align="left"> User : <?php echo $username ?></td>
</tr>
<tr>
<?php
?>
<td colspan="2" ><strong>Filters Applied-</strong> <u>Range:</u><?php echo date_format(date_create($row1['waste_gen_date']),"d-M-Y ")?> </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,$myconn,$sql_issue_items);
//$sql=base64_decode($filterkey);
//$results= mysqli_query($conn,$myconn,$sql_waste);
$sql=base64_decode($filterkey);
$result = mysqli_query($conn,$sql);
?>
<tr><td colspan="2"></td><td align="center" bgcolor="#f9e84e" colspan="2">YELLOW</td><td align="center" bgcolor="#eeeeee" colspan="2">WHITE</td><td align="center" bgcolor="#6495ed" colspan="2">BLUE</td><td bgcolor="#fa8072" align="center" colspan="2">RED</td></tr>
<strong><tr ><td align="left" width="2%" >Sr.</td><td align="left" width="10%">Waste Gen Date.</td><td bgcolor="#f9e84e" align="left" width="10%">MINES</td><td valign="top" bgcolor="#f9e84e" width="10%" align="left">FORWARDED FOR DISPOSAL</td><td bgcolor="#eeeeee" valign="top" align="left" width="10%">MINES</td><td width="10%" bgcolor="#eeeeee" valign="top" align="left">FORWARDED FOR DISPOSAL</td><td valign="top" bgcolor="#6495ed" align="left" width="10%">MINES</td><td width="10%" valign="top" bgcolor="#6495ed" align="left">FORWARDED FOR DISPOSAL</td><td width="10%" bgcolor="#fa8072" valign="top" align="left">MINES</td><td width="10%" bgcolor="#fa8072" valign="top" align="left">FORWARDED FOR DISPOSAL</td></strong></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['waste_gen_date']),"d-M-Y ")?></td>
<td bgcolor="#f9e84e"><?php echo $row1['mines_yellow_qty']?></td>
<td bgcolor="#f9e84e"><?php echo $row1['yellow_qty_total']?></td>
<td bgcolor="#eeeeee"><?php echo $row1['mines_white_qty']?></td>
<td bgcolor="#eeeeee"><?php echo $row1['white_qty_total']?></td>
<td bgcolor="#6495ed"><?php echo $row1['mines_blue_qty']?></td>
<td bgcolor="#6495ed"><?php echo $row1['blue_qty_total']?></td>
<td bgcolor="#fa8072"><?php echo $row1['mines_red_qty']?></td>
<td bgcolor="#fa8072"><?php echo $row1['red_qty_total']?></td>
</tr>
<?php
$count++;
}
?>
</table>
</body>
<?php
include('pdf_footer.php');
?>