[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
repository-perpus
/
absensi
/
[
Home
]
File: laporanNonAnggota.php
<?php include 'koneksi.php'; $data = mysqli_query($konek ,"SELECT * FROM tamu WHERE tglkunjung BETWEEN '$_GET[tgl1]' AND '$_GET[tgl2]' ORDER BY tglkunjung ASC"); ?> <style > @media print{ .print{ color: blue background-color: blue; } .id{ display: none; } } .print{ border-collapse: collapse; } </style> <h2>LAPORAN </h2> <hr/> <table class="print" style="margin-top: 50px;" border="1" align="center" width="100%"> <tr> <th>NO</th> <th>NAMA TAMU</th> <th>INSTANSI</th> <th>TUJUAN</th> </tr> <?php $i=1; while($dta = mysqli_fetch_assoc($data)) : ?> <tr> <td align="center"><?= $i ?></td> <td align="center"><?= $dta['namatamu'] ?></td> <td align="center"><?= $dta['instansi']?></td> <td align="center"><?= $dta['tujuan']?></td> </tr> <?php $i++; ?> <?php endwhile; ?> </table> <table width="100%"> <tr> <td></td> <td width="200px"> <BR/> <p>Jakarta Selatan, <?= date('d/m/y') ?> <br/> Administrator, <br/> <br/> <br/> <p>__________________________</p> </td> </tr> </table> <a class ="id" href="#" onclick="window.print();">CETAK</a>