85 lines
2.2 KiB
PHP
85 lines
2.2 KiB
PHP
<?php
|
|
header("Content-type:application/octet-stream");
|
|
|
|
header("Content-type: application/x-msdownload");
|
|
header("Content-Disposition: attachment; filename=excel_wah.xls");
|
|
header("Pragma: no-cache");
|
|
header("Expires: 0");
|
|
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
|
|
?>
|
|
<?php
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php')
|
|
//include('pop_up_top.php');
|
|
?>
|
|
|
|
<body>
|
|
|
|
|
|
<table border="1" width="100%">
|
|
<?php
|
|
$ohc_type=$_SESSION['current_ohcttype'];
|
|
$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>
|