89 lines
2.3 KiB
PHP
89 lines
2.3 KiB
PHP
<?php //include('pdf_header_reverse.php');
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
//include('pop_up_top.php');
|
|
header("Content-type:application/octet-stream");
|
|
|
|
header("Content-type: application/x-msdownload");
|
|
header("Content-Disposition: attachment; filename=Calibration_Item.xls");
|
|
header("Pragma: no-cache");
|
|
header("Expires: 0");
|
|
?>
|
|
<link href="includes/css-js/admin.css" rel="stylesheet" type="text/css" />
|
|
<style>
|
|
@page {
|
|
margin: 15px;
|
|
}
|
|
table ,tr, td{
|
|
font-size:12px;
|
|
}
|
|
.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;
|
|
}
|
|
|
|
@media print {
|
|
#printPageButton {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<?php include('excel_ohc_header.php'); ?>
|
|
<table width="100%">
|
|
<tr>
|
|
|
|
<td style="font-size: 15px;"><strong style="margin-left: 400px">Calibration Item List</strong></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
<br>
|
|
<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>
|
|
|
|
</body>
|