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

215 lines
5.9 KiB
PHP
Raw Normal View History

2026-02-19 08:53:25 +07:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2026-03-18 11:10:05 +07:00
<title><?= $certificate['certname'] ?></title>
2026-02-19 08:53:25 +07:00
<style>
@page {
margin: 0;
padding: 0;
}
body {
2026-03-18 11:10:05 +07:00
/* 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;
}
2026-03-18 11:10:05 +07:00
h2 {
margin :0;
padding:0;
color:#336600;
}
.instrument-font {
margin :0;
padding:0;
color:black;
}
2026-02-19 08:53:25 +07:00
.container {
max-width: 100%;
margin: 0;
/* padding-top: 20px; */
}
.instument-name {
text-align: center;
margin: 0;
padding: 0;
2026-03-18 11:10:05 +07:00
margin-top: 235px;
margin-bottom: 20px;
2026-02-19 08:53:25 +07:00
}
.site-name {
text-align: center;
2026-03-18 11:10:05 +07:00
margin-bottom: 40px;
2026-02-19 08:53:25 +07:00
}
.detail-information {
text-align: center;
2026-03-18 11:10:05 +07:00
/* 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;
2026-03-18 11:10:05 +07:00
margin-bottom: 20px;
2026-02-19 08:53:25 +07:00
}
.signature-table td {
width: 50%; /* Membagi dua sisi sama rata */
2026-03-18 11:10:05 +07:00
text-align: center;
2026-02-19 08:53:25 +07:00
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>
2026-03-18 11:10:05 +07:00
<!-- Untuk DEV -->
<!-- <div class="bg-container">
<img src="<?=base_url();?>/assets/images/background_certificate/maintenance.jpeg">
</div> -->
2026-03-18 11:10:05 +07:00
<!-- Untuk PROD -->
<div class="bg-container">
<?php $bgPath = FCPATH . 'assets/images/background_certificate/maintenance.jpeg'; ?>
<img src="<?php echo($bgPath) ?>">
</div>
2026-02-19 08:53:25 +07:00
<div class="container">
<div class="instument-name">
2026-03-18 11:10:05 +07:00
<h1><?= $certificate['fullname'] ?><?= $certificate['title'] ?></h1>
2026-02-19 08:53:25 +07:00
</div>
<div class="site-name">
2026-03-18 11:10:05 +07:00
<h2> <?= $certificate['sitename'] ?> ~ <?= $certificate['city'] ?></h2>
2026-02-19 08:53:25 +07:00
</div>
<div class="detail-information">
2026-03-18 11:10:05 +07:00
<!-- <h4>Serial Number: <?= $certificate['productnumber'] ?></h4> -->
<!-- <h4>has completed through a series of <?= $certificate['certtype'] ?></h4> -->
<h3>In Recording of Participation and Successful Completion of</h3>
<h3>User Training</h3>
<h2 class='instrument-font'><?= $certificate['productname'] ?></h2>
<h3>Date: <?= $certificate['issueddate'] ?></h3>
2026-02-19 08:53:25 +07:00
</div>
<table class="signature-table">
<tr>
<td>
2026-03-18 11:10:05 +07:00
<img src="<?= $certificate['qrcode'] ?>">
</td>
<!-- <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-18 11:10:05 +07:00
</td> -->
2026-02-19 08:53:25 +07:00
2026-03-18 11:10:05 +07:00
<!-- <td>
<span class="name"></span>
<span class="position"></span>
</td> -->
2026-02-19 08:53:25 +07:00
</tr>
</table>
<div class="fo-wrapper">
2026-03-18 11:10:05 +07:00
<p>FO.III.12/14.00/2020</p>
2026-02-19 08:53:25 +07:00
</div>
</div>
2026-03-18 11:10:05 +07:00
<!-- Untuk Tanda Export PDF atau tidak -->
<?php if (!isset($certificate['exportToPDF'])) : ?>
<div class="container">
<div class="instument-name">
<h1><?= $certificate['fullname'] ?><?= $certificate['title'] ?></h1>
</div>
<div class="site-name">
<h2> <?= $certificate['sitename'] ?> ~ <?= $certificate['city'] ?></h2>
</div>
<div class="detail-information">
<!-- <h4>Serial Number: <?= $certificate['productnumber'] ?></h4> -->
<!-- <h4>has completed through a series of <?= $certificate['certtype'] ?></h4> -->
<h3>In Recording of Participation and Successful Completion of</h3>
<h3>User Training</h3>
<h2 class='instrument-font'><?= $certificate['productname'] ?></h2>
<h3>Date: <?= $certificate['issueddate'] ?></h3>
</div>
<table class="signature-table">
<tr>
<td>
<img src="<?= $certificate['qrcode'] ?>">
</td>
<!-- <td>
<span class="name">Adhitya Pranata Putra</span>
<span class="position">Technical Support Manager</span>
</td> -->
<!-- <td>
<span class="name"></span>
<span class="position"></span>
</td> -->
</tr>
</table>
<div class="fo-wrapper">
<p>FO.III.12/14.00/2020</p>
</div>
</div>
2026-03-18 11:10:05 +07:00
<?php endif ?>
2026-02-19 08:53:25 +07:00
</body>
</html>