SHARE
TWEET

Untitled

Rofihimam Nov 6th, 2019 65 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.                 <a href="index.php?sort=nis&order=asc">&#9652;</a>
  33.                 <a href="index.php?sort=nis&order=desc">&#9662;</a>
  34.             </th>
  35.             <th>
  36.                 Nama Lengkap
  37.                 <a href="index.php?sort=nama_lengkap&order=asc">&#9652;</a>
  38.                 <a href="index.php?sort=nama_lengkap&order=desc">&#9662;</a>
  39.             </th>
  40.             <th>
  41.                 Jenis Kelamin
  42.                 <a href="index.php?sort=jenis_kelamin&order=asc">&#9652;</a>
  43.                 <a href="index.php?sort=jenis_kelamin&order=desc">&#9662;</a>
  44.             </th>
  45.             <th width="85px">
  46.                 Kelas
  47.                 <a href="index.php?sort=kelas&order=asc">&#9652;</a>
  48.                 <a href="index.php?sort=kelas&order=desc">&#9662;</a>
  49.             </th>
  50.             <th>
  51.                 Jurusan
  52.                 <a href="index.php?sort=jurusan&order=asc">&#9652;</a>
  53.                 <a href="index.php?sort=jurusan&order=desc">&#9662;</a>
  54.             </th>
  55.             <th>
  56.                 Alamat
  57.                 <a href="index.php?sort=alamat&order=asc">&#9652;</a>
  58.                 <a href="index.php?sort=alamat&order=desc">&#9662;</a>
  59.             </th>
  60.             <th>
  61.                 Golongan Darah
  62.                 <a href="index.php?sort=golongan_darah&order=asc">&#9652;</a>
  63.                 <a href="index.php?sort=golongan_darah&order=desc">&#9662;</a>
  64.             </th>
  65.             <th>
  66.                 Nama Ibu Kandung
  67.                 <a href="index.php?sort=nama_ibu_kandung&order=asc">&#9652;</a>
  68.                 <a href="index.php?sort=nama_ibu_kandung&order=desc">&#9662;</a>
  69.             </th>
  70.             <th colspan="2">Aksi</th>
  71.         </tr>
  72.     </thead>
  73.  
  74.     <tbody>
  75.         <?php
  76.             $i = 1;
  77.             while ($siswa = $listSiswa->fetch_array()) {
  78.         ?>
  79.         <tr>
  80.             <td><?= $i++ ?></td>
  81.             <td><?= $siswa['nis'] ?></td>
  82.             <td><?= $siswa['nama_lengkap'] ?></td>
  83.             <td><?= $siswa['jenis_kelamin'] ?></td>
  84.             <td><?= $siswa['kelas'] ?></td>
  85.             <td><?= $siswa['jurusan'] ?></td>
  86.             <td><?= $siswa['alamat'] ?></td>
  87.             <td><?= $siswa['golongan_darah'] ?></td>
  88.             <td><?= $siswa['nama_ibu_kandung'] ?></td>
  89.             <td>
  90.                 <div class="edit"><a href="edit.php?nis=<?= $siswa['nis'] ?>">Edit</a></div>
  91.             </td>
  92.             <td>
  93.                 <div class="hapus"><a href="hapus.php?nis=<?= $siswa['nis'] ?>">Hapus</a></div>
  94.             </td>
  95.         </tr>
  96.         <?php } ?>
  97.         <tr>
  98.             <td align="center" colspan="11" class="tambah">
  99.                 <div class="tambah"><a href="tambah.php">Tambah Data</a></div>
  100.             </td>
  101.         </tr>
  102.         <tr>
  103.             <td align="center" colspan="11" class="reset">
  104.                 <a href="index.php"><button class="reset">Reset</button></a>
  105.             </td>
  106.         </tr>
  107.     </tbody>
  108. </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
 
Top