MINI
C:
/
xampp
/
htdocs
/
vote
/
application
/
views
/
back
/
data_pemilih
/
Upload File:
files >> C:/xampp/htdocs/vote/application/views/back/data_pemilih/data_pemilih_cetak.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Data Pemilih</title> <style> /* .page-header, .page-header-space { height: 100px; } */ .page-footer, .page-footer-space { height: 50px; } .page-footer { position: fixed; bottom: 0; width: 100%; /* for demo */ background: rgba(0, 0, 0, 0); border: 0px; /* for demo */ z-index: 100000; } .page-header { position: fixed; top: 0mm; width: 100%; border: 0px; /* for demo */ background: rgba(0, 0, 0, 0); /* for demo */ z-index: 100000; } .font-weight-bold { font-weight: bolder; } .text-italic { font-style: italic; } .page { page-break-after: always; } table { width: 100%; } p { font-size: 16px; } @page { margin: 10mm 20mm 10mm 20mm; size: A4; } h4 { margin: 0; font-weight: bolder; } .innerDOC { margin-bottom: 10px; } .innerDOC td { font-size: 16px; } pre { display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 0; margin: 0; font-size: 16px; background-color: rgba(0, 0, 0, 0); border: none; border-radius: 0; white-space: pre; } .table { border-collapse: collapse; width: 100%; } .table, .table th, .table td { border: 1px solid black; } @media print { thead { display: table-header-group; } tfoot { display: table-footer-group; } button { display: none; } body { margin: 0; } } </style> </head> <body onload="window.print();"> <div class="page-header" style="text-align: center"> <!-- <h4 style="font-weight: bolder;">DAFTAR HADIR</h4> <h4 style="font-weight: bolder;">PESERTA PEMUNGUTAN DAN PENGHITUNGAN SUARA</h4> --> <button type="button" onClick="window.print()" style="background: pink"> PRINT ME! </button> </div> <div class="page-footer"> Waktu Server <?php echo date('d/m/Y H:i:s'); ?> </div> <table> <thead> <tr> <td> <!--place holder for the fixed-position header--> <div class="page-header-space"> </div> </td> </tr> </thead> <tbody> <tr> <td> <!--*** CONTENT GOES HERE ***--> <div class="page text-justify"> <div style="text-align: center"> <h4 style="font-weight: bolder;">DATA PEMILIH</h4> <h4 style="font-weight: bolder;">PESERTA PEMUNGUTAN DAN PENGHITUNGAN SUARA</h4> <h4 style="font-weight: bolder;"><?= get_pengaturan('penyelenggara') ?> </h4> </div> </br> <table class="table"> <thead> <tr> <th width="10px">No</th> <th width="80px">NIK</th> <th>Nama</th> <th>Kelas</th> <th width="80px">Username</th> <th width="80px">Password</th> <th width="25px">L/P</th> <th width="120px">Status</th> </tr> </thead> <tbody> <?php foreach ($data_pemilih_data as $data_pemilih) : ?> <tr> <td style="text-align: center"><?php echo htmlspecialchars(++$start, ENT_QUOTES, 'UTF-8'); ?></td> <td style="text-align: center"><?php echo htmlspecialchars($data_pemilih->nik, ENT_QUOTES, 'UTF-8'); ?></td> <th height="65px"><?php echo htmlspecialchars($data_pemilih->nama, ENT_QUOTES, 'UTF-8'); ?></td> <td style="text-align: center"><?php echo htmlspecialchars($data_pemilih->kelas, ENT_QUOTES, 'UTF-8'); ?></td> <td style="text-align: center"><?php echo $data_pemilih->username ?></td> <td style="text-align: center"><?php echo $data_pemilih->password ?></td> <td width="10px" style="text-align: center"><?php echo htmlspecialchars($data_pemilih->jk, ENT_QUOTES, 'UTF-8'); ?></td> <td style="text-align: center"><?php echo $data_pemilih->status ?></td> </tr> <?php endforeach; ?> </tbody> </table> </div> </td> </tr> </tbody> <tfoot> <tr> <td> <!--place holder for the fixed-position footer--> <div class="page-footer-space"></div> </td> </tr> </tfoot> </table> </body> </html>
Copyright ©2021 || Defacer Indonesia