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

47 lines
2.3 KiB
PHP

<?php
include('pdf_header_reverse.php');
include('includes/config/config.php');
include('includes/functions.php');
//include('pop_up_top.php');
?>
<html>
<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:40px"><strong>Guest Appointment List</strong></td>
<td width="25%" align="left"> User : <?php echo $username ?></td>
</tr>
</table>
<table border="1">
<?php
$sql=base64_decode($filterkey);
// echo $sql;
$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 $diagnosis?></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');
?>