One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens
/
pdf
/
file
/
res
/
View File Name :
printBill_dev.php
<style> p.a { word-spacing: normal; } p.b { word-spacing: 30px; } p.c { word-spacing: 1cm; } .container{ display: flex; } .fixed{ width: 200px; } /*.flex-item{ flex-grow: 1; } */ /* table, th, td { border: 1px solid black; border-collapse: collapse; } */ div{ /*background:yellow;*/ font-family: "Times New Roman", Times, serif; font-size: 14px; font-weight: bold; text-align: center; /*position:absolute;*/ } </style> <!-- https://stackoverflow.com/questions/8776391/working-with-css-floats-in-html2pdf/8968754 https://www.w3schools.com/cssref/css3_pr_text-justify.asp --> <!-- <page backtop="0mm" backbottom="25mm" backleft="50mm" backright="50mm"> --> <!-- ################################################################# PAGE 2 ################################################################## --> <page backtop="2mm" backleft="5mm" backright="2mm" backbottom="2mm"> <page_header> <img src="../img/sada/avatar9.jpg" height="40px" width="40px" alt="Logo SADA" style="float:left;"> <div style="margin-left: 12mm;width: 160mm;font-size: 11px; text-align: left;"> <!-- table 1 --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> <tr> <td style="width:70%;text-align: left;">SYARIKAT AIR DARUL AMAN SB 200901011159 <br> Lot 892, Jalan Sultan Badlishah<br> 05710 Alor Setar <br> Kedah. <br> 604-7400500</td> <td style="width:30%;text-align: right;font-weight: normal;">NO CBP SADA : 000056037376 <br> CUKAI INVOIS</td> </tr> </table> <!-- table 1 --> </div> </page_header> <!-- #e6f2ff light blue--> <div style="margin-top: 20mm;width: 185mm;"><hr></div> <div style="margin-top: 25mm;margin-left: 25mm;width: 130mm;font-size: 12px;position: absolute;">32 - FI PEMASANGAN METER </div> <div style="margin-top: 30mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <!-- <table border=1 style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> <tr> <td style="width:70%;">NOMBOR INVOIS : <?php echo $fi_num; ?></td> <td style="width:30%;text-align: right;">TARIKH INVOIS : <?php echo $fi_date; ?></td> </tr> </table> </div> <div style="margin-top: 37mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <!-- <table border=1 style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:50%;">NOMBOR AKAUN : <?php echo $acc_no; ?> </td> <td style="width:50%;text-align: right;"> <!-- table 3 --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:40%;text-align: right;"> CAGARAN</td> <td style="width:10%;text-align: right;"> :</td> <td style="width:50%;text-align: right;">RM 0.00 </td> </tr> </table> <!-- END table 3 --> </td> </tr> </table> </div> <div style="margin-top: 43mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <!-- <table border=1 style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:50%;"><?php echo $name; ?><br><?php echo format_address(array($mail1,$mail2,$mail3,$postcode,$mail4)); ?></td> <td style="width:50%;text-align: right;"> <!-- table 4 --> <!-- <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> --> <!-- <tr> --> <!-- <td style="width:40%;text-align: right;"> KOD TARIF</td> --> <!-- <td style="width:10%;text-align: right;"> :</td> --> <!-- <td style="width:50%;text-align: right;"><?php echo $tarcod.' '.$descr2; ?> </td> --> <!-- </tr> --> <!-- </table> --> <!-- END table 4 --> </td> </tr> </table> </div> <div style="margin-top: 60mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;border-bottom: 0.4px solid black;border-top: 0.4px solid black;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;background-color: grey;"> <tr> <td style="width:50%;">CAJ </td> <td style="width:20%;">KUANTITI (M3) </td> <td style="width:30%;text-align: right;"> AMAUN (RM)</td> </tr> </table> </div> <div style="margin-top: 65mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <?php while(($row_2 = oci_fetch_object($stmt_2)) != false){ ?> <tr> <td style="width:50%;text-align: left;">BIL PEMASANGAN METER <?php echo $row_2->MTRSIZ.'-'.$row_2->DESCR; ?> <br>GST PADA KADAR 0% (ZRL) </td> <td style="width:20%;"><?php echo $row_2->TOT;?></td> <td style="width:30%;text-align: right;"> <?php echo number_format($row_2->FI_AMT, 2, '.', ','); ?></td> </tr> <?php } ?> <!-- <tr> --> <!-- <td style="width:50%;text-align: left;">GST PADA KADAR 0% (ZRL) </td> --> <!-- <td style="width:20%;"> </td> --> <!-- <td style="width:30%;text-align: right;"> 0.00</td> --> <!-- </tr> --> </table> </div> <div style="margin-top: 135mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;border-bottom: 0.4px solid black;border-top: 0.4px solid black;background-color: grey;"> </div> <div style="margin-top: 140mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <table style="text-align: justify;table-layout: fixed;width: 100%;"> <tr> <td style="width:50%;"> </td> <td style="width:23%;">CAJ SEMASA</td> <td style="width:2%;">: </td> <td style="width:5%;">RM </td> <td style="width:20%;text-align: right;"><?php echo number_format($fi_amt, 2, '.', ','); ?> </td> </tr> <tr> <td style="width:50%;"> </td> <td style="width:23%;">CAJ GST</td> <td style="width:2%;">: </td> <td style="width:5%;">RM </td> <td style="width:20%;text-align: right;">0.00 </td> </tr> <tr> <td style="width:50%;text-align:left;">SILA BAYAR SEBELUM : <?php echo $fi_date2; ?> </td> <td style="width:23%;"> </td> <td style="width:2%;"> </td> <td style="width:5%;"> </td> <td style="width:20%;text-align: right;font-weight: bold;"> </td> </tr> <tr style="font-weight: bold;"> <td style="width:50%;"> </td> <td style="width:23%;">JUMLAH SELEPAS GST </td> <td style="width:2%;">: </td> <td style="width:5%;">RM </td> <td style="width:20%;text-align: right;font-weight: bold;"><?php echo number_format($fi_amt, 2, '.', ','); ?> </td> </tr> </table> </div> <div style="margin-top: 178mm;width: 50mm;font-size: 10px;font-weight: normal;position: absolute;border-bottom: 1px solid black;"> </div> <div style="margin-top: 182mm;width: 50mm;font-size: 11px;font-weight: normal;position: absolute;text-align: left;"> b/p Ketua Pegawai Eksekutif, <br> Syarikat Air Darul Aman Sdn. Bhd. </div> <div style="margin-top: 189mm;width: 185mm;border-bottom: 1px dotted black;position: absolute;"> </div> <div style="margin-top: 215mm;width: 185mm;position: absolute;font-size: 12px;font-weight: bold;text-align: left;">SYARIKAT AIR DARUL AMAIN SB 200901011159</div> <div style="margin-top: 218mm;width: 185mm;position: absolute;font-size: 12px;font-weight: bold;text-align: left;">32 - FI PEMASANGAN METER</div> <div style="margin-top: 225mm;width: 185mm;font-size: 10px;font-weight: bold;position: absolute;border-bottom: 0.2px solid black;border-top: 0.2px solid black;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;background-color: grey;"> <tr> <td style="width:25%;text-align: left;">NOMBOR AKAUN </td> <td style="width:25%;text-align: right;">NOMBOR INVOIS </td> <td style="width:25%;text-align: center;">TARIKH INVOIS </td> <td style="width:25%;text-align: right;">AMAUN </td> </tr> </table> </div> <div style="margin-top: 230mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:25%;text-align: left;"><?php echo $acc_no; ?> </td> <td style="width:25%;text-align: right;"><?php echo $fi_num; ?> </td> <td style="width:25%;text-align: center;"><?php echo $fi_date; ?></td> <td style="width:25%;text-align: right;"><?php echo number_format($fi_amt, 2, '.', ','); ?> </td> </tr> </table> </div> <div style="margin-top: 238mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:35%;text-align: left;"> <barcode dimension="1D" type="EAN13" value="<?php echo $acc_no; ?>" label="none" style="width:40mm;height:4mm; color: #770000;"></barcode> </td> <td style="width:35%;text-align: left;"><barcode dimension="1D" type="EAN13" value="<?php echo $fi_num; ?>" label="none" style="width:30mm;height:4mm; color: #770000;"></barcode> </td> <td style="width:30%;text-align: right;"><barcode dimension="1D" type="EAN13" value="<?php echo $fi_amt; ?>" label="none" style="width:30mm;height:4mm; color: #770000;"></barcode> </td> </tr> </table> </div> <div style="margin-top: 246mm;width: 50mm;font-size: 10px;font-weight: normal;position: absolute;text-align: left;"> <?php echo $name; ?> <br><?php echo format_address(array($mail1,$mail2,$mail3,$postcode,$mail4)); ?> </div> <!-- <barcode dimension="1D" type="EAN13" value="52555" label="none" style="height:4mm; color: #770000;"></barcode> --> <!-- <barcode dimension="1D" type="EAN13" value="123456789123" label="label" style="width:40mm;height:4mm; color: #770000;"></barcode> << max boleh 12 char shj & tak boleh space --> </page> <!-- ################################################################# END PAGE 2 ################################################################## --> <!-- ################################################################# PAGE 3 ################################################################## --> <?php if($sm_amt > 0){ ?> <page backtop="2mm" backleft="5mm" backright="2mm" backbottom="2mm"> <page_header> <img src="../img/sada/avatar9.jpg" height="40px" width="40px" alt="Logo SADA" style="float:left;"> <div style="margin-left: 12mm;width: 160mm;font-size: 11px; text-align: left;"> <!-- table 1 --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> <tr> <td style="width:70%;text-align: left;">SYARIKAT AIR DARUL AMAN SB 200901011159 <br> Lot 892, Jalan Sultan Badlishah<br> 05710 Alor Setar <br> Kedah. <br> 604-7400500</td> <td style="width:30%;text-align: right;font-weight: normal;">NO CBP SADA : 000056037376 <br> CUKAI INVOIS</td> </tr> </table> <!-- table 1 --> </div> </page_header> <!-- #e6f2ff light blue--> <div style="margin-top: 20mm;width: 185mm;"><hr></div> <div style="margin-top: 25mm;margin-left: 25mm;width: 130mm;font-size: 12px;position: absolute;">11 - BIL SUMBANGAN MODAL </div> <div style="margin-top: 30mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <!-- <table border=1 style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> <tr> <td style="width:70%;">NOMBOR INVOIS : <?php echo $sm_num; ?></td> <td style="width:30%;text-align: right;">TARIKH INVOIS : <?php echo $sm_date; ?></td> </tr> </table> </div> <div style="margin-top: 37mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <!-- <table border=1 style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:50%;">NOMBOR AKAUN : <?php echo $acc_no; ?> </td> <td style="width:50%;text-align: right;"> <!-- table 3 --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:40%;text-align: right;"> CAGARAN</td> <td style="width:10%;text-align: right;"> :</td> <td style="width:50%;text-align: right;">RM 0.00 </td> </tr> </table> <!-- END table 3 --> </td> </tr> </table> </div> <div style="margin-top: 43mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <!-- <table border=1 style="text-align: justify;table-layout: fixed;border-collapse: collapse;"> --> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:50%;"><?php echo $name; ?><?php echo format_address(array($mail1,$mail2,$mail3,$postcode,$mail4)); ?></td> <td style="width:50%;text-align: right;"> <!-- table 4 --> <!-- <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> --> <!-- <tr> --> <!-- <td style="width:40%;text-align: right;"> KOD TARIF</td> --> <!-- <td style="width:10%;text-align: right;"> :</td> --> <!-- <td style="width:50%;text-align: right;"><?php echo $tarcod.' '.$descr2; ?> </td> --> <!-- </tr> --> <!-- </table> --> <!-- END table 4 --> </td> </tr> </table> </div> <div style="margin-top: 60mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;border-bottom: 0.4px solid black;border-top: 0.4px solid black;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;background-color: grey;"> <tr> <td style="width:50%;">CAJ </td> <td style="width:20%;">KUANTITI (M3) </td> <td style="width:30%;text-align: right;"> AMAUN (RM)</td> </tr> </table> </div> <div style="margin-top: 65mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:50%;text-align: left;">BIL SUMBANGAN MODAL </td> <td style="width:20%;"> </td> <td style="width:30%;text-align: right;"> <?php echo number_format($sm_amt, 2, '.', ','); ?></td> </tr> <tr> <td style="width:50%;text-align: left;">GST PADA KADAR 0% (SR) </td> <td style="width:20%;"> </td> <td style="width:30%;text-align: right;"> 0.00</td> </tr> </table> </div> <div style="margin-top: 135mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;border-bottom: 0.4px solid black;border-top: 0.4px solid black;background-color: grey;"> </div> <div style="margin-top: 140mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <table style="text-align: justify;table-layout: fixed;width: 100%;"> <tr> <td style="width:50%;"> </td> <td style="width:23%;">CAJ SEMASA</td> <td style="width:2%;">: </td> <td style="width:5%;">RM </td> <td style="width:20%;text-align: right;"><?php echo number_format($sm_amt, 2, '.', ','); ?> </td> </tr> <tr> <td style="width:50%;"> </td> <td style="width:23%;">CAJ GST</td> <td style="width:2%;">: </td> <td style="width:5%;">RM </td> <td style="width:20%;text-align: right;">0.00 </td> </tr> <tr> <td style="width:50%;text-align:left;">SILA BAYAR SEBELUM : <?php echo $sm_date2; ?> </td> <td style="width:23%;"> </td> <td style="width:2%;"> </td> <td style="width:5%;"> </td> <td style="width:20%;text-align: right;font-weight: bold;"> </td> </tr> <tr style="font-weight: bold;"> <td style="width:50%;"> </td> <td style="width:23%;">JUMLAH SELEPAS GST </td> <td style="width:2%;">: </td> <td style="width:5%;">RM </td> <td style="width:20%;text-align: right;font-weight: bold;"><?php echo number_format($sm_amt, 2, '.', ','); ?> </td> </tr> </table> </div> <div style="margin-top: 178mm;width: 50mm;font-size: 10px;font-weight: normal;position: absolute;border-bottom: 1px solid black;"> </div> <div style="margin-top: 182mm;width: 50mm;font-size: 11px;font-weight: normal;position: absolute;text-align: left;"> b/p Ketua Pegawai Eksekutif, <br> Syarikat Air Darul Aman Sdn. Bhd. </div> <div style="margin-top: 189mm;width: 185mm;border-bottom: 1px dotted black;position: absolute;"> </div> <div style="margin-top: 215mm;width: 185mm;position: absolute;font-size: 12px;font-weight: bold;text-align: left;">SYARIKAT AIR DARUL AMAIN SB 200901011159</div> <div style="margin-top: 218mm;width: 185mm;position: absolute;font-size: 12px;font-weight: bold;text-align: left;">11 - BIL SUMBANGAN MODAL</div> <div style="margin-top: 225mm;width: 185mm;font-size: 10px;font-weight: bold;position: absolute;border-bottom: 0.2px solid black;border-top: 0.2px solid black;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;background-color: grey;"> <tr> <td style="width:25%;text-align: left;">NOMBOR AKAUN </td> <td style="width:25%;text-align: right;">NOMBOR INVOIS </td> <td style="width:25%;text-align: center;">TARIKH INVOIS </td> <td style="width:25%;text-align: right;">AMAUN </td> </tr> </table> </div> <div style="margin-top: 230mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:25%;text-align: left;"><?php echo $acc_no; ?> </td> <td style="width:25%;text-align: right;"><?php echo $sm_num; ?> </td> <td style="width:25%;text-align: center;"><?php echo $sm_date; ?></td> <td style="width:25%;text-align: right;"><?php echo number_format($sm_amt, 2, '.', ','); ?> </td> </tr> </table> </div> <div style="margin-top: 238mm;width: 185mm;font-size: 10px;font-weight: normal;position: absolute;"> <table style="text-align: justify;table-layout: fixed;border-collapse: collapse;width: 100%;"> <tr> <td style="width:35%;text-align: left;"> <barcode dimension="1D" type="EAN13" value="<?php echo $acc_no; ?>" label="none" style="width:40mm;height:4mm; color: #770000;"></barcode> </td> <td style="width:35%;text-align: left;"><barcode dimension="1D" type="EAN13" value="<?php echo $sm_num; ?>" label="none" style="width:30mm;height:4mm; color: #770000;"></barcode> </td> <td style="width:30%;text-align: right;"><barcode dimension="1D" type="EAN13" value="<?php echo $sm_amt; ?>" label="none" style="width:30mm;height:4mm; color: #770000;"></barcode> </td> </tr> </table> </div> <div style="margin-top: 246mm;width: 50mm;font-size: 10px;font-weight: normal;position: absolute;text-align: left;"> <?php echo $name; ?> <br><?php echo format_address(array($mail1,$mail2,$mail3,$postcode,$mail4)); ?> </div> <!-- <barcode dimension="1D" type="EAN13" value="52555" label="none" style="height:4mm; color: #770000;"></barcode> --> <!-- <barcode dimension="1D" type="EAN13" value="123456789123" label="label" style="width:40mm;height:4mm; color: #770000;"></barcode> << max boleh 12 char shj & tak boleh space --> </page> <?php }//if($id_dep_sm > 0){ ?> <!-- ################################################################# END PAGE 3 ################################################################## -->