Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- Daftar Komentar
- </h1>
- <ol class="breadcrumb">
- <li><a href="index.php"><i class="fa fa-dashboard"></i> Home</a></li>
- <li class="active">Daftar Komentar</li>
- </ol>
- </section>
- <!-- Main content -->
- <section class="content">
- <div class="row">
- <div class="col-xs-12">
- <div class="box box-primary">
- <div class="box-header">
- <a href="index.php?page=tambah_komentar" class="btn btn-primary" role="button" title="Tambah Data"><i class="glyphicon glyphicon-plus"></i> Tambah</a>
- </div>
- <div class="box-body table-responsive">
- <table id="komentar" class="table table-bordered table-hover">
- <thead>
- <tr>
- <th>#</th>
- <th>Nama</th>
- <th>Email</th>
- <th>Subjek</th>
- <th>Pesan</th>
- <th>Aksi</th>
- </tr>
- </thead>
- <tbody>
- <?php
- include "conf/connect.php";
- $no=0;
- $showData = mysqli_query($connect,"select * from komentar order by id desc;;");
- while ($data=mysqli_fetch_array($showData))
- {
- ?>
- <tr>
- <td><?php echo $no=$no+1;?></td>
- <td><?php echo $data['nama'];?></td>
- <td><?php echo $data['email'];?></td>
- <td><?php echo $data['subjek'];?></td>
- <td><?php echo $data['pesan'];?></td>
- <td>
- <a href="index.php?page=ubah_komentar&id=<?php echo $data['id'];?>" class="btn btn-success" role="button" title="Ubah Data"><i class="glyphicon glyphicon-edit"></i></a>
- <a href="index.php?page=hapus_komentar&id=<?php echo $data['id'];?>" class="btn btn-danger" role="button" title="Hapus Data"><i class="glyphicon glyphicon-trash"></i></a>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
- <!-- /.box-body -->
- </div><!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- Daftar Komentar
- </h1>
- <ol class="breadcrumb">
- <li><a href="index.php"><i class="fa fa-dashboard"></i> Home</a></li>
- <li class="active">Daftar Komentar</li>
- </ol>
- </section>
- <!-- Main content -->
- <section class="content">
- <div class="row">
- <div class="col-xs-12">
- <div class="box box-primary">
- <div class="box-header">
- <a href="index.php?page=tambah_komentar" class="btn btn-primary" role="button" title="Tambah Data"><i class="glyphicon glyphicon-plus"></i> Tambah</a>
- </div>
- <div class="box-body table-responsive">
- <table id="komentar" class="table table-bordered table-hover">
- <thead>
- <tr>
- <th>#</th>
- <th>Nama</th>
- <th>Email</th>
- <th>Subjek</th>
- <th>Pesan</th>
- <th>Aksi</th>
- </tr>
- </thead>
- <tbody>
- <?php
- include "conf/connect.php";
- $no=0;
- $showData = mysqli_query($connect,"select * from komentar order by id desc;;");
- while ($data=mysqli_fetch_array($showData))
- {
- ?>
- <tr>
- <td><?php echo $no=$no+1;?></td>
- <td><?php echo $data['nama'];?></td>
- <td><?php echo $data['email'];?></td>
- <td><?php echo $data['subjek'];?></td>
- <td><?php echo $data['pesan'];?></td>
- <td>
- <a href="index.php?page=ubah_komentar&id=<?php echo $data['id'];?>" class="btn btn-success" role="button" title="Ubah Data"><i class="glyphicon glyphicon-edit"></i></a>
- <a href="index.php?page=hapus_komentar&id=<?php echo $data['id'];?>" class="btn btn-danger" role="button" title="Hapus Data"><i class="glyphicon glyphicon-trash"></i></a>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
- <!-- /.box-body -->
- </div>
- <!-- /.box -->
- </div>
- <!-- /.col -->
- </div>
- <!-- /.row -->
- </section>
- <!-- /.content -->
- </div>
- <!-- /.content-wrapper -->
- <!-- Javascript Datatable -->
- <script type="text/javascript">
- $(document).ready(function(){
- $('#komentar').DataTable();
- });
- </script>
- <!-- /.box -->
- </div>
- <!-- /.col -->
- </div>
- <!-- /.row -->
- </section>
- <!-- /.content -->
- </div>
- <!-- /.content-wrapper -->
- <!-- Javascript Datatable -->
- <script type="text/javascript">
- $(document).ready(function(){
- $('#komentar').DataTable();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement