32 lines
837 B
PHP
32 lines
837 B
PHP
<?php //include('pdf_header.php');
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
//include('pop_up_top.php');
|
|
header('Content-Type: application/force-download');
|
|
header('Content-disposition: attachment; filename=habit.xls');
|
|
?>
|
|
|
|
<table width="100%" border="1" cellspacing="0">
|
|
<?php
|
|
|
|
$sql = base64_decode($filterkey);
|
|
|
|
error_log("pdf fitness:" . $sql);
|
|
$result = mysqli_query($conn, $sql);
|
|
|
|
?><tr bgcolor='#eeeeee'>
|
|
<th>Sr.No</th>
|
|
<th>Habit Name</th>
|
|
|
|
</tr>
|
|
<?php $count = 1;
|
|
while ($rowOfEmployee = mysqli_fetch_array($result)) {
|
|
?><tr>
|
|
<td align='center'><?php echo $count ?></td>
|
|
<td align='center'><?php echo $rowOfEmployee['habit'] ?></td>
|
|
|
|
</tr><?php
|
|
$count++;
|
|
}
|
|
?>
|
|
</table>
|