<?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=oxygen_cylinder.xls'); error_reporting ( E_ERROR | E_PARSE ); ?> <body> <table width="100%" > <tr> <td colspan="2" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td> <td colspan="4" align="center"> <b>Oxygen Cylinder Details </b></td> <td colspan="3" align="left"> User : <?php echo $username ?></td> </tr> </table> <table border="1" width="100%"> <?php $sql="SELECT * FROM oxygen_cylinder_details "; //echo "h".$sql; $result = mysqli_query($conn,$sql); ?> <strong><tr bgcolor="#eeeeee"><td align="left" width="2%" >Sr.</td><td align="left" width="10%">Oxygen Kit No.</td><td align="left" width="10%">Issued Date</td><td align="left" width="10%">Reading</td><td align="left" width="10%">Cylinder Key Knob Condition</td><td align="left" width="10%">Regulator Key Knob Condition</td><td align="left" width="8%">Checked By</td><td valign="top" width="8%" align="left">Department Personnel</td><td valign="top" align="left" width="5%">Remarks</td></tr> <?php $count=1; while ($row1= mysqli_fetch_assoc($result)){ $cylinder_no = getTableFieldValue('oxygen_cylinder','oxygen_kit_no','id',$row1['oxygen_cylinder_id']); ?> <tr> <td><?php echo $count?></td> <td><?php echo $cylinder_no ?></td> <td><?php echo date_format(date_create($row1['issued_date']),"d-M-Y ")?></td> <td><?php echo $row1['reading']?></td> <td><?php echo $row1['knob_condition']?></td> <td><?php echo $row1['regulator_key_knob_condition']?></td> <td><?php echo $row1['checked_by']?></td> <td><?php echo $row1['department_personnel']?></td> <td><?php echo $row1['remarks']?></td> </tr> <?php $count++; } ?> </table> </body>