crm-summit/app/Views/certificates/certificate_maintenance.php

192 lines
5.1 KiB
PHP
Raw Normal View History

2026-02-19 08:53:25 +07:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?= $certificate['certname'] ?></title>
2026-02-19 08:53:25 +07:00
<style>
@page {
margin: 0;
padding: 0;
}
body {
/* font-family: Arial; */
font-family: Arial, Helvetica, sans-serif;
2026-02-19 08:53:25 +07:00
margin: 0;
padding: 0;
/* font-size: 12px; */
/* line-height: 1.4; */
color: #000000;
width: 100%;
height: 100%;
}
/* Container untuk background agar memenuhi halaman */
.bg-container {
margin:0;
padding:0;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1000;
}
.bg-container img {
margin:0;
padding:0;
width: 100%;
height: 100%;
}
h1 {
margin :0;
padding:0;
color:#336600;
}
.container {
max-width: 100%;
margin: 0;
/* padding-top: 20px; */
}
.instument-name {
text-align: center;
margin: 0;
padding: 0;
margin-top: 235px;
margin-bottom: 20px;
2026-02-19 08:53:25 +07:00
}
.site-name {
text-align: center;
margin-bottom: 40px;
}
.detail-information {
text-align: center;
/* margin-bottom: 137px; */
margin-bottom: 26px;
2026-02-19 08:53:25 +07:00
}
h4 {
margin :0;
padding:0;
/* color:#336600; */
}
/* Menggunakan table agar dompdf tidak bingung */
.signature-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 23px;
2026-02-19 08:53:25 +07:00
}
.signature-table td {
width: 50%; /* Membagi dua sisi sama rata */
text-align: center;
vertical-align: top;
}
.name {
font-weight: bold;
text-decoration: underline;
display: block;
margin-bottom: 1px;
}
.position {
font-weight: bold;
display: block;
}
.fo-wrapper {
margin-left: 40px;
}
</style>
</head>
<body>
<!-- Untuk DEV -->
<!-- <div class="bg-container">
2026-02-19 08:53:25 +07:00
<img src="<?=base_url();?>/assets/images/background_certificate/maintenance.jpeg">
</div> -->
<!-- Untuk PROD -->
<div class="bg-container">
<?php $bgPath = FCPATH . 'assets/images/background_certificate/maintenance.jpeg'; ?>
<img src="<?php echo($bgPath) ?>">
2026-02-19 08:53:25 +07:00
</div>
<div class="container">
<div class="instument-name">
2026-03-08 22:40:36 +07:00
<h1><?= $certificate['productname'] ?></h1>
2026-02-19 08:53:25 +07:00
</div>
<div class="site-name">
2026-03-08 22:40:36 +07:00
<h1> at <?= $certificate['sitename'] ?> </h1>
2026-02-19 08:53:25 +07:00
</div>
<div class="detail-information">
2026-03-08 22:40:36 +07:00
<h4>Serial Number: <?= $certificate['productnumber'] ?></h4>
2026-02-19 08:53:25 +07:00
2026-03-08 22:40:36 +07:00
<h4>has completed through a series of <?= $certificate['certtype'] ?></h4>
2026-02-19 08:53:25 +07:00
<h4>and the final result:</h4>
<h2>PASSED</h2>
2026-03-08 22:40:36 +07:00
<h4>Date of Instrument Maintenance and Inspection: <?= $certificate['issueddate'] ?></h4>
<h4>Valid until <?= $certificate['expireddate'] ?></h4>
2026-02-19 08:53:25 +07:00
</div>
<table class="signature-table">
<tr>
<td>
<img src="<?= $certificate['qrcode'] ?>">
</td>
2026-03-08 22:40:36 +07:00
<!-- <td>
2026-02-19 08:53:25 +07:00
<span class="name">Adhitya Pranata Putra</span>
<span class="position">Technical Support Manager</span>
2026-03-08 22:40:36 +07:00
</td> -->
2026-02-19 08:53:25 +07:00
2026-03-08 22:40:36 +07:00
<!-- <td>
<span class="name"></span>
<span class="position"></span>
2026-03-08 22:40:36 +07:00
</td> -->
2026-02-19 08:53:25 +07:00
</tr>
</table>
<div class="fo-wrapper">
<p>FO.IV.01/20.00/2020</p>
2026-02-19 08:53:25 +07:00
</div>
</div>
2026-03-08 22:40:36 +07:00
<!-- Untuk Tanda Export PDF atau tidak -->
<?php if (!isset($certificate['exportToPDF'])) : ?>
2026-02-19 08:53:25 +07:00
<div class="container">
<div class="instument-name">
2026-03-08 22:40:36 +07:00
<h1><?= $certificate['productname'] ?></h1>
2026-02-19 08:53:25 +07:00
</div>
<div class="site-name">
2026-03-08 22:40:36 +07:00
<h1> at <?= $certificate['sitename'] ?> </h1>
2026-02-19 08:53:25 +07:00
</div>
<div class="detail-information">
2026-03-08 22:40:36 +07:00
<h4>Serial Number: <?= $certificate['productnumber'] ?></h4>
2026-02-19 08:53:25 +07:00
2026-03-08 22:40:36 +07:00
<h4>has completed through a series of <?= $certificate['certtype'] ?></h4>
2026-02-19 08:53:25 +07:00
<h4>and the final result:</h4>
<h2>PASSED</h2>
2026-03-08 22:40:36 +07:00
<h4>Date of Instrument Maintenance and Inspection: <?= $certificate['issueddate'] ?></h4>
<h4>Valid until <?= $certificate['expireddate'] ?></h4>
2026-02-19 08:53:25 +07:00
</div>
<table class="signature-table">
<tr>
<td>
<img src="<?= $certificate['qrcode'] ?>">
</td>
2026-02-19 08:53:25 +07:00
</tr>
</table>
<div class="fo-wrapper">
<p>FO.IV.01/20.00/2020</p>
2026-02-19 08:53:25 +07:00
</div>
</div>
2026-03-08 22:40:36 +07:00
<?php endif ?>
2026-02-19 08:53:25 +07:00
</body>
</html>