perbaikan

parent a1ebea99
...@@ -1318,6 +1318,10 @@ ul.faq { ...@@ -1318,6 +1318,10 @@ ul.faq {
padding: 2em; padding: 2em;
box-shadow: 0px 0px 5px #b2afaf; box-shadow: 0px 0px 5px #b2afaf;
} }
.agileinfo_single {
padding: 1.2em;
box-shadow: 0px 0px 1px #b2afaf;
}
/*-- Ratings --*/ /*-- Ratings --*/
.rating1 { .rating1 {
direction:ltr; direction:ltr;
......
...@@ -27,11 +27,14 @@ ...@@ -27,11 +27,14 @@
<form action="editarticle_process.php" method="POST" enctype="multipart/form-data"> <form action="editarticle_process.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id" placeholder="id_artikel" value="<?php echo $data['id_artikel'] ?>" > <input type="hidden" name="id" placeholder="id_artikel" value="<?php echo $data['id_artikel'] ?>" >
<b> Judul Artikel : </b> <b> Judul Artikel : </b>
<input type="text" name="judul_artikel" style="width:100%" placeholder="Judul Artikel" value="<?php echo $data['judul_artikel'] ?>" ><br> <input type="text" name="judul_artikel" style="width:100%" placeholder="Judul Artikel" value="<?php echo $data['judul_artikel'] ?>" required/><br>
<b> Isi Artikel : </b> <b> Isi Artikel : </b>
<textarea name="isi_artikel" style="width:100%; height:450px" placeholder="<?php echo $data['isi_artikel'] ?>" value="<?php echo $data['isi_artikel'] ?>"></textarea><br> <textarea name="isi_artikel" style="width:100%; height:450px" placeholder="<?php echo $data['isi_artikel'] ?>" value="<?php echo $data['isi_artikel'] ?>"required></textarea><br>
<b> File Gambar : </b> <b> File Gambar : <br></b>
<input type="file" name="gambar_artikel" value=" "> <div class="col-md-3 agileinfo_single">
<img src="<?php echo $data['gambar_artikel']; ?>" class="img-responsive" required/>
</div><br><br><br><br><br><br><br><br><br>
<input type="file" name="gambar_artikel" value="<?php echo $data['gambar_artikel']; ?>" required/>
<input type="submit" name="edit" value="edit"> <input type="submit" name="edit" value="edit">
</form> </form>
</div> </div>
......
...@@ -26,24 +26,27 @@ ...@@ -26,24 +26,27 @@
?> ?>
<form action="editbook_process.php" method="POST" enctype="multipart/form-data"> <form action="editbook_process.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="id" placeholder="ISBN" value="<?php echo $data['isbn'] ?>" > <input type="hidden" name="id" placeholder="ISBN" value="<?php echo $data['isbn'] ?>" >
<b>Judul Buku : </b> <b>Judul Buku : </b>
<input type="text" name="judul" placeholder="Judul Buku" value="<?php echo $data['judul'] ?>" > <input type="text" name="judul" placeholder="Judul Buku" value="<?php echo $data['judul'] ?>" >
<b><br>Nama Pengarang :</b> <b><br>Nama Pengarang :</b>
<input type="text" name="pengarang" placeholder="Nama Pengarang" value="<?php echo $data['pengarang'] ?>" > <input type="text" name="pengarang" placeholder="Nama Pengarang" value="<?php echo $data['pengarang'] ?>" required/>
<b><br>Nama Penerbit :</b> <b><br>Nama Penerbit :</b>
<input type="text" name="penerbit" placeholder="Nama Penerbit" value="<?php echo $data['penerbit'] ?>" > <input type="text" name="penerbit" placeholder="Nama Penerbit" value="<?php echo $data['penerbit'] ?>" required/>
<b><br>Kategori Buku :</b> <b><br>Kategori Buku :</b>
<input type="text" name="kategori" placeholder="Kategori Buku" value="<?php echo $data['kategori'] ?>" > <input type="text" name="kategori" placeholder="Kategori Buku" value="<?php echo $data['kategori'] ?>" required/>
<b><br>Tahun Terbit :</b> <b><br>Tahun Terbit :</b>
<input type="text" name="tahun" placeholder="Tahun Terbit" value="<?php echo $data['tahun'] ?>" > <input type="text" name="tahun" placeholder="Tahun Terbit" value="<?php echo $data['tahun'] ?>" required/>
<b><br>Harga per Eksemplar :</b> <b><br>Harga per Eksemplar :</b>
<input type="text" name="harga" placeholder="Harga per Eksemplar" value="<?php echo $data['harga'] ?>" > <input type="text" name="harga" placeholder="Harga per Eksemplar" value="<?php echo $data['harga'] ?>" required/>
<b><br>Jumlah Tersedia :</b> <b><br>Jumlah Tersedia :</b>
<input type="text" name="jumlah" placeholder="Jumlah Tersedia" value="<?php echo $data['jumlah'] ?>" > <input type="text" name="jumlah" placeholder="Jumlah Tersedia" value="<?php echo $data['jumlah'] ?>" required/>
<b><br>Keterangan Buku :</b> <b><br>Keterangan Buku :</b>
<input type="text" name="keterangan" placeholder="Keterangan Buku" value="<?php echo $data['keterangan'] ?>" > <input type="text" name="keterangan" placeholder="Keterangan Buku" value="<?php echo $data['keterangan'] ?>" required/>
<b><br>Gambar : <br><br></b> <b><br>File Gambar : <br></b>
<input type="file" name="gambar" accept="img/*" required> <div class="col-md-5 agileinfo_single">
<img src="<?php echo $data['gambar']; ?>" class="img-responsive" required/>
</div><br>
<input type="file" name="gambar" accept="img/*" value="<?php echo $data['gambar']; ?>" required/>
<input type="submit" name="edit" value="edit"> <input type="submit" name="edit" value="edit">
</form> </form>
<?php <?php
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
?> ?>
<!-- //Page --> <!-- //Page -->
<div class="col-md-12"> <div class="col-md-12">
<table class="col-md-2"> <table class="col-md-3">
<tr> <tr>
<br> <br>
<td>Jumlah Data Artikel</td> <td>Jumlah Data Artikel</td>
......
...@@ -30,16 +30,6 @@ ...@@ -30,16 +30,6 @@
<td>Jumlah Data Buku</td> <td>Jumlah Data Buku</td>
<td>:<b> <?php echo $jum; ?></b></td> <td>:<b> <?php echo $jum; ?></b></td>
</tr> </tr>
<tr>
<td>Total Dana</td>
<td>:<b>
<?php
$modal = mysqli_query($koneksi, "SELECT SUM (harga) AS total FROM t_buku");
$data = ($modal);
echo " Rp.". number_format($data['total']).",-";
?>
</b></td>
</tr>
</table> </table>
</div> </div>
<!-- checkout --> <!-- checkout -->
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="container"> <div class="container">
<ol class="breadcrumb breadcrumb1"> <ol class="breadcrumb breadcrumb1">
<li><span><i class="fa fa-sign-in" aria-hidden="true"></i><a href="login.php"> Masuk</a></span></li> <li><span><i class="fa fa-sign-in" aria-hidden="true"></i><a href="login.php"> Masuk</a></span></li>
<li class="active">Kelola Data Komentar</li> <li class="active">Kelola Data Saran</li>
</ol> </ol>
</div> </div>
</div> </div>
...@@ -28,21 +28,21 @@ ...@@ -28,21 +28,21 @@
<table class="col-md-3"> <table class="col-md-3">
<tr> <tr>
<br> <br>
<td>Jumlah Komentar Masuk</td> <td>Jumlah Saran Masuk</td>
<td>: <b><?php echo $jum; ?></b></td> <td>: <b><?php echo $jum; ?></b></td>
</tr> </tr>
</table> </table>
</div> </div>
<!-- checkout --> <!-- checkout -->
<div class="container"><br><br><br> <div class="container"><br><br><br>
<h2>Daftar Komentar : </h2><br> <h2>Daftar Saran : </h2><br>
<div class="checkout-right"> <div class="checkout-right">
<table class="timetable_sub"> <table class="timetable_sub">
<thead> <thead>
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>Pengirim</th> <th>Pengirim</th>
<th>Komentar</th> <th>Saran</th>
<th>Tanggal</th> <th>Tanggal</th>
<th>Opsi</th> <th>Opsi</th>
</tr> </tr>
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
} }
else { else {
echo ' echo '
<tr><td colspan="5" align="center" style="background-color:#ffffff"> Data komentar kosong ! </td></tr></table> <tr><td colspan="5" align="center" style="background-color:#ffffff"> Data Saran kosong ! </td></tr></table>
'; ';
} }
?> ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment