[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
xampp
/
htdocs
/
pmb
/
[
Home
]
File: cetakpendaftar.php
<?php session_start(); include'config.php'; ?> <!DOCTYPE html> <html lang="zxx"> <head> <title>PMB Akfar Bumsil</title> <meta charset="UTF-8"> <meta name="description" content="PMB Akfar Bumsil"> <meta name="keywords" content="PMB, bumsil"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Favicon --> <link href="img/logo_ico.ico" rel="shortcut icon"/> <!-- Google font --> <link href="https://fonts.googleapis.com/css?family=Montserrat:300,300i,400,400i,500,500i,600,600i,700,700i&display=swap" rel="stylesheet"> <!-- Stylesheets --> <link rel="stylesheet" href="css/bootstrap.min.css"/> <link rel="stylesheet" href="css/font-awesome.min.css"/> <link rel="stylesheet" href="css/owl.carousel.min.css"/> <link rel="stylesheet" href="css/slicknav.min.css"/> <link rel="stylesheet" href="css/tabel.css"/> <!-- Main Stylesheets --> <link rel="stylesheet" href="css/style.css"/> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <!-- Page Preloder --> <div id="preloder"> <div class="loader"></div> </div> <!-- Tabel section end --> <section class="premium-section spad"> <div class="container"> <?php header("Content-type: application/vnd-ms-excel"); header("Content-Disposition: attachment; filename=Data Peserta.xls"); ?> <table class="demo-table"> <tr> <th>No</th> <th>Nama</th> <th>Alamat</th> <th>Telepon</th> <th>E-Mail</th> <th>Jas</th> <th>Nama Orang Tua</th> <th>Alamat Orang Tua</th> <th>Telepon Orang Tua</th> <th>Nama Wali</th> <th>Alamat Wali</th> <th>Telepon Wali</th> <th>Nama Sekolah</th> <th>Jurusan Yang Dipilih</th> </tr> <?php $no=1; $sql = "select * from peserta"; $data = mysqli_query($koneksi, $sql); while($peserta = mysqli_fetch_array($data)){?> <tr> <td><?php echo $no++;?></td> <td><?php echo $peserta['nama'];?></td> <td><?php echo $peserta['alamat'];?></td> <td><?php echo $peserta['telepon'];?></td> <td><?php echo $peserta['email'];?></td> <td><?php echo $peserta['jas'];?></td> <td><?php echo $peserta['namaortu'];?></td> <td><?php echo $peserta['alamatortu'];?></td> <td><?php echo $peserta['teleponortu'];?></td> <td><?php echo $peserta['namawali'];?></td> <td><?php echo $peserta['alamatwali'];?></td> <td><?php echo $peserta['teleponwali'];?></td> <td><?php echo $peserta['namasekolah'];?></td> <td><?php echo $peserta['jurusan'];?></td> </tr> <?php }?> </table> </div> </section> <!-- Tabel section end --> <!--====== Javascripts & Jquery ======--> <script src="js/jquery-3.2.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/jquery.slicknav.min.js"></script> <script src="js/owl.carousel.min.js"></script> <script src="js/mixitup.min.js"></script> <script src="js/main.js"></script> </body> </html>