diff --git a/app/Controllers/PrintResult.php b/app/Controllers/PrintResult.php index e4a4d28..803cc10 100644 --- a/app/Controllers/PrintResult.php +++ b/app/Controllers/PrintResult.php @@ -140,7 +140,6 @@ class PrintResult extends BaseController { $headPage = "
-
diff --git a/app/Views/result_report.php b/app/Views/result_report.php index 345ca03..c66ac5a 100644 --- a/app/Views/result_report.php +++ b/app/Views/result_report.php @@ -1,8 +1,21 @@ +get('usercityid'); + if ($cityid == 2) { + $image = 'sby_bcg.jpg'; + } else { + $image = 'bali_bcg.jpg'; + } +?> + diff --git a/public/assets/css/pdf.css b/public/assets/css/pdf.css index 7d94d80..0b4c100 100644 --- a/public/assets/css/pdf.css +++ b/public/assets/css/pdf.css @@ -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; } diff --git a/public/assets/img/bali_bcg.jpg b/public/assets/img/bali_bcg.jpg new file mode 100644 index 0000000..728d205 Binary files /dev/null and b/public/assets/img/bali_bcg.jpg differ diff --git a/public/assets/img/sby_bcg.jpg b/public/assets/img/sby_bcg.jpg new file mode 100644 index 0000000..32c6f86 Binary files /dev/null and b/public/assets/img/sby_bcg.jpg differ