<?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_waste_list.xls'); ?> <body> <table width="100%" > <tr> <td colspan="3" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td> <td colspan="5" align="center" ><strong>BIO WASTE GENERATION (MINES)</strong></td> <td colspan="2" align="right"> User : <?php echo $username ?></td> </tr> </table> <table border="1" width="100%"> <?php //$sql_waste="SELECT c.ohc_type_name,a.waste_category_name,b.* FROM `waste_category` a inner join bio_medical_waste b on a.waste_category_id=b.waste_category inner join ohc_type c on c.ohc_type_id=b.ohc_type_id where b.ohc_type_id='".$_SESSION['current_ohcttype']."' "; //$results_issue_items = mysqli_query($conn,$myconn,$sql_issue_items); //$sql=base64_decode($filterkey); //$results= mysqli_query($conn,$myconn,$sql_waste); $sql=base64_decode($filterkey); $result = mysqli_query($conn,$sql); ?> <tr><td colspan="2"></td><td align="center" bgcolor="#f9e84e" colspan="2">YELLOW</td><td align="center" bgcolor="#eeeeee" colspan="2">WHITE</td><td align="center" bgcolor="#6495ed" colspan="2">BLUE</td><td bgcolor="#fa8072" align="center" colspan="2">RED</td></tr> <strong><tr ><td align="left" width="2%" >Sr.</td><td align="left" width="10%">Waste Gen Date.</td><td bgcolor="#f9e84e" align="left" width="10%">MINES</td><td valign="top" bgcolor="#f9e84e" width="10%" align="left">FORWARDED FOR DISPOSAL</td><td bgcolor="#eeeeee" valign="top" align="left" width="10%">MINES</td><td width="10%" bgcolor="#eeeeee" valign="top" align="left">FORWARDED FOR DISPOSAL</td><td valign="top" bgcolor="#6495ed" align="left" width="10%">MINES</td><td width="10%" valign="top" bgcolor="#6495ed" align="left">FORWARDED FOR DISPOSAL</td><td width="10%" bgcolor="#fa8072" valign="top" align="left">MINES</td><td width="10%" bgcolor="#fa8072" valign="top" align="left">FORWARDED FOR DISPOSAL</td></strong></tr> <?php $count=1; while ($row1= mysqli_fetch_assoc($result)){ extract($row1); ?> <tr> <td><?php echo $count?></td> <td><?php echo date_format(date_create($row1['waste_gen_date']),"d-M-Y ")?></td> <td bgcolor="#f9e84e"><?php echo $row1['mines_yellow_qty']?></td> <td bgcolor="#f9e84e"><?php echo $row1['yellow_qty_total']?></td> <td bgcolor="#eeeeee"><?php echo $row1['mines_white_qty']?></td> <td bgcolor="#eeeeee"><?php echo $row1['white_qty_total']?></td> <td bgcolor="#6495ed"><?php echo $row1['mines_blue_qty']?></td> <td bgcolor="#6495ed"><?php echo $row1['blue_qty_total']?></td> <td bgcolor="#fa8072"><?php echo $row1['mines_red_qty']?></td> <td bgcolor="#fa8072"><?php echo $row1['red_qty_total']?></td> </tr> <?php $count++; } ?> </table> </body>