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

89 lines
2.5 KiB
PHP

<?php include('pdf_header_reverse.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:10px"><strong>Hygiene Servilance Approve
Medicals Examination</strong></td>
<td width="25%" align="left"> User : <?php echo $username ?></td>
</tr>
</table>
<table border="1" width="100%">
<?php
$task=$_REQUEST['task'];
error_log('task'.$task);
$sql_medical_examination="SELECT *,c.employer_contractor_id,c.dept_id from questionaire_master_response a left join questionaire_master_response_details b on a.response_id = b.response_id left join patient_master c on a.patient_id = c.id WHERE a.form_type IN ('chs','khs') and a.approval_status = 'Y' AND a.f_status = 'CLS' group by a.response_id ";
//echo $sql_medical_examination;
$results_medical_examination = mysqli_query($conn,$sql_medical_examination);
?>
<strong>
<tr bgcolor="#eeeeee">
<td align="left" width="2%">Sr.</td>
<td align="left" width="10%">Location</td>
<td align="left" width="10%">Type</td>
<td valign="top" align="left" width="5%">Screening Date</td>
</tr>
</strong>
<?php
$count=0;
while ($row_medical_examination= mysqli_fetch_assoc($results_medical_examination)){
extract($row_medical_examination);
$chs_no = $row_medical_examination['medical_examination_no'];
$form_type = $row_medical_examination['form_type'];
error_log("chs grid--------".$chs_no);
$response_id = $row_medical_examination['response_id'];
error_log("responseID::::: ". $row_medical_examination['response_id']);
$view_link = "";
$edit_link = "";
$delete_link = "";
$pdf_link = "";
$links = "";
?>
<?php
if($form_type='chs'){
$type='Canteen Hygiene';
}
else
$type='Kitchen Hygiene';
$count=$count+1;
?>
<tr>
<td><?php echo $count?></td>
<td><?php echo $row_medical_examination['patient_name']?></td>
<td><?php echo $type?></td>
<td><?php echo $row_medical_examination['screen_date']?></td>
</tr>
<?php
}
?>
</table>
</body>
<?php
include('pdf_footer.php');
?>