<?php include('pdf_header.php'); include('includes/config/config.php'); // include('pop_up_top.php'); ?> <table width="100%"> <tr> <div style="font-size:12px"> <td width="25%" align="left"> Run Date : <?php echo date("d-M-Y"); ?> </td> <td width="50%" align="center" style="font-size:30px"><strong>DIAGNOSIS BODY SYSTEM MAP</strong></td> <td width="25%" align="left"> User : <?php echo $username ?> </td> </tr> </table> <table border="1" style="text-align: center;"> <?php $sql = base64_decode($filterkey); //echo $sql; // $sql = base64_decode($filterkey); $result = mysqli_query($conn, $sql); //echo $result; ?> <tr bgcolor='#eeeeee'> <th align="left" width="2%">sr</td> <th>DIAGNOSIS NAME</td> <th> BODY SYSTEM NAME </td> </tr> <?php $count = 1; while ($row1 = mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $count ?></td> <td><?php echo getFieldFromTable('ailment_name', 'ailment', 'ailment_id', $row1['ailment_id']) ?></td> <td><?php echo getFieldFromTable('ailment_sys_name', 'ailment_system', 'ailment_sys_id', $row1['ailment_system_id']) ?></td> </tr> <?php $count++; } ?> </table> <?php include('pdf_footer.php'); ?>