55 lines
1.5 KiB
PHP
55 lines
1.5 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>Hazards</strong></td>
|
||
|
<td width="25%" align="left"> User :
|
||
|
<?php echo $username ?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<table border="1">
|
||
|
<?php
|
||
|
$sql="select * from hira";
|
||
|
//echo $sql;
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
?>
|
||
|
<tr bgcolor='#eeeeee'>
|
||
|
<th width="8%">ID</th>
|
||
|
<th width="15%">Hazard Category</th>
|
||
|
<th width="15%">Hazard Description</th>
|
||
|
<th width="10%">Location</th>
|
||
|
<th width="10%">Identification Date</th>
|
||
|
<th width="8%">Likelihood</th>
|
||
|
<th width="8%">Severity</th>
|
||
|
|
||
|
</tr>
|
||
|
$count=1;
|
||
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
||
|
?>
|
||
|
<tr>
|
||
|
<td><?php echo $count; ?></td>
|
||
|
<td><?php echo $row['hazard_category']; ?></td>
|
||
|
<td><?php echo $row['hazard_description']; ?></td>
|
||
|
<td><?php echo $row['location']; ?></td>
|
||
|
<td><?php echo $row['identification_date']; ?></td>
|
||
|
<td><?php echo $row['likelihood']; ?></td>
|
||
|
<td><?php echo $row['severity']; ?></td>
|
||
|
|
||
|
</tr>
|
||
|
<?php
|
||
|
$count++;
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
include('pdf_footer.php');
|
||
|
?>
|