Created
February 2, 2021 10:12
-
-
Save firdaushqq/489f40a714e87dc2f032046cb6b59538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Firdaus Haqiqi XI RPL 3</title> | |
<link rel="stylesheet" type="text/css" href="assets/index.css"> | |
</head> | |
<body> | |
<h1 class="centertext">Data Siswa</h1> | |
<div class="search-container"> | |
<form class="search" method="GET" action="index.php"> | |
<div class="search-title"> | |
Tulis data yang anda cari | |
</div> | |
<input class="search-in" type="text" name="search" value="<?= @$search ?>"> | |
<button class="search-btn" type="submit">Cari</button> | |
</form> | |
<form action="index.php"> | |
<div class="reset-container"> | |
<button class="reset-btn" type="submit"> | |
<a href="index.php">Reset List</a> | |
</button> | |
</div> | |
</form> | |
</div> | |
<table class="table-content" border="1"> | |
<thread> | |
<tr> | |
<th scope="col">No.</th> | |
<th scope="col"> | |
NIS<br> | |
<a href="index.php?sort=nis&order=asc">▲</a> | |
<a href="index.php?sort=nis&order=desc">▼</a> | |
</th> | |
<th scope="col"> | |
Nama Lengkap<br> | |
<a href="index.php?sort=nama_lengkap&order=asc">▲</a> | |
<a href="index.php?sort=nama_lengkap&order=desc">▼</a> | |
</th> | |
<th scope="col"> | |
Jenis Kelamin<br> | |
<a href="index.php?sort=jenis_kelamin&order=asc">▲</a> | |
<a href="index.php?sort=jenis_kelamin&order=desc">▼</a> | |
</th> | |
<th scope="col"> | |
Kelas<br> | |
<a href="index.php?sort=kelas&order=asc">▲</a> | |
<a href="index.php?sort=kelas&order=desc">▼</a> | |
</th> | |
<th scope="col"> | |
Jurusan<br> | |
<a href="index.php?sort=jurusan&order=asc">▲</a> | |
<a href="index.php?sort=jurusan&order=desc">▼</a> | |
</th> | |
<th scope="col"> | |
Alamat<br> | |
<a href="index.php?sort=alamat&order=asc">▲</a> | |
<a href="index.php?sort=alamat&order=desc">▼</a> | |
</th> | |
<th scope="col"> | |
Gol Darah<br> | |
<a href="index.php?sort=gol_darah&order=asc">▲</a> | |
<a href="index.php?sort=gol_darah&order=desc">▼</a> | |
</th> | |
<th scope="col"> | |
Nama Ibu Kandung<br> | |
<a href="index.php?sort=nama_ibu_kandung&order=asc">▲</a> | |
<a href="index.php?sort=nama_ibu_kandung&order=desc">▼</a> | |
</th> | |
<th scope="col">Control</th> | |
</tr> | |
</thread> | |
<tbody> | |
<?php | |
$i = 1; | |
while ($siswa = $listSiswa->fetch_array()) { | |
?> | |
<tr> | |
<td scope="row"><?= $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['gol_darah']; ?></td> | |
<td><?= $siswa['nama_ibu_kandung']; ?></td> | |
<td> | |
<button type="submit" class="btn-edit"> | |
<a href="edit.php?nis=<?= $siswa["nis"]; ?>" class="badge badge-primary">Edit</a> | |
</button> | |
<button type="submit" class="btn-delete"> | |
<a href="delete.php?nis=<?= $siswa["nis"]; ?>" class="badge badge-danger" onclick="return confirm('Apakah anda yakin ingin menghapus data tersebut ?')">Delete</a> | |
</button> | |
</td> | |
</tr> | |
<?php } ?> | |
</tbody> | |
</table> | |
<br> | |
<form action="tambah.php"> | |
<button type="submit" class="btn-btm"> | |
<a href="tambah.php" class="add">Tambah Data</a> | |
</button><br> | |
</form> | |
<form action="logout.php"> | |
<button type="submit" class="btn-btm"> | |
<a href = "logout.php" class="out"> Logout </a> | |
</button> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment