75 lines
2.2 KiB
PHP
75 lines
2.2 KiB
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
//include('pop_up_top.php');
|
|
include('pdf_ohc_header.php');
|
|
?>
|
|
<style>
|
|
@media print {
|
|
#printPageButton {
|
|
display: none;
|
|
}
|
|
}
|
|
.btn {
|
|
background-color: #4CAF50;
|
|
border-radius: 5%;
|
|
/* Green */
|
|
border: none;
|
|
color: white;
|
|
padding: 5px 8px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
font-size: 12px;
|
|
margin: 4px 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
</style>
|
|
<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:40px"><strong>Calibration Item List </strong></td>
|
|
<td width="25%" align="left"><button align="center" id="printPageButton" class="btn btn-success"
|
|
onClick="window.print();">Print</button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table align="center" border="1">
|
|
<?php
|
|
$sql = base64_decode($filterkey);
|
|
// echo $sql;
|
|
$result = mysqli_query($conn, $sql);
|
|
//echo $result;
|
|
|
|
?>
|
|
<tr bgcolor='#eeeeee'>
|
|
<th style="text-align: center">Name Of Calibration Equipment</th>
|
|
<th style="text-align: center">Model & Brand</th>
|
|
<th style="text-align: center">ID Number</th>
|
|
<th style="text-align: center">Location</th>
|
|
<th>Date of Calibration</th>
|
|
<th>Due Date of Calibration</th>
|
|
</tr>
|
|
<?php
|
|
while ($rowOfEmployee = mysqli_fetch_array($result)) {
|
|
|
|
|
|
?>
|
|
<tr>
|
|
<td><?php echo getItemWithFormName($rowOfEmployee['cat_id']) ?></td>
|
|
<td><?php echo $rowOfEmployee['model_no'] ?></td>
|
|
<td><?php echo $rowOfEmployee['id_no'] ?></td>
|
|
<td><?php echo $rowOfEmployee['location'] ?></td>
|
|
<td><?php echo date_format ( date_create ( $rowOfEmployee['cali_on'] ), "d-M-Y" )?></td>
|
|
<td><?php echo date_format ( date_create ( $rowOfEmployee['next_cali'] ), "d-M-Y" )?></td>
|
|
</tr>
|
|
<?php
|
|
|
|
}
|
|
?>
|
|
</table>
|