update layout tampilan laporan hasil
This commit is contained in:
parent
adeea8daba
commit
eb225b5301
@ -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'>
|
||||
|
||||
|
||||
@ -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;'>
|
||||
|
||||
@ -14,11 +14,16 @@ body {
|
||||
|
||||
#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;
|
||||
}
|
||||
|
||||
BIN
public/assets/img/bali_bcg.jpg
Normal file
BIN
public/assets/img/bali_bcg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
BIN
public/assets/img/sby_bcg.jpg
Normal file
BIN
public/assets/img/sby_bcg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Loading…
x
Reference in New Issue
Block a user