update layout tampilan laporan hasil

This commit is contained in:
mikael-zakaria 2025-02-06 10:17:20 +07:00
parent adeea8daba
commit eb225b5301
5 changed files with 22 additions and 4 deletions

View File

@ -140,7 +140,6 @@ class PrintResult extends BaseController {
$headPage = "
<div id='page'>
<div id='pagetop' style='height:0.01cm'> </div>
<img src='".base_url()."assets/img/padma-header.png' class='img' />
<div id='dinfo'>

View File

@ -1,8 +1,21 @@
<?php
$cityid = session()->get('usercityid');
if ($cityid == 2) {
$image = 'sby_bcg.jpg';
} else {
$image = 'bali_bcg.jpg';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<link rel='stylesheet' href='<?=base_url();?>assets/css/pdf.css' />
<style>
#page {
background-image: url('<?=base_url();?>assets/img/<?=$image;?>');
}
</style>
</head>
<body style='-webkit-print-color-adjust:exact;'>

View File

@ -12,13 +12,18 @@ body {
color: red;
}
#page {
#page {
background: rgb(255, 255, 255);
/* background-image: url('../img/bali_bcg.jpg'); */
background-size: 102%; /* Menutupi seluruh layar */
background-position: center; /* Posisikan di tengah */
background-repeat: no-repeat; /* Jangan ulangi gambar */
height: 100vh; /* Gunakan tinggi 100% dari viewport */
display: block;
margin: 0 auto;
margin-bottom: 1px;
/* border: solid 1px black; */
/* margin-bottom: 5px; */
/* padding-top: 30px ; */
page-break-after:always;
width: 210mm;
height: 297mm;
@ -27,6 +32,7 @@ body {
text-align: justify;
}
#dinfo {
margin-top: 140px;
background-size: 100% auto;
background-repeat: no-repeat;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB