document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php include("config.php"); ?>
  2.  
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>PPDB KOTA CILEGON</title>
  7. <link rel="stylesheet" type="text/css" href="bootstrap.css">
  8. <script type="text/javascript" src="jquery.js"></script>
  9. <script type="text/javascript" src="bootstrap.js"></script>
  10. <script type="text/javascript" src="ajax.js"></script>
  11. </head>
  12.  
  13. <body>
  14. <table class="table table-bordered table-striped">
  15.  
  16. </header>
  17. <br>
  18. <nav>
  19. <a onclick="daftar()">[+] Tambah Baru</a>
  20. </nav>
  21.  
  22. <br>
  23. <select>
  24. <option onclick="tampil()">Semua</option>
  25. </select>
  26.  
  27. <thead>
  28. <tr>
  29. <th>No</th>
  30. <th>Nama</th>
  31. <th>Alamat</th>
  32. <th>Jenis Kelamin</th>
  33. <th>Agama</th>
  34. <th>Asal Sekolah</th>
  35. <th>Sekolah Tujuan</th>
  36. <th>Tindakan</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40.  
  41. <?php
  42. $sql = "SELECT * FROM ppdbonline";
  43. $query = mysqli_query($db, $sql);
  44. $nomor=0;
  45. while($mhs = mysqli_fetch_array($query)){
  46. echo "<tr>";
  47. $nomor++;
  48. echo "<td>".$nomor."</td>";
  49. echo "<td>".$mhs['nama']."</td>";
  50. echo "<td>".$mhs['alamat']."</td>";
  51. echo "<td>".$mhs['jeniskl']."</td>";
  52. echo "<td>".$mhs['agama']."</td>";
  53. echo "<td>".$mhs['asalskl']."</td>";
  54. echo "<td>".$mhs['skltujuan']."</td>";
  55.  
  56.  
  57. echo "<td>";
  58. echo "<a href='form_edit.php?nik=".$mhs['nik']."'>Edit</a> | ";
  59. echo "<a href='hapus.php?nik=".$mhs['nik']."'>Hapus</a>";
  60. echo "</td>";
  61.  
  62. echo "</tr>";
  63. }
  64. ?>
  65.  
  66. </tbody>
  67. </table>
  68.  
  69. <center><p>Total: <?php echo mysqli_num_rows($query) ?></p></center>
  70.  
  71. </body>
  72. </html>
');