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

95 lines
2.7 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') and a.approval_status = 'N' AND a.f_status = 'DRP' 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($row_medical_examination['task']=='pme'){
// $form_name="PME Form";
// }else if($row_medical_examination['task']=='ame_greater_40'){
// $form_name="AME Above 40 years";
// }else if($row_medical_examination['task']=='ime_short'){
// $form_name="IME ShortTerm";
// }else if($row_medical_examination['task']=='ime_long'){
// $form_name="IME Long Term";
// }else if($row_medical_examination['task']=='ame_less_40'){
// $form_name="AME below 40 years";
// }
// $medical_entry_date=date_format(date_create($row_medical_examination['medical_entry_date']),"d-M-Y ");
$count=$count+1;
?>
<tr>
<td><?php echo $count?></td>
<td><?php echo $row_medical_examination['patient_name']?></td>
<td><?php echo 'Canteen Hydiene'?></td>
<td><?php echo $row_medical_examination['screen_date']?></td>
</tr>
<?php
}
?>
</table>
</body>