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

82 lines
2.6 KiB
PHP

<?php
// include ('pdf_header_reverse.php');
include('pdf_header.php');
include('includes/config/config.php');
// include ('includes/functions.php');
include("pdf_ohc_header.php");
include('log_entry.php');
// include('pop_up_top.php');
?>
<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: 20px"><strong>Employee Appointment</strong></td>
<td width="25%" align="center"> User : <?php echo $username ?></td>
</tr>
</table>
<table width="100%" border="1" cellspacing="0" cellpadding="0" style="font: Arial, Helvetica, sans-serif; font-size: XX-SMALL;">
<?php
$ohc_type = $_SESSION['current_ohcttype'];
$sql_medical_examination = base64_decode($filterkey);
//echo $sql_medical_examination;
$results_medical_examination = mysqli_query($conn, $sql_medical_examination);
?>
<style>
td {
font-size: 8px;
}
</style>
<strong>
<tr bgcolor="#eeeeee">
<td width="3%">Sr.</td>
<td width="7%">Date</td>
<td width="10%">Time</td>
<td width="10%">Patient Name</td>
<td width="10%">Doctor Name</td>
<td width="10%">Appointment Type</td>
</tr>
<?php
$count = 0;
while ($row_medical_examination = mysqli_fetch_assoc($results_medical_examination)) {
extract($row_medical_examination);
?>
<?php
$count = $count + 1;
?>
<tr>
<?php
$time_app = getCommaSeperatedValuesForInClause("select TIME_FORMAT(slot, '%h:%i %p') as slot from appoinment_slots ", "slot_id", $row_medical_examination['time']);
$patient_name = getTableFieldValue('patient_master', 'patient_name', 'id', $row_medical_examination['emp_id']);
$doctor_name = getTableFieldValue('patient_master', 'patient_name', 'id', $row_medical_examination['doctor_id']);
$date_time = date_format(date_create($row_medical_examination['date']), "d-m-Y ");
?>
<td><?php echo $count ?></td>
<td><?php echo $row_medical_examination['date'] ?></td>
<?php ?>
<td><?php echo $time_app ?></td>
<td><?php echo $patient_name ?></td>
<td><?php echo $doctor_name ?></td>
<td><?php echo $row_medical_examination['app_type'] ?></td>
</tr> <?php
}
?>
</table>
</body>
<?php
include('pdf_footer.php');
?>