Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.03 KB | None | 0 0
  1. <div class="box-body table-responsive">
  2.                 <table class="table table-bordered table-striped" id="table1">
  3.                     <thead>
  4.                         <tr>
  5.                             <th>No.</th>
  6.                             <th>Barcode</th>
  7.                             <th>Nama Item</th>
  8.                             <th>Price</th>
  9.                             <th>Category</th>
  10.                             <th>Unit</th>
  11.                             <th>Images</th>
  12.                             <th>Action</th>
  13.                         </tr>
  14.                         <tbody>
  15.                         <?php $no = 1; ?>
  16.                         <?php foreach ($row->result() as $key => $data): ?>
  17.                             <td style="width: 5%;"><?php echo $no++; ?></td>
  18.                             <td>
  19.                                 <?php echo $data->barcode ?><br>
  20.                                 <a href="<?php echo site_url('item/barcode_qrcode/'. $data->item_id) ?>" class="btn btn-default btn-xs"> Generate <i class="fa fa-barcode fa-qr"></i> <i class="fa fa-qrcode"></i></a>
  21.                                 </td>
  22.                             <td><?php echo $data->name ?></td>
  23.                             <td><?php echo $data->price ?></td>
  24.                             <td><?php echo $data->category_name ?></td>
  25.                             <td><?php echo $data->unit_name ?></td>
  26.                             <td>
  27.                                 <?php if ($data->image != null): ?>
  28.                                 <img src="<?php echo site_url('uploads/product/'. $data->image) ?>" style="width: 100px">
  29.                                 <?php endif ?>
  30.                             </td>
  31.                             <td class="text-center" width="160px">
  32.                                     <a href="<?php echo site_url('item/edit/'.$data->item_id) ?>" class="btn btn-warning btn-xs"><i class="fa fa-pencil"></i> Edit</a>
  33.  
  34.                                     <a href="<?php echo site_url('item/del/'.$data->item_id) ?>" onclick="return confirm('Apakah anda yakin?')" class="btn btn-danger btn-xs"><i class="fa fa-trash"></i> Delete</a>
  35.                             </td>
  36.                         </tbody>
  37.                         <?php endforeach ?>
  38.                     </thead>
  39.                 </table>
  40.             </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement