ohctech_p8/prescription_list_pdf.php
2024-10-16 19:18:52 +05:30

58 lines
2.0 KiB
PHP

<?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>Prescription List</strong></td>
<td width="25%" align="left"> User :
<?php echo $username ?>
</td>
</tr>
</table>
<table border="1">
<?php
$sql="select * from prescription_master";
//echo $sql;
$result = mysqli_query($conn,$sql);
//echo $result;
?>
<tr bgcolor='#eeeeee'>
<th width=25%>SR </th>
<th width=25%>DISEASE</th>
<th width=25%>MEDICINE</th>
<th width=25%>FREQUENCY</th>
<th width=25%>TIMING</th>
<th width=25%>ADMIN.ROUTE</th>
<th width=25%>DURATION</th>
<th width=25%>DOSE QTY</th>
</tr>
<?php
$count=1;
while($rowOfEmployee=mysqli_fetch_array($result)){
?>
<tr>
<td><?php echo $count ?></td>
<td><?php echo getTableFieldValue('diseases', 'disease_name', 'disease_id', $rowOfEmployee['diseases'])?></td>
<td><?php echo getTableFieldValue('tbl_items','item_name','item_id', $rowOfEmployee['medicine_name'])?></td>
<td><?php echo getTableFieldValue('medicine_frequency', 'medicine_frequency', 'frequency_id', $rowOfEmployee['medicine_frequency'])?>
</td>
<td><?php echo getTableFieldValue('medicine_timings', 'medicine_timing', 'timing_id', $rowOfEmployee['medicine_timing'])?>
</td>
<td><?php echo getTableFieldValue('dosage_category', 'dosage_category', 'dosage_category_id', $rowOfEmployee['admin_route'])?>
</td>
<td><?php echo $rowOfEmployee['duration']?></td>
<td><?php echo $rowOfEmployee['dose_qty']?></td>
</tr>
<?php
$count++;
}
?>
</table>
<?php
include('pdf_footer.php');
?>