Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="box-body table-responsive">
- <table class="table table-bordered table-striped" id="table1">
- <thead>
- <tr>
- <th>No.</th>
- <th>Barcode</th>
- <th>Nama Item</th>
- <th>Price</th>
- <th>Category</th>
- <th>Unit</th>
- <th>Images</th>
- <th>Action</th>
- </tr>
- <tbody>
- <?php $no = 1; ?>
- <?php foreach ($row->result() as $key => $data): ?>
- <td style="width: 5%;"><?php echo $no++; ?></td>
- <td>
- <?php echo $data->barcode ?><br>
- <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>
- </td>
- <td><?php echo $data->name ?></td>
- <td><?php echo $data->price ?></td>
- <td><?php echo $data->category_name ?></td>
- <td><?php echo $data->unit_name ?></td>
- <td>
- <?php if ($data->image != null): ?>
- <img src="<?php echo site_url('uploads/product/'. $data->image) ?>" style="width: 100px">
- <?php endif ?>
- </td>
- <td class="text-center" width="160px">
- <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>
- <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>
- </td>
- </tbody>
- <?php endforeach ?>
- </thead>
- </table>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement