• Tidak ada hasil yang ditemukan

Sistem Informasi Peminjaman Online Buku Berbasis Web

N/A
N/A
Protected

Academic year: 2017

Membagikan "Sistem Informasi Peminjaman Online Buku Berbasis Web"

Copied!
89
0
0

Teks penuh

(1)

Lampiran 1. Listing Program

1.

Halaman Index

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style1.css"/> <head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Selamat Datang di Situs Layanan Perpustakaan Digital</h1> </div><br />

<div class="picture"><a href="halaman_awal.php"><img src="Capture.png" /></a></div>

(2)

2.

Halaman Utama

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style.css" /> <head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

(3)

<div class="konten"><h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selamat Datang !</h2><p><b>Situs ini ditujukan untuk mahasiswa/i FMIPA-USU secara khusus dan masyarakat umum. Situs ini memberikan kemudahan kepada pengguna jasa perpustakaan agar dapat melakukan peminjaman buku dari jarak jauh atau secara online. Diharapkan dengan adanya situs ini proses pembelajaran mahasiswa/i dapat lebih efisien. Perpustakaan FMIPA-USU merupakan unit yang berfungsi memberikan pelayanan seputar informasi buku yang berkaitan dengan pembelajaran mahasiswa/i atau pun dosen. Selain itu perpustakaan juga berfungsi dalam melaksanakan Tri Dharma Perguruan Tinggi yang meliputi pendidikan, penelitian/riset dan pengabdian kepada masyarakat.</b></p><br><br>

<div class="L"></div> </div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

(4)

<tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form>

<div class="date"><h2>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('l, d-m-Y'); ?></h2></div>

<div class="picture"> <marquee>

<img src="green.jpg"> <img src="tree.jpg"> </marquee>

</div> </div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

(5)

3.

Profil

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <link rel="stylesheet" type="text/css" href="desain/style_buku.css" />

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

(6)

<div class="konten">

<form action="include/in_anggota.php" method="post">

<h1 align="center" style="color:black; font-family:Algerian; text-align:center;">DATA ANGGOTA</h1>

<div align="center">

<table width="388" border="1"> <tr>

<td><div align="left">Nama</div></td> <td>:</td>

<td><label for="nama"></label> <div align="left">

<input type="text" name="nama" id="nama" /> </div></td>

</tr> <tr>

<td><div align="left">Nim</div></td> <td>:</td>

<td><div align="left"> <label for="nim"></label>

<input type="text" name="nim" id="nim" /> </div></td>

</tr> <tr>

<td><div align="left">Jurusan</div></td> <td>:</td>

<td><div align="left">

<label for="penerbit"></label> <label for="jurusan"></label>

(7)

<option>Matematika</option> <option>Biologi</option> <option>Kimia</option> <option>Fisika</option>

<option>Teknik Informatika</option> </select>

</div></td> </tr>

<tr>

<td colspan="3"><div align="center">

<input type="submit" name="button3" id="button3" value="Simpan" />

<input type="reset" name="button4" id="button4" value="Batal" />

</div></td> </tr>

</table> </div> </form> </div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

(8)

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form>

<div class="date"><h2>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('l, d-m-Y'); ?></h2></div>

<div class="picture"> <marquee>

<img src="green.jpg"> <img src="tree.jpg"> </marquee></div>

</div> </div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

(9)

4.

Layanan

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style-profil.css" />

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

(10)

<div class="konten"> <html>

<head>

<title>Profil Perpustakaan</title> </head>

<body>

<h1 style="color:black; font-family:Footlight MT Light; text-align:center;">Layanan Perpustakaan MIPA</h1>

<p>Layanan yang disediakan oleh Perpustakaan FMIPA diantaranya yaitu:<br><br>

1.&nbsp;&nbsp;Peminjaman Bahan Pustaka<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mahasiswa/i dapat melakukan peminjaman koleksi buku yang dimiliki perpustakaan.<br>

2.&nbsp;&nbsp;Membaca Buku<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mahasiswa/i dapat memakai waktu luang mereka dengan membaca buku diperpustakaan.

<br><br>

Waktu Pelayanan Perpustakaan<br>

Senin-jumat&nbsp;&nbsp;08:30-15:30 WIB<br> Sabtu

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;08:30-12:00 WIB

<div class="M"><a href="halaman_awal.php"><img src="home.jpg"/></a></div><br><br>

(11)

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form>

<div class="date"><h2>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('l, d-m-Y'); ?></h2></div>

(12)

<img src="green.jpg"> <img src="tree.jpg"> </marquee></div>

</div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

</html>

5.

Daftar Anggota

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <link rel="stylesheet" type="text/css" href="desain/style_buku.css" />

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

(13)

ROFIL</a> <a href="layanan.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L AYANAN</a> <a href="edit_dtbuku.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D AFTAR</a> <a href="help.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;H ELP</a> <a href="include/logout.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L OGOUT</a> </h3></div>

<div class="konten">

<form action="include/in_anggota.php" method="post">

<h1 align="center" style="color:black; font-family:Algerian; text-align:center;">DATA ANGGOTA</h1>

<div align="center">

<table width="388" border="1"> <tr>

<td><div align="left">Nama</div></td> <td>:</td>

<td><label for="nama"></label> <div align="left">

<input type="text" name="nama" id="nama" /> </div></td>

</tr> <tr>

<td><div align="left">Nim</div></td> <td>:</td>

<td><div align="left"> <label for="nim"></label>

(14)

</div></td> </tr>

<tr>

<td><div align="left">Jurusan</div></td> <td>:</td>

<td><div align="left">

<label for="penerbit"></label> <label for="jurusan"></label>

<select name="jurusan" id="jurusan"> <option>Matematika</option>

<option>Biologi</option> <option>Kimia</option> <option>Fisika</option>

<option>Teknik Informatika</option> </select>

</div></td> </tr>

<tr>

<td colspan="3"><div align="center">

<input type="submit" name="button3" id="button3" value="Simpan" />

<input type="reset" name="button4" id="button4" value="Batal" />

</div></td> </tr>

(15)

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form>

(16)

<div class="picture"> <marquee>

<img src="green.jpg"> <img src="tree.jpg"> </marquee></div>

</div> </div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

</html>

6.

Insert Data Anggota

<?php

$nama = $_POST['nama']; $nim = $_POST['nim'];

$jurusan = $_POST['jurusan']; include "koneksi.php";

if($nama == ""){ echo "<script>

alert('Silahkan isi Nama anda dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

(17)

alert('Silahkan isi Nim anda dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

else if($jurusan == ""){ echo "<script>

alert('Silahkan Pilih Jurusan anda dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

else{

mysql_query("INSERT INTO tb_anggota VALUES ('', '$nama', '$nim', '$jurusan')");

echo "<script>

alert('Data Sudah disimpan ke Database.', document.location.href='../data_anggota.php');

</script>"; }

?>

7.

Data Anggota

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style-editdtbuku.css" />

(18)

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

<div class="menu-utama"><h3><a href="halaman_awal.php"style="text-decoration:none">HOME</a> <a href="profil.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P ROFIL</a> <a href="layanan.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L AYANAN</a> <a href="anggota.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D AFTAR</a> <a href="include/logout.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L OGOUT</a> <a href="help.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;H ELP</a></h3></div>

<div class="konten">

<form action="proses_pinjam-buku.php" method="POST" name="input">

<div class="content">

<h1 align="center" style="color:black; font-family:Algerian; text-align:center;">DATA ANGGOTA</h1>

(19)

<table width="845" height="71" border="1"> <tr>

<th width="33" scope="row"><div align="center">ID Peminjam</div></th>

<td width="111"><div align="center">Nama</div></td> <td width="111"><div align="center">Nim</div></td> <td width="94"><div align="center">Jurusan</div></td> </tr>

<?php

include "include/koneksi.php";

$qanggota = mysql_query("SELECT * FROM tb_anggota"); while ($ranggota = mysql_fetch_array($qanggota)){

?> <tr>

<td><div align="center"><?php echo $ranggota['id_peminjam'];?></div></td>

<td><div align="center"><?php echo $ranggota['nama'];?></div></td>

<td><div align="center"><?php echo $ranggota['nim'];?></div></td>

<td><div align="center"><?php echo $ranggota['jurusan'];?></div></td>

</tr> <?php } ?> <tr>

<td colspan="9" align="center"><a href="data_buku.php" style="text-decoration:none"><font color ="black"</font>Pinjam Buku</td>

(20)

</div> </div>

<div align="center"> </div>

</div>

<div align="center"></div> </form>

</div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

(21)

</div></td> </tr>

</table> </div> </form> </div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

</html>

8.

Data Buku

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style-dtbuku.css" />

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

(22)

<div class="menu-utama"><h3><a href="index.php"style="text-decoration:none">HOME</a> <a href="profil.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P ROFIL</a> <a href="layanan.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L AYANAN</a> <a href="data_buku.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA BUKU</a> <a href="include/logout.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L OGOUT</a><a href="help.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;H ELP</a></h3></div>

<div class="konten">

<form action="proses_pinjam-buku.php" method="POST" name="input"> <div class="content">

<h1 align="center" style="color:black; font-family:Algerian; text-align:center;">DATA BUKU</h1>

<div align="center">

<table width="845" height="71" border="1"> <tr>

<th scope="row"><div align="center">ID Buku</div></th> <td><div align="center">Judul Buku</div></td>

(23)

<?php

include "include/koneksi.php";

$qbuku = mysql_query("SELECT * FROM tb_buku"); while ($rbuku = mysql_fetch_array($qbuku)){

?> <tr>

<td><div align="center"><?php echo $rbuku['id_buku']; ?></div></td>

<td><div align="center"><?php echo $rbuku['judul_buku']; ?></div></td>

<td><div align="center"><?php echo $rbuku['kode_buku']; ?></div></td>

<td><div align="center"><?php echo $rbuku['pengarang']; ?></div></td>

<td><div align="center"><?php echo $rbuku['penerbit']; ?></div></td>

<td><div align="center"><?php echo $rbuku['tahun']; ?></div></td>

<td><div align="center"><?php echo $rbuku['status']; ?></div></td>

<td><div align="center"><a href="pinjam_buku.php?id_buku=<?php echo $rbuku['id_buku'];?>"style="text-decoration:none"><font color ="black"</font>Pinjam</a></div></td>

</tr> <?php } ?> <tr>

<td colspan="9" align="center"><a href=".php" style="text-decoration:none"><font color ="black"</font></a></td>

(24)

</table> </div> </div>

<div align="center"> </div>

</div>

<div align="center"></div> </form>

</body> </html> </div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

(25)

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form>

<div class="date"><h2>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('l, d-m-Y'); ?></h2></div>

<div class="picture"> <marquee>

<img src="green.jpg"> <img src="tree.jpg"> </marquee></div>

</div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

</html>

9.

Proses Peminjaman Buku

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

(26)

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

<div class="menu-utama"><h3><a href="halaman_awal.php"style="text-decoration:none">HOME</a> <a href="profil.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P ROFIL</a> <a href="layanan.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L AYANAN</a> <a href="data_buku.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA BUKU</a> <a href="include/logout.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L OGOUT</a><a href="help.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;H ELP</a></h3></div>

<div class="konten"> <?php

(27)

$qbuku = mysql_query("SELECT * FROM tb_buku WHERE id_buku='$id_buku'");

$rbuku = mysql_fetch_array($qbuku); ?>

<form action="include/in_regis-buku.php" method="POST" name="input">

<h2 align="center" style="color:black; font-family:Algerian; text-align:center;">DATA REGISTARSI PEMINJAMAN BUKU</h2>

<div align="center">

<table width="409" border="1"> <tr>

<th scope="col"><div align="left">Nama</div></th> <th scope="col">:</th>

<th scope="col"><label for="nama"></label> <div align="left">

<input type="text" name="nama" id="nama" /> </div></th>

</tr> <tr>

<td><div align="left">Nim</div></td> <td>:</td>

<td><label for="nim"></label> <div align="left">

<input type="text" name="nim" id="nim" /> </div></td>

</tr> <tr>

(28)

<td><label for="jurusan"></label> <div align="left">

<select name="jurusan" id="jurusan"> <option>Teknik Informatika</option> <option>Matematika</option>

<option>Biologi</option> <option>Kimia</option> <option>Statistik</option> </select>

</div></td> </tr>

<tr>

<td><div align="left">Judul Buku</div></td> <td>:</td>

<td><label for="judul"></label> <div align="left">

<input type="text" name="judul" id="judul" value="<?php echo $rbuku['judul_buku'];?>" />

</div></td> </tr>

<tr>

<td><div align="left">Tanggal Peminjaman</div></td> <td>:</td>

<td><label for="pinjam"></label> <div align="left">

<input type="text" name="pinjam" id="pinjam" /> </div></td>

</tr> <tr>

(29)

<td>:</td>

<td><label for="balik"></label> <div align="left">

<input type="text" name="balik" id="balik" /> </div></td>

</tr> <tr>

<td colspan="3"><div align="center">

<input type="submit" name="button3" id="button3" value="Pinjam" />

<input type="reset" name="button4" id="button4" value="Batal" />

</div></td> </tr>

</table> </div> </form> </div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

(30)

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div>

</form> </div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

</html>

10.

Insert Registrasi Peminjaman Buku

<?php

$nama = $_POST['nama']; $nim = $_POST['nim'];

$jurusan = $_POST['jurusan']; $judul = $_POST['judul'];

(31)

$tglkembali = $_POST['tglkembali']; include "koneksi.php";

if($nama == ""){ echo "<script>

alert('Silahkan isi Nama anda dengan Benar !', document.location.href='javascript:history.back(0)');

</script>"; }

else if($nim == ""){ echo "<script>

alert('Silahkan isi Nim anda dengan Benar !', document.location.href='javascript:history.back(0)');

</script>"; }

else if($jurusan == ""){ echo "<script>

alert('Silahkan isi Jurusan anda dengan Benar !', document.location.href='javascript:history.back(0)');

</script>"; }

else {

$tglpinjam = date("Y-m-d");

$tglkembali = date("Y-m-d", strtotime("$tglpinjam + 7 day")); echo $tglkembali;

mysql_query("INSERT INTO tb_peminjam VALUES ('','$nama', '$nim','$jurusan','$judul', now(), '$tglkembali')");

(32)

alert('Data sudah disimpan ke dalam database', document.location.href='../hasil_regis-buku.php');

</script>"; }

?>

11.

Hasil Registrasi Peminajan Buku

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style-dtbuku.css" />

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

(33)

AYANAN</a> <a href="db_buku.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA BUKU</a> <a href="include/logout.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L OGOUT</a><a href="help.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;H ELP</a></h3></div>

<div class="konten">

<form action=".php" method="POST" name="input"> <div class="content">

<h2 align="center" style="color:black; font-family:Algerian; text-align:center;">Hasil Registrasi Peminjaman</h2>

<div align="center"><br> <br>

<table width="845" height="71" border="1"> <tr>

<th scope="row"><div align="center">Nama</div></th> <td><div align="center">Judul Buku</div></td>

<td><div align="center">Tanggal Peminjaman</div></td> <td><div align="center">Tanggal Pengembalian</div></td> </tr>

<?php

include "include/koneksi.php";

$qbuku = mysql_query("SELECT * FROM tb_peminjam"); while ($rbuku = mysql_fetch_array($qbuku)){

(34)

<td><div align="center"><?php echo $rbuku['nama']; ?></div></td>

<td><div align="center"><?php echo $rbuku['judul']; ?></div></td>

<td><div align="center"><?php echo $rbuku['tanggal_pinjam']; ?></div></td>

<td><div align="center"><?php echo $rbuku['tanggal_kembali']; ?></div></td>

</tr> <?php } ?> <tr>

<td colspan="9" align="center" style="text-decoration:none"><font color ="black"</font>Silahkan Ambil Buku diPerpustakaan.</td>

</tr> </table>

</div> </div>

<div align="center"> </div>

</div>

<div align="center"></div> </form>

</body> </html> </div>

(35)

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form> </div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

(36)

12.

Help

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style-profil.css" />

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

(37)

<div class="konten"> <html>

<head>

<title>Profil Perpustakaan</title> </head>

<body>

<h1 style="color:black; font-family:Footlight MT Light; text-align:center;">Layanan Bantuan</h1>

<p>Berikut penjelasan dari menu-menu yang ada didalam website:<br>

1.&nbsp;&nbsp;Home<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Menu Home hanya berisi informasi tampilan awal website.<br>

2.&nbsp;&nbsp;Profil<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Menu Profil berisi informasi sejarah awal FMIPA dan informasi Pimpinan Fakultas.<br>

3.&nbsp;&nbsp;Layanan<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Menu Layanan berisi informasi layanan yang tersedia dari perpustakaan FMIPA-USU.<br>

4.&nbsp;&nbsp;Daftar<br>

&nbsp;&nbsp;&nbsp;&nbsp;Menu Daftar berisi inputan data peminjam yang ada diperpustakaan dan dilanjutkan proses peminjaman &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buku.<br>

5.&nbsp;&nbsp;Logout<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Menu Logout berfungsi untuk keluar dan kembali ke halaman awal website.<br>

<div class="M"><a href="halaman_awal.php"><img src="home.jpg"/></a></div>

(38)

</body> </html> </div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

(39)

<div class="date"><h2>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo date('l, d-m-Y'); ?></h2></div>

<div class="picture"> <marquee>

<img src="green.jpg"> <img src="tree.jpg"> </marquee></div>

</div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

</html>

13.

Logout

<?php

session_start(); session_destroy(); echo "<script>

alert('Loguot Berhasil', document.location.href='../index.php'); </script>";

?>

14.

Login Admin

<?php

(40)

$username = $_POST['username']; $password = $_POST['password']; include "include/koneksi.php";

if($username == "admin" && $password == "admin"){ $_SESSION['username'] = $username;

echo "<script>

alert('SelamatDatang',

document.location.href='halaman_admin.php'); </script>>";

} else{

echo "<script>

alert('Maaf username dan password salah.', document.location.href='javascript:history.back(0)');

</script>"; }

?>

15.

Halaman Admin

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style-utama.css" />

<head>

(41)

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div>

<div class="logo"></div>

<div class="menu-utama"><h3><a href="halaman_admin.php"style="text-decoration:none">HOME</a> <a

href="edit_profil.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P ROFIL</a> <a href="edit_layanan.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L AYANAN</a> <a href="edit_dtbuku.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA BUKU</a> <a href="data_peminjam.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA PEMINJAM</a> <a href="edit_dtanggota.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A NGGOTA</a> <a href="include/logout.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L OGOUT</a> </h3></div>

(42)

situs ini proses pembelajaran mahasiswa/i dapat lebih efisien. Perpustakaan FMIPA-USU merupakan unit yang berfungsi memberikan pelayanan seputar informasi buku yang berkaitan dengan pembelajaran mahasiswa/i atau pun dosen. Selain itu perpustakaan juga berfungsi dalam melaksanakan Tri Dharma Perguruan Tinggi yang meliputi pendidikan, penelitian/riset dan pengabdian kepada masyarakat.</b></p><br><br>

<div class="L"></div> </div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

(43)

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form>

<div class="picture"> <marquee>

<img src="book.jpg"> <img src="buku.jpg"> </marquee>

</div> </div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

</html>

16.

Edit Data Buku

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style-editdtbuku.css" />

<head>

(44)

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

<div class="menu-utama"><h3><a href="halaman_admin.php"style="text-decoration:none">HOME</a> <a

href="edit_profil.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P ROFIL</a> <a href="edit_layanan.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L AYANAN</a> <a href="edit_dtbuku.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA BUKU</a> <a href="data_peminjam.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA PEMINJAM</a> <a href="edit_dtanggota.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A NGGOTA</a><a href="include/logout.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L OGOUT</a></h3></div>

<div class="konten">

<form action="proses_pinjam-buku.php" method="POST" name="input"> <div class="content">

<h1 align="center" style="color:black; font-family:Algerian; text-align:center;">DATA BUKU</h1>

(45)

<table width="845" height="71" border="1"> <tr>

<th width="33" scope="row"><div align="center">ID Buku</div></th>

<td width="111"><div align="center">Judul Buku</div></td> <td width="111"><div align="center">Kode Buku</div></td> <td width="94"><div align="center">Pengarang</div></td> <td width="80"><div align="center">Penerbit</div></td> <td width="61"><div align="center">Tahun</div></td> <td width="59"><div align="center">ISBN</div></td> <td width="87"><div align="center">Status</div></td> <td width="151"><div align="center">Pilih</div></td> </tr>

<?php

include "include/koneksi.php";

$qbuku = mysql_query("SELECT * FROM tb_buku"); while ($rbuku = mysql_fetch_array($qbuku)){

?> <tr>

<td><div align="center"><?php echo $rbuku['id_buku'];?></div></td>

<td><div align="center"><?php echo $rbuku['judul_buku'];?></div></td>

<td><div align="center"><?php echo $rbuku['kode_buku'];?></div></td>

<td><div align="center"><?php echo $rbuku['pengarang'];?></div></td>

(46)

<td><div align="center"><?php echo $rbuku['tahun'];?></div></td>

<td><div align="center"><?php echo $rbuku['isbn'];?></div></td>

<td><div align="center"><?php echo $rbuku['status'];?></div></td>

<td><div align="center"><a href="f_up_buku.php?id_buku=<?php echo $rbuku['id_buku'];?>"style="text-decoration:none"><font color ="black"</font>EDIT</a> | <a href="include/del_dtbuku.php?id_buku=<?php echo $rbuku['id_buku'];?>" onclick="return confirm('Anda yakin ingin menghapus data ini?');"style="text-decoration:none"><font color ="black"</font>HAPUS</a></div></td>

</tr> <?php } ?> <tr>

<td colspan="9" align="center"><a href="buku.php" style="text-decoration:none"><font color ="black"</font>Tambah Buku | <colspan="9" align="center" ><a href="print.php" style="text-decoration:none"><font color ="black"</font>Print</a></td>

</tr> </table>

</div> </div>

<div align="center"> </div>

</div>

(47)

</div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

<input type="password" name="password" id="password" /></td>

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form>

(48)

<img src="book.jpg"> <img src="buku.jpg"> </marquee>

</div> </div> </div>

<div class="footer">&copy; PERPUS FMIPA-USU 2017</div> </body>

</html>

17.

Form Update Data Buku

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<link rel="stylesheet" type="text/css" href="desain/style-f-upbuku.css" />

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title> </head>

<body>

<div class="utama">

<div class="header"><h1>Perpustakaan Online<br />

Fakultas Matematika dan Ilmu Pengetahuan Alam - USU </h1></div> <div class="logo"></div>

(49)

href="edit_profil.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;P ROFIL</a> <a href="edit_layanan.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L AYANAN</a> <a href="edit_dtbuku.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA BUKU</a> <a href="data_peminjam.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D ATA PEMINJAM</a> <a href="edit_dtanggota.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A NGGOTA</a><a href="include/logout.php"style="text-decoration:none">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L OGOUT</a></h3></div>

<div class="konten"> <?php

$id_buku = $_GET['id_buku']; include "include/koneksi.php";

$qbuku = mysql_query("SELECT * FROM tb_buku WHERE id_buku='$id_buku'");

$rbuku = mysql_fetch_array($qbuku); ?>

<form action="include/up_buku.php?id_buku=<?php echo $id_buku;?>" method="post">

<h1 align="center" style="color:black; font-family:Algerian; text-align:center;">DATA BUKU</h1>

<div align="center">

<table width="388" border="1"> <tr>

(50)

<th scope="col">:</th>

<th scope="col"><label for="judul_buku"></label> <div align="left">

<input type="text" name="judul_buku" id="judul_buku" value="<?php echo $rbuku['judul_buku'];?>" />

</div></th> </tr>

<tr>

<td><div align="left">Kode Buku</div></td> <td>:</td>

<td><label for="kode_buku"></label> <div align="left">

<input type="text" name="kode_buku" id="kode_buku" value="<?php echo $rbuku['kode_buku'];?>" />

</div></td> </tr>

<tr>

<td><div align="left">Pengarang</div></td> <td>:</td>

<td><div align="left">

<label for="pengarang"></label>

<input type="text" name="pengarang" id="pengarang" value="<?php echo $rbuku['pengarang'];?>" />

</div></td> </tr>

<tr>

<td><div align="left">Penerbit</div></td> <td>:</td>

<td><div align="left">

(51)

<input type="text" name="penerbit" id="penerbit" value="<?php echo $rbuku['penerbit'];?>" />

</div></td> </tr>

<tr>

<td><div align="left">Tahun</div></td> <td>:</td>

<td><div align="left">

<label for="tahun"></label>

<input type="text" name="tahun" id="tahun" value="<?php echo $rbuku['tahun'];?>" />

</div></td> </tr>

<tr>

<td><div align="left">ISBN</div></td> <td>:</td>

<td><div align="left">

<label for="isbn"></label>

<input type="text" name="isbn" id="isbn" value="<?php echo $rbuku['isbn'];?>" />

</div></td> </tr>

<tr>

<td><div align="left">Status</div></td> <td>:</td>

<td><div align="left">

<label for="status"></label>

<select name="status" id="status"> <option>Ada</option>

(52)

</select> </div></td> </tr>

<tr>

<td colspan="3"><div align="center">

<input type="submit" name="button3" id="button3" value="Simpan" />

<input type="reset" name="button4" id="button4" value="Batal" />

</div></td> </tr>

</table> </div> </form> </div>

<div class="kiri"><h3>Login</h3> <form action="cek.php" method="post"> <div align="center">

<table width="200" border="1"> <tr>

<th scope="col">Username</th>

<th scope="col"><label for="username"></label>

<input type="text" name="username" id="username" /></th> </tr>

<tr>

<td>Password</td>

<td><label for="password"></label>

(53)

</tr> <tr>

<td colspan="2"><div align="center">

<input type="submit" name="button" id="button" value="Login" />

<input type="reset" name="button2" id="button2" value="Cancel" />

</div></td> </tr>

</table> </div> </form> </div> </div> </body> </html>

18.

Insert Data Buku

<?php

$judul_buku = $_POST['judul_buku']; $kode_buku = $_POST['kode_buku']; $pengarang = $_POST['pengarang']; $penerbit = $_POST['penerbit']; $tahun = $_POST['tahun'];

$isbn = $_POST['isbn']; $status = $_POST['status'];

(54)

if($judul_buku == ""){ echo "<script>

alert('Silahkan isi Judul Buku dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

else if($kode_buku == ""){ echo "<script>

alert('Silahkan isi Kode Buku dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

else if($pengarang == ""){ echo "<script>

alert('Silahkan isi Pengarang Buku dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

else if($penerbit == ""){ echo "<script>

alert('Silahkan isi Penerbit Buku dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

else if($tahun == ""){ echo "<script>

alert('Silahkan isi Tahun Buku dengan Benar.', document.location.href='javascript:history.back(0)');

(55)

else if($isbn == ""){ echo "<script>

alert('Silahkan isi ISBN Buku dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

else if($status == ""){ echo "<script>

alert('Silahkan isi Status Buku dengan Benar.', document.location.href='javascript:history.back(0)');

</script>"; }

else{

mysql_query("INSERT INTO tb_buku VALUES ('', '$judul_buku', '$kode_buku', '$pengarang', '$penerbit', '$tahun', '$isbn', '$status')");

echo "<script>

alert('Data berhasil Diperbaharui dan Sudah disimpan ke Database.', document.location.href='../edit_dtbuku.php');

</script>"; }

?>

19.

Update Data Buku

<?php

(56)

$pengarang = $_POST['pengarang']; $penerbit = $_POST['penerbit']; $tahun = $_POST['tahun'];

$isbn = $_POST['isbn']; $status = $_POST['status']; $id_buku = $_GET['id_buku']; include "koneksi.php";

if($judul_buku == ""){ echo "<script>

alert('Silahkan isi Judul buku dengan benar', document.location.href='javascript:history.back(0)');

</script>"; }

else if($kode_buku == ""){ echo "<script>

alert('Silahkan isi Kode buku dengan benar', document.location.href='javascript:history.back(0)');

</script>"; }

else if($pengarang == ""){ echo "<script>

alert('Silahkan isi Pengarang buku dengan benar', document.location.href='javascript:history.back(0)');

</script>"; }

else if($penerbit == ""){ echo "<script>

alert('Silahkan isi Penerbit buku dengan benar', document.location.href='javascript:history.back(0)');

(57)

}

else if($tahun == ""){ echo "<script>

alert('Silahkan isi Tahun buku dengan benar', document.location.href='javascript:history.back(0)');

</script>"; }

else if($isbn == ""){ echo "<script>

alert('Silahkan isi ISBN buku dengan benar', document.location.href='javascript:history.back(0)');

</script>"; }

else if($status == ""){ echo "<script>

alert('Silahkan pilih Status buku dengan benar', document.location.href='javascript:history.back(0)');

</script>"; }

else{

mysql_query("UPDATE tb_buku SET judul_buku='$judul_buku', kode_buku='$kode_buku', pengarang='$pengarang', penerbit='$penerbit', tahun='$tahun', isbn='$isbn', status='$status' WHERE id_buku='$id_buku'");

echo"<script>

alert('Data berhasil diperbaharui dan sudah disimpan kedalam database', document.location.href='../edit_dtbuku.php')

</script>"; }

Referensi

Dokumen terkait

Kebutuhan data yang dibutuhkan dalam pembuatan aplikasi data mining menggunakan algoritma apriori adalah data transaksi penjualan pada minimarket Frida magelang

Definisi film menurut UU 8/1992, adalah karya cipta seni dan budaya yang merupakan media komunikasi massa pandang-dengar yang dibuat berdasarkan asas sinematografi

Berdasarkan dari hasil penelitian yang telah dilakukan kepada pihak devisi Public Relations di Grand Wahid Hotel Salatiga serta sepuluh sekolah atau instansi yang

More frequently used, more clarifying the attitude of hedonism in students because they tend to look for things that are less useful things like contemporary

3 Program Pelayanan Administrasi Perkantoran / Kegiatan Penyediaan Jasa Peralatan dan Perlengkapan Perkantoran Pendukung Prioritas Terpenuhinya pelayanan administrasi

Identifikasi dari daerah bercurah hujan rendah (&lt;1000-1500mm/tahun) di Indonesia (Sulawesi, Madura, Jawa Timur dan Nusa Tenggara Timur) serta seleksi dengan mempertimbangkan

Deakin University ELL626 Literacies and Education: Writing reader.. Geelong:

• Dalam hal terjadi kepailitan karena kesalahan atau kelalaian Dewan Komisaris dalam melakukan pengawasan terhadap pengurusan yang dilaksanakan oleh Direksi dan