Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once "../_config/config.php";
- if(!isset($_POST["produk"])){
- $produk = $_POST["produk"];
- $harga = $_POST["harga"];
- $jumlah = $_POST["jumlah"];
- ?>
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover" id="list_produk">
- <thead>
- <tr>
- <th>No.</th>
- <th>Nama Produk</th>
- <th>Jumlah</th>
- <th>Total Harga</th>
- <th><i class="glyphicon glyphicon-cog"></i></th>
- </tr>
- </thead>
- <tbody>
- <!-- Menampilkan Data Dari Database -->
- <?php
- $no = 1;
- $total = $jumlah * $harga;
- ?>
- <tr>
- <td><?=$no++?></td>
- <td><?=$produk?></td>
- <td><?=$jumlah?></td>
- <td><?=format_rp($total)?></td>
- <td align="center">
- <a href="edit.php?id=<?=$data['id_produk']?>" class="btn btn-warning btn-xs"><i class="glyphicon glyphicon-cog"></i></a>
- <a href="del.php?id=<?=$data['id_produk']?>" class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
- </td>
- </tr>
- <!-- Akhir Query -->
- </tbody>
- </table>
- </div>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement