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

59 lines
1.2 KiB
PHP

<?php
// include('pdf_header.php');
include ('includes/config/config.php');
include ('includes/functions.php');
header('Content-Type: application/force-download');
header('Content-disposition: attachment; filename=excel_refferal_point.xls');
error_reporting ( E_ERROR | E_PARSE );
?>
<body>
<table width="100%" >
<tr>
<td colspan="9" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td>
<td width="25%" align="left"> User : <?php echo $username ?></td>
</tr>
</table>
<table border="1" width="100%">
<?php
$sql=base64_decode($filterkey);
//echo "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh".$sql;
$result = mysqli_query($conn,$sql);
?>
<tr>
<td align="left" width="2%" >Sr.</td>
<td>Refferal point name</td>
<td>Specialist</td>
<td>Hospital Name</td>
<td>Address</td>
<td>Contact Details</td>
</tr>
<?php
$count=1;
while ($row1= mysqli_fetch_assoc($result)){
extract($row1);
?>
<tr>
<td><?php echo $count?></td>
<td><?php echo $row1['referral_point_name']?></td>
<td><?php echo $row1['city']?></td>
<td><?php echo $row1['hospital_name']?></td>
<td><?php echo $row1['address']?></td>
<td><?php echo $row1['contact_detail']?></td>
</tr>
<?php
$count++;
}
?>
</table>
</body>