perbaikan penomoran

parent d986651d
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
<table class="timetable_sub"> <table class="timetable_sub">
<thead> <thead>
<tr> <tr>
<th>No.</th>
<th>ID</th> <th>ID</th>
<th>Judul</th> <th>Judul</th>
<th>Tanngal Dibuat</th> <th>Tanngal Dibuat</th>
...@@ -54,7 +53,6 @@ ...@@ -54,7 +53,6 @@
while($data = mysqli_fetch_array($tampil)) { while($data = mysqli_fetch_array($tampil)) {
?> ?>
<tr class="rem1"> <tr class="rem1">
<td class="invert"><?php echo $no++; ?></td>
<td class="invert"><?php echo $data['id_artikel']; ?></td> <td class="invert"><?php echo $data['id_artikel']; ?></td>
<td class="invert"><?php echo $data['judul_artikel']; ?></td> <td class="invert"><?php echo $data['judul_artikel']; ?></td>
<td class="invert"><?php echo $data['tanggal_dibuat']; ?></td> <td class="invert"><?php echo $data['tanggal_dibuat']; ?></td>
...@@ -82,13 +80,13 @@ ...@@ -82,13 +80,13 @@
<?php <?php
if( isset($_SESSION['administrator'])){ if( isset($_SESSION['administrator'])){
echo ' echo '
<tr><td colspan="6" align="center" style="background-color:#ffffff"><b> Tambah Artikel </b></td> <tr><td colspan="5" align="center" style="background-color:#ffffff"><b> Tambah Artikel </b></td>
<td><a href="addarticle.php"><img src="images/tambah.png" /></td></tr></table> <td><a href="addarticle.php"><img src="images/tambah.png" /></td></tr></table>
'; ';
} }
else { else {
echo ' echo '
<tr><td colspan="7" align="center" style="background-color:#ffffff"> Data buku kosong ! </td></tr></table> <tr><td colspan="6" align="center" style="background-color:#ffffff"> Data buku kosong ! </td></tr></table>
'; ';
} }
?> ?>
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
<table class="timetable_sub"> <table class="timetable_sub">
<thead> <thead>
<tr> <tr>
<th>No.</th>
<th>ISBN</th> <th>ISBN</th>
<th>Judul</th> <th>Judul</th>
<th>Pengarang</th> <th>Pengarang</th>
...@@ -68,7 +67,6 @@ ...@@ -68,7 +67,6 @@
while($data = mysqli_fetch_array($tampil)) { while($data = mysqli_fetch_array($tampil)) {
?> ?>
<tr class="rem1"> <tr class="rem1">
<td class="invert"><?php echo $no++; ?></td>
<td class="invert"><?php echo $data['isbn']; ?></td> <td class="invert"><?php echo $data['isbn']; ?></td>
<td class="invert"><?php echo $data['judul']; ?></td> <td class="invert"><?php echo $data['judul']; ?></td>
<td class="invert"><?php echo $data['pengarang']; ?></td> <td class="invert"><?php echo $data['pengarang']; ?></td>
...@@ -101,13 +99,13 @@ ...@@ -101,13 +99,13 @@
<?php <?php
if( isset($_SESSION['administrator'])){ if( isset($_SESSION['administrator'])){
echo ' echo '
<tr><td colspan="11" align="center" style="background-color:#ffffff"><b> Tambah Data Buku </b></td> <tr><td colspan="10" align="center" style="background-color:#ffffff"><b> Tambah Data Buku </b></td>
<td><a href="addbook.php"><img src="images/tambah.png" /></td></tr></table> <td><a href="addbook.php"><img src="images/tambah.png" /></td></tr></table>
'; ';
} }
else { else {
echo ' echo '
<tr><td colspan="12" align="center" style="background-color:#ffffff"> Data buku kosong ! </td></tr></table> <tr><td colspan="11" align="center" style="background-color:#ffffff"> Data buku kosong ! </td></tr></table>
'; ';
} }
?> ?>
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
<table class="timetable_sub"> <table class="timetable_sub">
<thead> <thead>
<tr> <tr>
<th>No.</th>
<th>ID</th> <th>ID</th>
<th>Pengirim</th> <th>Pengirim</th>
<th>Komentar</th> <th>Komentar</th>
...@@ -53,7 +52,6 @@ ...@@ -53,7 +52,6 @@
while($data = mysqli_fetch_array($tampil)) { while($data = mysqli_fetch_array($tampil)) {
?> ?>
<tr class="rem1"> <tr class="rem1">
<td class="invert"><?php echo $no++; ?></td>
<td class="invert"><?php echo $data['id_komentar']; ?></td> <td class="invert"><?php echo $data['id_komentar']; ?></td>
<td class="invert"><?php echo $data['nama_pengirim']; ?></td> <td class="invert"><?php echo $data['nama_pengirim']; ?></td>
<td class="invert"><?php echo $data['komentar']; ?></td> <td class="invert"><?php echo $data['komentar']; ?></td>
...@@ -77,7 +75,7 @@ ...@@ -77,7 +75,7 @@
} }
else { else {
echo ' echo '
<tr><td colspan="6" align="center" style="background-color:#ffffff"> Data komentar kosong ! </td></tr></table> <tr><td colspan="5" align="center" style="background-color:#ffffff"> Data komentar kosong ! </td></tr></table>
'; ';
} }
?> ?>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<table class="col-md-3"> <table class="col-md-3">
<tr> <tr>
<br> <br>
<td>Jumlah Data Pelanggan</td> <td>Jumlah Pelanggan</td>
<td>: <b><?php echo $jum; ?></b></td> <td>: <b><?php echo $jum; ?></b></td>
</tr> </tr>
</table> </table>
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
<table class="timetable_sub"> <table class="timetable_sub">
<thead> <thead>
<tr> <tr>
<th>No.</th>
<th>ID Pelanggan</th> <th>ID Pelanggan</th>
<th>Nama Lengkap</th> <th>Nama Lengkap</th>
<th>Alamat</th> <th>Alamat</th>
...@@ -54,7 +53,6 @@ ...@@ -54,7 +53,6 @@
while($data = mysqli_fetch_array($tampil)) { while($data = mysqli_fetch_array($tampil)) {
?> ?>
<tr class="rem1"> <tr class="rem1">
<td class="invert"><?php echo $no++; ?></td>
<td class="invert"><?php echo $data['id_user']; ?></td> <td class="invert"><?php echo $data['id_user']; ?></td>
<td class="invert"><?php echo $data['nama_lengkap']; ?></td> <td class="invert"><?php echo $data['nama_lengkap']; ?></td>
<td class="invert"><?php echo $data['alamat']; ?></td> <td class="invert"><?php echo $data['alamat']; ?></td>
......
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