Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 15th, 2018 86 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <h4><i class="fa fa-shopping-cart"></i> Data Belanja</h4>
  2. <hr />
  3. <br />
  4. <?= validation_errors('<p style="color:red">','</p>'); ?>
  5. <div class="row">
  6. <table class="bordered responsive-table col m10 s12 offset-m1">
  7.     <thead>
  8.         <tr>
  9.             <th width="5%" class="center">No</th>
  10.             <th width="40%" class="center">Nama Barang</th>
  11.             <th width="10%" class="center">Berat</th>
  12.             <th width="5%" class="center">Jumlah</th>
  13.             <th width="15%" class="center">Harga Total</th>
  14.             <th width="15%" class="center">Opsi</th>
  15.         </tr>
  16.     </thead>
  17.     <tbody>
  18.         <?php
  19.         $i = 1;
  20.         foreach($this->cart->contents() as $key) :
  21.             ?>
  22.             <tr>
  23.                 <td class="center"><?= $i++; ?></td>
  24.                 <td><?= $key['name']; ?></td>
  25.                 <td><?= number_format($key['weight'], 0, ',', '.').'gram'; ?></td>
  26.                 <td class="center"><?= $key['qty']; ?></td>
  27.                 <td style="text-align:right">Rp. <?= number_format(($key['qty'] * $key['price']), 0,',', '.'); ?>,-</td>
  28.                 <td style="text-align:right">
  29.                     <a href ="#<?= $key['rowid']; ?>" class="btn-floating orange"><i class="fa fa-edit"></i></a>
  30.                     <a href ="<?= base_url(); ?>index.php/cart/delete/<?= $key['rowid']; ?>" class="btn-floating red"
  31.                     onclick="return confirm('Yakin ingin menghapus item ini dari keranjang anda ?')"><i class="fa fa-trash"></i></a>  
  32.                 </td>
  33.             </tr>
  34.             <div class="modal" id="<?= $key['rowid']; ?>">
  35.                 <form action="<?= base_url(); ?>index.php/cart/update/<?= $key['rowid']; ?>" method="post">
  36.                     <div class="row">
  37.                         <div claas="col m10 s12 offset-m1">
  38.                             <div class="modal-content">
  39.                                 <h5><i class="fa fa-edit"></i> Edit Pesanan</h5>
  40.                                 <br />
  41.                                 <div class="input-field">
  42.                                     <input type="text" name="qty" value="<?= $key['name']; ?>" id="name<?=$key['rowid']; ?>" readonly="readonly">
  43.                                     <label for="name<?= $key['rowid']; ?>">Nama Barang</label>
  44.                                 </div>
  45.                                 <div class="input-field">
  46.                                     <input type="number" name="qty" value="<?= $key['qty']; ?>" id="qty<?=$key['rowid']; ?>" auotofocus>
  47.                                     <p style="color:6b6b6b; margin-top:-15px;"><i> *Isi dengan angka</i></p>
  48.                                     <label for="qty<?= $key['rowid']; ?>">Jumlah Pesan</label>
  49.                                 </div>
  50.                             </div>
  51.                     <div class="modal-footer">
  52.                         <button type="submit" name="submit" value="Submit" class="modal-action btn blue">Simpan</button>
  53.                     </div>
  54.                 </form>
  55.             </div>
  56.         <?php endforeach; ?>
  57.         <tr>
  58.             <td colspan="4">Total</td>
  59.             <td colspan="1" style="text-align:right">Rp. <?= number_format($this->cart->total(), 0,',', '.'); ?></td>
  60.         </tr>
  61.         </tbody>
  62.     </table>
  63.     <br />
  64.     <button type="button" class="btn red" onclick="window.history.go(-1)">Kembali</button>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top