166 lines
4.9 KiB
PHP
166 lines
4.9 KiB
PHP
<?php
|
|
include ('pdf_header.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="100%" align="center" style="font-size:20px"><strong>BIO WASTE GENERATION REPORT</strong></td>
|
|
</tr>
|
|
<tr>
|
|
<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>
|
|
<th rowspan="2">Sr.No.</th>
|
|
<th rowspan="2">Date of Disposal</th>
|
|
<th rowspan="2">Surveillance by</th>
|
|
<th colspan="4">Quantity of Bio- Medical Waste</th>
|
|
<!-- <th colspan="4">No. Of Bags</th> -->
|
|
<th rowspan="2">Collected By</th>
|
|
<!-- <th rowspan="2">Challan No.</th> -->
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>Yellow Category (in gms)</th>
|
|
<th>White Category (in gms)</th>
|
|
<th>Red Category (in gms)</th>
|
|
<th>Blue Category (in gms)</th>
|
|
|
|
<!-- <th>Yellow</th>
|
|
<th>White</th>
|
|
<th>Red</th>
|
|
<th>Blue</th> -->
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
$count = 1;
|
|
$plant_yellow_qty = 0;
|
|
|
|
$plant_white_qty = 0;
|
|
$plant_blue_qty = 0;
|
|
$plant_red_qty = 0;
|
|
while ($row1 = mysqli_fetch_assoc($result)) {
|
|
// extract($row1);
|
|
error_log("plant_yellow_qty " . $plant_yellow_qty);
|
|
$plant_yellow_qty += ceil($row1['plant_yellow_qty']);
|
|
|
|
$plant_white_qty += ceil($row1['plant_white_qty']);
|
|
$plant_blue_qty += ceil($row1['plant_blue_qty']);
|
|
$plant_red_qty += ceil($row1['plant_red_qty']);
|
|
?>
|
|
|
|
<tr>
|
|
<td align="center">
|
|
<?php echo $count ?>
|
|
</td>
|
|
<td align="center">
|
|
<?php echo date_format(date_create($row1['waste_gen_date']), "d-M-Y ") ?>
|
|
</td>
|
|
<td align="center">
|
|
<?php echo $row1['surveillance_by'] ?>
|
|
</td>
|
|
<td align="center" bgcolor="#f9e84e">
|
|
<?php echo $row1['plant_yellow_qty'] ?>
|
|
</td>
|
|
|
|
<td align="center" bgcolor="#eeeeee">
|
|
<?php echo $row1['plant_white_qty'] ?>
|
|
</td>
|
|
|
|
<td align="center" bgcolor="#fa8072">
|
|
<?php echo $row1['plant_red_qty'] ?>
|
|
</td>
|
|
|
|
<td align="center" bgcolor="#6495ed">
|
|
<?php echo $row1['plant_blue_qty'] ?>
|
|
</td>
|
|
|
|
|
|
|
|
<!-- <td align="center" bgcolor="#f9e84e"><?php echo $row1['yellow_bags'] ?></td>
|
|
|
|
<td align="center" bgcolor="#eeeeee"><?php echo $row1['white_bags'] ?></td>
|
|
|
|
<td align="center" bgcolor="#fa8072"><?php echo $row1['red_bags'] ?></td>
|
|
|
|
|
|
<td align="center" bgcolor="#6495ed"><?php echo $row1['blue_bags'] ?></td> -->
|
|
|
|
|
|
<td align="center">
|
|
<?php echo getTableFieldValue('bio_wast_collector', 'collector_name', 'collector_id', $row1['collected_by']) ?>
|
|
</td>
|
|
|
|
|
|
<!-- <td align="center"><?php echo $row1['challan_no'] ?></td> -->
|
|
</tr>
|
|
<?php
|
|
$count++;
|
|
}
|
|
?>
|
|
|
|
<tr>
|
|
<td colspan="3" align="center"></td>
|
|
<td align="center">Total:
|
|
<?php echo $plant_yellow_qty; ?>gms
|
|
</td>
|
|
|
|
|
|
<td align="center">Total:
|
|
<?php echo $plant_white_qty; ?>gms
|
|
</td>
|
|
|
|
<td align="center">Total:
|
|
<?php echo $plant_red_qty; ?>gms
|
|
</td>
|
|
|
|
|
|
<td align="center">Total:
|
|
<?php echo $plant_blue_qty; ?>gms
|
|
</td>
|
|
|
|
|
|
<!--
|
|
<td align="center">Total:<?php echo $no_yellow_bags; ?></td>
|
|
|
|
|
|
<td align="center">Total:<?php echo $no_white_bags; ?></td>
|
|
|
|
<td align="center">Total:<?php echo $no_red_bags; ?></td>
|
|
|
|
|
|
<td align="center">Total:<?php echo $no_blue_bags; ?></td> -->
|
|
|
|
|
|
|
|
<!-- <td colspan="6"></td> -->
|
|
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
|
|
<?php
|
|
include ('pdf_footer.php');
|
|
?>
|