ohctech_p8/bio_medical_annual_report_pdf.php
2024-10-16 19:18:52 +05:30

703 lines
25 KiB
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="
https://cdn.jsdelivr.net/npm/sweetalert2@11.7.12/dist/sweetalert2.all.min.js
"></script>
<link href="
https://cdn.jsdelivr.net/npm/sweetalert2@11.7.12/dist/sweetalert2.min.css
" rel="stylesheet">
<?php
include('includes/config/config.php');
include_once('includes/functions.php');
$from_date = $_REQUEST['startDate2'];
$to_date = $_REQUEST['endDate2'];
//include('pop_up_top.php');
?>
<?php
$query_for_company = "select company_name, company_logo,right_com_logo, image_type,address ,ohc_details from company_profile ";
//echo $query_for_company;
$result_for_company = @mysqli_query($conn, $query_for_company);
if ($row_for_company = @mysqli_fetch_array($result_for_company)) {
@extract($row_for_company);
}
$ohc_types = array();
$sql = "SELECT * FROM ohc_type WHERE ohc_type_id = ?";
$stmt = mysqli_prepare($conn, $sql);
if ($stmt) {
mysqli_stmt_bind_param($stmt, "s", $ohcCategory);
$ohcCategory = $_REQUEST['plant'];
$stmt->execute();
$result = $stmt->get_result();
$ohc_types = $result->fetch_array();
mysqli_stmt_close($stmt);
} else {
error_log("Error: " . mysqli_error($conn));
}
// error_log("Error: " . print_r($ohc_types,true));
$ohc_filter = '';
$ohc = $row_for_company['company_name'];
if ($_REQUEST['plant'] != '') {
$ohc_filter = " and `ohc_type_id` = '" . $_REQUEST['plant'] . "' ";
$ohc = getTableFieldValue('ohc_type', 'ohc_type_name', 'ohc_type_id', $_REQUEST['plant']);
}
$sql1 = "SELECT SUM(plant_yellow_qty ) as plant_yellow_qty,sum(yellow_bags) as total_yellow_bags,sum(plant_white_qty) as plant_white_qty,sum(white_bags) as total_white_bags,sum(plant_blue_qty) as plant_blue_qty,sum(blue_bags) as total_blue_bags,sum(plant_red_qty) as plant_red_qty,sum(red_bags) as total_red_bags ,DATE_FORMAT(date(`waste_gen_date`), '%d/%m/%Y') as date FROM `bio_medical_waste_new` WHERE date(`waste_gen_date`) between STR_TO_DATE('" . $from_date . "', '%d-%m-%Y') AND STR_TO_DATE('" . $to_date . "', '%d-%m-%Y') " . $ohc_filter;
error_log($sql1);
$result1 = mysqli_query($conn, $sql1);
$row1 = mysqli_fetch_assoc($result1);
extract($row1);
//echo "hello".$row1[0];
$date = ($row1['date']);
error_log("date:" . $date);
$plant_yellow_qty = number_format($row1['plant_yellow_qty'], 3);
$plant_blue_qty = number_format($row1['plant_blue_qty'], 3);
$plant_red_qty = number_format($row1['plant_red_qty'], 3);
$plant_white_qty = number_format($row1['plant_white_qty'], 3);
//echo $abc;
?>
<?php
$query_disposal_agency = "SELECT agency_name, agency_address, HOD_Name, HOD_Email FROM disposal_agency WHERE ohctype_id = ?";
$stmt_disposal_agency = mysqli_prepare($conn, $query_disposal_agency);
if ($stmt_disposal_agency) {
mysqli_stmt_bind_param($stmt_disposal_agency, "s", $ohcCategory);
$ohcCategory = $_REQUEST['plant'];
mysqli_stmt_execute($stmt_disposal_agency);
$result_disposal_agency = mysqli_stmt_get_result($stmt_disposal_agency);
if ($row_disposal_agency = mysqli_fetch_assoc($result_disposal_agency)) {
extract($row_disposal_agency);
}
mysqli_stmt_close($stmt_disposal_agency);
} else {
error_log("Error: " . mysqli_error($conn));
}
?>
<head>
<style>
body {
font-family: Verdana;
font-size: 14px
}
h3 {
margin: 0.2rem 0;
}
.header-text {
text-align: center;
}
table,
tr,
td,
th {
border-width: 1px !important;
font-size: 13px;
}
.center {
text-align: center !important;
}
.annual-report-table {
font-size: 15px;
width: 99%;
margin-left: auto;
margin-right: auto;
border-collapse: collapse;
border-width: 1px;
}
.annual-report-table th {
border-width: 1px;
text-align: center;
border: 0.15rem solid black;
font-size: 15px;
background-color: #808080;
}
.annual-report-table td {
border-width: 1px;
text-align: left;
border: 0.15rem solid black;
}
.annual-report-table td:first-child {
width: 6%;
}
.annual-report-table td:nth-child(2) {
width: 48%;
}
.bottom-container {
display: flex;
justify-content: space-between;
margin: 0 15px;
padding: 1rem 2rem;
}
.left-section {
text-align: left;
}
.right-section {
text-align: right;
}
.button-container {
text-align: right;
margin-right: 4rem;
margin-bottom: 1rem;
}
#saveAsPdfBtn {
background-color: blue;
padding: 10px 20px;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<html>
<body contenteditable="true">
<form id="myForm" method="post">
<div class="header-text">
<h3>Form IV</br>
<i>(See rule 13)</i></br>
ANNUAL REPORT</br>
</h3>
</div>
<table class="annual-report-table">
<thead>
<tr>
<th>S.No</th>
<th>Particulars</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="12" class="center">1.</td>
<td>Particulars of the Occupier</td>
<td>
</td>
</tr>
<tr>
<td>(i) Name of the authorized person (occupier of facility)</td>
<td><?php echo $HOD_Name; ?></br>
Vice President-Employee Resource Management</br>
<?= $row_for_company['company_name'] ?></br></td>
</tr>
<tr>
<td>(ii) Name of HCF or CBMWTF </td>
<td><?php echo $agency_name; ?><br /> <?php echo $agency_address; ?>
</td>
</tr>
<tr>
<td>(iii) Address for correspondence</td>
<td><?php echo $HOD_Name; ?></br>
Vice President-Employee Resource Management</br>
<?= $row_for_company['company_name'] ?></br></td>
</tr>
<tr>
<td>(iv) Address of facility</td>
<td><?= $row_for_company['company_name']; ?></br>
<?= $ohc_types['address'] ?></td>
</tr>
<tr>
<td>(v) Tel. No, Fax. No</td>
<td>Phone: <?= $ohc_types['primary_phone'] ?></br>
Fax : <?= $ohc_types['fax'] ?></td>
</tr>
<tr>
<td>(vi) E-mail ID </td>
<td><?php echo $HOD_Email; ?></td>
</tr>
<tr>
<td>(vii) URL of Website </td>
<td>-</td>
</tr>
<tr>
<td>(viii) GPS co-ordinates of HCF or CBMWTF </td>
<td>Latitude 12.441854 N Decimal Degrees</br>
Longitude 77.471632 E Decimal Degrees
</td>
</tr>
<tr>
<td>(ix) Ownership of HCF or CBMWTF (State Government or
Private or Semi Govt. Or any other) </td>
<td>Private</td>
</tr>
<tr>
<td>(x) Status of Consents under Water Act and Air Act</td>
<td>Authorization No. : Water Consent -2107133076821;</br>
Air Consent- 2107233076821</br>
Valid up to: March 31, 2022</br>
</td>
</tr>
<tr>
<td>(xi) Status of Authorization under the Bio-Medical Waste (
Management and Handling) Rules
</td>
<td>Authorization No - 20BAC28600232 Dated 06/02/2020
(One time)</td>
</tr>
<!-- s.no-2 -->
<tr>
<td class="center" rowspan="4">2.</td>
<td>Type of Health Care Facility </td>
<td>Out-patient Care</td>
</tr>
<tr>
<td>(i) Bedded Hospitals</td>
<td>No. of Beds : Nil</td>
</tr>
<tr>
<td>(ii) Non-bedded Hospitals (Clinic or Blood Bank or Clinical
Laboratory or Research Institute or Veterinary Hospitals or
any other)</td>
<td>Clinic + Clinical Laboratory inside company premises</td>
</tr>
<tr>
<td>(iii) License number and its date of expiry</td>
<td>Not Applicable</td>
</tr>
<!-- s.no-3 -->
<tr>
<td class="center" rowspan="5">3.</td>
<td>Details of CBMWTF </td>
<td>Not Applicable
</td>
</tr>
<tr>
<td>(i) Number of healthcare facilities covered by CBMWTF </td>
<td>Not Applicable</td>
</tr>
<tr>
<td>(ii) No.of beds covered by CBMWTF</td>
<td>Not Applicable</td>
</tr>
<tr>
<td>(iii) Installed treatment and disposal capacity of CBMWTF </td>
<td>Not Applicable
</td>
</tr>
<tr>
<td>(iv) Quantity of biomedical waste treated or disposed by
CBMWTF </td>
<td>Not Applicable</td>
</tr>
<!-- s.no-4 -->
<tr>
<td class="center" rowspan="5">4.</td>
<td>Quantity of waste generated or disposed in Kg per annum
(on monthly average basis) </td>
<td>Yellow Category:<?= $plant_yellow_qty; ?> Kg/annum (About <?= round($plant_yellow_qty / 12, 2) ?> Kg/month)</td>
</tr>
<tr>
<td rowspan=" 4"></td>
<td>Red Category:<?= $plant_red_qty ?> Kg/annum (About <?= round($plant_red_qty / 12, 2) ?> Kg/month)
</td>
</tr>
<tr>
<td>White Category:<?= $plant_white_qty ?> Kg/annum (About <?= round($plant_white_qty / 12, 2) ?> Kg/month)
</td>
</tr>
<tr>
<td>Blue Category: <?= $plant_blue_qty ?> Kg/annum (About <?= round($plant_blue_qty / 12, 2) ?> Kg/month)
</td>
</tr>
<tr style=" page-break-after: always;">
<td>General Solid waste: Nil
</td>
</tr>
<!-- s.no-5 -->
<tr>
<td class="center" rowspan="10">5</td>
<td>Details of the Storage, treatment, transportation, processing
and Disposal Facility</td>
<td>The waste is stored temporarily in a container and disposed
within 48 hours
</td>
</tr>
<tr>
<td rowspan="3">(i) Details of the on-site storage facility</td>
<td>Size : Not Applicable
</td>
</tr>
<tr>
<td>Capacity : Not Applicable
</td>
</tr>
<tr>
<td>Provision of on-site storage : ( cold storage or any other
provision) Not Applicable
</td>
</tr>
<tr>
<td>(ii) Disposal facilities</td>
<td>
<!-- Nested Table -->
<table style="border-collapse: collapse;">
<tr>
<th width='50%' style="font-size: 0.8rem;">Type of Treatment Equipment</th>
<th width='10%' style="font-size: 0.8rem;">No. of Units</th>
<th width='20%' style="font-size: 0.8rem;">Capacity (Kg/day)</th>
<th width='20%' style="font-size: 0.8rem;">Quantity Treated or Disposed (Kg/annum)</th>
</tr>
<tr>
<td>Incinerators</td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Plasma Pyrolysis</td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Autoclaves </td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Microwave </td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Hydroclave</td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Shredder </td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Needle tip cutter or
destroyer
</td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Sharps
encapsulation or
concrete pit</td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Deep burial pits </td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Chemical
disinfection </td>
<td>-</td>
<td></td>
<td></td>
</tr>
<tr>
<td>Any other
treatment
equipment</td>
<td>-</td>
<td></td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>(iii) Quantity of recyclable wastes sold to authorized
recyclers after treatment in kg per annum</td>
<td>Not Applicable</td>
</tr>
<tr>
<td>(iv) No of vehicles used for collection and transportation of
biomedical waste </td>
<td>Not Applicable</td>
</tr>
<tr>
<td>(v) Details of incineration ash and ETP sludge generated and
disposed during the treatment of wastes in Kg per annum
</td>
<td>
<table style="border-collapse: collapse;">
<tr>
<th></th>
<th style="font-size: 0.8rem;">Quantity generated</th>
<th style="font-size: 0.8rem;">Wherever disposed</th>
</tr>
<tr>
<td>Incineration Ash</td>
<td colspan="2">
<table style="border-collapse: collapse; width: 100%;">
<tr>
<td style="border: 0; text-align: center;">Not Applicable</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>ETP Sludge</td>
<td colspan="2">
<table style="border-collapse: collapse; width: 100%;">
<tr>
<td style="border: 0; text-align: center;">Not Applicable</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>(vi) Name of the Common Bio-­Medical Waste Treatment
Facility Operator through which wastes are disposed of </td>
<td><?=$row_disposal_agency['agency_name']?>,<br /><?=$row_disposal_agency['agency_address'] ?></td>
</tr>
<tr>
<td>(vii) List of member HCF not handed over biomedical waste</td>
<td>Not Applicable</td>
</tr>
<!-- s.no-6 -->
<tr style=" page-break-after: always;">
<td class="center">6.</td>
<td>Do you have bio­medical waste management committee? If
yes, attach minutes of the meetings held during the reporting
period
</td>
<td>No</td>
</tr>
<!-- s.no-7 -->
<tr>
<td rowspan="7" class="center">7.</td>
<td>Details training conducted on BMW
</td>
<td></td>
</tr>
<tr>
<td>(i) Number of trainings conducted on BMW Management
</td>
<td></td>
</tr>
<tr>
<td>(ii) Number of personnel trained</td>
<td></td>
</tr>
<tr>
<td>(iii) Number of personnel trained at the time of induction
</td>
<td></td>
</tr>
<tr>
<td>(iv) Number of personnel not undergone any training so far</td>
<td></td>
</tr>
<tr>
<td>(v) Whether standard manual for training is available?
</td>
<td></td>
</tr>
<tr>
<td>(vi) Any other information
</td>
<td></td>
</tr>
<!-- s.no-8 -->
<tr>
<td class="center" rowspan="5">8.</td>
<td>Details of accident occurred during the year
</td>
<td></td>
</tr>
<tr>
<td>(i) Number of trainings conducted on BMW Management
</td>
<td></td>
</tr>
<tr>
<td>(ii) Number of persons affected</td>
<td></td>
</tr>
<tr>
<td>(iii) Remedial action taken ( Please attach details if any)
</td>
<td></td>
</tr>
<tr>
<td>(iv) Any Fatality occurred, details</td>
<td></td>
</tr>
<!-- s.no-9 -->
<tr>
<td class="center">9.</td>
<td>Are you meeting the standards of air pollution from the
incinerator? How many times in last year could not met the
standards?</td>
<td>Not Applicable
</td>
</tr>
<tr>
<td></td>
<td>Details of Continuous online emission monitoring systems
installed </td>
<td>Not Applicable
</td>
</tr>
<!-- s.no-10 -->
<tr>
<td class="center">10.</td>
<td>Liquid waste generated and treatment methods in place.
How many times you have not met the standards in a year?</td>
<td>Liquid wastes are segregated at source and are treated
suitably.<br />There are no incidents of non­adherence to
standard.</td>
</tr>
<!-- s.no-11 -->
<tr>
<td class="center">11.</td>
<td>Is the disinfection method or sterilization meeting the log 4
standards? How many times you have not met the standards
in a year?
</td>
<td>Yes<br />
There are no incidents of non-­adherence to standard</td>
</tr>
<!-- s.no-12 -->
<tr>
<td class="center">12.</td>
<td>Any other relevant information (Air Pollution Control
Devices attached with the Incinerator)</td>
<td></td>
</tr>
</tbody>
</table>
<p style="padding-left:2rem; margin:5px 0px 0px 0px;">Certified that the above report is for the period from <?= date_format(date_create($from_date), "d/m/Y") ?> to <?= date_format(date_create($to_date), "d/m/Y") ?>.</p>
<div class="bottom-container">
<div class="left-section">
Date: <?= date('d/m/Y') ?><br />
Place: <?= $ohc ?>
</div>
<div class="right-section">
<?php echo $HOD_Name; ?></br>
Vice President - Employee Resource Management</br>
Name and Signature of the Head of the Institution
</div>
</div>
</form>
<div class="button-container" contenteditable="false" class="text-right m-5">
<button type="button" id="saveAsPdfBtn" class="btn btn-primary">Save</button>
</div>
<script>
$(document).ready(function() {
$('#saveAsPdfBtn').click(function(e) {
e.preventDefault();
var formData = $('#myForm').html();
var styles = $('head').clone();
styles.find('script').remove();
styles = styles.html();
var ohc = '<?= $_REQUEST['plant'] ?>';
console.log('formdata', formData);
console.log('styles', styles);
$.ajax({
type: 'POST',
url: 'submit_form.php',
data: {
html_content: formData,
styles: styles,
ohc: ohc
},
success: function(response) {
console.log('res', response);
Swal.fire({
title: "Done!",
text: "Form Data Successfully Saved",
icon: "success"
});
},
error: function(xhr, status, error) {
Swal.fire({
title: "Error!",
text: "Something went wrong, try again!",
icon: "error"
});
}
});
});
});
</script>
</body>
</html>