Update Sertifikat UI : Font Arial, ACT Detail : Menampilkan Sertifikat Link

This commit is contained in:
mikael-zakaria 2026-03-09 12:43:38 +07:00
parent 3bd478869a
commit d7bd75f5a5
3 changed files with 17 additions and 12 deletions

View File

@ -212,7 +212,7 @@ class Certificates extends BaseController {
certificates.issued_date,
certificates.expired_date,
certificates.file_url,
productcatalog.productname as productname,
productalias.productaliastext as productname,
sites.sitename as sitename,
products.productnumber,
CASE
@ -235,6 +235,7 @@ class Certificates extends BaseController {
->join('sites', 'sites.siteid = activities.siteid', 'left')
->join('products', 'products.productid = activities.productid', 'left')
->join('productcatalog', 'productcatalog.catalogid = products.catalogid', 'left')
->join('productalias', 'productalias.productaliasid = productcatalog.productaliasid', 'left')
->where('certificates.cert_id', $certid)
->first();
$certificate = [
@ -538,7 +539,7 @@ class Certificates extends BaseController {
certificates.issued_date,
certificates.expired_date,
certificates.file_url,
productcatalog.productname as productname,
productalias.productaliastext as productname,
sites.sitename as sitename,
products.productnumber,
CASE
@ -561,6 +562,7 @@ class Certificates extends BaseController {
->join('sites', 'sites.siteid = activities.siteid', 'left')
->join('products', 'products.productid = activities.productid', 'left')
->join('productcatalog', 'productcatalog.catalogid = products.catalogid', 'left')
->join('productalias', 'productalias.productaliasid = productcatalog.productaliasid', 'left')
->where('certificates.cert_id', $certid)
->first();

View File

@ -5,18 +5,20 @@
$attachment = $attachment['attachment'];
$filelist = $attachment;
$file_array = explode (',', $filelist);
$i = 1;
foreach ($file_array as $value){
if($i == 1) {echo "<b>Attachment : </b><br/>";}
echo "<a href='".base_url()."upload/$value' target='_blank'>$value </a><br/>";
$i++;
}
echo "<br/>";
$i = 1;
// foreach ($certificates as $value){
// if($i == 1) {echo "<b>Certificates : </b><br/>";}
// echo "<a href='".$value['file_url']."' target='_blank'>".$value['cert_name']."</a><br/>";
// $i++;
// }
foreach ($certificates as $value){
// if($i == 1) {echo "<b>Attachment : </b><br/>";}
echo "Certificate : <a href='".$value['file_url']."' target='_blank'>".$value['cert_name']."</a><br/>";
$i++;
}
echo "<hr/>";
foreach ($actsend_log as $data) {
$logdate = $data['logdate'];

View File

@ -9,7 +9,8 @@
padding: 0;
}
body {
font-family: Arial;
/* font-family: Arial; */
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
/* font-size: 12px; */
@ -51,8 +52,8 @@
text-align: center;
margin: 0;
padding: 0;
margin-top: 230px;
margin-bottom: 25px;
margin-top: 235px;
margin-bottom: 20px;
}
.site-name {
text-align: center;
@ -61,7 +62,7 @@
.detail-information {
text-align: center;
/* margin-bottom: 137px; */
margin-bottom: 29px;
margin-bottom: 26px;
}
h4 {
margin :0;
@ -74,7 +75,7 @@
.signature-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 26px;
margin-bottom: 23px;
}
.signature-table td {
width: 50%; /* Membagi dua sisi sama rata */