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

38 lines
2.0 KiB
PHP

<?php //include('pdf_header.php');
include('includes/config/config.php');
include('includes/functions.php');
//include('pop_up_top.php');
header('Content-Type: application/force-download');
header('Content-disposition: attachment; filename=excel_guest_list.xls');
error_reporting(E_ERROR | E_PARSE);
?>
<body>
<table border="1">
<?php
$sql=base64_decode($filterkey);
$result = mysqli_query($conn,$sql);
//echo $result;
?>
<tr bgcolor="#eeeeee" ><th>Ticket No</th><th>Guest Name</th><th>Appointment Date</th><th width="10%">Complaints</th width="10%"><th>Examination Findings</th><th width="10%">Digonosis</th><th width="30%">Treatment</th><th width="7%" >Referral</th><th width="7%">Followup</th><th width="10%">Remarks</th></tr><?php
while($rowOfEmployeeAppointment=mysqli_fetch_array($result)){
$diagnosis =$rowOfEmployeeAppointment['appointment_type'];
$employee_appointment=$rowOfEmployeeAppointment['appointment_id'];
if($rowOfEmployeeAppointment['appointment_type']=='O'){
$diagnosis =getCommaSeperatedValuesForInClause("select ailment_name from ailment ","ailment_id",$rowOfEmployeeAppointment['ailment_ids']);
}else if($rowOfEmployeeAppointment['appointment_type']=='I'){
$diagnosis=getCommaSeperatedValuesForInClause("select injury_type_name from injury_type","injury_type_id",$rowOfEmployeeAppointment['injury_types']);
}
?><tr><td><?php echo $rowOfEmployeeAppointment['ticket_no']?></td>
<td><?php echo $rowOfEmployeeAppointment['name']?></td><td><?php echo $rowOfEmployeeAppointment['appointment_date']?></td><td><?php echo $rowOfEmployeeAppointment['complaints']?></td><td><?php echo $rowOfEmployeeAppointment['examination_remarks']?></td><td><?php echo $rowOfEmployeeAppointment['ailment_ids']?></td><td><?php echo getTreatmentTextForGuest($rowOfEmployeeAppointment['appointment_id'])?></td><td><?php echo $rowOfEmployeeAppointment['referral']?></td><td><?php echo $rowOfEmployeeAppointment['followup']?></td><td><?php echo $rowOfEmployeeAppointment['remarks']?></td></tr>
<?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>