Bedhoel

view/user.php

May 12th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.46 KB | None | 0 0
  1.  <!-- JQuery DataTable Css -->
  2.  <link href="<?php echo $basepath ?>assets/plugins/jquery-datatable/skin/bootstrap/css/dataTables.bootstrap.css" rel="stylesheet">
  3. <section class="content">
  4.         <div class="container-fluid">
  5.             <div class="block-header">
  6.                 <h2>
  7.                     Manage User
  8.                 </h2>
  9.             </div>
  10.             <!-- Exportable Table -->
  11.             <div class="row clearfix">
  12.                 <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
  13.                     <div class="card">
  14.                         <div class="body">
  15.                             <div class="table-responsive">
  16.                                 <table class="table table-bordered table-striped table-hover dataTable js-exportable">
  17.                                     <thead>
  18.                                         <tr>
  19.                                             <th>Username</th>
  20.                                             <th>Email</th>
  21.                                             <th>Nama</th>
  22.                                             <th>Jenis Kelamin</th>
  23.                                             <th>Agama</th>
  24.                                             <th>Foto</th>
  25.                                             <th>Action</th>
  26.                                         </tr>
  27.                                     </thead>
  28.                                     <tfoot>
  29.                                         <tr>
  30.                                             <th>Username</th>
  31.                                             <th>Email</th>
  32.                                             <th>Nama</th>
  33.                                             <th>Jenis Kelamin</th>
  34.                                             <th>Agama</th>
  35.                                             <th>Foto</th>
  36.                                             <th>Action</th>
  37.                                         </tr>
  38.                                     </tfoot>
  39.                                     <tbody>
  40.                                          <?php
  41.                                           $data_user  = $usr->getDataUser();
  42.                                           $i=1;
  43.                                           while($list = $data_user->FetchRow()){
  44.                                           foreach($list as $key=>$val){
  45.                                               $key=strtolower($key);
  46.                                               $$key=$val;
  47.                                             }
  48.                                           ?>
  49.                                         <tr>
  50.                                             <td><?php echo $username ?></td>
  51.                                             <td><?php echo $email ?></td>
  52.                                             <td><?php echo $nama_lengkap ?></td>
  53.                                             <td><?php echo $jenis_kelamin ?></td>
  54.                                             <td><?php echo $agama ?></td>
  55.                                             <td align="center"><img src="<?php echo $basepath ?>assets/images/biodata/<?php echo $foto ?>" style="width:50px;height:50px"></td>
  56.                                             <td align="center">
  57.                                                 <a style="text-decoration:none" href="<?php echo $basepath ?>user/edit/<?php echo $gen_controller->encrypt($id_user)?>">
  58.                                                     <button class="btn btn-primary btn-sm">Edit</button>
  59.                                                 </a>
  60.                                                 <a style="text-decoration:none" href="<?php echo $basepath ?>user/delete/<?php echo $gen_controller->encrypt($id_user)?>">
  61.                                                 <button class="btn btn-danger btn-sm">Delete</button>
  62.                                                 </a>
  63.                                             </td>
  64.                                         </tr>
  65.  
  66.                                          <?php
  67.                                          $i++;
  68.                                         }
  69.                                          ?>
  70.                                     </tbody>
  71.                                 </table>
  72.                             </div>
  73.                         </div>
  74.                     </div>
  75.                 </div>
  76.             </div>
  77.             <!-- #END# Exportable Table -->
  78.         </div>
  79.     </section>
  80.     <!-- Jquery Core Js -->
  81.     <script src="<?php echo $basepath ?>assets/plugins/jquery/jquery.min.js"></script>
  82.  
  83.     <!-- Bootstrap Core Js -->
  84.     <script src="<?php echo $basepath ?>assets/plugins/bootstrap/js/bootstrap.js"></script>
  85.  
  86.     <!-- Select Plugin Js -->
  87.     <script src="<?php echo $basepath ?>assets/plugins/bootstrap-select/js/bootstrap-select.js"></script>
  88.  
  89.     <!-- Slimscroll Plugin Js -->
  90.     <script src="<?php echo $basepath ?>assets/plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
  91.  
  92.     <!-- Waves Effect Plugin Js -->
  93.     <script src="<?php echo $basepath ?>assets/plugins/node-waves/waves.js"></script>
  94.  
  95.     <!-- Jquery DataTable Plugin Js -->
  96.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/jquery.dataTables.js"></script>
  97.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/skin/bootstrap/js/dataTables.bootstrap.js"></script>
  98.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/extensions/export/dataTables.buttons.min.js"></script>
  99.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/extensions/export/buttons.flash.min.js"></script>
  100.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/extensions/export/jszip.min.js"></script>
  101.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/extensions/export/pdfmake.min.js"></script>
  102.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/extensions/export/vfs_fonts.js"></script>
  103.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/extensions/export/buttons.html5.min.js"></script>
  104.     <script src="<?php echo $basepath ?>assets/plugins/jquery-datatable/extensions/export/buttons.print.min.js"></script>
  105.  
  106.     <!-- Custom Js -->
  107.     <script src="<?php echo $basepath ?>assets/js/admin.js"></script>
  108.     <script src="<?php echo $basepath ?>assets/js/pages/tables/jquery-datatable.js"></script>
  109.  
  110.     <!-- Demo Js -->
  111.     <script src="<?php echo $basepath ?>assets/js/demo.js"></script>
  112. </body>
  113.  
  114. </html>
Advertisement
Add Comment
Please, Sign In to add comment