Advertisement
banyucenter

v_user.php

Nov 3rd, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.78 KB | None | 0 0
  1. <div class="content-wrapper" >
  2. <section class="content-header">
  3.   <h1>
  4.     Dashboard
  5.     <small>Control panel</small>
  6.   </h1>
  7.   <ol class="breadcrumb">
  8.     <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  9.     <li class="active">Dashboard</li>
  10.   </ol>
  11. </section>
  12. <section class="content">
  13.   <div class="row">
  14.     <section class="col-lg-12 connectedSortable">
  15.         <table class="table table-striped table-bordered data display nowrap" id="data">
  16.         <h2> DATA USER </h2>
  17.         <a href="<?php echo base_url(). 'user/tambah/';?>">
  18.         <button class="btn btn-warning">Tambah user</button></a>
  19.         <hr>
  20.         <thead>
  21.         <tr>
  22.             <th>No</th>
  23.             <th>NAMA </th>
  24.             <th>EMAIL </th>
  25.             <th>PASSWORD </th>
  26.             <th>AKSI</th>
  27.         </tr>
  28.         </thead>
  29.         <tbody>
  30.         <?php
  31.         $no = 1;
  32.         foreach($user as $s){
  33.         ?>
  34.         <tr>
  35.             <td><?php echo $no++ ?></td>
  36.             <td><?php echo $s->nama ?></td>
  37.             <td><?php echo $s->email ?></td>
  38.             <td><?php echo $s->password ?></td>
  39.             <td><?php echo $s->no_telp ?></td>
  40.             <td>
  41.             <a href="<?php echo base_url(). 'user/edit/'.$s->id; ?>">
  42.             <button class="btn btn-primary">Edit</button></a>
  43.             <a href="<?php echo base_url(). 'user/hapus/'.$s->id; ?>">
  44.             <button class="btn btn-danger">Hapus</button></a>
  45.             </td>
  46.         </tr>
  47.         <?php } ?>
  48.         </tbody>
  49.     </table>
  50.     </section>
  51.   </div>
  52. </section>
  53. </div>
  54.  
  55. <script type="text/javascript">
  56.     jQuery.noConflict();
  57.     jQuery(document).ready(function($){
  58.       $('.data').DataTable(
  59.         {
  60.           "scrollX": true
  61.         }
  62.       );
  63.  
  64.     });
  65.   </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement