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

55 lines
1.6 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>Ambulance List</strong></td>
<td width="25%" align="left"> User :
<?php echo $username ?>
</td>
</tr>
</table>
<table border="1" style="text-align: center;">
<?php
$sql = "SELECT * from ambulance_details_new";
//echo $sql;
// $sql = base64_decode($filterkey);
$result = mysqli_query($conn, $sql);
//echo $result;
?>
<tr bgcolor='#eeeeee'>
<td align="left" width="2%">SR. NO</td>
<td>AMBULANCE NAME</td>
<td>AMBULANCE NUMBER</td>
<td>AMBULANCE CATEGORY</td>
<td>OHC TYPE</td>
</tr>
<?php
$count = 1;
while ($row = mysqli_fetch_assoc($result)) {
error_log($row['ambulance_category_id']);
?>
<tr>
<td><?php echo $count ?></td>
<td><?php echo $row['ambulance_name'] ?></td>
<td><?php echo $row['ambulance_number'] ?></td>
<td><?php echo getTableFieldValue('ambulance_category','ambulance_category','ambulance_category_id',$row['ambulance_category_id']) ?></td>
<td><?php echo getTableFieldValue('ohc_type','ohc_type_name','ohc_type_id',$row['ohc_type_id']) ?></td>
</tr>
<?php
$count++;
}
?>
</table>
<?php
include('pdf_footer.php');
?>