Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style type="text/css">
- table{
- border: 2px solid red;
- background-color: yellow;
- }
- td{
- text-align: center;
- }
- a{
- text-decoration: none;
- color: purple ;
- }
- a:hover{
- color: cyan;
- background-color: lightgray;
- }
- .action{
- background-color: skyblue;
- border:2px solid blue;
- width: 90px;
- height: 100%;
- }
- .link{
- background-color: red;
- }
- </style>
- <table border="1">
- <thead>
- <tr class="link">
- <td class="link">
- <a href="tambah.php">
- <div class="action">
- Tambah Data
- </div>
- </a>
- </td>
- <td colspan="8">
- Data Siswa SMKN 4 Bandung
- </td>
- <td rowspan="2">
- Aksi
- </td>
- </tr>
- <tr>
- <th>#</th>
- <th>Nis</th>
- <th>Nama Lengkap</th>
- <th>Jenis Kelamin</th>
- <th>Kelas</th>
- <th>Jurusan</th>
- <th>Alamat</th>
- <th>Nama Ibu</th>
- <th>Golongan Darah</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $i = 1;
- while ($siswa = $listsiswa ->fetch_array()) {
- ?>
- <tr>
- <td><?= $i++ ?></td>
- <td><?= $siswa['nis'] ?></td>
- <td><?= $siswa['nama_lengkap'] ?></td>
- <td><?= $siswa['jenis_kelamin'] ?></td>
- <td><?= $siswa['kelas'] ?></td>
- <td><?= $siswa['jurusan'] ?></td>
- <td><?= $siswa['alamat'] ?></td>
- <td><?= $siswa['nama_ibu_kandung'] ?></td>
- <td><?= $siswa['golongan_darah'] ?></td>
- <td><a href="edit.php?nis=<?= $siswa['nis'] ?>"><div class="action">Edit</div></a>
- <a href="delete.php?nis=<?= $siswa['nis'] ?>"><div class="action">hapus</div></a></td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement