Contoh Script Show PHP
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Clean Blog - Start Bootstrap Theme</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<!-- Custom styles for this template -->
<link href="css/clean-blog.min.css" rel="stylesheet">
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand" href="home.html">KELOMPOK 1</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="home.html">Sistem Perizinan</a>
</li>
<li class="nav-item">
<a class="nav-link" href="showkelas.php">Kelas</a>
</li>
<li class="nav-item">
<a class="nav-link" href="showjurusan.php">Jurusan</a>
</li>
<li class="nav-item">
<a class="nav-link" href="showizin.php">Perizinan</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.php">Log Out</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Header -->
<header class="masthead" style="background-image: url('img/b.jpg')">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
<div class="page-heading">
<h1>SHOW PERIZINAN</h1>
<span class="subheading">Show Perizinan Dari Sistem Perizinan Jurusan Kami</span>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<html>
<head>
<title>Show Perizinan</title>
</head>
<body >
<h1 align="center" > Tabel Perizinan </h1>
<center><table width="0" border="10" cellspacing="0" cellpadding="20">
<tr>
<th>No</th>
<th>ID Perizinan</th>
<th>Nama Siswa</th>
<th>Kelas</th>
<th>Jurusan</th>
<th>Nama Orang Tua</th>
<th>Tanggal Izin</th>
<th>Tanggal Masuk</th>
<th><center>opsi</center></th>
</tr>
<?php
include'koneksi.php';
$no=1;
$data= mysqli_query($koneksi,"select * from izin");
while($d=mysqli_fetch_array($data)){
?>
<tr>
<td><?php echo $no++; ?></td>
<td><?php echo $d['id_izin'];?></td>
<td><?php echo $d['nama'];?></td>
<td><?php echo $d['kelas'];?></td>
<td><?php echo $d['jurusan'];?></td>
<td><?php echo $d['ortu'];?></td>
<td><?php echo $d['tgl_izin'];?></td>
<td><?php echo $d['tgl_masuk'];?></td>
<td> <a href="updateizin.php?id=<?php echo $d['id_izin']; ?>"> Update </a>
<a href="deleteizin.php?id=<?php echo $d['id_izin']; ?>"onClick="return confirm('Anda yakin menghapusnya?');"> Delete </a>
</td>
</tr>
<?php
}
?>
</table>
<br>
<button><a href="searchizin.php"> Untuk Pencarian Perizinan </a></button>
<button><a href="formizin.php"> Untuk Mengizinkan</a></button>
</body>
</html>
Comments
Post a Comment