49 lines
1.7 KiB
PHP
49 lines
1.7 KiB
PHP
<div class="card" onclick="window.location='patient_appointment.php'">
|
|
<div class="card-header border-transparent">
|
|
|
|
</div>
|
|
<!-- /.card-header -->
|
|
<div class="card-body p-0">
|
|
<div class="table-responsive">
|
|
<table class="table m-0">
|
|
<thead>
|
|
<tr style="color:black;">
|
|
<th style="background-color:white"><strong>Sr.</strong></th>
|
|
<th style="background-color:white"><strong>Patient Name</strong></th>
|
|
<th style="background-color:white"><strong>Doctor Name</strong></th>
|
|
<th style="background-color:white"><strong>Date</strong></th>
|
|
<th style="background-color:white"><strong>Time</strong></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
|
|
$c = $_SESSION['current_ohcttype'];
|
|
$sql = "SELECT * FROM appointment_details appointment_details where DATE(date) >= CURDATE() and status='BOOKED' and ohc_type_id='".$_SESSION['current_ohcttype']."'";
|
|
// error_log("query: ".$sql);
|
|
$result = @mysqli_query($conn, $sql);
|
|
?><?php
|
|
$i = 1;
|
|
//echo $sql;
|
|
|
|
while ($row = @mysqli_fetch_array($result)) {
|
|
?><tr>
|
|
<td><?php echo $i++; ?></td>
|
|
<td><?php echo getTableFieldValue('patient_master', 'patient_name', 'id', $row['emp_id']) ?></td>
|
|
<td><?php echo getTableFieldValue('patient_master', 'patient_name', 'id', $row ['doctor_id']) ?></td>
|
|
<td><?php echo date_format(date_create($row['date']), "d-m-Y ") ?></td>
|
|
<td><?php echo getCommaSeperatedValuesForInClause("select TIME_FORMAT(slot, '%h:%i %p') as slot from appoinment_slots ", "slot_id", $row['time']) ?></td>
|
|
</tr><?php
|
|
if ($i > 8) {
|
|
break;
|
|
}
|
|
}
|
|
?>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- /.table-responsive -->
|
|
</div>
|
|
</div>
|