update layout tampilan laporan hasil
This commit is contained in:
parent
adeea8daba
commit
eb225b5301
@ -140,7 +140,6 @@ class PrintResult extends BaseController {
|
|||||||
$headPage = "
|
$headPage = "
|
||||||
<div id='page'>
|
<div id='page'>
|
||||||
<div id='pagetop' style='height:0.01cm'> </div>
|
<div id='pagetop' style='height:0.01cm'> </div>
|
||||||
<img src='".base_url()."assets/img/padma-header.png' class='img' />
|
|
||||||
|
|
||||||
<div id='dinfo'>
|
<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>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
|
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
|
||||||
<link rel='stylesheet' href='<?=base_url();?>assets/css/pdf.css' />
|
<link rel='stylesheet' href='<?=base_url();?>assets/css/pdf.css' />
|
||||||
|
<style>
|
||||||
|
#page {
|
||||||
|
background-image: url('<?=base_url();?>assets/img/<?=$image;?>');
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style='-webkit-print-color-adjust:exact;'>
|
<body style='-webkit-print-color-adjust:exact;'>
|
||||||
|
|||||||
@ -12,13 +12,18 @@ body {
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
#page {
|
#page {
|
||||||
background: rgb(255, 255, 255);
|
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;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-bottom: 1px;
|
margin-bottom: 1px;
|
||||||
/* border: solid 1px black; */
|
/* padding-top: 30px ; */
|
||||||
/* margin-bottom: 5px; */
|
|
||||||
page-break-after:always;
|
page-break-after:always;
|
||||||
width: 210mm;
|
width: 210mm;
|
||||||
height: 297mm;
|
height: 297mm;
|
||||||
@ -27,6 +32,7 @@ body {
|
|||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
#dinfo {
|
#dinfo {
|
||||||
|
margin-top: 140px;
|
||||||
background-size: 100% auto;
|
background-size: 100% auto;
|
||||||
background-repeat: no-repeat;
|
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