SHARE
TWEET

Untitled

Rofihimam Nov 5th, 2019 (edited) 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <link rel="stylesheet" type="text/css" href="assets/index.css">
  2. <link href="https://fonts.googleapis.com/css?family=Bree+Serif&display=swap" rel="stylesheet">
  3.  
  4. <form method="GET" action="index.php">
  5.     <p>
  6.         Cari berdasarkan
  7.         <select name="category">
  8.             <option value="nis">NIS</option>
  9.             <option value="nama_lengkap">Nama Lengkap</option>
  10.             <option value="jenis_kelamin">Jenis Kelamin</option>
  11.             <option value="kelas">Kelas</option>
  12.             <option value="jurusan">Jurusan</option>
  13.             <option value="alamat">Alamat</option>
  14.             <option value="golongan_darah">Golongan Darah</option>
  15.             <option value="nama_ibu_kandung">Nama Ibu Kandung</option>
  16.         </select>
  17.         :
  18.         <input type="text" name="search" autocomplete="off" value="<?= @$search ?>">
  19.         <button class="cari" type="submit">Cari</button>
  20.     </p>
  21. </form>
  22.  
  23. <h1>Data Siswa</h1>
  24. <br>
  25.  
  26. <table border="1" align="center" cellspacing="5">
  27.     <thead>
  28.         <tr>
  29.             <th>#</th>
  30.             <th>
  31.                 NIS
  32.             </th>
  33.             <th>
  34.                 Nama Lengkap
  35.             </th>
  36.             <th>
  37.                 Jenis Kelamin
  38.             </th>
  39.             <th width="85px">
  40.                 Kelas
  41.             </th>
  42.             <th>
  43.                 Jurusan
  44.             </th>
  45.             <th>
  46.                 Alamat
  47.             </th>
  48.             <th>
  49.                 Golongan Darah
  50.             </th>
  51.             <th>
  52.                 Nama Ibu Kandung
  53.             </th>
  54.             <th colspan="2">Aksi</th>
  55.         </tr>
  56.     </thead>
  57.  
  58.     <tbody>
  59.         <?php
  60.             $i = 1;
  61.             while ($siswa = $listSiswa->fetch_array()) {
  62.         ?>
  63.         <tr>
  64.             <td><?= $i++ ?></td>
  65.             <td><?= $siswa['nis'] ?></td>
  66.             <td><?= $siswa['nama_lengkap'] ?></td>
  67.             <td><?= $siswa['jenis_kelamin'] ?></td>
  68.             <td><?= $siswa['kelas'] ?></td>
  69.             <td><?= $siswa['jurusan'] ?></td>
  70.             <td><?= $siswa['alamat'] ?></td>
  71.             <td><?= $siswa['golongan_darah'] ?></td>
  72.             <td><?= $siswa['nama_ibu_kandung'] ?></td>
  73.             <td>
  74.                 <div class="edit"><a href="edit.php?nis=<?= $siswa['nis'] ?>">Edit</a></div>
  75.             </td>
  76.             <td>
  77.                 <div class="hapus"><a href="hapus.php?nis=<?= $siswa['nis'] ?>">Hapus</a></div>
  78.             </td>
  79.         </tr>
  80.         <?php } ?>
  81.         <tr>
  82.             <td align="center" colspan="11" class="tambah">
  83.                 <div class="tambah"><a href="tambah.php">Tambah Data</a></div>
  84.             </td>
  85.         </tr>
  86.         <tr>
  87.             <td align="center" colspan="11" class="reset">
  88.                 <a href="index.php"><button class="reset">Reset</button></a>
  89.             </td>
  90.         </tr>
  91.     </tbody>
  92. </table>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top