56 lines
1.0 KiB
Plaintext
56 lines
1.0 KiB
Plaintext
<?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_checkup_section_list.xls');
|
|
error_reporting ( E_ERROR | E_PARSE );
|
|
?>
|
|
<body>
|
|
<table width="100%" >
|
|
<tr>
|
|
<td width="25%" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td>
|
|
|
|
<td width="25%" align="right"> User : <?php echo $username ?></td>
|
|
</tr>
|
|
</table>
|
|
<table border="1" width="100%">
|
|
<?php
|
|
|
|
$sql="select * from checkup_section_master";
|
|
//echo "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh".$sql;
|
|
$result = mysqli_query($conn,$sql);
|
|
?>
|
|
<tr>
|
|
<td>SR NO</td>
|
|
|
|
<td>CHECKUP SECTION</td>
|
|
|
|
<td>DESCRIPTION</td>
|
|
</tr>
|
|
|
|
<?php
|
|
$count=1;
|
|
while ($row1= mysqli_fetch_assoc($result)){
|
|
extract($row1);
|
|
?>
|
|
|
|
<tr>
|
|
<td><?=$count?></td>
|
|
|
|
|
|
|
|
<td ><?=$row1['checkup_section_name']?></td>
|
|
|
|
|
|
|
|
<td ><?=$row1['description']?></td>
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
$count++;
|
|
}
|
|
?>
|
|
</table>
|
|
</body> |