Advertisement
Guest User

unit_data.php

a guest
Apr 1st, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.07 KB | None | 0 0
  1. <section class="content-header">
  2.       <h1>Units
  3.         <small>Unit Barang</small>
  4.       </h1>
  5.       <ol class="breadcrumb">
  6.         <li><a href="#"><i class="fa fa-dashboard"></i></a></li>
  7.         <li class="active">Units</li>
  8.       </ol>
  9. </section>
  10.  
  11.     <!-- Main content -->
  12.     <section class="content">
  13.     <?php $this->view('messages') ?>
  14.       <div class="box">
  15.         <div class="box-header">
  16.             <h3 class="box-title">Data Units</h3>
  17.             <div class="pull-right">
  18.                 <a href="<?=site_url('unit/add')?>" class="btn btn-primary btn-flat">
  19.                     <i class="fa fa-plus"></i> Create
  20.                 </a>
  21.             </div>
  22.         </div>
  23.         <div class="box-body table-responsive">
  24.             <!-- <?php print_r($row->result()) ?> -->
  25.             <table class="table table-bordered table-striped" id="table1">
  26.                 <thead>
  27.                     <tr>
  28.                         <th>#</th>
  29.                         <th>Name</th>
  30.                         <th>Action</th>
  31.                     </tr>
  32.                 </thead>
  33.                 <tbody>
  34.                     <?php $no = 1;
  35.                     foreach($row->result() as $key => $data) { ?>
  36.                     <tr>
  37.                         <td style="width:5%;"><?=$no++?></td>
  38.                         <td><?=$data->name?></td>
  39.                         <td class="text-center" width="160px">
  40.                             <a href="<?=site_url('unit/edit/'.$data->unit_id)?>" class="btn btn-primary btn-xs">
  41.                                 <i class="fa fa-pencil"></i> Update
  42.                             </a>
  43.                             <a href="<?=site_url('unit/del/'.$data->unit_id)?>" onclick="return confirm('Apakah yakin?')" class="btn btn-danger btn-xs">
  44.                                 <i class="fa fa-trash"></i> Delete
  45.                             </a>
  46.                         </td>
  47.                     </tr>
  48.                     <?php
  49.                     } ?>
  50.                 </tbody>
  51.             </table>
  52.         </div>
  53.       </div>
  54.  
  55.     </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement