37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
|
<?php //include('pdf_header.php');
|
||
|
include('includes/config/config.php');
|
||
|
//include('pop_up_top.php');
|
||
|
header('Content-Type: application/force-download');
|
||
|
header('Content-disposition: attachment; filename=appointment slots.xls');
|
||
|
?>
|
||
|
|
||
|
<table class="col-sm-offset-5" border="1">
|
||
|
<?php
|
||
|
$sql="select * from appoinment_slots";
|
||
|
//echo $sql;
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
?><tr>
|
||
|
<th style="width: 50%;" >Sr. No.</th>
|
||
|
<th style="width: 100%;">Slot Start</th>
|
||
|
<th style="width: 100%;">Slot End</th>
|
||
|
<th style="width: 100%;">Number of Slot</th>
|
||
|
|
||
|
</tr><?php
|
||
|
$count = 0;
|
||
|
while($rowOfEmployee = mysqli_fetch_array($result)){
|
||
|
$count = $count +1;
|
||
|
?><tr>
|
||
|
<td><?php echo $count ?></td>
|
||
|
<td><?php echo $rowOfEmployee['slot'] ?></td>
|
||
|
<td><?php echo $rowOfEmployee['slot_end'] ?></td>
|
||
|
<td><?php echo $rowOfEmployee['slot_count'] ?></td>
|
||
|
|
||
|
</tr><?php
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
//include('pdf_footer.php');
|
||
|
?>
|