SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php $this->load->view('menu_jm');?>
| |
| 2 | <div class="container"> | |
| 3 | <!-- Main component for a primary marketing message or call to action --> | |
| 4 | <div class="panel panel-default"> | |
| 5 | <div class="panel-heading"><b>Daftar Barang</b></div> | |
| 6 | <div class="panel-body"> | |
| 7 | - | <a href="<?php echo base_url('barang/tambah');?>" class="btn btn-sm btn-primary"><i class="glyphicon glyphicon-plus"></i> Tambah Data</a>
|
| 7 | + | <a href="<?php echo site_url('barang/tambah');?>" class="btn btn-sm btn-primary"><i class="glyphicon glyphicon-plus"></i> Tambah Data</a>
|
| 8 | <table class="table table-striped"> | |
| 9 | <thead> | |
| 10 | <tr> | |
| 11 | <th>No</th> | |
| 12 | <th>Program Hari</th> | |
| 13 | <th>Nama Paket</th> | |
| 14 | <th>Harga Paket</th> | |
| 15 | <th>Pilih Paket</th> | |
| 16 | <th>Akomodasi</th> | |
| 17 | <th></th> | |
| 18 | </tr> | |
| 19 | </thead> | |
| 20 | <?php | |
| 21 | $no = 1; | |
| 22 | foreach($user as $u){
| |
| 23 | ?> | |
| 24 | <tbody> | |
| 25 | <tr> | |
| 26 | <td><?php echo $no++?></td> | |
| 27 | <td><?php echo $u->prog_hari?></td> | |
| 28 | <td><?php echo $u->nama_paket?></td> | |
| 29 | <td><?php echo $u->harga_paket?></td> | |
| 30 | <td><?php echo $u->pilih_paket?></td> | |
| 31 | <td><?php echo $u->akomodasi_hotel?></td> | |
| 32 | ||
| 33 | </tr> | |
| 34 | <?php }?> | |
| 35 | </tbody> | |
| 36 | </table> | |
| 37 | </div> | |
| 38 | </div> <!-- /panel --> | |
| 39 | </div> <!-- /container --> |