Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="container">
- <hr>
- <form action="<?php echo site_url('mahasiswa/search_keyword');?>" method = "post">
- <div class="btn-group btn-group-xs "role="group">
- <input type="text" class= "form-control" name="keyword" placeholder = "Search"></div>
- <div class="btn-group btn-group "role="group">
- <button type="submit" class="btn btn-info" value = "Search" >Cari</button>
- </div>
- </form>
- <hr>
- <label class="label label-primary">Jumlah Mahasiswa :
- <?php echo $jlh; ?>
- </label>
- <table class="table table-hover">
- <tr>
- <th>ID Mahasiswa</th>
- <th>Nama Mahasiswa</th>
- <th>Tempat Lahir</th>
- <th>Tanggal Lahir</th>
- <th>Jenis Kelamin</th>
- <th>Alamat</th>
- <th>Agama</th>
- <th>Hobi</th>
- <th>No. Telepon</th>
- <th>Program Studi</th>
- </tr>
- <?php
- foreach ($item as $row){
- echo "<tr>";
- echo "<td>".$row->mahasiswa_id."</td>";
- echo "<td>".$row->namamahasiswa."</td>";
- echo "<td>".$row->tempatlahir."</td>";
- echo "<td>".$row->tanggallahir."</td>";
- echo "<td>".$row->jeniskelamin."</td>";
- echo "<td>".$row->alamat."</td>";
- echo "<td>".$row->namaagama."</td>";
- echo "<td>".$row->hobi."</td>";
- echo "<td>".$row->notelp."</td>";
- echo "<td>".$row->namaprodi."</td>";
- echo "<td>";
- ?>
- <div class="btn-group btn-group-xs" role="group">
- <a class="btn btn-warning" href="<?php echo site_url("mahasiswa/edit?id=$row->mahasiswa_id");?>">Edit</a>
- <a class="btn btn-danger" href="<?php echo site_url("mahasiswa/hapus?id=$row->mahasiswa_id");?>">Delete</a>
- </div>
- <?php
- echo"</td>";
- echo"</tr>";
- }
- ?>
- </table>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment