90 lines
2.6 KiB
PHP
90 lines
2.6 KiB
PHP
|
<?php
|
||
|
include('pdf_header.php');
|
||
|
//include ('pdf_header_reverse.php');
|
||
|
//include ('includes/config/config.php');
|
||
|
//include ('includes/functions.php');
|
||
|
error_reporting(E_ERROR | E_PARSE);
|
||
|
// include('pop_up_top.php');
|
||
|
?>
|
||
|
<html>
|
||
|
|
||
|
<body>
|
||
|
<h3 align="center" >Employee Hygiene Checkup Report</h3>
|
||
|
<div class="container">
|
||
|
|
||
|
<table >
|
||
|
<?php
|
||
|
$Id=$_REQUEST['Id'];
|
||
|
//echo $Id;
|
||
|
$sql="select * from emp_hyg_check_master where hyg_check_id = '$Id'";
|
||
|
//echo $sql;
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
// echo $result;
|
||
|
|
||
|
?><tr >
|
||
|
|
||
|
<th width=50%>Employee</th>
|
||
|
<th width=50%>Checkup Date</th>
|
||
|
|
||
|
</tr>
|
||
|
<?php
|
||
|
//$count = 0;
|
||
|
while ($rowOfEmpHygiene = mysqli_fetch_array($result)) {
|
||
|
$empId = $rowOfEmpHygiene['emp_id'];
|
||
|
|
||
|
|
||
|
|
||
|
$sqlEmp = "select fname,lname from employee where id = '$empId'";
|
||
|
$resultEmp = mysqli_query($conn,$sqlEmp);
|
||
|
$rowemp = mysqli_fetch_array($resultEmp);
|
||
|
//echo $sqlEmp;
|
||
|
?><tr><td align="center" ><?php echo $rowemp['fname'].' '.$rowemp['lname']?></td><td align="center" ><?php echo date_format(date_create($rowOfEmpHygiene['checkup_date']),"d-M-Y h:i:sa")?></td>
|
||
|
</tr>
|
||
|
</table><?php
|
||
|
|
||
|
$hyg_check_id = $rowOfEmpHygiene['hyg_check_id'];
|
||
|
$hygieneParameter = "select * from emp_hyg_check_items where hyg_check_id = '$hyg_check_id'";
|
||
|
$resultHygieneParameter = mysqli_query($conn,$hygieneParameter);
|
||
|
$hygieneParameters = null;
|
||
|
$hygiene_currentValue=null;
|
||
|
|
||
|
?><table border="1" align="center"><tr>
|
||
|
<th width=10%>Sr. No</th>
|
||
|
<th width=25%>Checkup Hygiene Parameter</th>
|
||
|
|
||
|
<th width=25%>Current Value</th>
|
||
|
<th width=30%>Refrence Range</th>
|
||
|
|
||
|
</tr><?php
|
||
|
$count = 0;
|
||
|
while($rowOfhygieneParameter = mysqli_fetch_array($resultHygieneParameter)){
|
||
|
$hygiene_id = $rowOfhygieneParameter['hyg_para_id'];
|
||
|
$sqlParameterName = "select * from hygiene where hygiene_id ='$hygiene_id' ";
|
||
|
$resultParameterName = mysqli_query($conn,$sqlParameterName);
|
||
|
$rowParameterName = mysqli_fetch_array($resultParameterName);
|
||
|
$human_min_range=$rowParameterName['human_min_range'];
|
||
|
$human_max_range=$rowParameterName['human_max_range'];
|
||
|
$range= $human_min_range."-".$human_max_range;
|
||
|
?>
|
||
|
|
||
|
|
||
|
<tr><td align="center" ><?php echo ++$count ?></td><td align="center" ><?php echo $rowParameterName['hygiene_parameter'];?></td><td align="center" ><?php echo $rowOfhygieneParameter['hyg_param_val'];?></td><td align="center" ><?php echo $range?></td>
|
||
|
|
||
|
</tr><?php
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
|
||
|
<?php }
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
// echo $rowemp['fname'];
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
include('pdf_footer.php');
|
||
|
?>
|